@php $defaultAvatar = asset('storage/uploads/user-icon.png'); $statusLabel = fn (?string $code) => match ($code) { 'P' => __('Present'), 'D' => __('Delay'), default => __('Ext Delay'), }; $statusClass = fn (?string $code) => match ($code) { 'P' => 'present', 'D' => 'delay', default => 'late', }; @endphp @extends('admin.layouts.app') @section('title', get_setting('site_name').' | Daily Attendance') @section('content')
View and update staff sign-in / sign-out records by date range.
Choose a date range or employee, then click Filter to load attendance.
| Date | Sign In | Sign Out | Status | Action |
|---|---|---|---|---|
| {{ date('d M Y, D', strtotime($row->date)) }} | {{ $row->signIn ? date('h:i A', strtotime($row->signIn)) : '—' }} | {{ $row->signOut ? date('h:i A', strtotime($row->signOut)) : '—' }} | {{ $statusLabel($row->status) }} | |
| No attendance records in this range. | ||||
Showing {{ $staffGroups->firstItem() }}–{{ $staffGroups->lastItem() }} of {{ $staffGroups->total() }} employees · {{ \Carbon\Carbon::parse($startDate)->format('M d, Y') }} — {{ \Carbon\Carbon::parse($endDate)->format('M d, Y') }}
| Date | Sign In | Sign Out | Status | Action |
|---|---|---|---|---|
| {{ date('d M Y, D', strtotime($row->date)) }} | {{ $row->signIn ? date('h:i A', strtotime($row->signIn)) : '—' }} | {{ $row->signOut ? date('h:i A', strtotime($row->signOut)) : '—' }} | {{ $statusLabel($row->status) }} | |
| No records. | ||||
Try a different date range or employee filter.