My shifts

Your duty roster for {{ $weekStart->format('d M Y') }} โ€“ {{ $weekStart->copy()->addDays(6)->format('d M Y') }}.

@if ($todayEntries->isNotEmpty())

Today

    @foreach ($todayEntries as $entry)
  • {{ $entry->shift?->label ?? 'Shift' }}

    {{ $entry->shift?->timeLabel() }} ยท {{ $entry->careUnit?->name ?? 'Unit' }} @if ($entry->careUnit?->department) ({{ $entry->careUnit->department->name }}) @endif

    @if ($entry->careUnit && app(\App\Services\Care\CarePermissions::class)->can( auth()->user() ? app(\App\Services\Care\OrganizationResolver::class)->memberFor(auth()->user()) : null, 'nursing.station.view' )) Open ward @endif {{ config('care.roster_entry_statuses.'.$entry->status, $entry->status) }}
  • @endforeach
@else
No duty assigned for today.
@endif
@foreach ($days as $day) @php $dayEntries = $entriesByDate[$day->toDateString()] ?? []; @endphp @forelse ($dayEntries as $entry) @empty @endforelse @endforeach
Day Shift Unit Status
{{ $day->format('D') }} {{ $day->format('d M') }} @if ($day->isToday()) Today @endif {{ $entry->shift?->label ?? 'โ€”' }}
{{ $entry->shift?->timeLabel() }}
{{ $entry->careUnit?->name ?? 'โ€”' }} @if ($entry->careUnit?->department)
{{ $entry->careUnit->department->name }}
@endif
{{ config('care.roster_entry_statuses.'.$entry->status, $entry->status) }}
{{ $day->format('D') }} {{ $day->format('d M') }} Off / not rostered