@extends('parents.parent_dashboard') @section('customcss') @endsection @section('admin')
@if($students->isEmpty())
No Student Linked

No students are currently linked to your parent account.

@else @if($students->count() > 1) @endif
{{ $selectedStudent->student_name_english ?? $selectedStudent->student_name_bangla }}
{{ $selectedStudent->student_name_english ?? $selectedStudent->student_name_bangla }}
Class: {{ $activeRegistration->class_model->name ?? '-' }} | Section: {{ $activeRegistration->section->name ?? '-' }} | Roll: {{ $activeRegistration->class_roll ?? '-' }} | Session: {{ $activeRegistration->session->name ?? '-' }}
{{ $exams->count() }} Assessments Published
Published Exams & Assessments
@if($exams->isEmpty())
No Published Class Test

There are currently no published class tests or quizzes for this student.

@else
@foreach($exams as $exam) @php $mark = $marksByExam->get($exam->id); $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
{{ $exam->subject->name ?? 'Subject' }}
{{ $exam->exam_title }}
Exam Date: {{ $exam->exam_date ? $exam->exam_date->format('d M, Y') : '-' }}
@if($isAbsent)
ABSENT
@elseif($obtained !== null)
{{ $obtained }} /{{ $exam->total_marks }}
@else
N/A
@endif
Score {{ $isAbsent ? 'Absent' : ($percent !== null ? $percent.'%' : '-') }}
Class Rank {{ (!$isAbsent && $rank) ? '#'.$rank : '-' }}
Status @if($isAbsent) Absent @elseif($isPassed) Passed @elseif($obtained !== null) Failed @else Pending @endif
@if($mark && $mark->teacher_comment)
"{{ $mark->teacher_comment }}"
@endif
@if($exam->question_paper) Question Paper @else @endif View Result Details
@endforeach
@endif
@endif
@endsection @section('customjs') @endsection