| # | Staff | @foreach($daysInMonth as $day){{ $day['dayName'] }} {{ $day['day'] }} | @endforeach
|---|---|---|
| {{ $index + 1 }} | {{ $staff->first_name }} {{ $staff->last_name }} | @foreach($daysInMonth as $day) @php $shiftInfo = $shiftsData[$staff->id][$day['date']] ?? null; @endphp@if($shiftInfo) @if($shiftInfo['type'] === 'off') OFF @else {{ $shiftInfo['code'] ?? substr($shiftInfo['name'], 0, 3) }} @endif @else — @endif | @endforeach