Reorganize Woo Manager mobile header and store switcher placement.
Deploy Ladill Woo Manager / deploy (push) Successful in 1m7s

Desktop store switcher now sits after search; mobile shows route-based page titles, bottom nav, and store switching inside the profile sheet.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-07 02:45:14 +00:00
co-authored by Cursor
parent 26b1d5b433
commit 93bfc3e2d2
18 changed files with 165 additions and 20 deletions
+25
View File
@@ -27,6 +27,31 @@
</div>
</div>
@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