mapper provider wip
This commit is contained in:
1 parent
b3318b1c03
commit
a487fe0838
11 files changed
+161
-92
No files matched your search
@@ -8,7 +8,7 @@
|
||||
<x-slot name="trigger">
|
||||
<x-filament::button outlined color="gray">
|
||||
|
||||
@switch(auth()->user()->bookmaker_mapper_id)
|
||||
@switch(auth()->user()->bookmaker_id)
|
||||
@case(26)
|
||||
<x-bkm-logifuture-nigeria class="h-5" />
|
||||
@break
|
||||
@@ -31,28 +31,28 @@
|
||||
<x-filament::dropdown.list>
|
||||
|
||||
@if (in_array(auth()->user()->bookmaker_id, [26, 27]))
|
||||
@if (auth()->user()->bookmaker_mapper_id != 26)
|
||||
<x-filament::dropdown.list.item wire:click="swopMapper(26)">
|
||||
@if (auth()->user()->bookmaker_id != 26)
|
||||
<x-filament::dropdown.list.item wire:click="swopBookmaker(26)">
|
||||
<x-bkm-logifuture-nigeria class="h-5 mx-auto" />
|
||||
</x-filament::dropdown.list.item>
|
||||
@endif
|
||||
|
||||
@if (auth()->user()->bookmaker_mapper_id != 27)
|
||||
<x-filament::dropdown.list.item wire:click="swopMapper(27)">
|
||||
@if (auth()->user()->bookmaker_id != 27)
|
||||
<x-filament::dropdown.list.item wire:click="swopBookmaker(27)">
|
||||
<x-bkm-logifuture-colombia class="h-5 mx-auto" />
|
||||
</x-filament::dropdown.list.item>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
@if (in_array(auth()->user()->bookmaker_id, [20, 24]))
|
||||
@if (auth()->user()->bookmaker_mapper_id != 20)
|
||||
<x-filament::dropdown.list.item wire:click="swopMapper(20)">
|
||||
@if (auth()->user()->bookmaker_id != 20)
|
||||
<x-filament::dropdown.list.item wire:click="swopBookmaker(20)">
|
||||
<x-bkm-magloo-nigeria class="h-5 mx-auto" />
|
||||
</x-filament::dropdown.list.item>
|
||||
@endif
|
||||
|
||||
@if (auth()->user()->bookmaker_mapper_id != 24)
|
||||
<x-filament::dropdown.list.item wire:click="swopMapper(24)">
|
||||
@if (auth()->user()->bookmaker_id != 24)
|
||||
<x-filament::dropdown.list.item wire:click="swopBookmaker(24)">
|
||||
<x-bkm-magloo-kenia class="h-5 mx-auto" />
|
||||
</x-filament::dropdown.list.item>
|
||||
@endif
|
||||
@@ -85,26 +85,26 @@
|
||||
<div class="flex justify-between items-center w-5xl">
|
||||
<div>Event Mapper</div>
|
||||
@php
|
||||
if (!auth()->user()->bookmaker_mapper_id) {
|
||||
auth()->user()->bookmaker_mapper_id = auth()->user()->bookmaker_id;
|
||||
if (!auth()->user()->provider_id) {
|
||||
auth()->user()->provider_id = 2;
|
||||
}
|
||||
@endphp
|
||||
<x-filament::dropdown>
|
||||
<x-slot name="trigger">
|
||||
@switch(auth()->user()->bookmaker_mapper_id)
|
||||
@case(26)
|
||||
@switch(auth()->user()->provider_id)
|
||||
@case(5)
|
||||
<x-bkm-logifuture-nigeria class="h-5" />
|
||||
@break
|
||||
|
||||
@case(27)
|
||||
@case(6)
|
||||
<x-bkm-logifuture-colombia class="h-5" />
|
||||
@break
|
||||
|
||||
@case(20)
|
||||
@case(4)
|
||||
<x-bkm-magloo-nigeria class="h-5" />
|
||||
@break
|
||||
|
||||
@case(24)
|
||||
@case(3)
|
||||
<x-bkm-magloo-kenia class="h-5" />
|
||||
@break
|
||||
|
||||
@@ -114,39 +114,39 @@
|
||||
@endswitch
|
||||
</x-slot>
|
||||
|
||||
<x-filament::dropdown.list>
|
||||
<x-filament::dropdown.list @click="toggle">
|
||||
|
||||
@if (in_array(auth()->user()->bookmaker_id, [26, 27]))
|
||||
@if (auth()->user()->bookmaker_mapper_id != 26)
|
||||
<x-filament::dropdown.list.item wire:click="swopMapper(26)">
|
||||
@if (auth()->user()->provider_id != 5)
|
||||
<x-filament::dropdown.list.item wire:click="swopProvider(5)">
|
||||
<x-bkm-logifuture-nigeria class="h-5 mx-auto" />
|
||||
</x-filament::dropdown.list.item>
|
||||
@endif
|
||||
|
||||
@if (auth()->user()->bookmaker_mapper_id != 27)
|
||||
<x-filament::dropdown.list.item wire:click="swopMapper(27)">
|
||||
@if (auth()->user()->provider_id != 6)
|
||||
<x-filament::dropdown.list.item wire:click="swopProvider(6)">
|
||||
<x-bkm-logifuture-colombia class="h-5 mx-auto" />
|
||||
</x-filament::dropdown.list.item>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
@if (in_array(auth()->user()->bookmaker_id, [20, 24]))
|
||||
@if (auth()->user()->bookmaker_mapper_id != 20)
|
||||
<x-filament::dropdown.list.item wire:click="swopMapper(20)">
|
||||
@if (auth()->user()->provider_id != 4)
|
||||
<x-filament::dropdown.list.item wire:click="swopProvider(4)">
|
||||
<x-bkm-magloo-nigeria class="h-5 mx-auto" />
|
||||
</x-filament::dropdown.list.item>
|
||||
@endif
|
||||
|
||||
@if (auth()->user()->bookmaker_mapper_id != 24)
|
||||
<x-filament::dropdown.list.item wire:click="swopMapper(24)">
|
||||
@if (auth()->user()->provider_id != 3)
|
||||
<x-filament::dropdown.list.item wire:click="swopProvider(3)">
|
||||
<x-bkm-magloo-kenia class="h-5 mx-auto" />
|
||||
</x-filament::dropdown.list.item>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
|
||||
@if (auth()->user()->hasRole('mapper_source_betsapi') && auth()->user()->bookmaker_mapper_id != 2)
|
||||
<x-filament::dropdown.list.item wire:click="swopMapper(2)">
|
||||
@if (auth()->user()->hasRole('mapper_source_betsapi') && auth()->user()->provider_id != 2)
|
||||
<x-filament::dropdown.list.item wire:click="swopProvider(2)">
|
||||
<x-bkm-bet365 class="h-5" />
|
||||
</x-filament::dropdown.list.item>
|
||||
@endif
|
||||
|
||||
Reference in new issue
Block a user