@php // last_active_step (nullable) is the step the user was last viewing/saving; falls back // to current_step (forward-only, gates sidebar unlocking) for pre-existing rows saved // before this column existed. $savedStep = $application ? ($application->last_active_step ?? $application->current_step) : 1; $completed = $application ? ($application->completed_steps ?? []) : []; $appId = $applicationId ?? ($application->id ?? null); $assocId = $application ? ($application->elap_association_id ?? '') : ''; $masterDataUrl = route('turbo-app.create-application.master-data'); $saveStepBaseUrl = rtrim(url('/admin/turbo-app/create-application/step'), '/'); $usStates = \App\Helpers\LocationOptions::usStates(); $steps = [ 1 => ['label' => 'Configuration', 'icon' => 'bx-cog'], 2 => ['label' => 'Business Information', 'icon' => 'bx-building'], 3 => ['label' => 'Owner Information', 'icon' => 'bx-user'], 4 => ['label' => 'Products & Services', 'icon' => 'bx-package'], 5 => ['label' => 'Fee Schedule', 'icon' => 'bx-dollar'], 6 => ['label' => 'Docs & Signing', 'icon' => 'bx-file'], ]; @endphp @extends('admin.layouts.layout', $headerOption) @push('page_css') @endpush @section('content')
{{-- ── Main wizard column ── --}}
@if(session('error'))
{{ session('error') }}
@endif
{{-- Step panels --}} @foreach($steps as $num => $s)
Step {{ $num }}: {{ $s['label'] }}
@includeIf('admin.turbo-app.partials.v2.step-' . $num)
@if($num > 1) @else Cancel @endif
@endforeach
{{-- ── Sidebar ── --}}
Application Steps
    @foreach($steps as $num => $s)
  • @if($num < 6)

  • @endif @endforeach
@endsection {{-- ═══════════════════════════════════════════════════════════════════════════ Step 4 — Product modals Placed here (outside the flex layout, at body level via @stack('page_modals')) so the Bootstrap backdrop covers the full viewport including the sidebar. ═══════════════════════════════════════════════════════════════════════════ --}} @push('page_modals') {{-- ── MODAL 1: Add Integrated ── --}} {{-- ── MODAL 2: Add Standalone ── --}} {{-- ── MODAL 3: Add WebPass ── --}} {{-- ── MODAL 4: Add Genius ── --}} {{-- ── MODAL: Attach Document (Step 6) ── Placed here at body level so the Bootstrap backdrop covers the full viewport. Same pattern as the Step 4 product modals above. --}} @endpush @push('page_script') @endpush