@extends('parents.parent_dashboard') @section('customcss') @endsection @section('admin')
@php $isAbsent = $mark ? (bool)$mark->is_absent : false; $obtained = $mark ? $mark->obtained_marks : null; $percent = $mark ? $mark->percentage : null; $isPassed = $mark ? $mark->is_passed : false; $rank = $mark ? $mark->rank : null; @endphp
Student Assessment Result
{{ $exam->subject->name ?? 'Subject' }}

{{ $exam->exam_title }}

Student: {{ $student->student_name_english ?? $student->student_name_bangla }} | Roll: {{ $registration->class_roll ?? '-' }} | Class: {{ $registration->class_model->name ?? '-' }} (Sec: {{ $registration->section->name ?? 'All' }})
Exam Date: {{ $exam->exam_date ? $exam->exam_date->format('d M, Y') : '-' }} | Session: {{ $exam->academicSession->name ?? '-' }}
@if($isAbsent) ABSENT @elseif($obtained !== null) {{ $obtained }} / {{ $exam->total_marks }} @else N/A @endif
Attendance @if($isAbsent) Absent @else Present @endif
Percentage

{{ $isAbsent ? '0%' : ($percent !== null ? $percent.'%' : '-') }}

Class Rank

{{ (!$isAbsent && $rank) ? '#'.$rank : '-' }}

Result Status @if($isAbsent) Failed @elseif($isPassed) Passed @else Failed @endif
@if($mark && $mark->teacher_comment)
Teacher's Remark

"{{ $mark->teacher_comment }}"

@endif @if($exam->description)
Syllabus / Exam Information

{{ $exam->description }}

@endif
@endsection @section('customjs') @endsection