@php $gridVersion = request()->query('grid') === 'v2' ? 'v2' : 'v1'; $deferToolbarSearch = request()->routeIs('index'); $isInertiaPage = isset($page) && is_array($page); $shouldRenderBladeSeo = ($useUnifiedSeo ?? false) && (($renderBladeSeo ?? false) || ! $isInertiaPage); $novaViteEntries = [ 'resources/css/app.css', 'resources/css/nova-grid.css', 'resources/scss/nova.scss', 'resources/js/nova.js', ]; if (!$deferToolbarSearch) { $novaViteEntries[] = 'resources/js/entry-search.jsx'; } @endphp
@if($shouldRenderBladeSeo) @include('partials.seo.head', ['seo' => $seo ?? null]) @endif {{-- Global RSS feed discovery --}} @vite($novaViteEntries) @stack('head') @if($deferToolbarSearch) @endif @if($isInertiaPage) @inertiaHead @endif @if(config('services.google_adsense.publisher_id')) {{-- Google AdSense — consent-gated loader --}} {{-- Script is only injected after the user accepts all cookies. --}} {{-- If consent was given on a previous visit it fires on page load. --}} @endif @php $authBgRoutes = [ 'login', 'register', 'register.notice', 'password.request', 'password.reset', 'verification.notice', 'registration.verify', 'setup.password.create', 'setup.username.create', 'password.confirm' ]; $useAuthBackground = request()->route() && in_array(request()->route()->getName(), $authBgRoutes); $authBackgrounds = [ '/gfx/skinbase_back_001.webp', '/gfx/skinbase_back_002.webp', '/gfx/skinbase_back_003.webp', '/gfx/skinbase_back_004.webp', ]; $selectedAuthBg = $useAuthBackground ? $authBackgrounds[array_rand($authBackgrounds)] : null; @endphp @include('layouts.nova.toolbar')We use essential cookies to keep you logged in and protect your session. With your permission we also load advertising cookies from third-party networks. Learn more ↗