diff --git a/web/app/Filament/Pages/Settings.php b/web/app/Filament/Pages/Settings.php new file mode 100644 index 0000000..293fc17 --- /dev/null +++ b/web/app/Filament/Pages/Settings.php @@ -0,0 +1,236 @@ +[ + 'title'=>'Security', + 'icon'=>'heroicon-o-lock-closed', + 'links' =>[ + [ + 'title'=>'Users', + 'icon'=>'heroicon-o-user', + 'url'=> route('filament.admin.resources.users.index') + ], + [ + 'title'=>'API Tokens', + 'icon'=>'heroicon-o-key', + 'url'=> route('filament.admin.resources.api-keys.index') + ], + ] + ], + 'Assistance and Troubleshooting'=>[ + 'title'=>'Assistance and Troubleshooting', + 'icon'=>'heroicon-o-lifebuoy', + 'links' =>[ + [ + 'title'=>'Logs', + 'icon'=>'heroicon-o-clipboard-list', + 'url'=> '' + ], + [ + 'title'=>'Support', + 'icon'=>'heroicon-o-chat-alt', + 'url'=>'' + ], + ] + ], + 'Tools & Resources'=>[ + 'title'=>'Tools & Resources', + 'icon'=>'heroicon-o-cog', + 'links' =>[ + [ + 'title'=>'File Manager', + 'icon'=>'heroicon-o-folder', + 'url'=> '' + ], + [ + 'title'=>'Database Manager', + 'icon'=>'heroicon-o-database', + 'url'=>'' + ], + [ + 'title'=>'Task Scheduler', + 'icon'=>'heroicon-o-clock', + 'url'=>'' + ], + [ + 'title'=>'Cron Jobs', + 'icon'=>'heroicon-o-clock', + 'url'=>'' + ], + [ + 'title'=>'PHP Info', + 'icon'=>'heroicon-o-information-circle', + 'url'=>'' + ], + ] + ], + 'General Settings'=>[ + 'title'=>'General Settings', + 'icon'=>'heroicon-o-cog', + 'links' =>[ + [ + 'title'=>'Site Settings', + 'icon'=>'heroicon-o-cog', + 'url'=> '' + ], + [ + 'title'=>'Appearance', + 'icon'=>'heroicon-o-color-swatch', + 'url'=>'' + ], + [ + 'title'=>'Email Settings', + 'icon'=>'heroicon-o-mail', + 'url'=>'' + ], + [ + 'title'=>'API Settings', + 'icon'=>'heroicon-o-key', + 'url'=>'' + ], + [ + 'title'=>'Backup Settings', + 'icon'=>'heroicon-o-cloud-upload', + 'url'=>'' + ], + [ + 'title'=>'Update Settings', + 'icon'=>'heroicon-o-cloud-upload', + 'url'=>'' + ], + ] + ], + 'Server Management'=>[ + 'title'=>'Server Management', + 'icon'=>'heroicon-o-server', + 'links'=> [ + [ + 'title'=>'Server Information', + 'icon'=>'heroicon-o-information-circle', + 'url'=> '' + ], + [ + 'title'=>'Server Status', + 'icon'=>'heroicon-o-check-circle', + 'url'=>'' + ], + [ + 'title'=>'Server Resources', + 'icon'=>'heroicon-o-chart-pie', + 'url'=>'' + ], + [ + 'title'=>'Server Logs', + 'icon'=>'heroicon-o-clipboard-list', + 'url'=>'' + ], + [ + 'title'=>'Server Updates', + 'icon'=>'heroicon-o-cloud-upload', + 'url'=>'' + ], + ] + ], + 'Statistics'=> [ + 'title'=>'Statistics', + 'icon'=>'heroicon-o-chart-bar', + 'links'=> [ + [ + 'title'=>'Server Statistics', + 'icon'=>'heroicon-o-chart-bar', + 'url'=> '' + ], + [ + 'title'=>'User Statistics', + 'icon'=>'heroicon-o-chart-bar', + 'url'=>'' + ], + ] + ], + 'Mail'=> [ + 'title'=>'Mail', + 'icon'=>'heroicon-o-envelope', + 'links'=> [ + [ + 'title'=>'Mail Settings', + 'icon'=>'heroicon-o-cog', + 'url'=> '' + ], + [ + 'title'=>'Mail Logs', + 'icon'=>'heroicon-o-clipboard-list', + 'url'=>'' + ], + ] + ], + 'Applications & Databases'=>[ + 'title'=>'Applications & Databases', + 'icon'=>'heroicon-o-cube', + 'links'=> [ + [ + 'title'=>'Applications', + 'icon'=>'heroicon-o-cube', + 'url'=> '' + ], + [ + 'title'=>'Databases', + 'icon'=>'heroicon-o-database', + 'url'=>'' + ], + ] + ], + 'Phyre'=> [ + 'title'=>'Phyre', + 'icon'=>'heroicon-o-fire', + 'links'=> [ + [ + 'title'=>'Phyre Settings', + 'icon'=>'heroicon-o-cog', + 'url'=> '' + ], + [ + 'title'=>'Phyre Logs', + 'icon'=>'heroicon-o-clipboard-list', + 'url'=>'' + ], + ] + ], + 'Phyre Apperance'=> [ + 'title'=>'Phyre Apperance', + 'icon'=>'heroicon-o-paint-brush', + 'links'=> [ + [ + 'title'=>'Phyre Theme', + 'icon'=>'heroicon-o-color-swatch', + 'url'=> '' + ], + [ + 'title'=>'Phyre Logo', + 'icon'=>'heroicon-o-photograph', + 'url'=>'' + ], + ] + ] + ]; + + return [ + 'linkGroups' => $links + ]; + } +} diff --git a/web/app/Filament/Pages/Settings/Settings.php b/web/app/Filament/Pages/Settings/General.php similarity index 96% rename from web/app/Filament/Pages/Settings/Settings.php rename to web/app/Filament/Pages/Settings/General.php index 4d9bb58..3df7e5b 100644 --- a/web/app/Filament/Pages/Settings/Settings.php +++ b/web/app/Filament/Pages/Settings/General.php @@ -17,11 +17,10 @@ use Monarobase\CountryList\CountryList; use Outerweb\FilamentSettings\Filament\Pages\Settings as BaseSettings; use Symfony\Component\Console\Input\Input; -class Settings extends BaseSettings +class General extends BaseSettings { - protected static ?string $navigationGroup = 'Server Management'; - protected static ?int $navigationSort = 4; + protected static bool $shouldRegisterNavigation = false; public function save() : void { diff --git a/web/app/Filament/Pages/UpdateLog.php b/web/app/Filament/Pages/UpdateLog.php index f4b0aae..bebd4b7 100644 --- a/web/app/Filament/Pages/UpdateLog.php +++ b/web/app/Filament/Pages/UpdateLog.php @@ -1,6 +1,6 @@ pages([ - Settings::class, + General::class, ]), ]) // ->discoverWidgets(in: app_path('Filament/Widgets'), for: 'App\\Filament\\Widgets') diff --git a/web/resources/views/filament/pages/settings.blade.php b/web/resources/views/filament/pages/settings.blade.php new file mode 100644 index 0000000..f7fa7c8 --- /dev/null +++ b/web/resources/views/filament/pages/settings.blade.php @@ -0,0 +1,29 @@ + + +
+ @foreach($linkGroups as $group) + +
+
+ +
+ {{ $group['title'] }} +
+
+
+ +
+
+ + @endforeach +
+ +