Work Shift Table

{{ $monthName }}
Department
Role
Staff
@if(count($filterStaff) > 0) @foreach($staffList->whereIn('id', $filterStaff)->take(3) as $s) {{ $s->first_name }} × @endforeach @if(count($filterStaff) > 3) +{{ count($filterStaff) - 3 }} more @endif @else All Staff @endif
@foreach($filteredStaffOptions as $staff)
{{ $staff->first_name }} {{ $staff->last_name }}
@endforeach
Shift Schedule
Showing {{ $staffList->count() }} of {{ $totalStaffCount }} staff
💡 Shift + Mouse scroll to scroll horizontally
@if($staffList->count() > 0) @foreach($daysInMonth as $day) @endforeach @foreach($staffList as $index => $staff) @foreach($daysInMonth as $day) @php $shiftInfo = $shiftsData[$staff->id][$day['date']] ?? null; @endphp @endforeach @endforeach
# Staff {{ $day['dayName'] }} {{ $day['day'] }}
{{ $index + 1 }} {{ $staff->first_name }} {{ $staff->last_name }} @if($shiftInfo) @if($shiftInfo['type'] === 'off') OFF @else {{ $shiftInfo['code'] ?? substr($shiftInfo['name'], 0, 3) }} @endif @else @endif
@else
No staff found matching your filters
@endif
@if($staffList->count() < $totalStaffCount)
@endif
Loading...