@extends('layouts.app') @section('content') {{-- ── Page Header ── --}}

Edit Attendance

{{ $attendance->date->format('l, d M Y') }}

{{-- ── Form Card ── --}}
{{-- Summary bar (only when both times exist) --}} @if ($attendance->checkin_at && $attendance->checkout_at)
{{ $attendance->checkin_at->format('h:i A') }}
{{ $attendance->checkout_at->format('h:i A') }}
{{ $attendance->that_day_working_hours }}h
@endif
@csrf @method('PUT') {{-- Date + Status side by side on sm+ --}}
{{-- Date --}}
@error('date')

{{ $message }}

@enderror
{{-- Status --}}
@error('status')

{{ $message }}

@enderror
{{-- Check-in + Check-out side by side on sm+ --}}
{{-- Check-in --}}
@error('checkin_at')

{{ $message }}

@enderror
{{-- Check-out --}}
@error('checkout_at')

{{ $message }}

@enderror
{{-- Notes --}}
@error('notes')

{{ $message }}

@enderror
{{-- Actions --}}
Cancel
@endsection