{{-- Logo N School Details--}} {{----}}
{{ strtoupper(Qs::getSetting('system_name')) }}
{{-- MINNA, NIGER STATE
--}} {{ ucwords($s['address']) }}
TABULATION SHEET FOR {{ strtoupper($my_class->name.' '.$section->name.' - '.$ex->name.' ('.$year.')' ) }}

{{--Background Logo--}}
{{-- Tabulation Begins --}} @foreach($subjects as $sub) @endforeach {{-- @if($ex->term == 3) @endif--}} @foreach($students as $s) @foreach($subjects as $sub) @endforeach {{--@if($ex->term == 3) --}}{{--1st term Total--}}{{-- --}}{{--2nd Term Total--}}{{-- --}}{{--3rd Term total--}}{{-- @endif--}} @endforeach
# NAMES_OF_STUDENTS_IN_CLASS{{ strtoupper($sub->slug ?: $sub->name) }}1ST TERM TOTAL 2ND TERM TOTAL 3RD TERM TOTAL CUM Total CUM AverageTotal Average Position
{{ $loop->iteration }} {{ $s->user->name }}{{ $marks->where('student_id', $s->user_id)->where('subject_id', $sub->id)->first()->$tex ?? '-' ?: '-' }}{{ Mk::getTermTotal($s->user_id, 1, $year) ?: '-' }}{{ Mk::getTermTotal($s->user_id, 2, $year) ?: '-' }}{{ Mk::getTermTotal($s->user_id, 3, $year) ?: '-' }}{{ $exr->where('student_id', $s->user_id)->first()->total ?: '-' }} {{ $exr->where('student_id', $s->user_id)->first()->ave ?: '-' }} {!! Mk::getSuffix($exr->where('student_id', $s->user_id)->first()->pos) ?: '-' !!}