wip filter

This commit is contained in:
salam committed 2026-01-10 13:17:09 +01:00
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