@extends('layouts.cleaning') @section('content')
Manage which services supervisors are authorized to run at which stations.
| Supervisor | Active Assignments |
|---|---|
|
{{ $supervisor->name }}
{{ $supervisor->email }}
|
@if($supervisor->cleaningSupervisorAssignments->isEmpty())
No active assignments
@else
@foreach($supervisor->cleaningSupervisorAssignments as $assignment)
@php
$isActive = $assignment->start_date <= today() && (!$assignment->end_date || $assignment->end_date >= today());
@endphp
@endif
{{ $assignment->branch->name ?? 'Unknown Branch' }}
Station Authority
•
Since {{ $assignment->start_date->format('M j, Y') }}
@foreach($assignment->services as $service)
{{ $service->name }}
@endforeach
@if($isActive)
Active
@else
Inactive
@endif
|
| No supervisors found. | |