basic comparatore completed

This commit is contained in:
salam committed 2025-12-26 10:42:51 +01:00
1 parent cbdc6aff47
commit 16cc214db6
80 files changed
+2413 -2794

No files matched your search

@@ -2,7 +2,8 @@
namespace App\Filament\Resources\Users\Schemas;
use Filament\Forms\Components\DateTimePicker;
use App\Models\Bookmaker;
use App\Models\Client;
use Filament\Forms\Components\Select;
use Filament\Forms\Components\TextInput;
use Filament\Schemas\Schema;
@@ -19,14 +20,22 @@ class UserForm
->label('Email address')
->email()
->required(),
// DateTimePicker::make('email_verified_at'),
// TextInput::make('password')
// ->password()
// ->required(),
Select::make('client_id')
->relationship('client', 'name')
->preload(),
Select::make('bookmaker_id')
->label('Active Bookmaker')
->options(function () {
$bookmaker = Client::where('id', auth()->user()->client_id)->value('bookmaker');
return Bookmaker::query()->whereIn('id', $bookmaker)->pluck('name', 'id');
})
->preload(),
Select::make('roles')
->label('Rollen')
->prefixIcon('phosphor-gear')
->aboveContent('Only visible for super_admin')
->visible(fn () => auth()->user()->hasRole('super_admin'))
->relationship('roles', 'name')
->multiple()
->preload()