This commit is contained in:
salam committed 2026-10-04 15:25:03 +02:00
1 parent 9bcd4432c6
commit 6f92f9e1d5
1209 files changed
+220940

No files matched your search

@@ -0,0 +1,39 @@
<?php
namespace App\Filament\Clusters\User\Resources\Clients\Schemas;
use App\Models\Bookmaker;
use App\Models\Provider;
use App\Models\Sport;
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('homepage')
->default(null),
Select::make('bookmaker')
->options(Bookmaker::query()->pluck('name', 'id'))
->multiple()
->preload()
->searchable(),
Select::make('provider')
->options(Provider::query()->pluck('name', 'id'))
->multiple()
->preload()
->searchable(),
Select::make('sport')
->options(Sport::query()->pluck('name', 'id'))
->multiple()
->preload()
->searchable(),
]);
}
}