@php
$mobileFullScreenPage = request()->routeIs('account.settings')
|| request()->routeIs('mini.payment-qrs.create')
|| request()->routeIs('mini.payment-qrs.show');
$qrMobilePage = request()->routeIs('mini.payment-qrs.create') || request()->routeIs('mini.payment-qrs.show');
@endphp
$qrMobilePage])>
{{-- Mobile sidebar overlay --}}
{{-- Sidebar — full product nav (Bird and other extracted apps have their
own nav in their own apps). --}}
@php $sidebarPartial = 'partials.sidebar'; @endphp
{{-- Main content --}}
@include('partials.topbar-qr')
$mobileFullScreenPage,
])>
@include('partials.flash')
$qrMobilePage,
'p-0 pb-24 lg:p-6 lg:pb-6' => $mobileFullScreenPage && ! $qrMobilePage,
'p-6 pb-24 lg:pb-6' => ! $mobileFullScreenPage,
])>
{{ $slot }}
{{-- Mobile Bottom Navigation (hidden on QR create/show which have their own action bar) --}}
@unless(request()->routeIs('mini.payment-qrs.create') || request()->routeIs('mini.payment-qrs.show'))
@php
$navUser = auth()->user();
$navInitials = collect(explode(' ', trim((string) $navUser?->name)))
->filter()->take(2)
->map(fn ($part) => strtoupper(substr($part, 0, 1)))
->implode('');
@endphp
@include('partials.mobile-bottom-nav', [
'homeUrl' => route('mini.dashboard'),
'homeActive' => request()->routeIs('mini.dashboard'),
'searchUrl' => route('mini.search'),
'searchActive' => request()->routeIs('mini.search'),
'notificationsUrl' => route('notifications.index'),
'notificationsActive' => request()->routeIs('notifications.*'),
'unreadUrl' => route('notifications.unread'),
'profileActive' => request()->routeIs('account.settings'),
'profileName' => $navUser?->name ?? '',
'profileSubtitle' => $navUser?->email ?? '',
'profileMenuItems' => \App\Support\UserProfileMenu::items($navUser),
['type' => 'link', 'label' => 'Account Settings', 'href' => ladill_account_url('account-settings')],
['type' => 'link', 'label' => 'Overview', 'href' => route('mini.dashboard')],
['type' => 'logout', 'label' => 'Logout', 'action' => route('logout')],
],
'avatarUrl' => $navUser?->avatarUrl(),
'initials' => $navInitials !== '' ? $navInitials : 'U',
])
@endunless
@if ($qrMobilePage)
@endif
@include('partials.afia')
@include('partials.sso-keepalive')
@include('partials.confirm-prompt')