Files
nutzwerte_fi4/app/Filament/Resources/Plans/Schemas/PlanForm.php
T
2025-09-29 10:05:05 +02:00

28 lines
1.1 KiB
PHP

<?php
namespace App\Filament\Resources\Plans\Schemas;
use Filament\Forms\Components\FileUpload;
use Filament\Forms\Components\Textarea;
use Filament\Forms\Components\TextInput;
use Filament\Schemas\Schema;
class PlanForm
{
public static function configure(Schema $schema): Schema
{
return $schema
->components([
TextInput::make('name')->required(),
TextInput::make('payment')->label('Zahlung')->required(),
Textarea::make('description')->label('Beschreibung')->required(),
TextInput::make('preis')->required()->numeric(),
TextInput::make('limit_user')->required()->label('Anzahl Benutzer')->numeric(),
TextInput::make('limit_auftraggeber')->required()->label('Anzahl Auftraggeber')->numeric(),
TextInput::make('limit_gutachter')->required()->label('Anzahl Gutachter')->numeric(),
TextInput::make('limit_gutachten')->required()->label('Anzahl Projekte')->numeric(),
FileUpload::make('promotion')->disk('promotion'),
])->inlineLabel()->columns(1);
}
}