@php
$routeName = request()->route()?->getName();
$seo = config('seo.pages.' . $routeName, []);
$title = $seo['title'] ?? trim($__env->yieldContent('title')) ?: config('seo.default_title');
$description = $seo['description'] ?? trim($__env->yieldContent('description')) ?: config('seo.default_description');
$canonical = rtrim(config('seo.url'), '/') . (request()->path() === '/' ? '/' : '/' . ltrim(request()->path(), '/'));
$shareImage = asset(config('seo.image'));
@endphp
{{ $title }}
@if (config('seo.google_site_verification'))@endif
@stack('head')
@include('components.nav')
@yield('content')
@include('components.footer')
@php
$businessSchema = ['@context' => 'https://schema.org', '@type' => 'ProfessionalService', 'name' => config('app.name'), 'url' => config('seo.url'), 'logo' => asset('images/logo-mark.svg'), 'telephone' => config('site.phone'), 'areaServed' => ['@type' => 'City', 'name' => 'อุบลราชธานี'], 'address' => ['@type' => 'PostalAddress', 'addressLocality' => 'อุบลราชธานี', 'addressCountry' => 'TH'], 'priceRange' => '$$'];
$websiteSchema = ['@context' => 'https://schema.org', '@type' => 'WebSite', 'name' => config('app.name'), 'url' => config('seo.url'), 'inLanguage' => 'th-TH'];
@endphp
@stack('structured-data')
@stack('scripts')