@extends('layouts.app') @section('title', 'Attendance Report | Institution Axis') @section('sidebar-menu') @include('schooladmin.partials.sidebar') @endsection @section('sidebar-footer')

{{ auth()->user()->school?->name ?? 'Institution Axis' }}

@endsection @section('breadcrumb') Home / Attendance / Monthly Report @endsection @section('navbar-right')
5
@endsection @section('content')

Monthly Attendance Report

Summary of staff attendance for the selected month
Back
{{-- Month Filter --}}
@php $monthLabel = \Carbon\Carbon::parse($month.'-01')->format('F Y'); @endphp
Report: {{ $monthLabel }}
{{ $staffList->count() }} staff
@forelse($staffList as $s) @php $total = $s->present_count + $s->absent_count + $s->late_count + $s->half_day_count; $rate = $total > 0 ? round(($s->present_count / $total) * 100) : 0; $rateClass = $rate >= 90 ? 'bg-success' : ($rate >= 70 ? 'bg-warning text-dark' : 'bg-danger'); @endphp @empty @endforelse
# Staff Member Department Present Absent Late Half Day Total Days Rate
{{ $loop->iteration }}
{{ $s->full_name }}
{{ $s->staff_number }}
{{ $s->department ?? '—' }} {{ $s->present_count }} {{ $s->absent_count }} {{ $s->late_count }} {{ $s->half_day_count }} {{ $total }}
{{ $rate }}%
No active staff or no attendance records for this month.
@endsection