276 lines
11 KiB
PHP
276 lines
11 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_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>
|
|
@endforeach
|
|
</x-filament::input.select>
|
|
</x-filament::input.wrapper>
|
|
|
|
|
|
{{-- 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
|
|
</x-filament::button>
|
|
</x-slot>
|
|
|
|
<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">
|
|
@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>
|
|
|
|
@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>
|
|
</div>
|
|
</x-slot>
|
|
|
|
<div id="mapper" class="grid grid-cols-2 gap-4 drag-and-drop text-sm" x-data="{ event_id: 0, match_id: 0, overleftcolumn: false, overrightcolumn: false }">
|
|
<div>
|
|
@livewire('mapper-left')
|
|
</div>
|
|
<div>
|
|
@livewire('mapper-right')
|
|
</div>
|
|
</div>
|
|
</x-filament::modal>
|
|
|
|
<x-filament::dropdown>
|
|
<x-slot name="trigger">
|
|
<x-filament::button outlined icon="heroicon-o-adjustments-horizontal" color="gray">
|
|
Settings
|
|
</x-filament::button>
|
|
</x-slot>
|
|
|
|
<x-filament::dropdown.list>
|
|
<x-filament::modal width="4xl" icon="heroicon-o-exclamation-triangle">
|
|
<x-slot name="trigger">
|
|
{{-- wire:click="openViewModal" --}}
|
|
<x-filament::dropdown.list.item icon="heroicon-o-exclamation-triangle">
|
|
Alarm Settings
|
|
</x-filament::dropdown.list.item>
|
|
</x-slot>
|
|
|
|
<x-slot name="heading">
|
|
Alarm Settings
|
|
</x-slot>
|
|
|
|
{{-- Modal content --}}
|
|
<div class="grid grid-cols-2 gap-4">
|
|
Alarm Settings Content
|
|
</div>
|
|
|
|
</x-filament::modal>
|
|
<x-filament::modal width="4xl" icon="heroicon-o-bars-4">
|
|
<x-slot name="trigger">
|
|
{{-- wire:click="openViewModal" --}}
|
|
<x-filament::dropdown.list.item icon="heroicon-o-bars-4">
|
|
Multiline Settings
|
|
</x-filament::dropdown.list.item>
|
|
</x-slot>
|
|
|
|
<x-slot name="heading">
|
|
Multiline Settings
|
|
</x-slot>
|
|
|
|
{{-- Modal content --}}
|
|
@livewire('multiline-bookmaker')
|
|
|
|
</x-filament::modal>
|
|
|
|
<x-filament::modal width="4xl" icon="heroicon-o-adjustments-vertical">
|
|
<x-slot name="trigger">
|
|
{{-- wire:click="openViewModal" --}}
|
|
<x-filament::dropdown.list.item icon="heroicon-o-adjustments-vertical">
|
|
Level Settings
|
|
</x-filament::dropdown.list.item>
|
|
</x-slot>
|
|
|
|
<x-slot name="heading">
|
|
Level Settings
|
|
</x-slot>
|
|
|
|
{{-- Modal content --}}
|
|
<div class="grid grid-cols-2 gap-4">
|
|
Level Settings Content
|
|
</div>
|
|
|
|
</x-filament::modal>
|
|
|
|
<x-filament::modal width="4xl" icon="heroicon-o-calculator">
|
|
<x-slot name="trigger">
|
|
{{-- wire:click="openViewModal" --}}
|
|
<x-filament::dropdown.list.item icon="heroicon-o-calculator">
|
|
Methods Settings
|
|
</x-filament::dropdown.list.item>
|
|
</x-slot>
|
|
|
|
<x-slot name="heading">
|
|
Methods Settings
|
|
</x-slot>
|
|
|
|
{{-- Modal content --}}
|
|
<div class="grid grid-cols-2 gap-4">
|
|
Methods Settings Content
|
|
</div>
|
|
|
|
</x-filament::modal>
|
|
</x-filament::dropdown.list>
|
|
</x-filament::dropdown>
|
|
@endif
|
|
|
|
@if (auth()->user()->hasRole('konto_switch'))
|
|
<x-filament::dropdown>
|
|
<x-slot name="trigger">
|
|
<x-filament::button icon="phosphor-user">
|
|
{{ $client }}
|
|
</x-filament::button>
|
|
</x-slot>
|
|
|
|
<x-filament::dropdown.list>
|
|
@foreach ($clients as $id => $name)
|
|
<x-filament::dropdown.list.item wire:click="swop({{ $id }})" icon="phosphor-key">
|
|
{{ $name }}
|
|
</x-filament::dropdown.list.item>
|
|
@endforeach
|
|
</x-filament::dropdown.list>
|
|
</x-filament::dropdown>
|
|
@endif
|
|
</div>
|