@php $props = $page['props'] ?? []; // Only public pages carry a built SEO payload (admin forms use a "seo" prop for editing). $seo = isset($props['seo']['canonical'], $props['seo']['title']) ? $props['seo'] : null; $site = $props['site']['settings'] ?? app(\App\Services\SiteService::class)->shared()['settings']; $isAdmin = request()->is('admin', 'admin/*'); $favicon = data_get($site, 'favicon.url'); $gaId = ! $isAdmin && app()->isProduction() ? data_get($site, 'analytics_ga_id') : null; @endphp @if ($favicon) @else @endif @if ($verification = data_get($site, 'seo_google_verification')) @endif @inertiaHead {{-- Without SSR, render the SEO tags server-side so crawlers and social previews always see them. --}} @if (empty($__inertiaSsrResponse)) @if ($seo) {{ $seo['title'] }} @if (! empty($seo['keywords']))@endif @if ($seo['image'])@endif @if ($seo['image'])@endif @foreach ($seo['schema'] as $i => $schema) @endforeach @else {{ $isAdmin ? 'Portal administrativo' : '' }} {{ data_get($site, 'company_name', config('app.name')) }} @if ($isAdmin)@endif @endif @endif @vite(['resources/css/app.css', 'resources/js/app.ts', "resources/js/Pages/{$page['component']}.vue"]) @if ($gaId) @endif @inertia