@props(['steps', 'currentStep' => 1])
@foreach($steps as $index => $step) @php $stepNumber = $index + 1; $isCompleted = $stepNumber < $currentStep; $isCurrent = $stepNumber === $currentStep; $isPending = $stepNumber > $currentStep; @endphp
@if($isCompleted) @else {{ $stepNumber }} @endif
{{ $step['label'] }}
@if(isset($step['description'])) @endif
@if(!$loop->last)
@endif
@endforeach