wip filter
This commit is contained in:
1 parent
c4d7f2e6ee
commit
d2caac4bcc
20 files changed
+567
-119
No files matched your search
@@ -0,0 +1,50 @@
|
||||
@php
|
||||
$loadData($record);
|
||||
@endphp
|
||||
|
||||
@if ($hasData())
|
||||
|
||||
@include('filament.tables.columns.fumetto.fumetto_total_ht')
|
||||
|
||||
<div {{ $getExtraAttributeBag() }} class="grid grid-cols-5" style="width: 225px;">
|
||||
|
||||
@include('filament.tables.columns.multiline.label', ['labels' => ['O', 'U', 'T']])
|
||||
|
||||
@foreach ($getBookmaker() as $bookmaker_id)
|
||||
@foreach ($record->odds_totals_ht as $item)
|
||||
@if ($item->bookmaker_id == $bookmaker_id)
|
||||
@include('filament.tables.columns.multiline.bkm', [
|
||||
'bookmaker_id' => $item->bookmaker_id,
|
||||
'icon' => $item->bookmaker->icon ?? '',
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
'odd' => $item->over,
|
||||
'dec' => 2,
|
||||
'hig' => isset($act['over']) && $item->over >= $act['over'] ? 1 : 0,
|
||||
'has' => isset($act['over']) && $item->bookmaker_id != auth()->user()->bookmaker_id,
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
'odd' => $item->under,
|
||||
'dec' => 2,
|
||||
'hig' => isset($act['under']) && $item->under >= $act['under'] ? 1 : 0,
|
||||
'has' => isset($act['under']) && $item->bookmaker_id != auth()->user()->bookmaker_id,
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
'odd' => $item->total,
|
||||
'dec' => 1,
|
||||
'has' => false,
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
'odd' => $item->margin,
|
||||
'dec' => 1,
|
||||
'has' => false,
|
||||
])
|
||||
@endif
|
||||
@endforeach
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
@@ -0,0 +1,55 @@
|
||||
@php
|
||||
$loadData($record);
|
||||
@endphp
|
||||
|
||||
@if ($hasData())
|
||||
|
||||
@include('filament.tables.columns.fumetto.fumetto_1x2_ht')
|
||||
|
||||
<div {{ $getExtraAttributeBag() }} class="grid grid-cols-5" style="width: 225px;">
|
||||
|
||||
@include('filament.tables.columns.multiline.label', ['labels' => ['1', 'X', '2']])
|
||||
|
||||
@php
|
||||
$act = $getAct();
|
||||
@endphp
|
||||
|
||||
@foreach ($getBookmaker() as $bookmaker_id)
|
||||
@foreach ($record->odds_3ways_ht as $item)
|
||||
@if ($item->bookmaker_id == $bookmaker_id)
|
||||
@include('filament.tables.columns.multiline.bkm', [
|
||||
'bookmaker_id' => $item->bookmaker_id,
|
||||
'icon' => $item->bookmaker->icon ?? '',
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
'odd' => $item->h3w,
|
||||
'dec' => 2,
|
||||
'hig' => isset($act['h3w']) && $item->h3w >= $act['h3w'] ? 1 : 0,
|
||||
'has' => isset($act['h3w']) && $item->bookmaker_id != auth()->user()->bookmaker_id,
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
'odd' => $item->d3w,
|
||||
'dec' => 2,
|
||||
'hig' => isset($act['d3w']) && $item->d3w >= $act['d3w'] ? 1 : 0,
|
||||
'has' => isset($act['d3w']) && $item->bookmaker_id != auth()->user()->bookmaker_id,
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
'odd' => $item->a3w,
|
||||
'dec' => 2,
|
||||
'hig' => isset($act['a3w']) && $item->a3w >= $act['a3w'] ? 1 : 0,
|
||||
'has' => isset($act['a3w']) && $item->bookmaker_id != auth()->user()->bookmaker_id,
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
'odd' => $item->margin,
|
||||
'dec' => 1,
|
||||
'has' => false,
|
||||
])
|
||||
@endif
|
||||
@endforeach
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
@@ -0,0 +1,59 @@
|
||||
@if ($hasData())
|
||||
<div class="mx-3 my-auto">
|
||||
<template x-ref="template_1x2_ht_{{ $record->id }}">
|
||||
<div class="grid grid-cols-5 grid-rows-5 gap-1 m-5 z-10">
|
||||
|
||||
@include('filament.tables.columns.multiline.label', ['labels' => ['1', 'X', '2']])
|
||||
|
||||
@php
|
||||
$max = $getMax();
|
||||
$min = $getMin();
|
||||
@endphp
|
||||
|
||||
@foreach ($record->odds_3ways_ht as $item)
|
||||
@include('filament.tables.columns.multiline.bkm', [
|
||||
'bookmaker_id' => $item->bookmaker_id,
|
||||
'icon' => $item->bookmaker->icon ?? '',
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.fums', [
|
||||
'odd' => $item->h3w,
|
||||
'dec' => 2,
|
||||
'max' => $item->h3w >= $max['h3w'] ? 1 : 0,
|
||||
'min' => $item->h3w <= $min['h3w'] ? 1 : 0,
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.fums', [
|
||||
'odd' => $item->d3w,
|
||||
'dec' => 2,
|
||||
'max' => $item->d3w >= $max['d3w'] ? 1 : 0,
|
||||
'min' => $item->d3w <= $min['d3w'] ? 1 : 0,
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.fums', [
|
||||
'odd' => $item->a3w,
|
||||
'dec' => 2,
|
||||
'max' => $item->a3w >= $max['a3w'] ? 1 : 0,
|
||||
'min' => $item->a3w <= $min['a3w'] ? 1 : 0,
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.fums', [
|
||||
'odd' => $item->margin,
|
||||
'dec' => 1,
|
||||
'max' => false,
|
||||
'min' => false,
|
||||
])
|
||||
@endforeach
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<x-filament::icon-button icon="heroicon-o-chat-bubble-left-ellipsis" color="gray"
|
||||
x-tooltip.html="{
|
||||
content: () => $refs.template_1x2_ht_{{ $record->id }}.innerHTML,
|
||||
allowHTML: true,
|
||||
theme: $store.theme,
|
||||
appendTo: $root,
|
||||
interactive: true
|
||||
}" />
|
||||
</div>
|
||||
@endif
|
||||
@@ -0,0 +1,58 @@
|
||||
@if ($hasData())
|
||||
<div class="mx-3 my-auto">
|
||||
<template x-ref="template_total_ht_{{ $record->id }}">
|
||||
<div class="grid grid-cols-5 grid-rows-5 gap-1 m-5 z-10">
|
||||
|
||||
@include('filament.tables.columns.multiline.label', ['labels' => ['O', 'U', 'T']])
|
||||
|
||||
@php
|
||||
$max = $getMax();
|
||||
$min = $getMin();
|
||||
@endphp
|
||||
|
||||
@foreach ($record->odds_totals_ht as $item)
|
||||
@include('filament.tables.columns.multiline.bkm', [
|
||||
'bookmaker_id' => $item->bookmaker_id,
|
||||
'icon' => $item->bookmaker->icon ?? '',
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.fums', [
|
||||
'odd' => $item->over,
|
||||
'dec' => 2,
|
||||
'max' => $item->over == $max['over'] ? 1 : 0,
|
||||
'min' => $item->over == $min['over'] ? 1 : 0,
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.fums', [
|
||||
'odd' => $item->under,
|
||||
'dec' => 2,
|
||||
'max' => $item->under == $max['under'] ? 1 : 0,
|
||||
'min' => $item->under == $min['under'] ? 1 : 0,
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.fums', [
|
||||
'odd' => $item->total,
|
||||
'dec' => 1,
|
||||
'max' => false,
|
||||
'min' => false,
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.fums', [
|
||||
'odd' => $item->margin,
|
||||
'dec' => 1,
|
||||
'max' => false,
|
||||
'min' => false,
|
||||
])
|
||||
@endforeach
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<x-filament::icon-button icon="heroicon-o-chat-bubble-left-ellipsis" color="gray"
|
||||
x-tooltip.html="{
|
||||
content: () => $refs.template_total_ht_{{ $record->id }}.innerHTML,
|
||||
allowHTML: true,
|
||||
theme: $store.theme,
|
||||
appendTo: $root
|
||||
}" />
|
||||
</div>
|
||||
@endif
|
||||
@@ -1,7 +1,9 @@
|
||||
<div class="flex flex-row gap-3">
|
||||
@foreach ($multilines as $multiline)
|
||||
<x-filament::button size="xs" class="mx-1" tooltip="{{ $multiline['name'] }}"
|
||||
wire:click="toggleBettype({{ $multiline['id'] }})" wire:dispatch="refreshTable" :color="!$multiline['is_active'] ? 'gray' : 'primary'">
|
||||
{{ $multiline['short'] }} </x-filament::button>
|
||||
@foreach ($bettype_toggles as $toggle)
|
||||
<x-filament::button class="flex flex-col justify-center gap-0" tooltip="{{ $toggle['name'] }}"
|
||||
wire:click="toggleBettype({{ $toggle['id'] }})" wire:dispatch="refreshTable" :color="!$toggle['is_active'] ? 'gray' : 'primary'">
|
||||
<div class="m-0 p-0">{{ $toggle['short'] }}</div>
|
||||
{{-- <div class="m-0 px-1 border rounded" style="font-size:9px">{{ $toggle['matchpart'] }}</div> --}}
|
||||
</x-filament::button>
|
||||
@endforeach
|
||||
</div>
|
||||
@@ -0,0 +1,20 @@
|
||||
<div>
|
||||
@if (auth()->user()->hasRole('konto_switch'))
|
||||
<x-filament::dropdown>
|
||||
<x-slot name="trigger">
|
||||
<x-filament::dropdown.list.item icon="phosphor-baseball-helmet">
|
||||
Swop Client
|
||||
</x-filament::dropdown.list.item>
|
||||
</x-slot>
|
||||
|
||||
<x-filament::dropdown.list>
|
||||
@foreach ($clients as $id => $name)
|
||||
<x-filament::dropdown.list.item wire:click="swopClient({{ $id }})"
|
||||
icon="phosphor-arrow-fat-right">
|
||||
{{ $name }}
|
||||
</x-filament::dropdown.list.item>
|
||||
@endforeach
|
||||
</x-filament::dropdown.list>
|
||||
</x-filament::dropdown>
|
||||
@endif
|
||||
</div>
|
||||
@@ -0,0 +1,9 @@
|
||||
<div>
|
||||
<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>
|
||||
</div>
|
||||
@@ -60,23 +60,13 @@
|
||||
</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="phosphor-arrows-in-line-horizontal" :close-by-clicking-away="false" :close-by-escaping="false"
|
||||
:close-button="true">
|
||||
<x-slot name="trigger">
|
||||
<x-filament::button outlined icon="phosphor-arrows-in-line-horizontal" color="gray">
|
||||
Event Mapper
|
||||
<x-filament::button outlined icon="phosphor-arrows-in-line-horizontal" color="gray"
|
||||
tooltip="Event Mapper">
|
||||
</x-filament::button>
|
||||
</x-slot>
|
||||
|
||||
@@ -168,8 +158,7 @@
|
||||
|
||||
<x-filament::dropdown>
|
||||
<x-slot name="trigger">
|
||||
<x-filament::button outlined icon="heroicon-o-adjustments-horizontal" color="gray">
|
||||
Settings
|
||||
<x-filament::button outlined icon="heroicon-o-adjustments-horizontal" color="gray" tooltip="Settings">
|
||||
</x-filament::button>
|
||||
</x-slot>
|
||||
|
||||
@@ -249,24 +238,4 @@
|
||||
</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-play">
|
||||
{{ $client }}
|
||||
</x-filament::button>
|
||||
</x-slot>
|
||||
|
||||
<x-filament::dropdown.list>
|
||||
@foreach ($clients as $id => $name)
|
||||
@if ($name != $client)
|
||||
<x-filament::dropdown.list.item wire:click="swop({{ $id }})" icon="phosphor-play">
|
||||
{{ $name }}
|
||||
</x-filament::dropdown.list.item>
|
||||
@endif
|
||||
@endforeach
|
||||
</x-filament::dropdown.list>
|
||||
</x-filament::dropdown>
|
||||
@endif
|
||||
</div>
|
||||
Reference in new issue
Block a user