@extends('layouts.app') @section('title', 'Employee Attendance') @section('content')

Employee Attendance

Clock in and out, track worked time, and manage daily staff attendance.

@if ($manage) @endif

My attendance — {{ \Illuminate\Support\Carbon::parse($date)->format('d M Y') }}

@if ($today)
Status{{ ucfirst($today->status) }}
Clock in{{ $today->clock_in?->format('H:i') ?? '—' }}
Clock out{{ $today->clock_out?->format('H:i') ?? '—' }}
Worked{{ $today->worked_hours }}
@else

You have no attendance record for today.

@endif
@if (! $today || ! $today->clock_in)
@csrf
@elseif (! $today->clock_out)
@csrf
@else Day completed @endif
@if ($manage)
@endif
@if ($manage)
@forelse($records as $record) @empty @endforelse
EmployeeRoleStatusClock inClock outWorkedNotes
{{ $record->user->name }} {{ $record->user->role?->name ?? '—' }} {{ ucfirst($record->status) }} {{ $record->clock_in?->format('H:i') ?? '—' }} {{ $record->clock_out?->format('H:i') ?? '—' }} {{ $record->worked_hours }} {{ $record->notes ?: '—' }}
No attendance records for this date.
@csrf
@foreach($records as $record)
@csrf @method('PUT')
@endforeach @endif
@endsection