@extends('layouts.admin') @section('title', 'Attendance & Overtime') @section('content')

Attendance & Overtime

Track daily employee attendance and overtime.

@forelse($attendances as $attendance) @empty @endforelse
Employee Date Status Overtime (Hrs) Actions
{{ $attendance->employee->name ?? 'N/A' }} {{ optional($attendance->date)->format('M d, Y') }} @php $statusClasses = [ 'Present' => 'bg-green-100 text-green-700', 'Absent' => 'bg-red-100 text-red-700', 'Leave' => 'bg-yellow-100 text-yellow-700', ]; $cls = $statusClasses[$attendance->status] ?? 'bg-gray-200 text-gray-700'; @endphp {{ $attendance->status }} {{ number_format($attendance->overtime_hours, 2) }} Edit

No attendance records found.

{{ method_exists($attendances, 'links') ? $attendances->links() : '' }}
@csrf

Add Attendance Record