{{-- --}} @php($totalPresent = 0) @php($totalAbsent = 0) @foreach($students as $student) @php($sl = $loop->iteration) @php($attendance = attendanceCheck($data,$student->id)) @if($attendance!=null and $attendance->status==1) @php($status=true) @php($totalPresent++) @else @php($status=false) @php($totalAbsent++) @endif {{-- --}} @endforeach
Sl. Name Nick Name MobileSchoolPhoto Status
{{ $sl }} {{ $student->mobile }}{{ isset($student->school)? $student->school->name : 'Not Found' }} Image
Total Number Of Student Present : {{ $totalPresent }} Absent : {{ $totalAbsent }}