@props([ 'title' => null, 'page' => null, ]) @php $title = $title ?? brand_name(); @endphp {{-- `dir` is REQUIRED, not optional. postcss-rtlcss runs in `combined` mode, so the compiled stylesheet carries ~350 directional rules scoped to [dir=ltr] and ~350 to [dir=rtl]. With no dir attribute on , NEITHER set matches and every one of those rules is silently dropped — which is what left the sign-in page unstyled while user/admin/frontend (which all set dir) looked fine. Keep this in sync with the other layouts. --}} {{-- Sub-folder base path (e.g. /public) so client-side AJAX honours the deploy location under a sub-directory. --}} @php $defCountry = app_default_country(); @endphp @php $__brandName = (string) brand_name(); @endphp {{ $title }} — {{ $__brandName }} {{-- Favicon — the same uploaded asset admin/user/frontend already use. This layout renders the auth AND error pages, which had no icon at all, so a 404 or the sign-in screen showed a blank browser tab while every other page showed the brand. rescue()d because the 500 page renders through here too: during a database outage the settings lookup itself throws, and an exception inside the error view yields a blank white page. --}} @php $__faviconUrl = rescue(fn() => \App\Support\Brand::faviconUrl(), null, false); @endphp @if ($__faviconUrl) @endif {{-- SEO meta block — single source at /admin/settings/seo. The guest layout is what marketing/login pages render with, so this is the surface search engines see most. --}} @include('partials.seo-meta', ['seoOverrides' => ['title' => $title . ' — ' . $__brandName]]) @include('partials.pwa-meta') @include('partials.site-analytics') @vite(['resources/css/app.css', 'resources/js/app.js']) @include('partials.app-font') {{ $slot }} {{-- GDPR cookie consent — applies to login, marketing, public pages. --}} @include('partials.cookie-consent') @stack('scripts') {{-- On-page auth editor — injected ONLY for an authed platform admin who opened this page with ?fc_edit=1 (see fc_editing()). Lets them click text to edit it and set the side image/video. Visitors never get it. --}} @if (fc_editing()) @endif