@extends('layouts.master') @section('title', $title) @section('page_css') @endsection @section('content') @php // Saturday first (the hospital week) $week = [6 => 'Sat', 0 => 'Sun', 1 => 'Mon', 2 => 'Tue', 3 => 'Wed', 4 => 'Thu', 5 => 'Fri']; $canPay = $usesLeavePay && auth()->user()->can('leave-paid-unpaid-manage'); $dayList = fn ($days) => collect($week)->filter(fn ($n, $d) => in_array($d, $days, true))->implode(', '); @endphp {{-- each staff member's shift, working days and exemptions (AttendanceCalculator reads them) --}}
| Staff | Shift | Working days | Exempt | @if ($canPay)Paid leave | @endif||
|---|---|---|---|---|---|---|
|
{{ $s->name }}
{{ $jobTitles[$s->job_title] ?? '' }}
|
@foreach ($week as $d => $label)
@endforeach
|
attendance_exempt)> |
@if ($canPay)
paid_leave)> |
@endif
|||
| No enabled staff. | ||||||