@extends('admin.layouts.app') @section('title', 'Attendance Report') @section('breadcrumb') @endsection @section('content')
Filter Report
@if($subjects->count())
@endif
@if($report->count()) @php $below75 = $report->filter(fn($r) => $r->percentage < 75)->count(); $avgPct = round($report->avg('percentage'), 1); @endphp
{{ $report->pluck('student_id')->unique()->count() }}
Students
{{ $avgPct }}%
Avg Attendance
{{ $below75 }}
Below 75% (rows)
Report — {{ $report->count() }} records
@foreach($report as $row) @endforeach
Student Roll No. Subject Category Total Present Absent Attendance %
{{ $row->student_name }}
{{ $row->student_code }}
{{ $row->roll_no ?? '—' }} {{ $row->subject_name }} {{ $row->category }} {{ $row->total_classes }} {{ $row->attended }} {{ $row->absent }}
{{ $row->percentage }}% @if($row->percentage < 75) @endif
@elseif(request('class_id'))

No attendance records found for the selected filters

@endif @endsection