Build & Deploy / build (push) Successful in 19s
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
36 lines
1.0 KiB
PHP
36 lines
1.0 KiB
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\Programs\Schemas;
|
|
|
|
use Filament\Forms\Components\Select;
|
|
use Filament\Forms\Components\Textarea;
|
|
use Filament\Forms\Components\TextInput;
|
|
use Filament\Forms\Components\Toggle;
|
|
use Filament\Schemas\Schema;
|
|
|
|
class ProgramForm
|
|
{
|
|
public static function configure(Schema $schema): Schema
|
|
{
|
|
return $schema
|
|
->components([
|
|
Select::make('user_id')
|
|
->relationship('user', 'name')
|
|
->required(),
|
|
TextInput::make('name')
|
|
->required(),
|
|
TextInput::make('slug')
|
|
->required(),
|
|
Textarea::make('description')
|
|
->columnSpanFull(),
|
|
TextInput::make('duration_weeks')
|
|
->required()
|
|
->numeric(),
|
|
TextInput::make('days_per_week')
|
|
->numeric(),
|
|
Toggle::make('is_public')
|
|
->required(),
|
|
]);
|
|
}
|
|
}
|