@extends('layouts.app') @section('title', 'Correct Attendance') @section('content')
Correct Attendance Record
Back
Attendance Correction: You are correcting the attendance record for {{ $attendance->employee->name }}. This action will be logged with your name and timestamp.
@csrf @method('PUT')
Employee cannot be changed. Delete and create new if needed.
@error('attendance_date')
{{ $message }}
@enderror
@error('shift_id')
{{ $message }}
@enderror
@error('clock_in')
{{ $message }}
@enderror Leave empty to remove clock-in
@error('clock_out')
{{ $message }}
@enderror Leave empty to remove clock-out
@error('status')
{{ $message }}
@enderror
@error('correction_reason')
{{ $message }}
@enderror Required: This will be logged in the attendance notes
@error('notes')
{{ $message }}
@enderror
@if($attendance->notes)
Previous Notes/Corrections:
{!! nl2br(e($attendance->notes)) !!}
@endif
Cancel
Original Data
@if($attendance->late_minutes) @endif
Employee: {{ $attendance->employee->name }}
Date: {{ $attendance->attendance_date->format('d M Y') }}
Clock In: {{ $attendance->clock_in ? $attendance->clock_in->format('H:i') : '-' }}
Clock Out: {{ $attendance->clock_out ? $attendance->clock_out->format('H:i') : '-' }}
Status: {{ $attendance->status_label }}
Duration: {{ $attendance->work_duration ? number_format($attendance->work_duration, 2) . ' hours' : '-' }}
Late: {{ $attendance->late_minutes }} minutes
Danger Zone

Delete this attendance record permanently.

@csrf @method('DELETE')
@endsection