@php /* Locale-aware HTML envelope. The session-driven SetLocale middleware has already set the app locale by now — defaulting to English from `config('app.locale')`; the AR/EN switcher persists the visitor's pick into the session for later requests. */ $currentLocale = app()->getLocale(); $isRtl = $currentLocale === 'ar'; @endphp @yield('title', __('web.layout.default_title')) @if (config('marketing_measurement.capture_enabled')) {{-- Consent Mode defaults must execute before GTM. --}} @if (config('marketing_measurement.gtm.container_id')) @endif @endif {{-- Tajawal handles Arabic glyphs beautifully; Inter is the English fallback. Both load together so neither swap triggers a flash of unstyled text on locale toggle. --}} @stack('styles') @if (config('marketing_measurement.capture_enabled') && config('marketing_measurement.gtm.container_id')) @endif @include('web.signup.partials.icons')
@yield('content')
@if (config('marketing_measurement.capture_enabled')) @endif @if (config('marketing_measurement.capture_enabled')) @endif @stack('scripts')