@php // 2 cards per A4 page visual $cards = $cards ?? []; @endphp @foreach($cards as $idx => $c) @php /** @var \App\Models\ClassRegistrationRequest $reg */ $reg = $c['reg']; $item = $c['item'] ?? null; $subjects = $c['subjects'] ?? []; // Determine exam type based on class code from class model $classCode = $reg?->class?->class_code ?? null; $examType = ($classCode == 10) ? 'SSC' : (($classCode == 12) ? 'HSC' : 'SSC/HSC'); // ✅ subject snapshot empty হলে codes text দেখাতে পারেন // but best: snapshot generate already from fillup submit // Two columns split $subjects = is_array($subjects) ? $subjects : []; $total = count($subjects); $mid = (int)ceil($total / 2); $left = array_slice($subjects, 0, $mid); $right = array_slice($subjects, $mid); $logo = $school?->school_logo ? asset('core/storage/app/public/' . $school->school_logo) : ''; $photo = $reg->student?->student_photo ? asset('core/storage/app/public/' . $reg->student->student_photo) : ''; @endphp

{{ $school->school_name ?? 'SCHOOL NAME' }}

{{ $examType }} Candidate Form Fill-up Verification Form - {{ $session?->name ?? ($reg?->session_id ?? '') }}
Photo
Institute Name: {{ $school->school_name ?? '' }}
Examinee's Name: {{ $reg->student->student_name_english ?? '' }}
Father's Name: {{ $reg->student->father_name_english ?? '' }}
Mother's Name: {{ $reg->student->mother_name_english ?? '' }}
Type of Examinee: {{ $item->type ?? 'REGULAR' }}
Version: {{ $reg->student->version ?? '' }}    Sex : {{ $reg->student->gender ?? '' }}    Group : {{ $reg->group->name ?? '' }}
Roll : {{ $reg->class_roll ?? '' }}
Reg. No : {{ $item->reg_no ?? '' }}
Session : {{ $reg->session->name ?? $reg->session_id }}
Subject Code and Name
@php $rows = max(count($left), count($right)); @endphp @if($rows === 0) @else @for($r=0;$r<$rows;$r++) @endfor @endif
Code - Name Code - Name
No subject found
@if(isset($left[$r])) {{ $left[$r]['code'] ?? '' }} - {{ $left[$r]['name'] ?? '' }} @endif @if(isset($right[$r])) {{ $right[$r]['code'] ?? '' }} - {{ $right[$r]['name'] ?? '' }} @endif
@if(!empty($item?->image))
Uploaded Image
@endif @php $dup = $item?->duplicate_row_data ?? null; if (is_string($dup)) $dup = json_decode($dup, true); $dupP = is_array($dup) ? ($dup['parsed'] ?? []) : []; @endphp @if(!empty($dupP))
SL.No
Reg.No
Type
Session
Name
Father / Mother
Gender
Version
Class-Roll
Shift
Section
Group
Subjects Status
Fee
Action
{{ $dupP['sl_no'] ?? '' }}
{{ $dupP['reg_no'] ?? '' }}
{{ $dupP['type'] ?? '' }}
{{ $dupP['session'] ?? '' }}
{{ $dupP['name'] ?? '' }}
{{ $dupP['father'] ?? '' }}
{{ $dupP['mother'] ?? '' }}
{{ $dupP['gender'] ?? '' }}
{{ $dupP['version'] ?? '' }}
{{ $dupP['class_roll'] ?? '' }}
{{ $dupP['shift'] ?? '' }}
{{ $dupP['section'] ?? '' }}
{{ $dupP['group'] ?? '' }}
{{ $dupP['subjects'] ?? '' }} {{ $dupP['fee_status'] ?? '' }}
{{ $dupP['fee_amount'] ?? '' }}
{{ $dupP['action'] ?? '' }}
*All of the above information is correct.
@endif
Student Signature
Signature of Student
@php $principal = $school->principal_name ?? 'Principal'; @endphp
@if(!empty($school?->principal_signature)) @endif
{{ $principal }}
Principal
{{ $school->school_name ?? '' }}
@endforeach