@extends('backEnd.layouts.master') @section('title', 'Support Shifts') @section('content')

Shift Schedule

Weekly moderator shift grid
Moderators
Add Shift
@csrf
@foreach($dayLabels as $i => $label) @endforeach
@foreach($moderators as $moderator)
{{ $moderator->name }}
@forelse($moderator->shifts as $shift) @empty @endforelse
Type Time Days Status
{{ ucfirst($shift->shift_type) }} {{ substr($shift->start_time, 0, 5) }} – {{ substr($shift->end_time, 0, 5) }} @foreach($shift->working_days ?? [] as $d) {{ $dayLabels[$d] ?? $d }} @endforeach {{ $shift->is_active ? 'Active' : 'Off' }} @if($shift->isCurrentlyOnShift())Now@endif
@csrf @method('DELETE')
No shifts scheduled.
@endforeach
@endsection @push('scripts') @endpush