@extends('layouts.school') @section('title', 'Student Report Card') @section('header', 'Student Report Card') @section('content')
@if($student){{ $student->admission_no }} · {{ $student->class?->name ?? 'No class' }} · {{ ucfirst($student->gender ?? '') }}
| Subject | Exam | Score | Max | % | Grade | Remark |
|---|---|---|---|---|---|---|
| {{ $r->subject?->name ?? '—' }} | {{ $r->exam?->name ?? '—' }} | {{ $r->marks_obtained }} | {{ $r->max_marks }} | {{ $pct }}% | {{ $r->grade ?? '—' }} | {{ $r->remark ?? '—' }} |
Total Score
{{ $totalObtained }} / {{ $totalMax }}
Average
{{ $avgPct }}%
Subjects
{{ $results->count() }}
{{ $attendanceStats['total'] }}
Total Days
{{ $attendanceStats['present'] }}
Present
{{ $attendanceStats['absent'] }}
Absent
{{ $attendanceStats['late'] }}
Late