{{----}} @php $attendance_stats = App\Models\StudentAttendance::where('student_session_id', $sr->user_id)->where('att_year', $ex->year)->where('term_id',$ex->term)->selectRaw("COUNT(*) as total, SUM(CASE WHEN attendence_type_id = '1' THEN 1 ELSE 0 END) as present")->first(); $attendance = App\Models\ExamAttendance::where('student_id',$sr->user_id)->where('exam_id',$exam_id)->first(); @endphp @if($exr != null) @if($my_class->class_type_id != 1 && $my_class->class_type_id != 2) @endif
NAME: {{ strtoupper($sr->user->name) }} ADM NO: {{ $sr->adm_no }} HOUSE: {{ strtoupper($sr->house) }} CLASS: {{ strtoupper($my_class->name) }}
REPORT SHEET FOR {!! strtoupper(Mk::getSuffix($ex->term)) !!} TERM ACADEMIC YEAR: {{ $ex->year }} ATTENDANCE: @if($s['auto_attendance_count'] == 0) @else {{$attendance_stats->present}}/{{$attendance_stats->total}} @endif POS: {{ $exr->st_pos ?? 'N/A' }}
@if($my_class->class_type_id != 1 && $my_class->class_type_id != 2)@endif @foreach($subjects as $sub)
SUBJECTS @if($ex->exam_type == 'mid-term-exam') PAPER1 @elseif($ex->exam_type == 'mock-exam') OBJECTIVES @else CLASS SCORE @endif ({{ $ex->class_score }}) @if($ex->exam_type == 'mid-term-exam') PAPER2 @elseif($ex->exam_type == 'mock-exam') SUBJECTIVES @else EXAMS ({{ $ex->exam_score }}) @endif FINAL MARKS GRADESUB POSITIONREMARKS