@php $fmt = fn (?array $v): ?string => $v ? implode(', ', array_map('strval', array_values($v))) : null; $a = $approvalRequest; @endphp Approval queue {{ $a->risk->label() }} {{ ucfirst($a->status) }} @if (session('status')) {{ session('status') }} @endif @if (session('error') || $errors->any()) {{ session('error') ?? $errors->first() }} @endif
{{-- Left: the requested change --}}
Requested change
{{ $a->action->label() }} @if ($a->affectedUser && (int) $a->affectedUser->role_id === 3) {{ $a->affectedUser->full_name }} ({{ $a->affected_u_ident }}) @elseif ($a->affectedUser) {{ $a->affectedUser->full_name }} ({{ $a->affected_u_ident }}) @else {{ $a->entity_type ?? '—' }} @if ($a->entity_id)#{{ $a->entity_id }}@endif @endif {{ $a->requester?->full_name ?: '—' }} @if ($isOwn)You@endif @if ($a->reason)“{{ $a->reason }}”@else —@endif @if ($fmt($a->old_value)) {{ $fmt($a->old_value) }} @endif @if ($fmt($a->new_value)) {{ $fmt($a->new_value) }} @endif
@if ($a->status === \App\Models\ApprovalRequest::STATUS_FAILED && $a->failure_reason) Apply failed: {{ $a->failure_reason }} @endif
{{-- Right: the decision + audit history --}}
Decision
@if ($canDecide)
@csrf
@else @if ($a->decision_note) “{{ $a->decision_note }}” {{ $a->reviewer?->full_name ?: '—' }} @if ($a->reviewed_at)· {{ $a->reviewed_at->diffForHumans() }}@endif @endif @if ($blockedReason) {{ $blockedReason }} @endif @endif
Related audit history @forelse ($audit as $entry) {{ $entry->action }} · {{ $entry->actor?->full_name ?: 'System' }} @empty

No prior audit entries for this record.

@endforelse
Full audit log →