Adds a Filament admin (Profile settings page plus CRUD resources for Education, Experience, Projects, and Posts) backing a public-facing personal site: hero/about/timeline home page, project showcase, and blog, styled with a dark editorial theme (Fraunces + Instrument Sans). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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),
|
|
]);
|
|
}
|
|
}
|