diff --git a/resources/views/hosting/panel/partials/sidebar.blade.php b/resources/views/hosting/panel/partials/sidebar.blade.php
index 15949bd..3c16f0b 100644
--- a/resources/views/hosting/panel/partials/sidebar.blade.php
+++ b/resources/views/hosting/panel/partials/sidebar.blade.php
@@ -89,17 +89,17 @@
'permission' => 'viewLogs',
'icon' => '',
],
- [
- 'name' => 'Settings',
- 'route' => route('hosting.panel.settings', $account),
- 'active' => str_starts_with($currentRoute, 'hosting.panel.settings'),
- 'capability' => 'settings',
- 'permission' => 'viewSettings',
- 'icon' => '',
- ],
],
];
+ $settingsItem = [
+ 'name' => 'Settings',
+ 'route' => route('hosting.panel.settings', $account),
+ 'active' => str_starts_with($currentRoute, 'hosting.panel.settings'),
+ 'icon' => '',
+ ];
+ $showSettings = $panelRuntime->supports('settings') && $currentUser?->can('viewSettings', $account);
+
foreach ($navGroups as $group => $items) {
$navGroups[$group] = array_values(array_filter($items, static function (array $item) use ($panelRuntime, $currentUser, $account): bool {
$capability = $item['capability'] ?? null;
@@ -198,6 +198,18 @@
@endif
+ @if ($showSettings)
+
+ @endif
+
{{-- Account Info Footer --}}
diff --git a/resources/views/partials/sidebar.blade.php b/resources/views/partials/sidebar.blade.php
index c62cba6..428af42 100644
--- a/resources/views/partials/sidebar.blade.php
+++ b/resources/views/partials/sidebar.blade.php
@@ -36,8 +36,6 @@
'icon' => '
'],
['name' => 'Team', 'route' => route('account.team'), 'active' => request()->routeIs('account.team'),
'icon' => '
'],
- ['name' => 'Settings', 'route' => route('account.settings'), 'active' => request()->routeIs('account.settings'),
- 'icon' => '
'],
];
@endphp
@foreach($accountNav as $item)
@@ -47,4 +45,14 @@
@endforeach
+
+