@php $propName = \App\Models\Setting::get('property_name', 'Parkview Hotel CDO'); $seoData = \App\Models\WebsiteContent::section('seo'); $pageTitle = trim($__env->yieldContent('title')) ?: ($seoData['meta_title'] ?? $propName); $pageDesc = trim($__env->yieldContent('meta_description')) ?: ($seoData['meta_description'] ?? ''); $ogImg = trim($__env->yieldContent('og_image')); if (!$ogImg && !empty($seoData['og_image'])) { $ogImg = \Illuminate\Support\Facades\Storage::url($seoData['og_image']); } $ogImgAbs = $ogImg ? (\Illuminate\Support\Str::startsWith($ogImg, 'http') ? $ogImg : url($ogImg)) : ''; $canonical = trim($__env->yieldContent('canonical')) ?: url()->current(); // Per-locale alternates for THIS page (URL-based locale, EN un-prefixed). // The EN copy is named "en.public.*"; strip that so generation always targets // the {locale}-prefixed "public.*" copy. $__rn = \Illuminate\Support\Facades\Route::currentRouteName(); $__rn = $__rn ? preg_replace('/^en\./', '', $__rn) : null; $__isPublic = $__rn && \Illuminate\Support\Str::startsWith($__rn, 'public.'); // Transactional steps carry query-state / guest PII (the confirmation loads by // booking_no with no auth) — keep them out of the index + hreflang cluster. $__transactional = in_array($__rn, ['public.book.payment', 'public.book.confirmation'], true); $__indexable = $__isPublic && ! $__transactional; $__params = request()->route() ? request()->route()->parameters() : []; $__ogLoc = ['en' => 'en_US', 'fil' => 'fil_PH', 'ceb' => 'ceb_PH']; $__altUrl = function (string $lc) use ($__rn, $__params) { return route($__rn, array_merge($__params, ['locale' => $lc])); }; @endphp {{ $pageTitle }} @if(!empty($seoData['meta_keywords'])) @endif @if($__transactional) @endif {{-- hreflang alternates — reciprocal per-locale URLs of this page (+ x-default → EN) --}} @if($__indexable) @foreach(\App\Models\WebsiteContent::LOCALES as $__lc => $__label) @endforeach @endif {{-- Open Graph --}} @if($__indexable) @foreach(\App\Models\WebsiteContent::LOCALES as $__lc => $__label) @if($__lc !== app()->getLocale()) @endif @endforeach @endif @if($ogImgAbs)@endif {{-- Twitter Card --}} @if($ogImgAbs)@endif {{-- schema.org — Hotel (sitewide) --}} @stack('jsonld') @stack('meta') @vite(['resources/css/app.css', 'resources/js/app.js']) {{-- Website accent color: remaps the teal scale to the CMS-selected accent (public site only). --}} @php $__accentCss = \App\Support\AccentPalette::cssOverride(\App\Models\Setting::get('site_accent', 'teal')); @endphp @if($__accentCss)@endif @php $propName = \App\Models\Setting::get('property_name', 'Parkview Hotel CDO'); $siteLogo = \App\Models\Setting::get('site_logo'); $logoUrl = $siteLogo ? \Illuminate\Support\Facades\Storage::url($siteLogo) : null; $siteContact = $siteContact ?? \App\Models\WebsiteContent::section('contact'); $sitePromo = $sitePromo ?? \App\Models\WebsiteContent::section('promo'); // Promo / announcement bar $promoOn = ($sitePromo['promo_enabled'] ?? '0') === '1' && !empty($sitePromo['promo_text']); $promoKey = 'promo_' . substr(md5(($sitePromo['promo_text'] ?? '') . ($sitePromo['promo_countdown_to'] ?? '')), 0, 10); // Chat channels $chatOn = ($siteContact['chat_enabled'] ?? '0') === '1'; $msgrRaw = trim($siteContact['messenger_url'] ?? ''); $msgrUrl = $msgrRaw ? (\Illuminate\Support\Str::startsWith($msgrRaw, 'http') ? $msgrRaw : 'https://m.me/' . ltrim($msgrRaw, '@/')) : ''; $viberNum = preg_replace('/[^0-9+]/', '', $siteContact['viber_number'] ?? ''); $waNum = preg_replace('/[^0-9]/', '', $siteContact['whatsapp_number'] ?? ''); $callNum = preg_replace('/[^0-9+]/', '', $siteContact['phone'] ?? ''); $hasChat = $chatOn && ($msgrUrl || $viberNum || $waNum); @endphp {{-- ===== PROMO / ANNOUNCEMENT BAR ===== --}} @if($promoOn)
{{ $sitePromo['promo_text'] }} @if(!empty($sitePromo['promo_cta_url']) && !empty($sitePromo['promo_cta_label'])) {{ $sitePromo['promo_cta_label'] }} @endif
@endif {{-- ===== HEADER ===== --}}
{{-- Logo --}} @if($logoUrl) {{ $propName }} @else
{{ $propName }} @endif
{{-- Desktop nav --}} {{-- CTA + hamburger --}}
{{-- Language switcher --}} @if($bookingEnabled) @endif
{{-- Mobile menu --}}
Home Rooms & Rates Offers About Contact

Discover

Explore CDO News & Updates Photo Gallery FAQs Guest Policies How to Pay @if($bookingEnabled) Book Now → @endif
Language @foreach(\App\Models\WebsiteContent::LOCALES as $code => $name) {{ $name }} @endforeach
{{-- ===== PAGE CONTENT ===== --}} @yield('content') {{-- ===== FOOTER ===== --}} {{-- ===== FLOATING CHAT CTA ===== --}} @if($hasChat)
@if($msgrUrl) Messenger @endif @if($viberNum) Viber @endif @if($waNum) WhatsApp @endif @if($callNum) Call @endif
@endif @stack('scripts')