Files
nuhodds_fi4/app/Filament/Clusters/Statistic/Resources/StatisticEvents/StatisticEventsResource.php
T
2026-04-27 16:44:49 +02:00

48 lines
1.4 KiB
PHP

<?php
namespace App\Filament\Clusters\Statistic\Resources\StatisticEvents;
use App\Filament\Clusters\Statistic\Resources\StatisticEvents\Pages\ListStatisticEvents;
use App\Filament\Clusters\Statistic\Resources\StatisticEvents\Schemas\StatisticEventsForm;
use App\Filament\Clusters\Statistic\Resources\StatisticEvents\Tables\StatisticEventsTable;
use App\Filament\Clusters\Statistic\StatisticCluster;
use App\Models\StatistikoEvent;
use BackedEnum;
use Filament\Resources\Resource;
use Filament\Schemas\Schema;
use Filament\Tables\Table;
class StatisticEventsResource extends Resource
{
protected static ?string $model = StatistikoEvent::class;
protected static string|BackedEnum|null $navigationIcon = 'phosphor-chart-line-up';
protected static ?string $navigationLabel = 'Statistic Events';
protected static ?string $modelLabel = 'Statistic Events';
protected static ?int $navigationSort = 1;
protected static string|\UnitEnum|null $navigationGroup = 'Events';
protected static ?string $cluster = StatisticCluster::class;
public static function form(Schema $schema): Schema
{
return StatisticEventsForm::configure($schema);
}
public static function table(Table $table): Table
{
return StatisticEventsTable::configure($table);
}
public static function getPages(): array
{
return [
'index' => ListStatisticEvents::route('/'),
];
}
}