31 lines
876 B
PHP
31 lines
876 B
PHP
<?php
|
|||
|
|
|
||
|
|
namespace App\Filament\Resources\Education\Schemas;
|
||
|
|
|
||
|
|
use Filament\Forms\Components\DatePicker;
|
||
|
|
use Filament\Forms\Components\TextInput;
|
||
|
|
use Filament\Forms\Components\Textarea;
|
||
|
|
use Filament\Schemas\Schema;
|
||
|
|
|
||
|
|
class EducationForm
|
||
|
|
{
|
||
|
|
public static function configure(Schema $schema): Schema
|
||
|
|
{
|
||
|
|
return $schema
|
||
|
|
->components([
|
||
|
|
TextInput::make('institution')
|
||
|
|
->required(),
|
||
|
|
TextInput::make('degree'),
|
||
|
|
TextInput::make('field_of_study'),
|
||
|
|
DatePicker::make('start_date'),
|
||
|
|
DatePicker::make('end_date'),
|
||
|
|
Textarea::make('description')
|
||
|
|
->columnSpanFull(),
|
||
|
|
TextInput::make('sort_order')
|
||
|
|
->required()
|
||
|
|
->numeric()
|
||
|
|
->default(0),
|
||
|
|
]);
|
||
|
|
}
|
||
|
|
}
|