{{-- Stepper / Progress Steps Component Props: $steps – array of step label strings $current – current step index (1-based) $variant – horizontal|vertical (default: horizontal) --}} @props([ 'steps' => [], 'current' => 1, 'variant' => 'horizontal', ]) @php $total = count($steps); @endphp
{{-- Step indicators --}}
    $variant === 'horizontal', 'flex-col space-y-4' => $variant === 'vertical', 'items-center justify-between w-full' => $variant === 'horizontal', ]) aria-label="Steps"> @foreach($steps as $index => $label) @php $stepNum = $index + 1; @endphp
  1. true, 'flex-1 after:content-[\'\'] after:flex-1 after:h-0.5 after:mx-3 after:border-t-2' => $variant === 'horizontal' && !$loop->last, 'after:border-primary-600 dark:after:border-primary-400' => $variant === 'horizontal' && !$loop->last && $stepNum < $current, 'after:border-surface-200 dark:after:border-surface-700' => $variant === 'horizontal' && !$loop->last && $stepNum >= $current, 'gap-3' => $variant === 'vertical', ])> {{-- Circle --}} {{-- Label --}}
  2. @endforeach
{{-- Slot: step panels keyed by x-show="step === N" --}}
{{ $slot }}
{{-- Default navigation --}} @if(isset($navigation)) {{ $navigation }} @else
Previous Next Submit
@endif