@include('partials.favicon') @vite(['resources/css/app.css', 'resources/js/app.js'])
@include('partials.topbar')
@include('partials.flash') @yield('content')
@auth @php $navUser = auth()->user(); $navInitials = collect(explode(' ', trim((string) $navUser?->name))) ->filter()->take(2) ->map(fn ($part) => strtoupper(substr($part, 0, 1))) ->implode(''); $navAcct = 'https://'.config('app.account_domain'); @endphp @include('partials.mobile-bottom-nav', [ 'homeUrl' => route('hosting.dashboard'), 'homeActive' => request()->routeIs('hosting.dashboard') || request()->routeIs('hosting.index'), 'searchUrl' => route('hosting.search'), 'searchActive' => request()->routeIs('hosting.search'), 'notificationsUrl' => route('notifications.index'), 'notificationsActive' => request()->routeIs('notifications.*'), 'unreadUrl' => route('notifications.unread'), 'profileActive' => false, 'profileName' => $navUser?->name ?? '', 'profileSubtitle' => $navUser?->email ?? '', 'profileMenuItems' => [ ['type' => 'link', 'label' => 'Profile', 'href' => $navAcct.'/profile'], ['type' => 'link', 'label' => 'Account Settings', 'href' => $navAcct.'/account-settings'], ['type' => 'logout', 'label' => 'Logout', 'action' => route('logout')], ], 'avatarUrl' => $navUser?->avatar_url, 'initials' => $navInitials !== '' ? $navInitials : 'U', ]) @include('partials.afia') @endauth @include('partials.sso-keepalive')