{{-- Page Header --}}
{{ __('Overtime Management') }} {{ __('Track and manage employee overtime payments') }}
{{ __('Add Overtime Record') }}
{{-- Filters --}}
@foreach($employees as $employee) @endforeach
{{ __('Reset') }}
{{-- Summary Cards --}}
{{ __('Total Overtime Hours') }} {{ number_format($stats['total_hours'], 1) }}{{ __('h') }}
{{ __('Total Pending Amount') }}
{{ __('Total Paid Amount') }}
{{-- Tracked Overtime from Attendance --}}
{{ __('Tracked Overtime (from Attendance)') }}
@forelse($trackedOvertime as $item) @empty @endforelse
{{ __('Employee') }} {{ __('Max Weekly Hours') }} {{ __('Overtime This Month') }} {{ __('Actions') }}
{{ $item['user']->name }}
{{ $item['user']->email }}
{{ $item['user']->max_weekly_hours ?? \App\Models\SystemSetting::get('max_weekly_hours', 48) }}{{ __('h') }} @if($item['total_overtime_minutes'] > 0) {{ floor($item['total_overtime_minutes'] / 60) }}{{ __('h') }} {{ $item['total_overtime_minutes'] % 60 }}{{ __('m') }} @else {{ __('No overtime') }} @endif {{ __('Add Record') }}
{{ __('No overtime tracked this month') }}
{{-- Overtime Payment Records --}}
{{ __('Overtime Payment Records') }}
@forelse($overtimeRecords as $record) @empty @endforelse
{{ __('Employee') }} {{ __('Date') }} {{ __('Hours') }} {{ __('Rate') }} {{ __('Amount') }} {{ __('Status') }} {{ __('Notes') }} {{ __('Actions') }}
{{ $record->employee->name }}
{{ $record->date->translatedFormat('M d, Y') }} {{ number_format($record->overtime_hours, 1) }}{{ __('h') }} {{ __('/h') }} @if($record->status === 'paid') {{ __('Paid') }} @else {{ __('Pending') }} @endif {{ $record->notes ?? '-' }}
@if($record->status === 'pending') {{ __('Pay') }} @endif
{{ __('No overtime records found') }}
@if($overtimeRecords->hasPages())
{{ $overtimeRecords->links() }}
@endif
{{-- Add Overtime Modal --}}
{{ __('Add Overtime Record') }}
@foreach($employees as $employee) @endforeach
{{ __('Cancel') }} {{ __('Save Record') }}
{{-- Pay Modal --}}
{{ __('Mark as Paid') }} @if($selectedRecord)
{{ __('Employee') }}: {{ $selectedRecord->employee->name }}
{{ __('Date') }}: {{ $selectedRecord->date->translatedFormat('M d, Y') }}
{{ __('Hours') }}: {{ number_format($selectedRecord->overtime_hours, 1) }}{{ __('h') }}
{{ __('Amount') }}:
{{ __('Are you sure you want to mark this overtime as paid?') }}
{{ __('Cancel') }} {{ __('Confirm Payment') }}
@endif
{{-- Delete Confirmation Modal --}}
{{ __('Delete Overtime Record') }} {{ __('Are you sure you want to delete this overtime record? This action cannot be undone.') }}
{{ __('Cancel') }} {{ __('Delete') }}