Employee: {{ $overtime->employee_first_name }}
Overtime For: {{ $overtime->overtime_for }}
Requested On: {{ \Carbon\Carbon::parse($overtime->created_at)->format('l, d M Y') }}
Overtime Date: {{ \Carbon\Carbon::parse($overtime->date)->format('l, d M Y') }}
Reason: {{ $overtime->reason }}
Status: {{ $overtime->status }}
ESTIMATED TIME:
Start Time: {{ \Carbon\Carbon::parse($overtime->start_hours)->format('g:i A') }}
End Time: {{ \Carbon\Carbon::parse($overtime->end_hours)->format('g:i A') }}
Total Hours: {{ \Carbon\Carbon::parse($overtime->total_hours)->format('g:i A') }}
ACTUAL TIME:
@if($overtime->checkin_time || $overtime->checkout_time)
@if($overtime->checkin_time)
Check-in Time (OT): {{ \Carbon\Carbon::parse($overtime->checkin_time)->format('H:i:s') }}
@endif
@if($overtime->checkout_time)
Check-out Time (OT): {{ \Carbon\Carbon::parse($overtime->checkout_time)->format('H:i:s') }}
@endif
@if($overtime->checkin_time && $overtime->checkout_time)
@php
$checkin = \Carbon\Carbon::parse($overtime->checkin_time);
$checkout = \Carbon\Carbon::parse($overtime->checkout_time);
$totalHours = $checkin->floatDiffInHours($checkout);
@endphp
Total Hours (OT): {{ number_format($totalHours, 2) }} hours
@endif
@else
No overtime check-in/out records found for this date
@endif