{{-- ============================================================ Header — top bar + sticky navbar + mega menu + mobile drawer ============================================================ --}} @php // Safe route resolver: returns the URL if the named route exists, else '#' $r = fn ($name, ...$args) => \Illuminate\Support\Facades\Route::has($name) ? route($name, ...$args) : '#'; // Contact details come from General Settings; social links are managed separately. $sitePhone = settings('phone'); $siteEmail = settings('email'); $siteTel = $sitePhone ? preg_replace('/[^\d+]/', '', $sitePhone) : null; $homePage = \App\Models\CmsPage::published()->where('slug', '/')->first(); $currentLanguage = defaultLanguage(); $topSocial = \App\Models\SocialLink::active()->ordered()->get(); @endphp {{-- Top utility bar --}}
@if($sitePhone) {{ $sitePhone }}@endif @if($siteEmail) {{ $siteEmail }}@endif @if(settings('address_short') ?: settings('address')) {{ settings('address_short') ?: settings('address') }} @endif
@if(multiVendorEnabled()) {{ ___('vendor.Become a vendor') }} @endif {{ ___('frontend.track_booking') }} @if($topSocial->isNotEmpty()) @foreach($topSocial as $social) @endforeach @endif
{{-- Main header --}} {{-- Search overlay --}} @if(moduleEnabled('tours'))
@endif {{-- Mobile drawer --}}