{{-- The BinduHost client area shell. A separate layout from the existing customer portal rather than a rewrite of it: the POS-facing screens keep working exactly as they do today, and this one can look like a hosting client area without dragging them along. Both live behind the same customer.portal middleware, so nothing about authentication or authorisation is duplicated here. Original design. Organisation borrows the shape common to good hosting client areas — a persistent left rail, a compact top bar, cards over tables on small screens — but no code, asset or styling is taken from any of them. Alpine drives one thing only: the mobile drawer. Everything else is plain markup, so the page is fully readable with JavaScript disabled. --}} {{ $title ?? 'BinduHost' }} — {{ config('app.name', 'BCP') }} {{-- The shared Bindu asset bundle: Tailwind v4 compiled at build time and Alpine bundled locally, replacing the Tailwind Play CDN and the jsDelivr Alpine that used to load here. Every Bindu surface now serves the same two files, so a colour or a plugin is changed once. BinduHost's own look — a bright page inside a frame in the purple the owner supplied — comes from two classes rather than a second stylesheet. `theme-binduhost` on turns the neutrals these screens are written in over, so cards are white and headings dark; `theme-binduhost-frame` on the rail and the top bar puts the purple back for them. The frame, the menu and the page ground are the bh-* rules beside them. See resources/css/app.css. --}} @vite(['resources/css/app.css', 'resources/js/app.js']) {{-- Impersonation banner: the main portal layout's warning, wording and exit, for the same reason it has one there — nothing else on these pages tells a member of staff that the account they are looking at belongs to somebody else. It matters more here than anywhere, because checkout lives in this layout, and an order placed from it is the customer's order. Written out again rather than shared, so the main portal layout stays untouched. ImpersonationLayoutTest holds both copies to the same sentence and the same exit, so they cannot drift apart unnoticed. First in the body, ahead of the skip link: while impersonating, the way back to the admin's own account is the first thing a keyboard reaches. --}} @if (\App\Services\ImpersonationSession::isActive())

Viewing the portal as {{ auth()->user()?->customer?->name ?? 'this customer' }} — you are impersonating and any action you take is theirs.

@csrf
@endif
{{-- Skip link: the first thing a keyboard reaches, so the nav can be stepped over on every page. --}} Skip to content {{-- Mobile scrim. Click anywhere to dismiss. --}} {{-- Left rail. A drawer under lg, a fixed column at and above it, so a phone never loses the whole screen to navigation. theme-binduhost-frame puts the purple back for everything inside: the page around it is bright, and this markup was written for dark. --}}
{{-- The other half of the frame: purple, like the rail it meets. --}}
@isset($breadcrumb) @endisset

{{ $title ?? 'BinduHost' }}

@if (session('success'))
{{ session('success') }}
@endif @if (session('warning'))
{{ session('warning') }}
@endif @if ($errors->any()) @endif {{ $slot }}