{{-- Approval requests and their steps (spec §42), newest first. --}}
@foreach (($getState() ?? []) as $approval)
{{ $approval->status->getLabel() }} {{ __('approvals.submitted_by', ['name' => $approval->submitter?->name ?? '—', 'date' => $approval->submitted_at->format('d/m/Y H:i')]) }}
@if (filled($approval->submission_note))
{{ $approval->submission_note }}
@endif
    @foreach ($approval->steps as $step)
  1. {{ $step->step_order }}. {{ $step->name }} {{ $step->status->getLabel() }} @if ($step->decided_at) {{ $step->decider?->name ?? '—' }} · {{ $step->decided_at->format('d/m/Y H:i') }} @endif @if (filled($step->comment)) "{{ $step->comment }}" @endif
  2. @endforeach
@endforeach