@stack('head') @yield('extra_styles') {{-- Device fingerprint: computes a stable per-device hash on first visit, caches it in localStorage + the `_fp` cookie so the server can dedupe guests across IP/VPN/country changes. Loaded async — never blocks paint. --}} @include('layouts.partials.header') @if(session('impersonator_id'))
Impersonating {{ Auth::user()->name }} — you are acting as this user
@csrf
@endif
@include('layouts.partials.sidebar')
@yield('content')
@auth @include('layouts.partials.upload-modal') @include('layouts.partials.edit-video-modal') @include('layouts.partials.sports-match-modal') @endauth @include('layouts.partials.add-to-playlist-modal') @auth @endauth
@yield('scripts') {{-- ═══════════════════════════════════════════════════════════ ADMIN ERROR CATCHER — only rendered for super_admins ═══════════════════════════════════════════════════════════ --}} @auth @if(Auth::user()->isSuperAdmin())
@endif @endauth {{-- Profile-visit tracking: any link with data-profile-visit-url fires a beacon on click --}}