@php $seo = $sections['seo'] ?? null; // The inline `@section('title', $value)` form Blade compiles to // e()-escapes $value automatically, so yieldContent() below returns // already-HTML-escaped text — decode it back to plain text here so // every {{ }} usage further down (title/og:title/twitter:title) only // escapes once instead of double-encoding things like "&". $rawTitleSection = trim($__env->yieldContent('title')); $metaTitle = $rawTitleSection !== '' ? html_entity_decode($rawTitleSection, ENT_QUOTES) : ($seo->title ?? 'Digital Sandi Informasi'); $metaDescription = $seo?->subtitle; $metaImage = $seo?->imageUrl() ?? $theme?->logoUrl() ?? asset('dsi/img/dsi2.png'); $canonicalUrl = url()->current(); @endphp {{ $metaTitle }} @if ($metaDescription) @endif @if ($metaDescription) @endif @if ($metaDescription) @endif @php $ldContact = $sections['contact'] ?? null; $ldContactMeta = $ldContact->meta ?? []; $ldSocialLinks = ($ldContact->items ?? collect()) ->pluck('link') ->filter(fn ($link) => filled($link) && str_starts_with($link, 'http')) ->values() ->all(); $ldOrganization = array_filter([ '@context' => 'https://schema.org', '@type' => 'Organization', 'name' => 'PT. Digital Sandi Informasi (DGForm)', 'url' => route('home'), 'logo' => $metaImage, 'description' => $metaDescription, 'address' => $ldContact?->content ? [ '@type' => 'PostalAddress', 'streetAddress' => $ldContact->content, 'addressCountry' => 'ID', ] : null, 'contactPoint' => (! empty($ldContactMeta['phone']) || ! empty($ldContactMeta['email'])) ? array_filter([ '@type' => 'ContactPoint', 'telephone' => $ldContactMeta['phone'] ?? null, 'email' => $ldContactMeta['email'] ?? null, 'contactType' => 'customer service', ]) : null, 'sameAs' => $ldSocialLinks ?: null, ]); $ldWebsite = [ '@context' => 'https://schema.org', '@type' => 'WebSite', 'name' => 'Digital Sandi Informasi', 'url' => route('home'), ]; @endphp {{-- Structured data (JSON-LD) — helps Google show a knowledge panel / rich result (logo, contact info, social profiles) for the company. --}} @yield('head') @include('partials.trust-strip') @yield('content') @include('partials.footer-scripts')