@extends('layouts.app') @section('title', 'Daily Attendance — ' . $selectedDate->format('d M Y')) @section('breadcrumbs') @endsection @section('content')
{{-- Page Header with Date Navigation --}}

Daily Attendance

{{ $selectedDate->format('l, d F Y') }}{{ $isToday ? ' (Today)' : '' }}

@if(!$isToday && !$isFuture) @endif @if(!$isToday) Today @endif
{{-- Stat Cards --}}
{{ $presentCount }}
Present
{{ $absentCount }}
Absent
{{ $onLeaveCount }}
On Leave
{{ $notClockedIn }}
Not Clocked In
{{-- Filter + Table --}}

Employee Attendance

@forelse($employees as $emp) @php $record = $dayRecords->get($emp->id); @endphp @empty @endforelse
Employee Department Clock In Clock Out Hours Overtime Status Source
@if($emp->profile_photo) @else {{ strtoupper(substr($emp->first_name, 0, 1)) }} @endif
{{ $emp->full_name }}
{{ $emp->employee_code }}
{{ $emp->department?->name ?? '—' }} @if($record && $record->clock_in) {{ $record->formatted_clock_in }} @if($record->is_late) {{ $record->late_minutes }}m late @endif @else @endif {{ $record ? $record->formatted_clock_out : '—' }} {{ $record ? $record->formatted_total_hours : '—' }} {{ $record && $record->overtime_hours > 0 ? $record->overtime_hours . 'h' : '—' }} @if($record) {{ $record->status_label }} @else No Record @endif {{ $record ? $record->source_label : '—' }}
No employees found
@endsection