{{-- Filters --}}
{{-- Month Selector --}}
{{-- Department --}} @if(count($departments) > 0)
@endif {{-- Role --}} @if(count($roles) > 0)
@endif {{-- Staff --}}
{{-- Spacer to push export button to the right --}}
{{-- Export Button - NOW INSIDE LIVEWIRE WITH CURRENT MONTH --}}
Export Excel
{{-- Loading indicator --}}
{{-- Legend --}}
P Present
W:8 Worked (hours)
A Absent
L Leave
H Holiday
OFF Day Off
NS No Shift
{{-- Table --}}
@for($day = 1; $day <= $this->daysInMonth; $day++) @php $date = $this->startDate->copy()->addDays($day - 1); $isToday = $date->isToday(); $isWeekend = $date->isWeekend(); @endphp @endfor @forelse($this->staffList as $index => $staff) @for($day = 1; $day <= $this->daysInMonth; $day++) @php $date = $this->startDate->copy()->addDays($day - 1); $status = $this->getStatusForDay($staff->id, $date); $isToday = $date->isToday(); @endphp @endfor @empty @endforelse
# Staff
{{ $date->format('D') }}
{{ str_pad($day, 2, '0', STR_PAD_LEFT) }}
{{ $index + 1 }}
{{ strtoupper(substr($staff->first_name, 0, 1) . substr($staff->last_name, 0, 1)) }}
{{ $staff->first_name }} {{ $staff->last_name }}
@if($status['value']) {{ $status['value'] }} @endif
No staff found. Please assign shifts to staff first.
{{-- Day Detail Modal --}}