Attendance Summary Report

Total Students
{{ count($student_data) }}
Total Days
{{ $total_days }}
Date Range
{{ date('M j, Y', strtotime($from_date)) }} - {{ date('M j, Y', strtotime($to_date)) }}
@if($batch_id)
Selected Batch
@php $batch = \App\Models\Batch::find($batch_id); echo $batch ? $batch->name : 'N/A'; @endphp
@endif
Showing {{ count($student_data) }} student(s)
@if(count($student_data) > 0) @foreach($student_data as $index => $data) @php $student = $data['student']; $present_days = $data['present_days']; $absent_days = $data['absent_days']; $att_percentage = $data['att_percentage']; $abs_percentage = $data['abs_percentage']; @endphp @endforeach @else @endif
No. Student Name Institute ID Batch Total Days Present Days Absent Days Attendance % Absent % Actions
{{ $index + 1 }} {{ $student->user->username ?? 'N/A' }} {{ $student->institute_id ?? 'N/A' }} {{ $student->batch->name ?? 'N/A' }} {{ $total_days }} {{ $present_days }} {{ $absent_days }} {{ number_format($att_percentage, 2) }}% {{ number_format($abs_percentage, 2) }}%

No attendance data found for the selected filters.

Please adjust your filters and try again.

{{-- @if(count($student_data) > 0)

Summary Statistics

Average Attendance
@php $avg_att = count($student_data) > 0 ? array_sum(array_column($student_data, 'att_percentage')) / count($student_data) : 0; echo number_format($avg_att, 2) . '%'; @endphp
Total Present Days
{{ array_sum(array_column($student_data, 'present_days')) }}
Total Absent Days
{{ array_sum(array_column($student_data, 'absent_days')) }}
Report Generated
{{ date('Y-m-d H:i:s') }}
@endif --}}