@php $total = 1; @endphp @foreach($absentScriptFoundInfo as $roll_no => $studentInfo) @php $total += 1; @endphp @endforeach
Sl C_Code Roll No Reg No Name Subjects
{{ $total}} {{ collect($studentInfo)->first()->center_code }} {{ $roll_no }} {{ collect($studentInfo)->first()->registration_no }} {{ collect($studentInfo)->first()->student_name }} {{collect($studentInfo)->pluck('subject_code')->implode(", ") }}