wip fix
This commit is contained in:
1 parent
9bcd4432c6
commit
6f92f9e1d5
1209 files changed
+220940
No files matched your search
@@ -0,0 +1,35 @@
|
||||
<x-filament-panels::page>
|
||||
<div class="inline-block absolute top-22 ">
|
||||
@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
|
||||
</div>
|
||||
<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-panels::page>
|
||||
@@ -0,0 +1,16 @@
|
||||
<div>
|
||||
<x-filament::fieldset>
|
||||
<x-slot name="label">
|
||||
Double players {{ \count($doubles)}}
|
||||
</x-slot>
|
||||
|
||||
<div class= "flex flex-wrap gap-2">
|
||||
@foreach ($doubles as $double)
|
||||
|
||||
<div>Match ID: {{ $double['match_id'] }}</div>
|
||||
<div>Player ID: {{ $double['player_id'] }}</div>
|
||||
|
||||
@endforeach
|
||||
</div>
|
||||
</x-filament::fieldset>
|
||||
</div>
|
||||
@@ -0,0 +1,17 @@
|
||||
<div>
|
||||
<x-filament::fieldset>
|
||||
<x-slot name="label">
|
||||
Events with wrong starttime: {{ $events->count() }}
|
||||
</x-slot>
|
||||
|
||||
<div class="grid grid-cols-5 gap-4">
|
||||
@foreach ($events as $event)
|
||||
<div>{{ $event->match_id }}</div>
|
||||
<div>{{ $event->starttime }}</div>
|
||||
<div>{{ $event->league->name }}</div>
|
||||
<div>{{ $event->home->ss_team_name }}</div>
|
||||
<div>{{ $event->away->ss_team_name }}</div>
|
||||
@endforeach
|
||||
</div>
|
||||
</x-filament::fieldset>
|
||||
</div>
|
||||
@@ -0,0 +1,16 @@
|
||||
<div>
|
||||
{{-- <div class="p-2 border text-md">Player missing {{ \count($players)}}</div> --}}
|
||||
<x-filament::section>
|
||||
<x-slot name="heading">
|
||||
{{ \count($players)}} players in table "players" but missing in tavle "details"
|
||||
</x-slot>
|
||||
|
||||
<div class= "flex flex-wrap gap-2">
|
||||
@foreach ($players as $player)
|
||||
|
||||
<div>{{ $player->ss_player_id }}</div>
|
||||
|
||||
@endforeach
|
||||
</div>
|
||||
</x-filament::section>
|
||||
</div>
|
||||
@@ -0,0 +1,16 @@
|
||||
<div>
|
||||
{{-- <div class="p-2 border text-md">Player missing {{ \count($players)}}</div> --}}
|
||||
<x-filament::section>
|
||||
<x-slot name="heading">
|
||||
{{ \count($players)}} players with wrong starttime
|
||||
</x-slot>
|
||||
|
||||
<div class= "flex flex-wrap gap-2">
|
||||
@foreach ($players as $player)
|
||||
|
||||
<div>{{ $player->ss_player_id }}</div>
|
||||
|
||||
@endforeach
|
||||
</div>
|
||||
</x-filament::section>
|
||||
</div>
|
||||
@@ -0,0 +1,3 @@
|
||||
<x-filament-panels::page>
|
||||
{{ $this->form }}
|
||||
</x-filament-panels::page>
|
||||
@@ -0,0 +1,15 @@
|
||||
<div class="flex flex-rows justify-between gap-4 sm:flex-row sm:items-center">
|
||||
<!-- Left Aligned Actions -->
|
||||
<div class="flex flex-rows items-center gap-3">
|
||||
@foreach ($leftActions as $action)
|
||||
{{ $action }}
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
<!-- Right Aligned Actions -->
|
||||
<div class="flex flex-rows items-center gap-3 sm:ms-auto">
|
||||
@foreach ($rightActions as $action)
|
||||
{{ $action }}
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,73 @@
|
||||
@php
|
||||
$player_name = App\Models\StatistikoDetail::where('ss_player_id', (int) $this->filters['ss_player_id'])->value(
|
||||
'player_name',
|
||||
);
|
||||
@endphp
|
||||
<x-filament-panels::page class="gap-0">
|
||||
|
||||
<script>
|
||||
window.addEventListener('reset-tab', () => {
|
||||
if (Alpine.$data(document.querySelector('#charttabs')).activeTab == 'tab3' ||
|
||||
Alpine.$data(document.querySelector('#charttabs')).activeTab == 'tab4') {
|
||||
Alpine.$data(document.querySelector('#charttabs')).activeTab = 'tab1';
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
{{ $this->filtersForm }}
|
||||
|
||||
{{-- @livewire(\App\Filament\Widgets\BoxesBettypeSingle::class, ['filters' => $this->filters]) --}}
|
||||
@livewire(\App\Filament\Widgets\BoxesBettypeAll::class, ['filters' => $this->filters])
|
||||
|
||||
<div x-data="{ activeTab: 'tab1' }" id="charttabs">
|
||||
<!-- Tab Navigation -->
|
||||
<x-filament::tabs label="Statistics" class="mb-4 justify-center rounded-lg grid grid-cols-2 md:grid-cols-4">
|
||||
<x-filament::tabs.item x-on:click="activeTab = 'tab1'" :alpine-active="'activeTab === \'' . 'tab1' . '\''" icon="phosphor-trophy">
|
||||
Events
|
||||
</x-filament::tabs.item>
|
||||
|
||||
<x-filament::tabs.item x-on:click="activeTab = 'tab2'" :alpine-active="'activeTab === \'' . 'tab2' . '\''" icon="phosphor-trophy">
|
||||
Events Performance
|
||||
</x-filament::tabs.item>
|
||||
|
||||
@if ($player_name)
|
||||
<x-filament::tabs.item x-on:click="activeTab = 'tab3'" :alpine-active="'activeTab === \'' . 'tab3' . '\''" icon="icon-player">
|
||||
{{ $player_name }}
|
||||
</x-filament::tabs.item>
|
||||
|
||||
<x-filament::tabs.item x-on:click="activeTab = 'tab4'" :alpine-active="'activeTab === \'' . 'tab4' . '\''" icon="icon-player">
|
||||
{{ $player_name }} Performance
|
||||
</x-filament::tabs.item>
|
||||
@endif
|
||||
|
||||
</x-filament::tabs>
|
||||
|
||||
|
||||
<!-- Tab Content -->
|
||||
<div class="mt-2">
|
||||
<!-- Content for Tab 1 -->
|
||||
<div x-show="activeTab === 'tab1'" x-cloak class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
||||
@livewire(\App\Filament\Widgets\ChartEvent::class, ['filters' => $this->filters])
|
||||
@livewire(\App\Filament\Widgets\ChartEventMoAv::class, ['filters' => $this->filters])
|
||||
</div>
|
||||
|
||||
<!-- Content for Tab 2 -->
|
||||
<div x-show="activeTab === 'tab2'" x-cloak class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
||||
@livewire(\App\Filament\Widgets\ChartEventPerf::class, ['filters' => $this->filters])
|
||||
@livewire(\App\Filament\Widgets\ChartEventPerfMoAv::class, ['filters' => $this->filters])
|
||||
</div>
|
||||
|
||||
@if ($player_name)
|
||||
<div x-show="activeTab === 'tab3'" x-cloak class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
||||
@livewire(\App\Filament\Widgets\ChartPlayer::class, ['filters' => $this->filters])
|
||||
@livewire(\App\Filament\Widgets\ChartPlayerMoAv::class, ['filters' => $this->filters])
|
||||
</div>
|
||||
|
||||
<div x-show="activeTab === 'tab4'" x-cloak class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
||||
@livewire(\App\Filament\Widgets\ChartPlayerPerf::class, ['filters' => $this->filters])
|
||||
@livewire(\App\Filament\Widgets\ChartPlayerPerfMoAv::class, ['filters' => $this->filters])
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</x-filament-panels::page>
|
||||
Reference in new issue
Block a user