@php $seoSettings = $settings ?? \App\Models\Setting::pluck('value', 'key'); $pageTitle = trim($__env->yieldContent('title', 'Oscar World — Official Jetour Dealer')); $pageDescription = trim($__env->yieldContent('description', 'Official Jetour dealer in Malaysia with multiple showroom locations. Book a test drive for the Dashing, VT9, T2, T1 or T2 i-DM today.')); $ogImage = $seoSettings['hero_image'] ?? null; @endphp {{ $pageTitle }} @if (!empty($seoSettings['google_site_verification'])) @endif {{-- Open Graph / Twitter Card — so links shared on Facebook, WhatsApp, X etc. show a proper title, description and image instead of a bare URL. --}} @if ($ogImage) @endif @if ($ogImage) @endif @if (!empty($seoSettings['gtm_container_id'])) {{-- Google Tag Manager --}} @endif @if (!empty($seoSettings['ga4_measurement_id'])) {{-- Google Analytics 4 --}} @endif @if (!empty($seoSettings['google_ads_conversion_id'])) {{-- Google Ads (loads gtag.js too if GA4 didn't already) --}} @if (empty($seoSettings['ga4_measurement_id'])) @endif @endif @if (!empty($seoSettings['gtm_container_id'])) @endif @php $waNumber = $settings['whatsapp_number'] ?? '60123456789'; $waPhone = $settings['phone_display'] ?? '+60 12-345 6789'; $headerMenuItems = \App\Models\MenuItem::with('page')->where('location', 'header')->orderBy('sort_order')->get()->filter->isVisible(); $footerMenuGroups = \App\Models\MenuItem::with('page')->where('location', 'footer')->orderBy('sort_order')->get()->filter->isVisible()->groupBy(fn ($i) => $i->group_label ?: 'More'); @endphp
@php $siteLogo = $seoSettings['site_logo'] ?? null; $logoH = (int) ($seoSettings['logo_height_desktop'] ?? 0) ?: 48; $logoHm = (int) ($seoSettings['logo_height_mobile'] ?? 0) ?: 36; @endphp
@yield('content')
@yield('scripts')