@php
$steps = [
['num' => 1, 'label' => __('Welcome')],
['num' => 2, 'label' => __('Requirements')],
['num' => 3, 'label' => __('Database')],
['num' => 4, 'label' => __('Application')],
['num' => 5, 'label' => __('Admin Account')],
['num' => 6, 'label' => __('Install')],
];
@endphp
@foreach ($steps as $step)
@php
$isCompleted = $currentStep > $step['num'];
$isActive = $currentStep === $step['num'];
$isPending = $currentStep < $step['num'];
@endphp
@if ($isCompleted)
@elseif ($isActive)
{{ $step['num'] }}
@else
{{ $step['num'] }}
@endif
{{ $step['label'] }}
@endforeach