diff --git a/app/Support/UserProfileMenu.php b/app/Support/UserProfileMenu.php index 2806cdb..9461caf 100644 --- a/app/Support/UserProfileMenu.php +++ b/app/Support/UserProfileMenu.php @@ -43,9 +43,8 @@ class UserProfileMenu ]; } - - if (Route::has((string) config("billing.wallet_balance_route", "wallet.balance"))) { - $items[] = ["type" => "wallet"]; + if (Route::has((string) config('billing.wallet_balance_route', 'wallet.balance'))) { + $items[] = ['type' => 'wallet']; } if (self::userIsAdmin($user)) { diff --git a/resources/views/partials/mobile-bottom-nav.blade.php b/resources/views/partials/mobile-bottom-nav.blade.php index 8613313..499483f 100644 --- a/resources/views/partials/mobile-bottom-nav.blade.php +++ b/resources/views/partials/mobile-bottom-nav.blade.php @@ -1,5 +1,9 @@ @php - $gridCols = !empty($centerCompose) ? 'grid-cols-5' : 'grid-cols-4'; + $showSearch = isset($searchUrl) && $searchUrl !== null && $searchUrl !== '#'; + $gridCols = match (true) { + ! empty($centerCompose) => $showSearch ? 'grid-cols-5' : 'grid-cols-4', + default => $showSearch ? 'grid-cols-4' : 'grid-cols-3', + }; $avatarUrl = $avatarUrl ?? null; $initials = $initials ?? 'U'; $notificationsUrl = $notificationsUrl ?? '#'; @@ -23,11 +27,13 @@ Home - - - Search - + @if ($showSearch) + + + Search + + @endif @if (!empty($centerCompose))