@props(['title' => 'Ladill Woo Manager']) {{ $title }} @include('partials.favicon') @vite(['resources/css/app.css', 'resources/js/app.js'])
@include('partials.topbar')
@include('partials.flash') {{ $slot }}
@auth @php $navUser = auth()->user(); $navInitials = collect(explode(' ', trim((string) $navUser?->name))) ->filter()->take(2) ->map(fn ($part) => strtoupper(substr($part, 0, 1))) ->implode(''); $navAvatarUrl = $navUser && method_exists($navUser, 'avatarUrl') ? $navUser->avatarUrl() : ($navUser?->avatar_url ?? null); @endphp @include('partials.mobile-bottom-nav', [ 'homeUrl' => route('woo.dashboard'), 'homeActive' => request()->routeIs('woo.dashboard'), 'searchUrl' => route('woo.orders.index'), 'searchActive' => request()->routeIs('woo.orders.*'), 'notificationsUrl' => route('notifications.index'), 'notificationsActive' => request()->routeIs('notifications.*'), 'unreadUrl' => route('notifications.unread'), 'profileActive' => false, 'profileName' => $navUser?->name ?? '', 'profileSubtitle' => $navUser?->email ?? '', 'profileMenuItems' => \App\Support\UserProfileMenu::items($navUser), 'avatarUrl' => $navAvatarUrl, 'initials' => $navInitials !== '' ? $navInitials : 'U', ]) @include('partials.sso-keepalive') @include('partials.afia') @endauth