@extends('layouts.master') @section('page_title', 'My Children') @section('content')
My Children
{!! Qs::getPanelOptions() !!}
@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
photo
{{ $s->user->name }}
{{ $s->my_class->name.' '.$s->section->name }} · ADM No: {{ $s->adm_no }}

Report Cards
@if($recs->isEmpty())

No results have been published for {{ $s->user->name }} yet.

@else
@foreach($recs as $r) @endforeach
Term / ExamSessionTotalAveragePositionReport Card
{{ $exams[$r->exam_id]->name }} {{ $r->year }} {{ $r->total }} {{ $r->ave }} {!! $r->pos ? \App\Helpers\Mk::getSuffix($r->pos) : '-' !!} View Print
@endif
@empty

No children are linked to your account yet. Please contact the school.

@endforelse
@endsection