From 869a53d1681eddc811ced105043684d684531111 Mon Sep 17 00:00:00 2001 From: isaacclad Date: Fri, 19 Jun 2026 00:20:13 +0000 Subject: [PATCH] Sidebar: remove centralized account links; redirect Wallet/Billing to hub Remove the Wallet/Billing/Team links from the hosting sidebar (managed centrally at account.ladill.com); keep Support (deep-links to hub) and Settings. Redirect the now-orphaned account.wallet/account.billing routes to the central hub so bookmarks still work. Co-Authored-By: Claude Opus 4.8 --- resources/views/partials/sidebar.blade.php | 18 +----------------- routes/web.php | 5 +++-- 2 files changed, 4 insertions(+), 19 deletions(-) diff --git a/resources/views/partials/sidebar.blade.php b/resources/views/partials/sidebar.blade.php index 0718067..d782363 100644 --- a/resources/views/partials/sidebar.blade.php +++ b/resources/views/partials/sidebar.blade.php @@ -27,23 +27,7 @@ {{ $item['name'] }} @endforeach -

Account

- @php - $accountNav = [ - ['name' => 'Wallet', 'route' => route('account.wallet'), 'active' => request()->routeIs('account.wallet'), - 'icon' => ''], - ['name' => 'Billing', 'route' => route('account.billing'), 'active' => request()->routeIs('account.billing'), - 'icon' => ''], - ['name' => 'Team', 'route' => ladill_account_url('/account/team'), 'active' => false, - 'icon' => ''], - ]; - @endphp - @foreach($accountNav as $item) - - {!! $item['icon'] !!} - {{ $item['name'] }} - - @endforeach + {{-- Wallet, Billing and Team are managed centrally at account.ladill.com --}} @include('partials.sidebar-support') diff --git a/routes/web.php b/routes/web.php index a53d2df..0123517 100644 --- a/routes/web.php +++ b/routes/web.php @@ -122,8 +122,9 @@ Route::middleware(['auth'])->group(function () use ($serversApp) { Route::post('/hosting/legacy/{hostingOrder}/reset-panel-password', [HostingController::class, 'resetPanelPassword'])->name('hosting.legacy.reset-panel-password'); Route::delete('/hosting/legacy/{hostingOrder}', [HostingController::class, 'destroy'])->name('hosting.legacy.destroy'); - Route::get('/account/wallet', [AccountController::class, 'wallet'])->name('account.wallet'); - Route::get('/account/billing', [AccountController::class, 'billing'])->name('account.billing'); + // Wallet & Billing live on the central account hub (account.ladill.com). + Route::get('/account/wallet', fn () => redirect()->away(ladill_account_url('/wallet')))->name('account.wallet'); + Route::get('/account/billing', fn () => redirect()->away(ladill_account_url('/billing')))->name('account.billing'); Route::get('/account/settings', [AccountController::class, 'settings'])->name('account.settings'); Route::put('/account/settings', [AccountController::class, 'updateSettings'])->name('account.settings.update');