@props(['current' => 1]) @php $steps = [ 1 => 'Details', 2 => 'Role', 3 => 'Courses', 4 => 'Bundles', 5 => 'Communities', 6 => 'Preview', ]; @endphp

Step {{ $current }} of 6 — {{ $steps[$current] ?? '' }}

{{ round(($current / 6) * 100) }}% complete

@foreach($steps as $num => $label)
@if($num < $current) @else {{ $num }} @endif
@if(!$loop->last)
@endif @endforeach