35 lines
1019 B
PHP
35 lines
1019 B
PHP
<?php
|
|||
|
|
|
||
|
|
namespace App\Filament\Resources\Experiences\Schemas;
|
||
|
|
|
||
|
|
use Filament\Forms\Components\DatePicker;
|
||
|
|
use Filament\Forms\Components\TextInput;
|
||
|
|
use Filament\Forms\Components\Textarea;
|
||
|
|
use Filament\Forms\Components\Toggle;
|
||
|
|
use Filament\Schemas\Schema;
|
||
|
|
|
||
|
|
class ExperienceForm
|
||
|
|
{
|
||
|
|
public static function configure(Schema $schema): Schema
|
||
|
|
{
|
||
|
|
return $schema
|
||
|
|
->components([
|
||
|
|
TextInput::make('company')
|
||
|
|
->required(),
|
||
|
|
TextInput::make('role')
|
||
|
|
->required(),
|
||
|
|
TextInput::make('location'),
|
||
|
|
DatePicker::make('start_date'),
|
||
|
|
DatePicker::make('end_date'),
|
||
|
|
Toggle::make('is_current')
|
||
|
|
->default(false),
|
||
|
|
Textarea::make('description')
|
||
|
|
->columnSpanFull(),
|
||
|
|
TextInput::make('sort_order')
|
||
|
|
->required()
|
||
|
|
->numeric()
|
||
|
|
->default(0),
|
||
|
|
]);
|
||
|
|
}
|
||
|
|
}
|