209 lines
9.0 KiB
PHP
209 lines
9.0 KiB
PHP
<div class="flex flex-1 gap-5">
|
|
@if ($this->current == 'filament.admin.resources.events.index')
|
|
|
|
{{-- Client Swop Bookmaker --}}
|
|
|
|
<x-filament::dropdown>
|
|
<x-slot name="trigger">
|
|
<x-filament::button outlined color="gray">
|
|
|
|
@switch(auth()->user()->bookmaker_id)
|
|
@case(35)
|
|
<x-bkm-logifuture-nigeria class="h-5" />
|
|
@break
|
|
|
|
@case(36)
|
|
<x-bkm-logifuture-colombia class="h-5" />
|
|
@break
|
|
|
|
@case(10)
|
|
<x-bkm-magloo-nigeria class="h-5" />
|
|
@break
|
|
|
|
@case(16)
|
|
<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, [35, 36]))
|
|
@if (auth()->user()->bookmaker_id != 35)
|
|
<x-filament::dropdown.list.item wire:click="swopBookmaker(35)">
|
|
<x-bkm-logifuture-nigeria class="h-5 mx-auto" />
|
|
</x-filament::dropdown.list.item>
|
|
@endif
|
|
|
|
@if (auth()->user()->bookmaker_id != 36)
|
|
<x-filament::dropdown.list.item wire:click="swopBookmaker(36)">
|
|
<x-bkm-logifuture-colombia class="h-5 mx-auto" />
|
|
</x-filament::dropdown.list.item>
|
|
@endif
|
|
@endif
|
|
|
|
@if (in_array(auth()->user()->bookmaker_id, [10, 16]))
|
|
@if (auth()->user()->bookmaker_id != 10)
|
|
<x-filament::dropdown.list.item wire:click="swopBookmaker(10)">
|
|
<x-bkm-magloo-nigeria class="h-5 mx-auto" />
|
|
</x-filament::dropdown.list.item>
|
|
@endif
|
|
|
|
@if (auth()->user()->bookmaker_id != 16)
|
|
<x-filament::dropdown.list.item wire:click="swopBookmaker(16)">
|
|
<x-bkm-magloo-kenia class="h-5 mx-auto" />
|
|
</x-filament::dropdown.list.item>
|
|
@endif
|
|
@endif
|
|
|
|
</x-filament::dropdown.list>
|
|
</x-filament::dropdown>
|
|
|
|
{{-- Event Mapper --}}
|
|
|
|
<x-filament::modal width="7xl" icon="phosphor-arrows-in-line-horizontal" :close-by-clicking-away="false" :close-by-escaping="false"
|
|
:close-button="true">
|
|
<x-slot name="trigger">
|
|
<x-filament::icon-button outlined icon="phosphor-arrows-in-line-horizontal" color="gray"
|
|
class="my-auto" title="Event Mapper">
|
|
</x-filament::icon-button>
|
|
</x-slot>
|
|
|
|
<x-slot name="heading">
|
|
<div class="flex justify-between items-center w-5xl">
|
|
<div>Event Mapper</div>
|
|
@php
|
|
if (!auth()->user()->provider_id) {
|
|
auth()->user()->provider_id = 2;
|
|
}
|
|
@endphp
|
|
<x-filament::dropdown>
|
|
<x-slot name="trigger">
|
|
@switch(auth()->user()->provider_id)
|
|
@case(5)
|
|
<x-bkm-logifuture-nigeria class="h-5" />
|
|
@break
|
|
|
|
@case(6)
|
|
<x-bkm-logifuture-colombia class="h-5" />
|
|
@break
|
|
|
|
@case(4)
|
|
<x-bkm-magloo-nigeria class="h-5" />
|
|
@break
|
|
|
|
@case(3)
|
|
<x-bkm-magloo-kenia class="h-5" />
|
|
@break
|
|
|
|
@case(2)
|
|
<x-bkm-bet365 class="h-5" />
|
|
@break
|
|
@endswitch
|
|
</x-slot>
|
|
|
|
<x-filament::dropdown.list @click="toggle">
|
|
@switch(auth()->user()->bookmaker_id)
|
|
@case(35)
|
|
@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
|
|
@break
|
|
@case(36)
|
|
@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
|
|
@break
|
|
@case(10)
|
|
@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
|
|
@break
|
|
@case(16)
|
|
@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
|
|
@break
|
|
@default
|
|
@endswitch
|
|
|
|
@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
|
|
</x-filament::dropdown.list>
|
|
</x-filament::dropdown>
|
|
</div>
|
|
</x-slot>
|
|
|
|
<div id="mapper" class="grid grid-cols-2 gap-4 drag-and-drop text-sm" x-data="{ search_left: '', search_right: '', event_id: 0, match_id: 0, overleftcolumn: false, overrightcolumn: false }"
|
|
x-init="$watch('search_left', value => Livewire.dispatch('search_left', value));
|
|
$watch('search_right', value => Livewire.dispatch('search_right', value));">
|
|
<div>
|
|
@livewire('mapper-left')
|
|
</div>
|
|
<div>
|
|
@livewire('mapper-right')
|
|
</div>
|
|
</div>
|
|
</x-filament::modal>
|
|
|
|
{{-- Multiline --}}
|
|
<x-filament::modal slide-over width="4xl" icon="phosphor-equals" :close-by-clicking-away="false" :close-by-escaping="true"
|
|
:close-button="true">
|
|
<x-slot name="trigger">
|
|
<x-filament::icon-button outlined icon="phosphor-equals" color="gray" class="my-auto"
|
|
title="Multiline Settings">
|
|
</x-filament::icon-button>
|
|
</x-slot>
|
|
<x-slot name="heading">
|
|
Multiline Settings
|
|
</x-slot>
|
|
@livewire('multiline-bookmaker')
|
|
</x-filament::modal>
|
|
|
|
{{-- Alarm --}}
|
|
|
|
<x-filament::modal slide-over width="4xl" icon="phosphor-siren">
|
|
<x-slot name="trigger">
|
|
<x-filament::icon-button outlined icon="phosphor-siren" color="gray" class="my-auto"
|
|
title="Alarm Settings">
|
|
</x-filament::icon-button>
|
|
</x-slot>
|
|
|
|
<x-slot name="heading">
|
|
Alarm Settings
|
|
</x-slot>
|
|
|
|
Alarm Settings Content
|
|
</x-filament::modal>
|
|
|
|
{{-- Calculation --}}
|
|
|
|
<x-filament::modal slide-over width="4xl" icon="phosphor-sliders" title="Comparing Bookmaker">
|
|
<x-slot name="trigger">
|
|
<x-filament::icon-button icon="phosphor-sliders" color="gray" class="my-auto" wire:click="setUser"
|
|
title="Comparing Bookmaker">
|
|
</x-filament::icon-button>
|
|
</x-slot>
|
|
|
|
<x-slot name="heading">
|
|
Comparing Bookmaker {{ $sport }}
|
|
</x-slot>
|
|
|
|
@livewire('comparing-bookmaker-menu')
|
|
|
|
</x-filament::modal>
|
|
@endif
|
|
</div>
|