@extends('layouts.admin') @section('page-title', 'Attendance') @section('content')

Attendance

Track employee attendance

Attendance Records

@forelse($attendances as $attendance) @empty @endforelse
Employee Date Clock In Clock Out Status Actions
{{ \Carbon\Carbon::parse($attendance->date)->format('M d, Y') }}
{{ strtoupper(substr($attendance->employee->first_name, 0, 1).substr($attendance->employee->last_name, 0, 1)) }}
{{ $attendance->employee->first_name }} {{ $attendance->employee->last_name }}
{{ $attendance->clock_in ?? '—' }} {{ $attendance->clock_out ?? '—' }} {{ ucfirst($attendance->status) }}
@csrf @method('DELETE')

No attendance records found

@if(isset($attendances) && $attendances->hasPages())
{{ $attendances->links() }}
@endif
@endsection