{{-- Regular Class Schedule Verification Report — one PDF page group per weekday. --}} @php use Carbon\Carbon; $range = $data['range'] ?? ['from' => null, 'to' => null]; $days = $data['days'] ?? []; $summary = $data['summary'] ?? []; $fmtTime = function ($t) { if (!$t) return ''; try { return Carbon::parse($t)->format('g:i A'); } catch (\Throwable $e) { return $t; } }; $fmtDate = function ($iso) { if (!$iso) return ''; try { return Carbon::parse($iso)->format('l — F j, Y'); } catch (\Throwable $e) { return $iso; } }; $rangeLabel = ($range['from'] && $range['to']) ? Carbon::parse($range['from'])->format('M j, Y') . ' – ' . Carbon::parse($range['to'])->format('M j, Y') : ''; @endphp {{ $title }}
STEP UP ACADEMY OF LEARNING
Regular Class Schedule Verification Report
@if($rangeLabel)
Week: {{ $rangeLabel }}
@endif
Generated: {{ $generatedAt }}
Prepared by: {{ $preparedBy }}
@if(!empty($filters))
Applied filters: @foreach($filters as $k => $v) {{ $k }} = {{ is_array($v) ? implode(', ', $v) : (is_bool($v) ? ($v ? 'yes' : 'no') : $v) }}   @endforeach
@endif @if($includeSummary)
Total Classes
{{ $summary['total_classes'] ?? 0 }}
Distinct Students
{{ $summary['total_distinct_students'] ?? 0 }}
Staff
{{ $summary['total_staff'] ?? 0 }}
Online
{{ $summary['online_classes'] ?? 0 }}
In-Person
{{ $summary['in_person_classes'] ?? 0 }}
Hybrid
{{ $summary['hybrid_classes'] ?? 0 }}
Zero-Student
{{ $summary['zero_student_classes'] ?? 0 }}
@endif @php $firstDay = true; @endphp @foreach($days as $day) @php $staffGroups = $day['staff'] ?? []; if (empty($staffGroups)) continue; @endphp
{{ strtoupper($fmtDate($day['date'])) }}
@foreach($staffGroups as $staff)
{{ $staff['staff_name'] }}
@foreach($staff['classes'] as $c) @endforeach
Time Students · Grade · Subject Mode Location Capacity Class / Occ ID Verification Notes
{{ $fmtTime($c['start_time']) }}
{{ $fmtTime($c['end_time']) }}
@if(empty($c['students'])) No students assigned @else @foreach($c['students'] as $idx => $s) {{ $idx + 1 }}. {{ $s['student_name'] }}@if(!empty($s['grade'])) — GR {{ $s['grade'] }}@endif@if(!empty($s['subject'])) — {{ $s['subject'] }}@endif @endforeach @endif {{ $c['mode'] ?? '—' }} {{ $c['location'] ?? '—' }} {{ $c['enrolled_count'] }} / {{ $c['capacity'] !== null ? $c['capacity'] : '—' }} #{{ $c['class_id'] }}
Occ #{{ $c['occurrence_id'] }}
Correct
Correction Required
Staff Time Student Grade/Subject Mode/Location
@endforeach
@php $firstDay = false; @endphp @endforeach @php $anyContent = false; foreach ($days as $d) { if (!empty($d['staff'])) { $anyContent = true; break; } } @endphp @if(!$anyContent)
No regular classes match the current filters for the selected date range.
@endif