@props(['steps' => [], 'current' => 1, 'currentExpression' => null]) @php $isDynamic = filled($currentExpression); @endphp
{{-- Desktop / tablet: vertical stepper --}} {{-- Mobile: compact horizontal stepper --}}
@if ($isDynamic) @foreach ($steps as $index => $step) {{ __('canc.ui.step_of', ['current' => $index + 1, 'total' => count($steps)]) }} {{ $step['label'] }} @endforeach @else {{ __('canc.ui.step_of', ['current' => $current, 'total' => count($steps)]) }} {{ $steps[$current - 1]['label'] ?? '' }} @endif