@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