@php $stepKeys = array_column($steps, 'key'); $currentIndex = (int) array_search($currentStep, $stepKeys); @endphp {{-- ── Header ── --}}
Predixio Step {{ $currentIndex + 1 }} of {{ count($steps) }}
{{-- ── Main Content ── --}}
@yield('content')
{{-- ── Step Progress Bar (fixed to viewport bottom) ── --}}
@foreach($steps as $i => $step) @php $isDone = $i < $currentIndex; $isActive = $step['key'] === $currentStep; @endphp {{-- Step node --}}
@if($isDone) @else {{ $step['number'] }} @endif
{{-- Connector line between nodes --}} @if(!$loop->last)
@endif @endforeach