{{-- School Header --}}
{{-- Top bar: title + export --}}
{{-- Exam / Student Meta --}}
{{-- Result detail marks --}}
{{ $school->name ?? config('app.name', 'Your School') }}
{{ $school->address ?? 'Address' }} | Phone: {{ $school->phone ?? '-' }}
Marksheet – {{ $student->student_name_english ?? $student->name ?? 'Student' }}{{ $student->admission_roll ? ' - Roll: '.$student->admission_roll : '' }}
| Exam | {{ $exam->exam_name }} | Session | {{ $exam->session->name ?? '-' }} |
|---|---|---|---|
| Class | {{ $exam->class->name ?? '-' }} | Section | {{ $section->name ?? '-' }} |
| Student Name | {{ $student->student_name_english ?? $student->name ?? '-' }} | Student ID | {{ $student->student_id ?? $student->id }} |
| Class Position | {{ $positionClass ?? '-' }} | Section Position | {{ $positionSection ?? '-' }} |
Result detail marks
| Subject | MT ({{ number_format($mtPctHead,2) }}%) | Term ({{ number_format($termPctHead,2) }}%) | Final marks | Grade | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Full Marks | Obtain | Contribution | {{-- Term --}}Full marks | MCQ | CQ | Practical | Total obtain | Contribution | |||
| {{ $row['subject_name'] }} | {{-- MT --}}{{ !is_null($row['mt_full']) ? number_format($row['mt_full'],2) : '-' }} | {{ !is_null($row['mt_total']) ? number_format($row['mt_total'],2) : '-' }} | {{ number_format($row['mt_contrib'] ?? 0, 2) }} | {{-- Term --}}{{ number_format($row['term_total_full'] ?? 0, 2) }} | {{ !is_null($mcq) ? number_format($mcq,2) : '-' }} | {{ !is_null($cq) ? number_format($cq,2) : '-' }} | {{ !is_null($prac)? number_format($prac,2): '-' }} | {{ number_format($row['term_total_obt'] ?? 0, 2) }} | {{ number_format($row['term_contrib'] ?? 0, 2) }} | {{-- Final + Grade --}}{{ number_format($row['final_percent_of_100'] ?? 0, 2) }} | {{ $row['grade'] ?? '-' }} |
| Total | {{-- MT totals --}}{{ number_format($tMtFull,2) }} | {{ number_format($tMtObt,2) }} | {{ number_format($tMtContrib,2) }} | {{-- Term totals --}}{{ number_format($tTermFull,2) }} | - | - | - | {{ number_format($tTermObt,2) }} | {{ number_format($tTermContrib,2) }} | {{-- Final sum + overall grade --}}{{ number_format($tFinal,2) }} | {{ $overallGrade ?? '-' }} |
| Average % (across subjects) | {{ number_format($avgPercent ?? 0, 2) }} | ||||||||||