@php /** * Header AI assistant off-canvas (slides in right → left, Bootstrap offcanvas-end). * Rendered once in the dashboard layout for vendor / manager / super-admin. Reuses * the shared chat widget — and the same treatment as the assistant PAGE (the * zero-state hero, prompt cards, hairline composer; see app.css). The chat * endpoint + starter prompts are role-scoped — vendor/manager talk to their * restaurant assistant, super-admin to the platform-wide assistant. */ use App\Support\Auth; $aiRole = (string) Auth::role(); $aiAdmin = $aiRole === 'super_admin'; $aiSvc = new \App\Services\Ai(); $aiSite = setting('site_name', 'QuickMunch'); @endphp @php // data-bs-scroll: skip Bootstrap's body scroll-lock. The dashboard sidebar is // position:sticky against the body scroll container, so the default lock // (overflow:hidden + scrollbar-gutter padding) shifts and breaks it. The backdrop // still dims + closes on outside click. @endphp