@php $status = $withdrawal->status; $steps = ['pending' => 'Requested', 'approved' => 'Approved', 'processing' => 'Processing', 'paid' => 'Paid']; $stepKeys = array_keys($steps); $currentStep = array_search($status, $stepKeys, true); $isTerminalFailure = in_array($status, ['rejected', 'failed'], true); @endphp
$index <= $currentStep, 'text-fg-3' => $index > $currentStep])> {{ $label }} @if ($index === $currentStep)(current)@endif
This request is {{ $status }} and can't be changed. Every step is recorded in the audit log.