@extends('layouts.app') @section('title', 'Attendance report') @section('crumbs') Dashboard/Attendance/Report @endsection @section('content') @if ($classes->isEmpty())
No classes are available for your account, so the report is empty.
@endif
Reset
@forelse ($classSummary as $row) @empty @endforelse
Class Records Present Late Excused Absent Rate
{{ $row['class']->name }} {{ $row['total'] }} {{ $row['present'] }} {{ $row['late'] }} {{ $row['excused'] }} {{ $row['absent'] }} {{ $row['rate'] }}%
No attendance was recorded in this period.

Per-student breakdown

Rate = present ÷ records × 100
@forelse ($studentRows as $row) @empty @endforelse
Student Class Present Absent Late Excused Rate
{{ $row->student?->full_name ?? 'Unknown student' }}
{{ $row->student?->admission_no }}
{{ $row->schoolClass?->name ?? '—' }} {{ (int) $row->present_count }} {{ (int) $row->absent_count }} {{ (int) $row->late_count }} {{ (int) $row->excused_count }} {{ $row->total > 0 ? (int) round($row->present_count / $row->total * 100) : 0 }}%
No students have attendance records in this period.
{{ $studentRows->links() }}
@endsection