{{-- SEO --}} @php $branding = $ws->branding(); $seo = $ws->seo(); $seoTitle = $seoTitle ?? ($pageTitle ?? 'Home'); $fullTitle = str_replace(':page', $seoTitle, $seo['title_template']); $metaDescription = $metaDescription ?? $seo['meta_description']; $ogImage = $ogImage ?? $branding['og_image']; @endphp {{ $fullTitle }} @if ($seo['verification']) @endif {{-- Open Graph --}} @if ($ogImage) @endif {{-- Twitter card --}} @if ($ogImage) @endif @include('website.partials.schema') {{-- Favicon + theme fonts --}} {!! favicon_html($websiteSchool ?? null) !!} @php $fonts = collect([$branding['font_heading'], $branding['font_body']]) ->unique() ->map(fn ($f) => config("website.fonts.{$f}")) ->filter() ->implode('&'); @endphp @if ($fonts) @endif {{-- Dynamic branding variables (school-controlled) --}} @vite(['resources/css/website.css']) @stack('head') Skip to content @include('website.partials.topbar') @include('website.partials.navbar')
@yield('content')
@include('website.partials.footer') @php $wa = $ws->whatsapp(); $waEnabled = $wa['enabled'] && trim((string) $wa['number']) !== ''; $waDigits = preg_replace('/[^0-9]/', '', (string) $wa['number']); $waMessage = trim((string) $wa['message']); @endphp @if ($waEnabled && $waDigits !== '') {{-- Floating WhatsApp chat button (school-controlled) --}} @endif {{-- Floating back-to-top button --}} @stack('scripts')