@extends('teacher.teacher_dashboard') @section('customcss') @endsection @section('admin')
@if(session('success')) @endif @if(session('error')) @endif
{{ $unofficialExam->exam_title }} - Marks Entry
{{ $unofficialExam->subject->name ?? 'Subject' }} {{ $unofficialExam->classModel->name ?? '-' }} (Sec: {{ $unofficialExam->section->name ?? 'All' }}) @if($unofficialExam->group) Group: {{ $unofficialExam->group->name }} @endif

{{ $unofficialExam->exam_title }}

Exam Date: {{ $unofficialExam->exam_date ? $unofficialExam->exam_date->format('d M, Y') : '-' }} | Session: {{ $unofficialExam->academicSession->name ?? '-' }}

Max Marks
{{ $unofficialExam->total_marks }}
Pass: {{ $unofficialExam->pass_marks ?? round($unofficialExam->total_marks * 0.33, 1) }}
@if($unofficialExam->is_published)
Marks Entry Locked

This exam is published. To edit or enter marks, please unpublish the exam first.

@else
Total: {{ count($eligibleStudents) }} Present: 0 Absent: 0 Pending: {{ count($eligibleStudents) }}
@csrf
Student Marks Register (Sequential entry: 0 to {{ $unofficialExam->total_marks }}. Press Enter to go to next row)
@forelse($eligibleStudents as $index => $student) @php $existingMark = $existingMarks->get($student->id); $initialAbsent = $existingMark ? (bool)$existingMark->is_absent : false; $initialMark = $existingMark && !$initialAbsent ? $existingMark->obtained_marks : ''; $initialComment = $existingMark ? $existingMark->teacher_comment : ''; @endphp @empty @endforelse
# Roll Student Name Attendance Obtained Mark % Score Status Teacher Comment State
{{ $index + 1 }} {{ $student->roll }} {{ $student->name }}
- -

No eligible registered students found for this class and subject.

Please verify student enrollments in Class Registration or Subject Assignment.
@if(count($eligibleStudents) > 0)
Auto-Rank & Audit History Enabled
Cancel
@endif
@endif
@endsection @section('customjs') @endsection