@push('styles') @vite(['resources/css/orders.css']) @endpush @include('orders.partials.loading-overlay') @push('scripts') @vite(['resources/js/orders/index.js']) @endpush

@yield('title', $pageTitle ?? 'Create Order')

@if(($invoiceNumber ?? false) || ($order->invoice->number ?? false))

Invoice NO: {{ $invoiceNumber ?? $order->invoice->number ?? '' }}

@endif @include('orders.partials.step-navigation')
@if($formMethod !== 'POST') @method($formMethod) @endif @csrf
Order Form
@if(session('error')) @endif @include('orders.partials.customer-details-step', ['hideCustomerSearch' => $hideCustomerSearch ?? false]) @include('orders.partials.product-description-step') @include('orders.partials.delivery-details-step') @include('orders.partials.card-message-step') @include('orders.partials.order-review-step') @include('orders.partials.payment-step') @include('orders.partials.final-confirmation-step')
@include('components.product-modal', ['categories' => $categories]) {{-- Load scripts properly --}} @push('scripts') @vite([ 'resources/js/orders/step-handler.js', 'resources/js/orders/form.js' ]) @endpush @include('orders.partials.address-autocomplete-script')