@extends('layouts.app')
@section('title', 'Edit Timesheet - ' . $employee->first_name . ' ' . $employee->last_name)
@section('content')
π Current Entry Details
Clock In Time
{{ $timesheet->clock_in ? $timesheet->clock_in->format('g:i A') : 'Not set' }}
Clock Out Time
{{ $timesheet->clock_out ? $timesheet->clock_out->format('g:i A') : 'Still working' }}
Total Hours
{{ number_format($timesheet->total_hours ?? 0, 1) }}h
Total Pay
${{ number_format($timesheet->total_pay ?? 0, 2) }}
βοΈ Edit Timesheet Entry
π‘ Editing Guidelines
- Clock Times: Use 24-hour format or the time picker for accurate entry
- Break Duration: Automatically deducted from total hours worked
- Overtime: Automatically calculated for hours over 8 per day
- Pay Calculation: Updates automatically based on employee's hourly rate
- Validation: System ensures clock out is after clock in time
@if(session('success'))
β
{{ session('success') }}
@endif
@if(session('error'))
β {{ session('error') }}
@endif
@endsection
@push('scripts')
@endpush