@extends(session('staff_logged_in') ? 'Staff.layout' : 'Admin.layout') @section('content')
| S.No | Date | Employee Type | Employee Name | Check In | Check Out | Status | Remarks | Action |
|---|---|---|---|---|---|---|---|---|
| {{ $index + 1 }} | {{ $a->attendance_date }} | {{ $a->employee_type ?? '-' }} | {{ $a->employee_name ?? ($a->employee->name ?? '-') }} | {{ $a->check_in ?? '-' }} | {{ $a->check_out ?? '-' }} | @php $cls = match($a->status) { 'Present' => 'bg-label-success', 'Absent' => 'bg-label-danger', 'Half Day' => 'bg-label-warning', 'Leave' => 'bg-label-info', default => 'bg-label-secondary' }; @endphp {{ $a->status }} | {{ $a->remarks ?? '-' }} | |
| No attendance records found | ||||||||