From 3f9b84af6743c291cb0f7423767ca7495b4c6502 Mon Sep 17 00:00:00 2001 From: isaacclad Date: Sun, 7 Jun 2026 16:44:11 +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 94a90dc..8d18f55 100644 --- a/config/mobile-topbar.php +++ b/config/mobile-topbar.php @@ -2,18 +2,4 @@ return [ 'app_name' => 'QR Plus', - 'default_title' => 'Overview', - 'patterns' => [ - 'qr.dashboard' => 'Overview', - 'qr.search' => 'Search', - 'user.qr-codes.index' => 'QR codes', - 'user.qr-codes.create' => 'Create QR code', - 'user.qr-codes.show' => 'QR code', - 'account.wallet' => 'Wallet', - 'account.billing' => 'Billing', - 'account.team*' => 'Team', - 'account.settings' => 'Settings', - 'account.developers*' => 'Developers', - '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 }}