@php $steps = [ 'email' => 'Email', 'verified' => 'Verified', 'password' => 'Password', 'complete' => 'Username', ]; $currentIndex = array_search($currentStep ?? 'email', array_keys($steps), true); if ($currentIndex === false) { $currentIndex = 0; } @endphp
@foreach($steps as $key => $label) @php $idx = array_search($key, array_keys($steps), true); @endphp {{ $label }} @endforeach