@extends('layouts.master') @section('title') Delegations @endsection @section('content') @component('components.breadcrumb') @slot('li_1') Administration @endslot @slot('title') Delegation Register @endslot @endcomponent @if(session('success'))
{{ session('success') }}
@endif
Delegation Register
New Delegation

While active and in-window, the delegate can act with the delegator's approval authority.

@forelse($delegations as $d) @empty @endforelse
DelegatorDelegateWindowReasonStateActions
{{ $d->delegator?->name }} {{ \App\Models\User::ROLE_LABELS[$d->delegator?->role] ?? '' }} {{ $d->delegate?->name }} {{ $d->starts_on->format('d M Y') }} – {{ $d->ends_on->format('d M Y') }} {{ $d->reason ?? '—' }} @if(!$d->is_active)Inactive @elseif($d->is_current)Active now @elseif($d->starts_on->isFuture())Scheduled @elseExpired@endif
@csrf
@csrf @method('DELETE')
No delegations recorded.
{{ $delegations->links('pagination::bootstrap-5') }}
@endsection