@php $palette = $themePalette ?? (is_array($theme ?? null) ? $theme : \App\Support\ThemePalette::resolveShades('emerald')); @endphp Monthly Attendance Register - {{ $monthLabel }} @include('reports.partials.font') @php $resolvedSchoolName = !empty($branding['school_name']) ? $branding['school_name'] : (!empty($tenant?->school_name) ? $tenant->school_name : (!empty($tenant?->name) ? $tenant->name : 'Smart School')); $resolvedAddress = !empty($branding['address']) ? $branding['address'] : (!empty($tenant?->address) ? $tenant->address : 'Institutional Campus Record'); $resolvedPhone = !empty($branding['phone']) ? $branding['phone'] : (!empty($tenant?->phone) ? $tenant->phone : '—'); @endphp
@if(!empty($schoolLogo))
{{ $resolvedSchoolName }}
@endif
{{ $resolvedSchoolName }}
{{ $resolvedAddress }} | Phone: {{ $resolvedPhone }}
Monthly Student Attendance Register
Month: {{ $monthLabel }} • Class: {{ $schoolClass->name ?? 'All Classes' }} • Generated: {{ now()->format('d M Y') }}
{{ $kpis['total_students'] ?? count($rows) }}
Students in Register
{{ $kpis['class_average'] ?? 0 }}%
Average Attendance
{{ $kpis['total_absences'] ?? 0 }}
Total Absences
{{ $kpis['at_risk_count'] ?? 0 }}
At Risk (< 75%)
@for($d = 1; $d <= $daysInMonth; $d++) @endfor @forelse($rows as $row) @for($d = 1; $d <= $daysInMonth; $d++) @php $st = $row['days'][$d] ?? null; @endphp @endfor @empty @endforelse
Roll Student Name{{ $d }}P A L %
{{ $row['roll_number'] ?? '—' }} {{ $row['name'] }} @if($st === 'present') P @elseif($st === 'absent') A @elseif($st === 'late') L @elseif($st === 'half_day' || $st === 'leave') LV @else • @endif {{ $row['present_count'] }} {{ $row['absent_count'] }} {{ $row['late_count'] }} {{ $row['attendance_percentage'] }}%
No attendance records found for this class and month.
Class Teacher Academic Supervisor Headmaster / Principal