@forelse($students as $s)
@php
$recs = ($records[$s->user_id] ?? collect())->filter(function($r) use ($exams){ return isset($exams[$r->exam_id]); })->sortByDesc(function($r) use ($exams){ return $r->year.'-'.$exams[$r->exam_id]->term; });
$uid = Qs::hash($s->user->id);
@endphp
Report Cards
@if($recs->isEmpty())
No results have been published for {{ $s->user->name }} yet.
@else
| Term / Exam | Session | Total | Average | Position | Report Card |
@foreach($recs as $r)
| {{ $exams[$r->exam_id]->name }} |
{{ $r->year }} |
{{ $r->total }} |
{{ $r->ave }} |
{!! $r->pos ? \App\Helpers\Mk::getSuffix($r->pos) : '-' !!} |
View
Print
|
@endforeach
@endif
@empty
No children are linked to your account yet. Please contact the school.
@endforelse