49 lines
1.3 KiB
PHP
49 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\MailVersands;
|
|
|
|
use App\Filament\Clusters\Newsletter\NewsletterCluster;
|
|
use App\Filament\Resources\MailVersands\Pages\ListMailVersands;
|
|
use App\Filament\Resources\MailVersands\Schemas\MailVersandForm;
|
|
use App\Filament\Resources\MailVersands\Tables\MailVersandsTable;
|
|
use App\Models\MailVersand;
|
|
use BackedEnum;
|
|
use Filament\Resources\Resource;
|
|
use Filament\Schemas\Schema;
|
|
use Filament\Support\Icons\Heroicon;
|
|
use Filament\Tables\Table;
|
|
|
|
class MailVersandResource extends Resource
|
|
{
|
|
protected static ?string $model = MailVersand::class;
|
|
|
|
protected static ?int $navigationSort = 4;
|
|
|
|
protected static ?string $cluster = NewsletterCluster::class;
|
|
|
|
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedPaperAirplane;
|
|
|
|
protected static ?string $navigationLabel = 'Mail Versand';
|
|
|
|
protected static ?string $modelLabel = 'Mail Versand';
|
|
|
|
protected static ?string $pluralModelLabel = 'Mail Versand';
|
|
|
|
public static function form(Schema $schema): Schema
|
|
{
|
|
return MailVersandForm::configure($schema);
|
|
}
|
|
|
|
public static function table(Table $table): Table
|
|
{
|
|
return MailVersandsTable::configure($table);
|
|
}
|
|
|
|
public static function getPages(): array
|
|
{
|
|
return [
|
|
'index' => ListMailVersands::route('/'),
|
|
];
|
|
}
|
|
}
|