@php use App\Support\Seo; $seoLocale = current_locale(); $rawTitle = trim($__env->yieldContent('title')); $rawDesc = trim($__env->yieldContent('meta_description')); $rawKeywords = trim($__env->yieldContent('meta_keywords')); $rawImage = trim($__env->yieldContent('og_image')); $rawCanonical = trim($__env->yieldContent('canonical')); $rawRobots = trim($__env->yieldContent('robots')); $rawType = trim($__env->yieldContent('og_type')); $seoTitle = Seo::title($rawTitle !== '' ? $rawTitle : null, $seoLocale); $seoDescription = Seo::description($rawDesc !== '' ? $rawDesc : null, null, $seoLocale); $seoKeywords = Seo::keywords($rawKeywords !== '' ? $rawKeywords : null, $seoLocale); $seoImage = Seo::image($rawImage !== '' ? $rawImage : null); $seoCanonical = Seo::canonical($rawCanonical !== '' ? $rawCanonical : null); $seoRobots = $rawRobots !== '' ? $rawRobots : 'index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1'; $seoType = $rawType !== '' ? $rawType : 'website'; $seoAlternates = Seo::alternates(); $seoSiteName = config('seo.site_name', 'Kenncoat'); $seoOgLocale = Seo::ogLocale($seoLocale); $seoHreflang = Seo::hreflang($seoLocale); $defaultHreflang = Seo::hreflang(locale_default()); $org = config('seo.organization', []); $addr = $org['address'] ?? []; @endphp {{ $seoTitle }} @if($seoKeywords !== '') @endif @foreach($seoAlternates as $hreflang => $href) @endforeach @foreach(config('seo.og_locales', []) as $loc => $ogLoc) @if($loc !== $seoLocale && in_array($loc, locales(), true)) @endif @endforeach @hasSection('json_ld') @endif