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>
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),
|
|
]);
|
|
}
|
|
}
|