wip event mapper
This commit is contained in:
1 parent
75b8c6c3ab
commit
3a289dd776
17 files changed
+273
-157
No files matched your search
@@ -3,7 +3,6 @@
|
||||
namespace App\Filament\Resources\Users\Schemas;
|
||||
|
||||
use App\Models\Bookmaker;
|
||||
use App\Models\Client;
|
||||
use Filament\Forms\Components\Hidden;
|
||||
use Filament\Forms\Components\Select;
|
||||
use Filament\Forms\Components\TextInput;
|
||||
@@ -55,21 +54,16 @@ class UserForm
|
||||
Select::make('client_id')
|
||||
->relationship('client', 'name')
|
||||
->preload(),
|
||||
|
||||
Select::make('provider_id')
|
||||
->relationship('provider', 'name')
|
||||
->preload(),
|
||||
Select::make('bookmaker_id')
|
||||
->label('Active Bookmaker')
|
||||
->options(fn () => Bookmaker::query()->where('is_client', 1)->pluck('name', 'id'))
|
||||
->preload(),
|
||||
Select::make('partner_bookmaker_id')
|
||||
->label('Partner 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('provider_id')
|
||||
->relationship('provider', 'name')
|
||||
->options(fn () => Bookmaker::query()->where('is_client', 1)->pluck('name', 'id'))
|
||||
->preload(),
|
||||
]),
|
||||
Section::make('Authorisations')
|
||||
|
||||
Reference in new issue
Block a user