Quick Actions
Attendance Sheet
@if(session('error'))
{{ session('error') }}
@endif
@foreach(($data ?? []) as $sheet)
{{-- School Header --}}
{{-- ✅ Row-1: Subjects (same date => same column; joined with "/") --}}
@endforeach
@if(!empty($schoolInfo->school_logo))
@endif
{{ $schoolInfo->school_name ?? 'School Name' }}
{{-- Exam Info --}}
{{ $schoolInfo->school_name ?? 'School Name' }}
{{ $schoolInfo->address ?? 'School Address' }}
Exam: {{ $exam->exam_name }}
Class: {{ $exam->class->name ?? '-' }}, Section: {{ $sheet['section'] ?? '-' }}
Class: {{ $exam->class->name ?? '-' }}, Section: {{ $sheet['section'] ?? '-' }}
| Roll | Student Name | @foreach(($sheet['subject_columns'] ?? []) as $column){{ collect($column)->pluck('name')->filter()->implode(' / ') }} | @endforeach
|---|---|---|
| {{ $column[0]['exam_date'] ?? '-' }} | @endforeach||
| {{ $registration->class_roll ?? '' }} | {{ $registration->student->student_name_english ?? '-' }} | @foreach(($sheet['subject_columns'] ?? []) as $column) @php $hasAnySubject = false; foreach ($column as $sub) { if (!empty($sub['student_ids']) && in_array($registration->student_id, $sub['student_ids'])) { $hasAnySubject = true; break; } } @endphp@if($hasAnySubject) {{-- keep blank for signature --}} @else - @endif | @endforeach