From ca9bc885db746d7743a2c7af98666da59b88801f Mon Sep 17 00:00:00 2001 From: isaacclad Date: Sun, 7 Jun 2026 16:44:12 +0000 Subject: [PATCH] Show only Ladill app names in the mobile header. Remove route-based page titles and the uppercase subtitle line so mobile headers display a single title like Ladill Bird. Co-authored-by: Cursor --- app/Support/MobileTopbar.php | 14 ++++---------- config/mobile-topbar.php | 14 -------------- .../views/partials/mobile-topbar-title.blade.php | 6 +----- 3 files changed, 5 insertions(+), 29 deletions(-) diff --git a/app/Support/MobileTopbar.php b/app/Support/MobileTopbar.php index 5115afc..cc91c71 100644 --- a/app/Support/MobileTopbar.php +++ b/app/Support/MobileTopbar.php @@ -6,19 +6,13 @@ class MobileTopbar { public static function resolve(): array { - $config = config('mobile-topbar', []); - $subtitle = $config['app_name'] ?? 'Ladill'; - $title = $config['default_title'] ?? 'Overview'; + $appName = config('mobile-topbar.app_name', 'Ladill'); - foreach ($config['patterns'] ?? [] as $pattern => $patternTitle) { - if (request()->routeIs($pattern)) { - $title = is_callable($patternTitle) ? $patternTitle() : $patternTitle; - break; - } - } + $title = $appName === 'Ladill' + ? 'Ladill' + : "Ladill {$appName}"; return [ - 'mobileTopbarSubtitle' => $subtitle, 'mobileTopbarTitle' => $title, ]; } diff --git a/config/mobile-topbar.php b/config/mobile-topbar.php index 7612476..ec3c949 100644 --- a/config/mobile-topbar.php +++ b/config/mobile-topbar.php @@ -2,18 +2,4 @@ return [ 'app_name' => 'Servers', - 'default_title' => 'Dashboard', - 'patterns' => [ - 'servers.dashboard' => 'Dashboard', - 'servers.search' => 'Search', - 'servers.vps' => 'VPS', - 'servers.dedicated' => 'Dedicated', - 'servers.orders.*' => 'Orders', - 'hosting.server-panel.*' => 'Server panel', - 'account.wallet' => 'Wallet', - 'account.billing' => 'Billing', - 'account.team*' => 'Team', - 'account.settings' => 'Settings', - 'notifications.*' => 'Notifications', - ], ]; diff --git a/resources/views/partials/mobile-topbar-title.blade.php b/resources/views/partials/mobile-topbar-title.blade.php index 16dfd59..ff10b4a 100644 --- a/resources/views/partials/mobile-topbar-title.blade.php +++ b/resources/views/partials/mobile-topbar-title.blade.php @@ -1,10 +1,6 @@ @php - $subtitle = $mobileTopbarSubtitle ?? null; - $title = $mobileTopbarTitle ?? 'Overview'; + $title = $mobileTopbarTitle ?? 'Ladill'; @endphp
- @if ($subtitle) -

{{ $subtitle }}

- @endif

{{ $title }}