@extends('admin.admin_dashboard') @section('customcss') @endsection @section('admin')
@php $hasData = false; foreach (($sectionsData ?? []) as $sectionId => $students) { if (!empty($students) && $students->count() > 0) { $hasData = true; break; } } @endphp @if(!$hasData)

No Manual Mark Sheet Data Found

This exam has no approved students to group by section.
Please check the class registration data first.

@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($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 ......../......../.........
@if($showFull) @else @endif @if($showFull) @else @endif @foreach($leftStudents as $s) @if($showFull) @else @endif @endforeach
Roll Student NameFull Marks Total ObtainCQ MCQ Pract. Total
{{ $s->class_roll ?? '' }} {{ strtoupper($s->student->student_name_english ?? '') }}
@if($showFull) @else @endif @if($showFull) @else @endif @foreach($rightStudents as $s) @if($showFull) @else @endif @endforeach
Roll Student NameFull Marks Total ObtainCQ MCQ Pract. Total
{{ $s->class_roll ?? '' }} {{ strtoupper($s->student->student_name_english ?? '') }}
@endforeach @endif
@endsection @section('customjs') @endsection