Files
animethemes-server/app/Filament/Dashboards/WikiDashboard.php
T
2024-05-23 17:22:01 -03:00

61 lines
1.2 KiB
PHP

<?php
declare(strict_types=1);
namespace App\Filament\Dashboards;
use App\Filament\Widgets\Wiki\Anime\AnimeChart;
use App\Filament\Widgets\Wiki\Artist\ArtistChart;
use App\Filament\Widgets\Wiki\Series\SeriesChart;
use App\Filament\Widgets\Wiki\Video\VideoChart;
/**
* Class WikiDashboard.
*/
class WikiDashboard extends BaseDashboard
{
/**
* Get the slug used to the dashboard route path.
*
* @return string
*/
public static function getSlug(): string
{
return 'wiki';
}
/**
* Get the displayed label for the dashboard.
*
* @return string
*/
public static function getNavigationLabel(): string
{
return __('filament.dashboards.label.wiki');
}
/**
* Get the icon for the dashboard.
*
* @return string
*/
public static function getNavigationIcon(): string
{
return __('filament.dashboards.icon.wiki');;
}
/**
* Get the widgets available for the dashboard.
*
* @return class-string[]
*/
public function getWidgets(): array
{
return [
AnimeChart::class,
ArtistChart::class,
SeriesChart::class,
VideoChart::class,
];
}
}