Files
dvla-api/app/Filament/Resources/Tiers/Schemas/TierForm.php
Ovidiu U 759e4f2784 init
2026-05-12 09:47:26 +01:00

37 lines
1.1 KiB
PHP

<?php
namespace App\Filament\Resources\Tiers\Schemas;
use App\DataSourceFields;
use Filament\Forms\Components\CheckboxList;
use Filament\Forms\Components\Textarea;
use Filament\Forms\Components\TextInput;
use Filament\Schemas\Schema;
class TierForm
{
public static function configure(Schema $schema): Schema
{
return $schema
->components([
TextInput::make('name')
->required(),
TextInput::make('slug')
->required(),
Textarea::make('description')
->columnSpanFull(),
CheckboxList::make('allowed_fields')
->label('Allowed Fields')
->options(array_combine(
DataSourceFields::DVLA,
DataSourceFields::DVLA
))
->columns(3)
->searchable()
->bulkToggleable()
->helperText('Select which fields this tier can access.')
->columnSpanFull(),
]);
}
}