@php
$hasData = false;
foreach (($sectionsData ?? []) as $sectionId => $students) {
if (!empty($students) && $students->count() > 0) {
$hasData = true;
break;
}
}
@endphp
@if(!$hasData)
@else
@foreach(($sectionsData ?? []) as $sectionId => $students)
@continue(empty($students) || $students->count() === 0)
@php
$sectionName = $students->first()->section->name ?? 'N/A';
$className = $exam->class->name ?? '-';
$showFull = $isJunior;
$half = (int) ceil($students->count() / 2);
$leftStudents = $students->slice(0, $half);
$rightStudents = $students->slice($half);
@endphp
@if($showFull)
@if($showFull)
@endforeach
@endif
No Manual Mark Sheet Data Found
This exam has no approved students to group by section.
Please check the class registration data first.
@if($schoolInfo && $schoolInfo->school_logo)
@endif
{{ $schoolInfo->school_name ?? 'School Name' }}
{{ $schoolInfo->address ?? 'Address' }}
{{ $exam->exam_name ?? '' }}
MARK ENTRY SHEET
Subject:.....................................................
Class: {{ $className }}, Section: {{ $sectionName }}, Number ..........
Paper Receive Date ......../......../...............
Paper Submit Last Date ......../......../.........
| Roll | Student Name | @if($showFull)Full Marks | Total Obtain | @elseCQ | MCQ | Pract. | Total | @endif
|---|---|---|---|---|---|---|---|
| {{ $s->class_roll ?? '' }} | {{ strtoupper($s->student->student_name_english ?? '') }} | @if($showFull)@else | @endif |
| Roll | Student Name | @if($showFull)Full Marks | Total Obtain | @elseCQ | MCQ | Pract. | Total | @endif
|---|---|---|---|---|---|---|---|
| {{ $s->class_roll ?? '' }} | {{ strtoupper($s->student->student_name_english ?? '') }} | @if($showFull)@else | @endif |