{{-- One request type's flow as a numbered chain of reviewers. --}} @php $arrow = ($admin_language ?? 'en') === 'en' ? 'right' : 'left'; $lastIndex = count($flow['roles']) - 1; @endphp
{{ $flow['type']->label() }}
@if ($route_edit) @endif
@if ($flow['roles'] === []) {{ __('No steps set — the direct manager then HR review it.') }} @else
@foreach ($flow['roles'] as $index => $role) {{ $index + 1 }}. {{ $role->label() }} @if ($index === $lastIndex) @endif @if ($index !== $lastIndex) @endif @endforeach
@endif