@extends('layouts.app') @section('title', 'Attendance Dashboard') @section('breadcrumbs') @endsection @section('content')
{{-- Page Header --}}

Attendance Dashboard

{{ $today->format('l, d F Y') }} — Today's Overview

{{-- Stat Cards --}}
{{-- Present --}}
{{ $presentCount }}
Present Today
{{-- Absent --}}
{{ $absentCount }}
Absent
{{-- On Leave --}}
{{ $onLeaveCount }}
On Leave
{{-- Not Clocked In --}}
{{ $notClockedIn }}
Not Clocked In
{{-- Employee Table --}}

Today's Attendance

View Full →
@forelse($employees as $emp) @php $record = $todayRecords->get($emp->id); @endphp @empty @endforelse
Employee Department Clock In Clock Out Hours Status
@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 : '—' }} @if($record) {{ $record->status_label }} @else No Record @endif
No employees found

No active employees match the selected filters.

{{-- Weekly Chart --}}

This Week

@endsection @push('scripts') @endpush