@php
$deviceType = app()->bound('device') ? app('device') : null;
$isMobile = request('device') === 'mobile'
|| $deviceType === 'mobile'
|| isMobileDevice();
$siteTitle = $title ?? 'CHAOSAPI';
$siteDescription = $deskripsi ?? 'CHAOSAPI terbaik dan terpercaya';
$siteKeywords = $keyword ?? 'slot online, casino, judi online';
$siteFavicon = $favicon ?? asset('favicon.png');
$siteUrl = $urlweb ?? url()->current();
@endphp
{{ $siteTitle }}
{{-- ================= SEO ================= --}}
{{-- ================= OPEN GRAPH ================= --}}
{{-- ================= ICONS ================= --}}
{{-- ================= DYNAMIC STYLE ================= --}}
@if (!empty($styles))
@endif
{{-- ================= GLOBAL APP CONFIG ================= --}}
@vite(['resources/css/app.css', 'resources/js/app.js'])
@livewireStyles
{{-- ================= HEADER ================= --}}
@if ($isMobile)
@include('mobile.partials.header')
@else
@include('desktop.partials.header')
@endif
{{-- ================= CONTENT ================= --}}
@if (!empty($isErrorPage))
@yield('content')
@else
@yield('content')
@endif
{{-- ================= FOOTER ================= --}}
@if ($isMobile)
@unless (request()->routeIs('register') || !empty($isErrorPage))
@includeIf('mobile.partials.text')
@endunless
@if (empty($isErrorPage))
@includeIf('mobile.partials.footer')
@endif
@includeIf('mobile.partials.sticky_app')
@else
@if (empty($isErrorPage))
@includeIf('desktop.partials.footer')
@endif
@if($livechat && $livechat->is_active)
@php
$url = null;
if ($livechat->provider === 'livechat') {
$url = "https://direct.lc.chat/{$livechat->script}";
}
if ($livechat->provider === 'tawk') {
$url = "https://tawk.to/chat/{$livechat->script}";
}
@endphp
@if($url)
-
@endif
@endif
@includeIf('desktop.partials.sticky_app')
@endif
{{-- ================= TOAST ================= --}}
@if (session()->hasAny(['success', 'error', 'info']))
@endif
@livewireScripts
@stack('scripts')