<?php

namespace App\Filament\Resources\Regions\Schemas;

use Filament\Forms\Components\Select;
use Filament\Forms\Components\TextInput;
use Filament\Schemas\Schema;

class RegionForm
{
    public static function configure(Schema $schema): Schema
    {
        return $schema
            ->components([
                TextInput::make('libellear')
                    ->required(),
                TextInput::make('libellefr')
                    ->required(),
                Select::make('pole_id')
                    ->relationship('pole', 'libelle')
                    ->required(),
            ]);
    }
}
