@php $_localeEntry = \App\Services\I18n\LocaleCatalog::entryFor(app()->getLocale()); $_brand = \App\Support\AppBranding::siteTitle(); @endphp {{-- 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] ?? '🌐')
{{ $_flag }} {{ __('Switch to :language?', ['language' => $_label]) }}
@csrf @method('PATCH')
@csrf
@endif
{{ 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"' : '')
@yield('content')
@if($demoAgentId = \App\Support\MarketingDemoAgent::id()) @endif {{-- Locale picker modal (Blade variant). Listens for the `pb:open-locale-picker` custom event fired by the header pill. Native + a tiny vanilla search filter — no Alpine, no React, no extra bundle. The list is rendered server-side with every locale the buyer has dropped into `lang/`, so adding a language is genuinely zero-code. --}}

{{ __('Choose your language') }}