From d369de0ce4cf9f2d8ee744e8a8caa914a7dabde4 Mon Sep 17 00:00:00 2001 From: isaacclad Date: Sun, 28 Jun 2026 14:07:07 +0000 Subject: [PATCH] Place wallet widget after Billing link in mobile profile sheet. Remove duplicate Billing header above Home; wallet card follows Billing in menu order to match the desktop avatar dropdown. Co-authored-by: Cursor --- .../partials/mobile-bottom-nav.blade.php | 21 ++----------------- .../partials/user-profile-menu.blade.php | 5 ++++- 2 files changed, 6 insertions(+), 20 deletions(-) diff --git a/resources/views/partials/mobile-bottom-nav.blade.php b/resources/views/partials/mobile-bottom-nav.blade.php index 9cea189..5fbdf50 100644 --- a/resources/views/partials/mobile-bottom-nav.blade.php +++ b/resources/views/partials/mobile-bottom-nav.blade.php @@ -15,13 +15,6 @@ if ($profileMenuItems === [] && $profileUrl !== '#') { $profileMenuItems = [['type' => 'link', 'label' => 'Profile', 'href' => $profileUrl]]; } - $walletBalanceRoute = (string) config('billing.wallet_balance_route', 'wallet.balance'); - $showWalletInSheet = \Illuminate\Support\Facades\Route::has($walletBalanceRoute) - || collect($profileMenuItems)->contains(fn (array $item): bool => ($item['type'] ?? '') === 'wallet'); - $sheetMenuItems = array_values(array_filter( - $profileMenuItems, - fn (array $item): bool => ($item['type'] ?? 'link') !== 'wallet' - )); $navActive = fn (bool $active) => $active ? 'text-indigo-600' : 'text-slate-600'; @endphp
@@ -95,6 +88,7 @@ class="absolute inset-0 bg-slate-900/40 backdrop-blur-[1px]">
@endif - @if ($showWalletInSheet) -
-

Billing

- @include('partials.wallet-widget', [ - 'onNavigate' => 'profileOpen = false', - 'class' => 'mx-0', - ]) -
- @endif - @include('partials.user-profile-menu', [ - 'items' => $sheetMenuItems, + 'items' => $profileMenuItems, 'variant' => 'sheet', 'onNavigate' => 'profileOpen = false', ]) diff --git a/resources/views/partials/user-profile-menu.blade.php b/resources/views/partials/user-profile-menu.blade.php index c78cb3e..6ddfea8 100644 --- a/resources/views/partials/user-profile-menu.blade.php +++ b/resources/views/partials/user-profile-menu.blade.php @@ -54,7 +54,10 @@ {{ $item['label'] }} @elseif (($item['type'] ?? '') === 'wallet') - @includeIf('partials.wallet-widget') + @includeIf('partials.wallet-widget', [ + 'onNavigate' => $onNavigate, + 'class' => $variant === 'sheet' ? 'mx-2' : 'mx-1', + ]) @elseif (($item['type'] ?? '') === 'logout') @if ($variant !== 'sheet')