@php // Get theme fonts from active preset $headingFont = 'Inter'; $bodyFont = 'Inter'; if ($website && $website->activeTheme && $website->activeTheme->theme) { $defaultPreset = $website->activeTheme->theme->presets()->where('is_default', true)->first(); if ($defaultPreset && isset($defaultPreset->font_scheme)) { $headingFont = $defaultPreset->font_scheme['heading'] ?? 'Inter'; $bodyFont = $defaultPreset->font_scheme['body'] ?? 'Inter'; } } // Build Google Fonts URL dynamically $fontsToLoad = []; if ($headingFont !== 'Default') { $fontsToLoad[] = str_replace(' ', '+', $headingFont) . ':wght@300;400;500;600;700;800;900'; } if ($bodyFont !== 'Default' && $bodyFont !== $headingFont) { $fontsToLoad[] = str_replace(' ', '+', $bodyFont) . ':wght@300;400;500;600;700;800;900'; } $googleFontsUrl = count($fontsToLoad) > 0 ? 'https://fonts.googleapis.com/css2?family=' . implode('&family=', $fontsToLoad) . '&display=swap' : ''; @endphp @yield('title', 'My Account') - {{ $website->name }} @if($website->theme) @endif @if($googleFontsUrl) @endif @stack('styles') @php $headerSection = $website->globalSections()->where('type', 'header')->where('is_default', true)->first(); @endphp @if($headerSection && $headerSection->builder_data)
{!! $headerSection->renderBuilderContent() !!}
@endif
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif @yield('content')
@php $footerSection = $website->globalSections()->where('type', 'footer')->where('is_default', true)->first(); @endphp @if($footerSection && $footerSection->builder_data) @endif @stack('scripts')