@props(['currentStep' => 1]) @php $steps = [ 1 => 'Workspace', 2 => 'Email', 3 => 'AI Training', 4 => 'Auto-Reply', 5 => 'Team', ]; @endphp
@foreach($steps as $number => $label) @php $isCompleted = $number < $currentStep; $isCurrent = $number === $currentStep; $isFuture = $number > $currentStep; @endphp {{-- Step circle + label --}}
@if($isCompleted) @else {{ $number }} @endif
{{ $label }}
{{-- Connector line (not after last step) --}} @if($number < count($steps))
@endif @endforeach