{{-- Disable browser auto-translate — we ship our own translations. --}}
@yield('title', config('app.name'))
{{-- Favicon: mirror the Inertia root behavior so /p/{slug} pages
(and /privacy, /terms) carry the operator's uploaded favicon,
not the default Laravel icon. Buyer report 2026-05-21. --}}
@php($_marketingFavicon = \App\Support\AppBranding::shared()['favicon_url'] ?? null)
@vite(['resources/css/app.css'])
{{--
Geo-suggested locale banner. Only renders when the visitor's
Cloudflare CF-IPCountry maps to a translation we ship and the
dismiss cookie isn't set. Two forms — switch (PATCH) and
dismiss (POST) — so it works without any JS.
--}}
@php($localeSuggestion = app(\App\Services\I18n\LocaleResolver::class)->suggestionFor(request(), app()->getLocale()))
@if($localeSuggestion)
@php($_loc = $localeSuggestion['suggested'])
@php($_label = ['en' => 'English', 'es' => 'Español', 'fr' => 'Français', 'tr' => 'Türkçe'][$_loc] ?? $_loc)
@php($_flag = ['en' => '🇺🇸', 'es' => '🇪🇸', 'fr' => '🇫🇷', 'tr' => '🇹🇷'][$_loc] ?? '🌐')
{{ mb_strtoupper(mb_substr($_brand, 0, 1)) }}{{ $_brand }}
{{-- Demo-mode opens auth links in a new tab so reviewers
don't lose the marketing surface when they hop into
the live demo app. Driven by config('demo.enabled')
which is config-cached server-side. --}}
@php($_demoTarget = config('demo.enabled') && ! auth()->check() ? 'target="_blank" rel="noopener noreferrer"' : '')