diff --git a/app/Filament/Pages/Dashboard.php b/app/Filament/Pages/Dashboard.php index 87c741908..e6836c6c9 100644 --- a/app/Filament/Pages/Dashboard.php +++ b/app/Filament/Pages/Dashboard.php @@ -7,6 +7,9 @@ use App\Models\Egg; use App\Models\Node; use App\Models\Server; use App\Models\User; +use Filament\Actions\CreateAction; +use Filament\Infolists\Components\Concerns\HasHeaderActions; +use Filament\Infolists\Infolist; use Filament\Pages\Page; class Dashboard extends Page @@ -32,6 +35,50 @@ class Dashboard extends Page 'nodesCount' => Node::query()->count(), 'serversCount' => Server::query()->count(), 'usersCount' => User::query()->count(), + + 'devActions' => [ + CreateAction::make() + ->label('Create Issue') + ->icon('tabler-brand-github') + ->url('https://github.com/pelican-dev/panel/issues/new/choose', true) + ->color('warning'), + CreateAction::make() + ->label('Discuss Features') + ->icon('tabler-brand-github') + ->url('https://github.com/pelican-dev/panel/discussions', true) + ->color('primary'), + ], + 'nodeActions' => [ + CreateAction::make() + ->label('Create first Node in Pelican') + ->icon('tabler-server-2') + ->url(route('filament.admin.resources.nodes.create')) + ->color('primary'), + ], + 'supportActions' => [ + CreateAction::make() + ->label('Help Translate') + ->icon('tabler-language') + ->url('https://crowdin.com/project/pelican-dev', true) + ->color('info'), + CreateAction::make() + ->label('Donate Directly') + ->icon('tabler-cash') + ->url('https://pelican.dev/donate', true) + ->color('success'), + ], + 'helpActions' => [ + CreateAction::make() + ->label('Read Documentation') + ->icon('tabler-speedboat') + ->url('https://pelican.dev/docs', true) + ->color('info'), + CreateAction::make() + ->label('Get Help in Discord') + ->icon('tabler-brand-discord') + ->url('https://discord.gg/pelican-panel', true) + ->color('primary'), + ], ]; } } diff --git a/resources/views/filament/pages/dashboard.blade.php b/resources/views/filament/pages/dashboard.blade.php index b6d8586fd..c927f20d0 100644 --- a/resources/views/filament/pages/dashboard.blade.php +++ b/resources/views/filament/pages/dashboard.blade.php @@ -50,58 +50,39 @@
You can expand the following sections:
@if ($inDevelopment) -Thank you for trying out the development version!
-
-
- If you run into any issues, please report them on GitHub.
-
-
-
-
If you run into any issues, please report them on GitHub.
It looks like you don't have any Nodes set up yet, but don't worry because you can follow along below:
- -
-
- If you run into any issues, please report them on GitHub.
-
-
-
-
It looks like you don't have any Nodes set up yet, but don't worry because you click the action button to create your first one!
Thank you for using Pelican, this could only be achieved through the support of you, our contributors, and the rest of our supporters!
@@ -118,47 +106,22 @@We appreciate any and all support from anybody.
-Check out the documentation first! If you still need assistance then, fly onto our Discord server!
-