@php $settings = $platformSiteSettings ?? null; $siteName = $siteName ?? ($platformSiteName ?? ($settings?->effectiveSiteName() ?? \App\Models\Platform\SiteSetting::defaultSiteName())); $siteDescription = $siteDescription ?? ($settings?->site_description ?? config('app.name', 'qpost')); $faviconUrl = $settings?->favicon_path ? url('platform/files/' . ltrim($settings->favicon_path, '/')) : null; $footer = $settings?->effectiveFooter() ?? \App\Models\Platform\SiteSetting::defaultFooter($siteName); $adsenseClientId = $settings?->effectiveAdsenseClientId(); $pageTitle = trim((string) $__env->yieldContent('title', $siteName)); $pageDescription = trim((string) $__env->yieldContent('meta-description', $siteDescription)); $pageKeywords = trim((string) $__env->yieldContent('meta-keywords', '')); $pageCanonicalUrl = trim((string) $__env->yieldContent('canonical-url', url()->current())); $pageOgTitle = trim((string) $__env->yieldContent('og-title', $pageTitle)); $pageOgDescription = trim((string) $__env->yieldContent('og-description', $pageDescription)); $pageOgType = trim((string) $__env->yieldContent('og-type', 'website')); $pageOgImage = trim((string) $__env->yieldContent('og-image', $faviconUrl ?? '')); $pageRobots = trim((string) $__env->yieldContent('meta-robots', $settings?->indexable ? 'index,follow' : 'noindex,follow')); $pageTitle = html_entity_decode(html_entity_decode($pageTitle, ENT_QUOTES | ENT_HTML5, 'UTF-8'), ENT_QUOTES | ENT_HTML5, 'UTF-8'); $pageDescription = html_entity_decode(html_entity_decode($pageDescription, ENT_QUOTES | ENT_HTML5, 'UTF-8'), ENT_QUOTES | ENT_HTML5, 'UTF-8'); $pageKeywords = html_entity_decode(html_entity_decode($pageKeywords, ENT_QUOTES | ENT_HTML5, 'UTF-8'), ENT_QUOTES | ENT_HTML5, 'UTF-8'); $pageCanonicalUrl = html_entity_decode(html_entity_decode($pageCanonicalUrl, ENT_QUOTES | ENT_HTML5, 'UTF-8'), ENT_QUOTES | ENT_HTML5, 'UTF-8'); $pageOgTitle = html_entity_decode(html_entity_decode($pageOgTitle, ENT_QUOTES | ENT_HTML5, 'UTF-8'), ENT_QUOTES | ENT_HTML5, 'UTF-8'); $pageOgDescription = html_entity_decode(html_entity_decode($pageOgDescription, ENT_QUOTES | ENT_HTML5, 'UTF-8'), ENT_QUOTES | ENT_HTML5, 'UTF-8'); $pageOgType = html_entity_decode(html_entity_decode($pageOgType, ENT_QUOTES | ENT_HTML5, 'UTF-8'), ENT_QUOTES | ENT_HTML5, 'UTF-8'); $pageOgImage = html_entity_decode(html_entity_decode($pageOgImage, ENT_QUOTES | ENT_HTML5, 'UTF-8'), ENT_QUOTES | ENT_HTML5, 'UTF-8'); @endphp @if ($pageKeywords !== '') @endif @if ($faviconUrl) @endif @if ($pageOgImage !== '') @endif @if ($adsenseClientId) @endif {{ $pageTitle }} @vite(['resources/css/app.css', 'resources/css/platform.css', 'resources/js/app.js', 'resources/js/platform.js']) @stack('head') @stack('styles') @yield('body-top')
{{ $slot }}
@stack('scripts')