swop bookmaker and bookmaker mapper
This commit is contained in:
1 parent
17acb27ef0
commit
7f7fc5c98f
10 files changed
+342
-67
No files matched your search
@@ -1,7 +1,75 @@
|
||||
<div class="flex flex-1">
|
||||
<div class="flex flex-1 gap-5">
|
||||
@if ($this->current == 'filament.admin.resources.events.index')
|
||||
|
||||
<x-filament::input.wrapper prefix-icon="{{ $sporticon }}" prefix-icon-color="primary" class="mx-4">
|
||||
|
||||
{{-- Client Swop Bookmaker --}}
|
||||
|
||||
<x-filament::dropdown>
|
||||
<x-slot name="trigger">
|
||||
<x-filament::button outlined color="gray">
|
||||
|
||||
@switch(auth()->user()->bookmaker_mapper_id)
|
||||
@case(26)
|
||||
<x-bkm-logifuture-nigeria class="h-5" />
|
||||
@break
|
||||
|
||||
@case(27)
|
||||
<x-bkm-logifuture-colombia class="h-5" />
|
||||
@break
|
||||
|
||||
@case(20)
|
||||
<x-bkm-magloo-nigeria class="h-5" />
|
||||
@break
|
||||
|
||||
@case(24)
|
||||
<x-bkm-magloo-kenia class="h-5" />
|
||||
@break
|
||||
@endswitch
|
||||
</x-filament::button>
|
||||
</x-slot>
|
||||
|
||||
<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)">
|
||||
<x-bkm-logifuture-nigeria class="h-5" />
|
||||
</x-filament::dropdown.list.item>
|
||||
@endif
|
||||
|
||||
@if (auth()->user()->bookmaker_mapper_id != 27)
|
||||
<x-filament::dropdown.list.item wire:click="swopMapper(27)">
|
||||
<x-bkm-logifuture-colombia class="h-5" />
|
||||
</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)">
|
||||
<x-bkm-magloo-nigeria class="h-5" />
|
||||
</x-filament::dropdown.list.item>
|
||||
@endif
|
||||
|
||||
@if (auth()->user()->bookmaker_mapper_id != 24)
|
||||
<x-filament::dropdown.list.item wire:click="swopMapper(24)">
|
||||
<x-bkm-magloo-kenia class="h-5" />
|
||||
</x-filament::dropdown.list.item>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
|
||||
@if (auth()->user()->hasRole('mapper_source_betsapi'))
|
||||
<x-filament::dropdown.list.item wire:click="swopMapper(2)">
|
||||
<x-bkm-bet365 class="h-5" />
|
||||
</x-filament::dropdown.list.item>
|
||||
@endif
|
||||
</x-filament::dropdown.list>
|
||||
</x-filament::dropdown>
|
||||
|
||||
{{-- Swop Sport --}}
|
||||
|
||||
<x-filament::input.wrapper prefix-icon="{{ $sporticon }}" prefix-icon-color="primary">
|
||||
<x-filament::input.select wire:model="sport_id" wire:change="swopSport">
|
||||
@foreach ($sports as $id => $name)
|
||||
<option value="{{ $id }}">{{ $name }}</option>
|
||||
@@ -9,7 +77,10 @@
|
||||
</x-filament::input.select>
|
||||
</x-filament::input.wrapper>
|
||||
|
||||
<x-filament::modal width="7xl" icon="heroicon-o-squares-2x2" class="mx-4">
|
||||
|
||||
{{-- Event Mapper --}}
|
||||
|
||||
<x-filament::modal width="7xl" icon="heroicon-o-squares-2x2">
|
||||
<x-slot name="trigger">
|
||||
<x-filament::button outlined icon="heroicon-o-squares-2x2" color="gray">
|
||||
Event Mapper
|
||||
@@ -19,24 +90,70 @@
|
||||
<x-slot name="heading">
|
||||
<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;
|
||||
}
|
||||
@endphp
|
||||
<x-filament::dropdown>
|
||||
<x-slot name="trigger">
|
||||
<x-bkm-bet365 class="w-20 h-6" />
|
||||
@switch(auth()->user()->bookmaker_mapper_id)
|
||||
@case(26)
|
||||
<x-bkm-logifuture-nigeria class="h-5" />
|
||||
@break
|
||||
|
||||
@case(27)
|
||||
<x-bkm-logifuture-colombia class="h-5" />
|
||||
@break
|
||||
|
||||
@case(20)
|
||||
<x-bkm-magloo-nigeria class="h-5" />
|
||||
@break
|
||||
|
||||
@case(24)
|
||||
<x-bkm-magloo-kenia class="h-5" />
|
||||
@break
|
||||
|
||||
@case(2)
|
||||
<x-bkm-bet365 class="h-5" />
|
||||
@break
|
||||
@endswitch
|
||||
</x-slot>
|
||||
|
||||
<x-filament::dropdown.list>
|
||||
|
||||
<x-filament::dropdown.list.item>
|
||||
<x-bkm-magloo-kenia class="w-20 h-6" />
|
||||
</x-filament::dropdown.list.item>
|
||||
@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)">
|
||||
<x-bkm-logifuture-nigeria class="h-5" />
|
||||
</x-filament::dropdown.list.item>
|
||||
@endif
|
||||
|
||||
@if (auth()->user()->bookmaker_mapper_id != 27)
|
||||
<x-filament::dropdown.list.item wire:click="swopMapper(27)">
|
||||
<x-bkm-logifuture-colombia class="h-5" />
|
||||
</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)">
|
||||
<x-bkm-magloo-nigeria class="h-5" />
|
||||
</x-filament::dropdown.list.item>
|
||||
@endif
|
||||
|
||||
@if (auth()->user()->bookmaker_mapper_id != 24)
|
||||
<x-filament::dropdown.list.item wire:click="swopMapper(24)">
|
||||
<x-bkm-magloo-kenia class="h-5" />
|
||||
</x-filament::dropdown.list.item>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
<x-filament::dropdown.list.item>
|
||||
<x-bkm-magloo-nig class="w-20 h-6" />
|
||||
</x-filament::dropdown.list.item>
|
||||
|
||||
@if (auth()->user()->hasRole('mapper_source_betsapi'))
|
||||
<x-filament::dropdown.list.item>
|
||||
<x-bkm-bet365 class="w-20 h-6" />
|
||||
<x-filament::dropdown.list.item wire:click="swopMapper(2)">
|
||||
<x-bkm-bet365 class="h-5" />
|
||||
</x-filament::dropdown.list.item>
|
||||
@endif
|
||||
</x-filament::dropdown.list>
|
||||
@@ -54,7 +171,7 @@
|
||||
</div>
|
||||
</x-filament::modal>
|
||||
|
||||
<x-filament::dropdown class="mx-4">
|
||||
<x-filament::dropdown>
|
||||
<x-slot name="trigger">
|
||||
<x-filament::button outlined icon="heroicon-o-adjustments-horizontal" color="gray">
|
||||
Settings
|
||||
|
||||
Reference in new issue
Block a user