264 lines
11 KiB
PHP
264 lines
11 KiB
PHP
<div class="flex flex-1 gap-3 mr-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" tooltip="Swop Bookmaker">
|
|
|
|
@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>
|
|
|
|
{{-- Notifications --}}
|
|
|
|
<x-filament::modal slide-over width="2xl" icon="phosphor-warning-duotone" :close-by-clicking-away="true" :close-by-escaping="true"
|
|
:close-button="true">
|
|
<x-slot name="trigger">
|
|
<x-filament::button outlined icon="phosphor-warning-duotone" class="my-auto" color="gray"
|
|
tooltip="Notifications Settings">
|
|
</x-filament::button>
|
|
</x-slot>
|
|
<x-slot name="heading">
|
|
Notifications Settings
|
|
</x-slot>
|
|
|
|
@livewire('personal-notification-table')
|
|
|
|
</x-filament::modal>
|
|
|
|
{{-- Send Message --}}
|
|
|
|
<x-filament::modal slide-over width="2xl" icon="phosphor-paper-plane-tilt-duotone" :close-by-clicking-away="true" :close-by-escaping="true"
|
|
:close-button="true">
|
|
<x-slot name="trigger">
|
|
<x-filament::button outlined icon="phosphor-paper-plane-tilt-duotone" class="my-auto" color="gray"
|
|
tooltip="Send Message">
|
|
</x-filament::button>
|
|
</x-slot>
|
|
<x-slot name="heading">
|
|
Send Message
|
|
</x-slot>
|
|
|
|
@livewire('user-notifications')
|
|
|
|
|
|
</x-filament::modal>
|
|
|
|
{{-- Event Mapper --}}
|
|
|
|
<x-filament::modal width="screen" icon="phosphor-arrows-in-line-horizontal" :close-by-clicking-away="true" :close-by-escaping="true" :close-button="true">
|
|
<x-slot name="trigger">
|
|
<x-filament::button outlined icon="phosphor-arrows-in-line-horizontal" color="gray"
|
|
class="my-auto" tooltip="Event Mapper">
|
|
</x-filament::button>
|
|
</x-slot>
|
|
|
|
<x-slot name="heading">
|
|
<div class="flex justify-end items-center gap-20">
|
|
<x-sport-header>
|
|
Event Mapper {{ auth()->user()->sport->name }}
|
|
</x-sport-header>
|
|
@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="true" :close-by-escaping="true" :close-button="true">
|
|
<x-slot name="trigger">
|
|
<x-filament::button outlined icon="phosphor-equals" color="gray" class="my-auto"
|
|
tooltip="Multiline Settings">
|
|
</x-filament::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-duotone" :close-by-clicking-away="true" :close-by-escaping="true"
|
|
:close-button="true">
|
|
<x-slot name="trigger">
|
|
<x-filament::button outlined icon="phosphor-siren-duotone" color="gray" class="my-auto"
|
|
tooltip="Alarm Level Settings">
|
|
</x-filament::button>
|
|
</x-slot>
|
|
|
|
<x-slot name="heading">
|
|
Alarm Level Settings
|
|
</x-slot>
|
|
|
|
@livewire('alarm-bookmaker')
|
|
</x-filament::modal>
|
|
|
|
{{-- Calculation --}}
|
|
|
|
<x-filament::modal slide-over width="4xl" icon="phosphor-sliders" :close-by-clicking-away="true" :close-by-escaping="true" :close-button="true">
|
|
<x-slot name="trigger">
|
|
<x-filament::button icon="phosphor-sliders" color="gray" class="my-auto" wire:click="setUser"
|
|
tooltip="Comparing Bookmaker">
|
|
</x-filament::button>
|
|
</x-slot>
|
|
|
|
<x-slot name="heading">
|
|
Comparing Bookmaker
|
|
</x-slot>
|
|
|
|
@livewire('comparing-bookmaker-menu')
|
|
|
|
</x-filament::modal>
|
|
|
|
{{-- Custom Groups --}}
|
|
<x-filament::modal slide-over width="3xl" icon="phosphor-user-list" :close-by-clicking-away="true" :close-by-escaping="true" :close-button="true">
|
|
<x-slot name="trigger">
|
|
<x-filament::button outlined icon="phosphor-user-list" color="gray" class="my-auto"
|
|
tooltip="Custom Groups">
|
|
</x-filament::button>
|
|
</x-slot>
|
|
|
|
<x-slot name="heading">
|
|
Custom Groups
|
|
</x-slot>
|
|
|
|
@livewire('client-group-list-editor')
|
|
</x-filament::modal>
|
|
@endif
|
|
</div>
|