Sidebar: remove centralized account links; redirect Wallet/Billing to hub
Deploy Ladill Hosting / deploy (push) Successful in 44s

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 <noreply@anthropic.com>
This commit is contained in:
isaacclad
2026-06-19 00:20:13 +00:00
co-authored by Claude Opus 4.8
parent 2ff74c45ac
commit 869a53d168
2 changed files with 4 additions and 19 deletions
+1 -17
View File
@@ -27,23 +27,7 @@
<span>{{ $item['name'] }}</span> <span>{{ $item['name'] }}</span>
</a> </a>
@endforeach @endforeach
<p class="px-3 pb-1 pt-5 text-[10px] font-bold uppercase tracking-widest text-slate-400">Account</p> {{-- Wallet, Billing and Team are managed centrally at account.ladill.com --}}
@php
$accountNav = [
['name' => 'Wallet', 'route' => route('account.wallet'), 'active' => request()->routeIs('account.wallet'),
'icon' => '<path stroke-linecap="round" stroke-linejoin="round" d="M21 12a2.25 2.25 0 0 0-2.25-2.25H5.25A2.25 2.25 0 0 0 3 12m18 0v6a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 18v-6m18 0V9M3 12V9m18 0a2.25 2.25 0 0 0-2.25-2.25H5.25A2.25 2.25 0 0 0 3 9m18 0V6a2.25 2.25 0 0 0-2.25-2.25H5.25A2.25 2.25 0 0 0 3 6v3" />'],
['name' => 'Billing', 'route' => route('account.billing'), 'active' => request()->routeIs('account.billing'),
'icon' => '<path stroke-linecap="round" stroke-linejoin="round" d="M2.25 8.25h19.5M2.25 9h19.5m-16.5 5.25h6m-6 2.25h3m-3.75 3h15a2.25 2.25 0 0 0 2.25-2.25V6.75A2.25 2.25 0 0 0 19.5 4.5h-15a2.25 2.25 0 0 0-2.25 2.25v10.5A2.25 2.25 0 0 0 6.75 19.5Z" />'],
['name' => 'Team', 'route' => ladill_account_url('/account/team'), 'active' => false,
'icon' => '<path stroke-linecap="round" stroke-linejoin="round" d="M15 19.128a9.38 9.38 0 0 0 2.625.372 9.337 9.337 0 0 0 4.121-.952 4.125 4.125 0 0 0-7.533-2.493M15 19.128v-.003c0-1.113-.285-2.16-.786-3.07M15 19.128v.106A12.318 12.318 0 0 1 8.624 21c-2.331 0-4.512-.645-6.374-1.766l-.001-.109a6.375 6.375 0 0 1 11.964-3.07M12 6.375a3.375 3.375 0 1 1-6.75 0 3.375 3.375 0 0 1 6.75 0Zm8.25 2.25a2.625 2.625 0 1 1-5.25 0 2.625 2.625 0 0 1 5.25 0Z" />'],
];
@endphp
@foreach($accountNav as $item)
<a href="{{ $item['route'] }}" class="group flex items-center gap-3 rounded-lg px-3 py-2 text-[13px] transition {{ $item['active'] ? 'bg-indigo-50 text-indigo-700 font-semibold' : 'text-slate-600 hover:bg-slate-50 hover:text-slate-900' }}">
<svg class="h-[18px] w-[18px] shrink-0 {{ $item['active'] ? 'text-indigo-600' : 'text-slate-400' }}" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">{!! $item['icon'] !!}</svg>
<span>{{ $item['name'] }}</span>
</a>
@endforeach
@include('partials.sidebar-support') @include('partials.sidebar-support')
</nav> </nav>
+3 -2
View File
@@ -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::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::delete('/hosting/legacy/{hostingOrder}', [HostingController::class, 'destroy'])->name('hosting.legacy.destroy');
Route::get('/account/wallet', [AccountController::class, 'wallet'])->name('account.wallet'); // Wallet & Billing live on the central account hub (account.ladill.com).
Route::get('/account/billing', [AccountController::class, 'billing'])->name('account.billing'); 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::get('/account/settings', [AccountController::class, 'settings'])->name('account.settings');
Route::put('/account/settings', [AccountController::class, 'updateSettings'])->name('account.settings.update'); Route::put('/account/settings', [AccountController::class, 'updateSettings'])->name('account.settings.update');