29 lines
984 B
PHP
29 lines
984 B
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\MailVersands\Schemas;
|
|
|
|
use Filament\Forms\Components\DateTimePicker;
|
|
use Filament\Forms\Components\Select;
|
|
use Filament\Forms\Components\TextInput;
|
|
use Filament\Schemas\Schema;
|
|
|
|
class MailVersandForm
|
|
{
|
|
public static function configure(Schema $schema): Schema
|
|
{
|
|
return $schema
|
|
->components([
|
|
TextInput::make('name')->label('Benennung')->required(),
|
|
DateTimePicker::make('sende_zeitpunkt')->native(false)->required(),
|
|
Select::make('mail_gruppen_id')
|
|
->label('Versand an Empfänger Grupper')
|
|
->required()
|
|
->relationship(name: 'mail_gruppen', titleAttribute: 'name'),
|
|
Select::make('mail_vorlage_id')
|
|
->required()
|
|
->label('Vorlage für den Versand')
|
|
->relationship(name: 'mail_vorlage', titleAttribute: 'titel'),
|
|
]);
|
|
}
|
|
}
|