@if(isset($attendances) and count($attendances)>0) @php($totalPresent = 0) @php($totalAbsent = 0) @foreach($students as $student) @php($sl = $loop->iteration) @php($attendance = examAttendanceCheck($data,$student->id)) @if($attendance!=null and $attendance->status==1) @php($status=true) @php($totalPresent++) @else @php($status=false) @php($totalAbsent++) @endif @endforeach @else @endif
Sl. Name Nick Name Mobile School Photo Option
{{ $sl }} {{ $student->name }} {{ $student->nick_name }} {{ $student->mobile }} {{ isset($student->school)? $student->school->name : 'Not Found' }} Image {{ $status?'Present':'Absent' }}
Total Student : {{ $totalPresent + $totalAbsent }} Present : {{ $totalPresent }} Absent : {{ $totalAbsent }}
Exam attendance report is not available !!!