26 lines
641 B
PHP
26 lines
641 B
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\Clients\Schemas;
|
|
|
|
use Filament\Forms\Components\Select;
|
|
use Filament\Forms\Components\TextInput;
|
|
use Filament\Schemas\Schema;
|
|
|
|
class ClientForm
|
|
{
|
|
public static function configure(Schema $schema): Schema
|
|
{
|
|
return $schema
|
|
->components([
|
|
TextInput::make('name')
|
|
->required(),
|
|
TextInput::make('icon'),
|
|
Select::make('bookmaker')
|
|
->relationship('bookmaker', 'name')
|
|
->multiple()
|
|
->preload()
|
|
->searchable(),
|
|
]);
|
|
}
|
|
}
|