@inject('META', App\Models\Webpage::class)
@php
$slug = substr(request()->getPathInfo(), 1);
if (strlen($slug) > 0 && $slug[-1] == '/') {
$slug = substr($slug, 0, -1);
}
$universal = $META::where('slug', '*')->first();
$data = $META::where('slug', $slug)->first();
// dd($data);
@endphp
@if (is_file(public_path('manifest.json')))
@endif
{{ $data['page_title'] ?? '' ?: $universal['page_title'] ?? '' ?: 'Traveller Detail' }}
{!! ($universal['other_meta_tags'] ?? '') . ($data['other_meta_tags'] ?? '') !!}
@if ($data['canonical_url'] ?? '')
@endif
@stack('meta')
@stack('css')
@include('user.components.header')
@yield('main')
@include('user.components.footer')
@include('components.popups')
@stack('others')
@stack('js')