37 lines
1.0 KiB
PHP
37 lines
1.0 KiB
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\Events\Schemas;
|
|
|
|
use Filament\Forms\Components\DateTimePicker;
|
|
use Filament\Forms\Components\TextInput;
|
|
use Filament\Schemas\Schema;
|
|
|
|
class EventForm
|
|
{
|
|
public static function configure(Schema $schema): Schema
|
|
{
|
|
return $schema
|
|
->components([
|
|
DateTimePicker::make('starttime'),
|
|
TextInput::make('sport_id')
|
|
->required()
|
|
->numeric(),
|
|
TextInput::make('country_id')
|
|
->numeric()
|
|
->default(0),
|
|
TextInput::make('group_id')
|
|
->numeric()
|
|
->default(0),
|
|
TextInput::make('home_id')
|
|
->numeric()
|
|
->default(0),
|
|
TextInput::make('away_id')
|
|
->numeric()
|
|
->default(0),
|
|
TextInput::make('provider_id')
|
|
->numeric()
|
|
->default(0),
|
|
]);
|
|
}
|
|
}
|