@extends('hms.layout') @section('title','Shift management') @section('content')
Daily duty roster, your upcoming and completed shifts, shift changes and colleague swaps. Staff leave and cover →
@if(session('success'))| Shift | Time | Facility | Manager on duty | Assigned staff |
|---|---|---|---|---|
| {{ $shift->title }} | {{ \Illuminate\Support\Carbon::parse($shift->starts_at)->format('d M H:i') }} – {{ \Illuminate\Support\Carbon::parse($shift->ends_at)->format('d M H:i') }} | {{ $facilities->firstWhere('id',$shift->facility_id)?->name }} | {{ $staff->firstWhere('id',$shift->manager_user_id)?->name }} | @foreach($assignments->get($shift->id,collect()) as $a){{ $a->name }} @if(in_array($a->user_id,$leaveAbsences))(on leave · cover needed)@endif · {{ str_replace('_',' ',$a->role) }}@endforeach |
| No shifts scheduled for this day. | ||||
| Shift | Time | Manager on duty | Request change | Offer swap / coverage |
|---|---|---|---|---|
| {{ $s->title }} | {{ $s->starts_at }} – {{ $s->ends_at }} | {{ $staff->firstWhere('id',$s->manager_user_id)?->name }} | @if(\Illuminate\Support\Carbon::parse($s->starts_at)->isFuture())@endif | @if(\Illuminate\Support\Carbon::parse($s->starts_at)->isFuture())@endif |
| No upcoming shifts. | ||||
| Shift | Start | End |
|---|---|---|
| {{ $s->title }} | {{ $s->starts_at }} | {{ $s->ends_at }} |
| No completed shifts. | ||
No open offers for your role.
@endforelseNo requests.
@endforelse