{{ $employee->first_name }} {{ $employee->last_name }} {{ __('Monthly shift schedule') }}
{{ __('Import Shifts') }}
{{ __('Send Schedule') }} {{ __('Sending...') }}
@if (session()->has('success'))
{{ session('success') }}
@endif @if (session()->has('error'))
{{ session('error') }}
@endif

{{ $monthName }}

{{ count(array_filter($monthlyShiftsData)) }} {{ __('shift(s) scheduled') }}

{{ __('Today') }}
@foreach ($calendar as $week) @for ($i = 0; $i < 7; $i++) @php $dayData = $week[$i] ?? null; @endphp @if ($dayData !== null) @php $date = $dayData['date']; $shiftInfo = $this->getShiftForDate($date); $isToday = $date->isToday(); @endphp
$shiftInfo, 'border-zinc-200 bg-white hover:bg-zinc-50 dark:border-zinc-700 dark:bg-zinc-900 dark:hover:bg-zinc-800/50' => !$shiftInfo, 'ring-2 ring-blue-400 dark:ring-blue-600' => $isToday, ]) >
{{ $dayData['day'] }}
{{ $date->translatedFormat('l') }}
{{ $date->translatedFormat('F d, Y') }}
@if ($shiftInfo?->monthlyShift) {{ __('Override') }} @elseif ($shiftInfo && !$shiftInfo->monthlyShift) {{ __('Weekly') }} @endif
@if ($shiftInfo)
@if ($shiftInfo->shift->name)
{{ $shiftInfo->shift->name }}
@endif
{{ $shiftInfo->shift->start_time }} - {{ $shiftInfo->shift->end_time }}
@else
{{ __('No shift assigned') }}
@endif
@endif @endfor @endforeach
{{ __('Scheduled Shift') }}
{{ __('No Shift') }}
@if ($showModal && $selectedDate)
{{ __('Assign Shift') }}

{{ $selectedDate->translatedFormat('l, F j, Y') }}

@if ($weeklyHoursUsed >= $maxWeeklyHours)

{{ __('Weekly Limit Exceeded') }}

{{ __('Employee has exceeded max weekly hours.') }}

{{ __('Used: :used / Max: :max', ['used' => $weeklyHoursUsed, 'max' => $maxWeeklyHours]) }}

@else

{{ __('Use this week') }}: {{ $weeklyHoursUsed }}{{ __('h') }} / {{ $maxWeeklyHours }}{{ __('h') }}

{{ __('Remaining') }}: {{ $remainingWeeklyHours }}{{ __('h') }}

@endif
@error('customStartTime') {{ $message }} @enderror
@error('customEndTime') {{ $message }} @enderror
{{ __('Leave times empty to remove shift for this day.') }}
@php $currentShift = $employee->monthlyShifts->first(fn ($m) => $m->date->isSameDay($selectedDate ?? now())); @endphp @if ($currentShift) {{ __('Delete') }} @else
@endif
{{ __('Cancel') }} {{ __('Save') }}
@endif @if ($showImportModal)
{{ __('Import Shifts') }} {{ __('Upload an Excel or CSV file to import shifts.') }}
{{ __('Columns: date (DD/MM/YYYY), start_time (HH:MM or Status), break, end_time (HH:MM)') }}
{{ __('Download CSV Template') }}
@error('importFile') {{ $message }} @enderror
{{ __('Cancel') }} {{ __('Import') }} {{ __('Importing...') }}
@endif