@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')
{{ $isRtl
? 'بموافقتك، نستخدم Google Analytics وGoogle Tag Manager، وقد نرسل إلى LinkedIn معرّف نقرة إعلان مستعاراً ومشفراً لقياس مراحل الانضمام. نحتفظ بمعرّف LinkedIn حتى 120 يوماً، ولا نرسل الاسم أو الجوال أو البريد أو عنوان IP.'
: 'With your consent, we use Google Analytics and Google Tag Manager and may send LinkedIn a pseudonymous, encrypted ad-click ID to measure signup stages. We retain the LinkedIn ID for up to 120 days and do not send your name, phone, email, or IP address.' }}