@php /** Script loading - local only, no external/CDN, no Google Maps. */ @endphp @php // Fetches the recommendations band after a line is added. Loaded for every storefront page // because the basket can be added to from a card, a menu, a rail or the popup; the endpoint // returns an empty string when the feature is off, so an install that never uses it costs // one request that answers immediately. @endphp @php // Per-page vendor scripts (full asset-relative paths, e.g. 'vendor/flatpickr/flatpickr.min.js'). @endphp @foreach (($pageScripts ?? []) as $__js) @endforeach @php // Typeahead on every [data-suggest] input; no-op on pages without one. @endphp @php /* Dashboard-only scroll persistence. The sidebar nav (.qm-dash-nav, its own overflow-y:auto column) and the window both reset to the top on every page load — so navigating the sidebar loses your place in it, and a save (POST -> redirect -> GET) jumps the page to the top. Guarded on the dashboard sidebar, so it is a no-op on the public and auth layouts that share this partial. */ @endphp