@extends('teacher.teacher_dashboard') @section('customcss') @endsection @section('admin')
@if(session('success')) @endif @if(session('error')) @endif
Back to List
Print PDF Excel @if(!$unofficialExam->is_published) Marks Entry Edit
@csrf
@else
@csrf
@endif
{{ $unofficialExam->exam_title }} @if($unofficialExam->is_published) Published @else Draft @endif
Class & Section
{{ $unofficialExam->classModel->name ?? '-' }} ({{ $unofficialExam->section->name ?? 'All Sections' }})
@if($unofficialExam->group) Group: {{ $unofficialExam->group->name }} @endif
Subject
{{ $unofficialExam->subject->name ?? '-' }}
Session: {{ $unofficialExam->academicSession->name ?? '-' }}
Marks Configuration
Total: {{ $unofficialExam->total_marks }}
Pass Mark: {{ $unofficialExam->pass_marks ?? round($unofficialExam->total_marks * 0.33, 1) }}
Exam Date
{{ $unofficialExam->exam_date ? $unofficialExam->exam_date->format('d M, Y') : '-' }}
@if($unofficialExam->question_paper) Question Paper @endif
@if($unofficialExam->description)
Description / Syllabus

{{ $unofficialExam->description }}

@endif
Total

{{ $statistics['total_students'] }}

Present

{{ $statistics['present_count'] }}

Absent

{{ $statistics['absent_count'] }}

Highest

{{ $statistics['highest_mark'] }}

Average

{{ $statistics['average_mark'] }}

Pass Rate

{{ $statistics['pass_rate'] }}%

Student Performance & Rank Sheet (Pass Mark: {{ $statistics['effective_pass_mark'] }} / {{ $unofficialExam->total_marks }})
Sort By:
Click table headers Rank or Roll to sort
@forelse($sortedMarks as $mark) @php $reg = $mark->student?->classRegistration?->first(); $roll = $reg?->class_roll ?? '-'; $isAbsent = $mark->is_absent; $obtained = $mark->obtained_marks; $percent = $mark->percentage; $isPassed = $mark->is_passed; $numericRoll = is_numeric($roll) ? (int)$roll : ($roll === '-' || $roll === '' ? 999999 : 999999); $rankVal = (!$isAbsent && $mark->rank) ? (int)$mark->rank : 999999; @endphp @empty @endforelse
Rank Roll Student Name Attendance Marks Obtained Percentage Status Teacher Comment
@if(!$isAbsent && $mark->rank) @if($mark->rank == 1) @elseif($mark->rank == 2) 2 @elseif($mark->rank == 3) 3 @else {{ $mark->rank }} @endif @else - @endif {{ $roll }} {{ $mark->student->student_name_english ?? $mark->student->student_name_bangla ?? '-' }} @if($isAbsent) Absent @else Present @endif @if($isAbsent) - @else {{ $obtained ?? '0' }} / {{ $unofficialExam->total_marks }} @endif @if($isAbsent || is_null($percent)) - @else {{ $percent }}% @endif @if($isAbsent) Absent @elseif($isPassed) Passed @else Failed @endif {{ $mark->teacher_comment ?: '-' }}

No marks entered for this exam yet.

@if(!$unofficialExam->is_published) Start Marks Entry @endif
@endsection @section('customjs') @endsection