{{ __('ChronoLab Timesheets') }}

Timesheets {{$username}}

* Workdays are 8 hours and 30 minutes incl. lunchbreak and 60 minutes commuting time.

@if(\App\Models\Schedule::totalScheduledHours(auth()->id())) = {{ "Normal (8h)" }}      = {{ "Overtime (>8h)" }}      = {{ "Early Finish (<8h)" }}      @endif = Holiday

@foreach($timesheetsByMonth as $month => $weeks) @php $year = substr($month, 0, 4); $monthNumber = substr($month, 5, 2); $isCurrentMonth = now()->format('Y-m') == $month; // Check if it's the current month @endphp

{{ \Carbon\Carbon::parse($month . '-01')->format('F Y') }}

@if(\App\Models\Schedule::totalScheduledHours(auth()->id()))

Total Hours for {{ \Carbon\Carbon::parse($month . '-01')->format('F Y') }}: {{ $totalHoursPerMonth[$month]['total_hours'] }}  |  Total Overtime for {{ \Carbon\Carbon::parse($month . '-01')->format('F Y') }}: {{ $totalHoursPerMonth[$month]['total_overtime'] }}

@endif @foreach($weeks as $weekNumber => $timesheetsInWeek)

Week {{ $weekNumber }}

@if(\App\Models\Schedule::totalScheduledHours(auth()->id())) @endif @foreach($timesheetsInWeek as $timesheet) @if(\App\Models\Schedule::totalScheduledHours(auth()->id())) @endif @endforeach
Date Start End W.H.O.T.Customer Action
{{ \Carbon\Carbon::parse($timesheet->work_date)->format('d-m-Y') }} {{ $timesheet->is_holiday_manual || $timesheet->is_holiday ? 'N/A' : $timesheet->start_time }} {{ $timesheet->is_holiday_manual || $timesheet->is_holiday ? 'N/A' : $timesheet->end_time }} {{ $timesheet->is_holiday_manual || $timesheet->is_holiday ? 'N/A' : $timesheet->worked_hours }}{{ $timesheet->is_holiday_manual || $timesheet->is_holiday ? 'N/A' : $timesheet->overtime }}{{ $timesheet->customer ?? 'N/A' }}
@csrf @method('DELETE')
@endforeach
@endforeach