Back to Shifts
{{ $pageTitle ?? 'Assign Shift' }}
Create Shift Assignment
@csrf {{-- Section 1: Shift Type --}}
1
Select Shift Type
-- Choose a shift --
@foreach($shiftTypes ?? [] as $st)
{{ $st->name }} ({{ date('h:i A', strtotime($st->start_time)) }} - {{ date('h:i A', strtotime($st->end_time)) }})
@endforeach
General Shift
09:00 AM - 06:00 PM
Days Off: Saturday, Sunday
{{-- Section 2: Date Range --}}
2
Date Range
From Date *
To Date
Leave empty for permanent/ongoing assignment
{{-- Section 3: Who to Assign --}}
3
Who to Assign
{{-- Department Filter --}}
Filter by Department (optional)
@foreach($departments ?? [] as $dept)
{{ $dept }}
@endforeach @if(empty($departments))
No departments found
@endif
Leave unchecked to include all departments
{{-- Role Filter --}}
Filter by Role (optional)
@foreach($roles ?? [] as $role)
{{ ucfirst($role) }}
@endforeach
Leave unchecked to include all roles
{{-- Specific Staff Toggle --}}
Select specific staff only (instead of all matching)
{{-- Specific Staff Selection --}}
Select All Visible
0 selected
@foreach($staffList ?? [] as $staff)
{{ $staff->first_name }} {{ $staff->last_name }}
{{ $staff->department ?? '-' }} • {{ $staff->admin?->roles?->first()?->name ?? '-' }}
@endforeach
{{-- Staff Preview --}}
Staff to be assigned:
{{ count($staffList ?? []) }}
@foreach($staffList ?? [] as $staff)
{{ $staff->first_name }} {{ $staff->last_name }} ({{ $staff->department ?? '-' }})
@endforeach
{{-- Hidden field for assignment type --}}
Assign Shift
Cancel