This commit is contained in:
salam committed 2026-01-04 13:52:14 +01:00
1 parent 7dce81013b
commit 668310b03d
12 files changed
+87 -124

No files matched your search

@@ -4,57 +4,15 @@
@if ($hasData())
@include('filament.tables.columns.fumetto.fumetto_1x2')
{{-- @include('filament.tables.columns.fumetto.fumetto_1x2') --}}
<div {{ $getExtraAttributeBag() }} class="grid grid-cols-5" style="width: 225px;">
@include('filament.tables.columns.multiline.label', ['labels' => ['1', 'X', '2']])
@foreach ($record->odds_3way as $item)
@if ($item->bookmaker_id == auth()->user()->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,
'decimal' => 2,
'max' => false,
'min' => false,
])
@include('filament.tables.columns.multiline.odds', [
'odd' => $item->d3w,
'decimal' => 2,
'max' => false,
'min' => false,
])
@include('filament.tables.columns.multiline.odds', [
'odd' => $item->a3w,
'decimal' => 2,
'max' => false,
'min' => false,
])
@include('filament.tables.columns.multiline.odds', [
'odd' => $item->margin,
'decimal' => 1,
'max' => false,
'min' => false,
])
@endif
@endforeach
<div class="col-span-5 h-2"></div>
@php
$act = $getAct();
@endphp
@foreach ($getBookmaker() as $bookmaker_id)
@foreach ($record->odds_3way as $item)
@if ($item->bookmaker_id == $bookmaker_id)
@include('filament.tables.columns.multiline.bkm', [
'bookmaker_id' => $item->bookmaker_id,
@@ -63,29 +21,32 @@
@include('filament.tables.columns.multiline.odds', [
'odd' => $item->h3w,
'decimal' => 2,
'dec' => 2,
'hig' => $item->max_h3w,
'max' => false,
'min' => false,
'over' => $item->d3w < $act['h3w'] ? 1 : 0,
])
@include('filament.tables.columns.multiline.odds', [
'odd' => $item->d3w,
'decimal' => 2,
'dec' => 2,
'hig' => false,
'max' => false,
'min' => false,
])
@include('filament.tables.columns.multiline.odds', [
'odd' => $item->a3w,
'decimal' => 2,
'dec' => 2,
'hig' => false,
'max' => false,
'min' => false,
])
@include('filament.tables.columns.multiline.odds', [
'odd' => $item->margin,
'decimal' => 1,
'dec' => 1,
'hig' => false,
'max' => false,
'min' => false,
])
@@ -5,11 +5,6 @@
@include('filament.tables.columns.multiline.label', ['labels' => ['1', 'X', '2']])
@php
$max = $getMax();
$min = $getMin();
@endphp
@foreach ($record->odds_3way as $item)
@include('filament.tables.columns.multiline.bkm', [
'bookmaker_id' => $item->bookmaker_id,
@@ -19,29 +14,27 @@
@include('filament.tables.columns.multiline.odds', [
'odd' => $item->h3w,
'decimal' => 2,
'max' => $item->h3w == $max['h3w'] ? 1 : 0,
'min' => $item->h3w == $min['h3w'] ? 1 : 0,
'max' => $item?->max_h3w,
'min' => $item?->min_h3w,
])
@include('filament.tables.columns.multiline.odds', [
'odd' => $item->d3w,
'decimal' => 2,
'max' => $item->d3w == $max['d3w'] ? 1 : 0,
'min' => $item->d3w == $min['d3w'] ? 1 : 0,
'max' => $item?->max_d3w,
'min' => $item?->min_d3w,
])
@include('filament.tables.columns.multiline.odds', [
'odd' => $item->a3w,
'decimal' => 2,
'max' => $item->a3w == $max['a3w'] ? 1 : 0,
'min' => $item->a3w == $min['a3w'] ? 1 : 0,
'max' => $item?->max_a3w,
'min' => $item?->min_a3w,
])
@include('filament.tables.columns.multiline.odds', [
'odd' => $item->margin,
'decimal' => 1,
'max' => $item->margin == $max['margin'] ? 1 : 0,
'min' => $item->margin == $min['margin'] ? 1 : 0,
])
@endforeach
</div>
@@ -1,11 +1,21 @@
<div class="mb-0.5 ml-0.5
@if (isset($max) && $max == true) bg-green-600/25 rounded
@elseif (isset($min) && $min == true) bg-blue-600/25 rounded @endif
@if (isset($over) && $over == true) border border-gray-300 bg-gray-100 @endif"
style="font-size: 10.5px; text-align:center;">
&nbsp;
@if (isset($odd))
{{ number_format($odd, $decimal) }}
<div style="font-size: 10.5px; text-align:center;" class="mb-0.5 ml-0.5
@if($max)
bg-green-600/25 rounded
@endif
@if($min)
bg-blue-600/25 rounded
@endif
@if($hig)
bg-gray-400/25 rounded
@endif
">
&nbsp;
@if (isset($odd))
{{ number_format($odd, $dec) }}
@endif
&nbsp;
</div>