@foreach($steps as $index => $step)
@php
$stepNumber = $index + 1;
$completed = $stepNumber < $currentStep;
$active = $stepNumber === $currentStep;
@endphp
@if($completed)
@else
{{ $stepNumber }}
@endif
@if(!$loop->last)
@endif
@endforeach
@foreach($steps as $index => $step)
@php
$stepNumber = $index + 1;
$completed = $stepNumber < $currentStep;
$active = $stepNumber === $currentStep;
@endphp
{{ $step }}
@if(!$loop->last)
@endif
@endforeach