@extends('layouts.app') @section('title', 'Attendance report') @section('crumbs') Dashboard/Attendance/Report @endsection @section('content')
{{ \Illuminate\Support\Carbon::parse($fromDate)->format('d M Y') }} – {{ \Illuminate\Support\Carbon::parse($toDate)->format('d M Y') }} @if ($class) · {{ $class->name }} @endif · {{ $studentRows->total() }} student(s) with records
| 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. | ||||||
| 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. | ||||||