(Signature upload করলে print এ show হবে)
@php $chunks = $cards->chunk(2); @endphp @foreach($chunks as $pair)
@foreach($pair as $i => $c) @php $reg = $c['reg']; $item = $c['item']; $subjects = $c['subjects']; $student = $reg->student; $type = $item->type ?? 'Regular'; $regNo = $item->reg_no ?? ($student->admission_roll ?? ''); @endphp
{{ $school->school_name ?? 'SCHOOL' }}
Admit Card
SSC Examination - 2026 (Model Test)
Photo
Institute Name: {{ $school->school_name ?? '' }}
Examinee's Name: {{ $student->student_name_english ?? '' }}
Father's Name: {{ $student->father_name_english ?? '' }}
Mother's Name: {{ $student->mother_name_english ?? '' }}
Type of Examinee: {{ $type }}
Version: {{ $student->version ?? '' }}    Sex: {{ $student->gender ?? '' }}    Group: {{ $reg->group->name ?? '' }}
Roll: {{ $reg->class_roll ?? '' }}
Reg. No: {{ $regNo }}
Session: {{ $reg->session->name ?? '' }}
Subject Code and Name
@forelse($subjects as $s) @empty @endforelse
{{ $s['code'] }} {{ $s['name'] }}
No subject found
@if($i === 0)
@endif @endforeach
@endforeach