@extends('layouts.app') @section('title', 'Daily Attendance') @section('content')

Total

{{ $stats['total'] }}

Present

{{ $stats['present'] }}

Late

{{ $stats['late'] }}

Absent

{{ $stats['absent'] }}

@forelse($attendances as $attendance) @empty @endforelse
Date Employee Department Location Check-In Check-Out Hours Status Actions
{{ $attendance->attendance_date->format('M j, Y') }}
{{ $attendance->employee_name }}
{{ $attendance->employee_id_number }}
{{ $attendance->department->name ?? 'N/A' }} {{ $attendance->biometricDevice->location_name ?? 'N/A' }} @if($attendance->check_in_time) {{ \Carbon\Carbon::parse($attendance->check_in_time)->format('H:i') }} @else - @endif @if($attendance->check_out_time) {{ \Carbon\Carbon::parse($attendance->check_out_time)->format('H:i') }} @else - @endif {{ $attendance->total_work_hours }}h {!! $attendance->getStatusBadge() !!}
No attendance records found for the selected filters.
{{ $attendances->links() }}
@endsection