@php $settings = \App\Models\Setting::all()->pluck('value', 'key'); $brandName = $settings['brand_name'] ?? config('app.name', 'Baby Bloom'); $primary = $settings['brand_primary'] ?? '#ff7f6b'; $secondary = $settings['brand_secondary'] ?? '#c4b5fd'; $gradient = $settings['brand_gradient'] ?? 'linear-gradient(135deg, #ff7f6b 0%, #fca5a5 50%, #f9a8d4 100%)'; $favicon = $settings['favicon_url'] ?? null; $seoTitle = $settings['seo_title'] ?? $brandName; $seoDesc = $settings['seo_description'] ?? 'Boutique premium pour bébés — ' . $brandName; $seoKw = $settings['seo_keywords'] ?? ''; $ogImage = $settings['og_image_url'] ?? null; $borderRadius= $settings['border_radius'] ?? '0.75rem'; $currSymbol = $settings['currency_symbol'] ?? '€'; $currPos = $settings['currency_position'] ?? 'before'; $gaId = $settings['google_analytics'] ?? ''; $gtmId = $settings['google_tag_manager_id'] ?? ''; $pixelId = $settings['facebook_pixel_id'] ?? ''; @endphp {{-- ── Primary Title ──────────────────────────────────── --}} {{ $seoTitle }} | {{ $brandName }} {{-- ── Core SEO / Meta Managed by Inertia ── --}} @if($seoKw) @endif {{-- ── Open Graph Fallbacks Managed by Inertia ── --}} @if($ogImage) @endif {{-- ── Theme & Icons ──────────────────────────────────── --}} @if($favicon) @else @endif {{-- ── Dynamic CSS Variables ──────────────────────────── These are injected BEFORE app.css so CSS vars are ready when Tailwind classes are evaluated. --}} {{-- ── Fonts ───────────────────────────────────────────── --}} {{-- ── Font Awesome (Free) & Brands ── --}} {{-- ── Scripts ────────────────────────────────────────── --}} @routes @viteReactRefresh @vite(['resources/js/app.jsx', "resources/js/Pages/{$page['component']}.jsx"]) @inertiaHead {{-- ── Google Analytics ─────────────────────────────── --}} @if($gaId) @endif {{-- ── Google Tag Manager (Head) ──────────────────────── --}} @if($gtmId) @endif {{-- ── Facebook Pixel (Head) ─────────────────────────── --}} @if($pixelId) @endif {{-- ── Google Tag Manager (Body) ──────────────────────── --}} @if($gtmId) @endif @inertia