@php $allSteps = ['welcome', 'personal-info', 'banking-details', 'documents', 'policy-agreement', 'contract', 'final-confirmation']; $currentStepIndex = array_search($currentStep, $allSteps); @endphp @foreach($allSteps as $index => $step)
  • {{ ucfirst(str_replace('-', ' ', $step)) }}
  • @endforeach