@php
$steps = [
1 => __('install.stepper_step_1'),
2 => __('install.stepper_step_2'),
3 => __('install.stepper_step_3'),
4 => __('install.stepper_step_4'),
5 => __('install.stepper_step_5'),
6 => __('install.stepper_step_6'),
7 => __('install.stepper_step_7'),
8 => __('install.stepper_step_8'),
9 => __('install.stepper_step_9'),
];
$current = $currentStep ?? 1;
@endphp
{{-- Mobile: compact text --}}
@if($current <= 9)
{{ __('install.stepper_mobile', ['current' => $current, 'title' => $steps[$current] ?? '']) }}
@endif
{{-- Desktop: horizontal stepper --}}
@foreach($steps as $num => $title)
$num === $current,
'bg-green-500 border-green-500 text-white' => $num < $current,
'bg-white border-gray-300 text-gray-400' => $num > $current,
])>
@if($num < $current)
@else
{{ $num }}
@endif
$num === $current,
'text-green-600' => $num < $current,
'text-gray-400' => $num > $current,
])>{{ $title }}
@if(!$loop->last)
$num < $current,
'bg-gray-300' => $num >= $current,
])>
@endif
@endforeach