@php $sn = 1; foreach($result as $ac){ @endphp @php ++$sn; } @endphp
S.No. Dept Name Email
{{ $sn; }} {{ ucwords(strtolower($ac->deptname)) }} {{ $ac->deptt_email }}
@csrf