{{-- Where the operator is: 1 connect, 2 map, 3 import. $current = 1..3 --}} @php($labels = [1 => __('whmcs_import.steps.connect'), 2 => __('whmcs_import.steps.map'), 3 => __('whmcs_import.steps.import')])
    @foreach($labels as $n => $label) @php($state = $n < $current ? 'done' : ($n === $current ? 'current' : 'pending'))
  1. @if($state === 'done')@else{{ $n }}@endif {{ $label }}
  2. @if(! $loop->last) @endif @endforeach