This commit is contained in:
salam committed 2026-09-13 15:40:30 +02:00
1 parent 08a1522868
commit 26052c6cfd
15 files changed
+594 -62

No files matched your search

+11 -11
View File
@@ -26,7 +26,7 @@ class EventMapper extends Page
protected ?string $heading = '';
protected static ?int $navigationSort = 3; // Smaller number = higher up
protected static ?int $navigationSort = 4; // Smaller number = higher up
// protected static ?int $navigationSort = 100;
@@ -36,7 +36,7 @@ class EventMapper extends Page
ActionGroup::make([
Action::make('bet365')
->extraAttributes(['x-on:click' => 'toggle'])
->visible(fn(): bool => auth()->user()->provider_id != 2)
->visible(fn (): bool => auth()->user()->provider_id != 2)
->action(function ($livewire) {
User::where('id', auth()->user()->id)->update(['provider_id' => 2]);
@@ -49,8 +49,8 @@ class EventMapper extends Page
Action::make('magloo_nigeria')
->label('MAGLOO NIGERIA')
->extraAttributes(['x-on:click' => 'toggle'])
->visible(fn(): bool => in_array(auth()->user()->provider_id, [2, 4]))
->hidden(fn(): bool => ! in_array(auth()->user()->bookmaker_id, [10, 16]))
->visible(fn (): bool => in_array(auth()->user()->provider_id, [2, 4]))
->hidden(fn (): bool => ! in_array(auth()->user()->bookmaker_id, [10, 16]))
->action(function ($livewire) {
User::where('id', auth()->user()->id)->update(['provider_id' => 3]);
$livewire->dispatch('refresh');
@@ -63,8 +63,8 @@ class EventMapper extends Page
Action::make('magloo_kenia')
->label('MAGLOO KENIA')
->extraAttributes(['x-on:click' => 'toggle'])
->visible(fn(): bool => in_array(auth()->user()->provider_id, [2, 3]))
->hidden(fn(): bool => ! in_array(auth()->user()->bookmaker_id, [10, 16]))
->visible(fn (): bool => in_array(auth()->user()->provider_id, [2, 3]))
->hidden(fn (): bool => ! in_array(auth()->user()->bookmaker_id, [10, 16]))
->action(function ($livewire) {
User::where('id', auth()->user()->id)->update(['provider_id' => 4]);
$livewire->dispatch('refresh');
@@ -77,8 +77,8 @@ class EventMapper extends Page
Action::make('logifuture_nigeria')
->label('LOGIFUTURE NIGERA')
->extraAttributes(['x-on:click' => 'toggle'])
->visible(fn(): bool => auth()->user()->provider_id == 6)
->hidden(fn(): bool => ! in_array(auth()->user()->bookmaker_id, [35, 36]))
->visible(fn (): bool => auth()->user()->provider_id == 6)
->hidden(fn (): bool => ! in_array(auth()->user()->bookmaker_id, [35, 36]))
->action(function ($livewire) {
User::where('id', auth()->user()->id)->update(['provider_id' => 5]);
@@ -92,8 +92,8 @@ class EventMapper extends Page
Action::make('logifuture_colombia')
->label('LOGIFUTURE COLOMBIA')
->extraAttributes(['x-on:click' => 'toggle'])
->visible(fn(): bool => auth()->user()->provider_id == 5)
->hidden(fn(): bool => ! in_array(auth()->user()->bookmaker_id, [35, 36]))
->visible(fn (): bool => auth()->user()->provider_id == 5)
->hidden(fn (): bool => ! in_array(auth()->user()->bookmaker_id, [35, 36]))
->action(function ($livewire) {
User::where('id', auth()->user()->id)->update(['provider_id' => 6]);
@@ -107,7 +107,7 @@ class EventMapper extends Page
])
->label('Swop Bookmaker')
->icon('phosphor-dots-three-vertical')
->visible(fn(): bool => auth()->user()->hasRole('mapper_source_betsapi'))
->visible(fn (): bool => auth()->user()->hasRole('mapper_source_betsapi'))
->color('primary')
->button(),
];