49 lines
1.3 KiB
PHP
49 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\MailGruppens;
|
|
|
|
use App\Filament\Clusters\Newsletter\NewsletterCluster;
|
|
use App\Filament\Resources\MailGruppens\Pages\ListMailGruppens;
|
|
use App\Filament\Resources\MailGruppens\Schemas\MailGruppenForm;
|
|
use App\Filament\Resources\MailGruppens\Tables\MailGruppensTable;
|
|
use App\Models\MailGruppen;
|
|
use BackedEnum;
|
|
use Filament\Resources\Resource;
|
|
use Filament\Schemas\Schema;
|
|
use Filament\Support\Icons\Heroicon;
|
|
use Filament\Tables\Table;
|
|
|
|
class MailGruppenResource extends Resource
|
|
{
|
|
protected static ?string $model = MailGruppen::class;
|
|
|
|
protected static ?int $navigationSort = 1;
|
|
|
|
protected static ?string $cluster = NewsletterCluster::class;
|
|
|
|
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedUserGroup;
|
|
|
|
protected static ?string $navigationLabel = 'Mail Gruppen';
|
|
|
|
protected static ?string $modelLabel = 'Mail Gruppe';
|
|
|
|
protected static ?string $pluralModelLabel = 'Mail Gruppen';
|
|
|
|
public static function form(Schema $schema): Schema
|
|
{
|
|
return MailGruppenForm::configure($schema);
|
|
}
|
|
|
|
public static function table(Table $table): Table
|
|
{
|
|
return MailGruppensTable::configure($table);
|
|
}
|
|
|
|
public static function getPages(): array
|
|
{
|
|
return [
|
|
'index' => ListMailGruppens::route('/'),
|
|
];
|
|
}
|
|
}
|