popup highest max and min wip
This commit is contained in:
1 parent
668310b03d
commit
99b901009c
20 files changed
+292
-373
No files matched your search
@@ -5,36 +5,43 @@
|
||||
|
||||
@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,
|
||||
'icon' => $item->bookmaker->icon ?? '',
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
@include('filament.tables.columns.multiline.fums', [
|
||||
'odd' => $item->h3w,
|
||||
'decimal' => 2,
|
||||
'max' => $item?->max_h3w,
|
||||
'min' => $item?->min_h3w,
|
||||
'dec' => 2,
|
||||
'max' => $item->h3w >= $max['h3w'] ? 1 :0,
|
||||
'min' => $item->h3w <= $min['h3w'] ? 1 :0,
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
@include('filament.tables.columns.multiline.fums', [
|
||||
'odd' => $item->d3w,
|
||||
'decimal' => 2,
|
||||
'max' => $item?->max_d3w,
|
||||
'min' => $item?->min_d3w,
|
||||
'dec' => 2,
|
||||
'max' => $item->d3w >= $max['d3w'] ? 1 :0,
|
||||
'min' => $item->d3w <= $min['d3w'] ? 1 :0,
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
@include('filament.tables.columns.multiline.fums', [
|
||||
'odd' => $item->a3w,
|
||||
'decimal' => 2,
|
||||
'max' => $item?->max_a3w,
|
||||
'min' => $item?->min_a3w,
|
||||
'dec' => 2,
|
||||
'max' => $item->a3w >= $max['a3w'] ? 1 :0,
|
||||
'min' => $item->a3w <= $min['a3w'] ? 1 :0,
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
@include('filament.tables.columns.multiline.fums', [
|
||||
'odd' => $item->margin,
|
||||
'decimal' => 1,
|
||||
'dec' => 1,
|
||||
'max' => false,
|
||||
'min' => false,
|
||||
])
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
@@ -16,32 +16,32 @@
|
||||
'icon' => $item->bookmaker->icon ?? '',
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
@include('filament.tables.columns.multiline.fums', [
|
||||
'odd' => $item->dc1x,
|
||||
'decimal' => 2,
|
||||
'max' => $item->dc1x == $max['dc1x'] ? 1 : 0,
|
||||
'min' => $item->dc1x == $min['dc1x'] ? 1 : 0,
|
||||
'dec' => 2,
|
||||
'max' => $item->dc1x >= $max['dc1x'] ? 1 : 0,
|
||||
'min' => $item->dc1x <= $min['dc1x'] ? 1 : 0,
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
@include('filament.tables.columns.multiline.fums', [
|
||||
'odd' => $item->dc12,
|
||||
'decimal' => 2,
|
||||
'max' => $item->dc12 == $max['dc12'] ? 1 : 0,
|
||||
'min' => $item->dc12 == $min['dc12'] ? 1 : 0,
|
||||
'dec' => 2,
|
||||
'max' => $item->dc12 >= $max['dc12'] ? 1 : 0,
|
||||
'min' => $item->dc12 <= $min['dc12'] ? 1 : 0,
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
@include('filament.tables.columns.multiline.fums', [
|
||||
'odd' => $item->dcx2,
|
||||
'decimal' => 2,
|
||||
'max' => $item->dcx2 == $max['dcx2'] ? 1 : 0,
|
||||
'min' => $item->dcx2 == $min['dcx2'] ? 1 : 0,
|
||||
'dec' => 2,
|
||||
'max' => $item->dcx2 >= $max['dcx2'] ? 1 : 0,
|
||||
'min' => $item->dcx2 <= $min['dcx2'] ? 1 : 0,
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
@include('filament.tables.columns.multiline.fums', [
|
||||
'odd' => $item->margin,
|
||||
'decimal' => 1,
|
||||
'max' => $item->margin == $max['margin'] ? 1 : 0,
|
||||
'min' => $item->margin == $min['margin'] ? 1 : 0,
|
||||
'dec' => 1,
|
||||
'max' => false,
|
||||
'min' => false,
|
||||
])
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
@@ -16,25 +16,25 @@
|
||||
'icon' => $item->bookmaker->icon ?? '',
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
@include('filament.tables.columns.multiline.fums', [
|
||||
'odd' => $item->dnb1,
|
||||
'decimal' => 2,
|
||||
'dec' => 2,
|
||||
'max' => $item->dnb1 == $max['dnb1'] ? 1 : 0,
|
||||
'min' => $item->dnb1 == $min['dnb1'] ? 1 : 0,
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
@include('filament.tables.columns.multiline.fums', [
|
||||
'odd' => $item->dnb2,
|
||||
'decimal' => 2,
|
||||
'dec' => 2,
|
||||
'max' => $item->dnb2 == $max['dnb2'] ? 1 : 0,
|
||||
'min' => $item->dnb2 == $min['dnb2'] ? 1 : 0,
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
@include('filament.tables.columns.multiline.fums', [
|
||||
'odd' => $item->margin,
|
||||
'decimal' => 1,
|
||||
'max' => $item->margin == $max['margin'] ? 1 : 0,
|
||||
'min' => $item->margin == $min['margin'] ? 1 : 0,
|
||||
'dec' => 1,
|
||||
'max' => false,
|
||||
'min' => false,
|
||||
])
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
@@ -16,25 +16,25 @@
|
||||
'icon' => $item->bookmaker->icon ?? '',
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
@include('filament.tables.columns.multiline.fums', [
|
||||
'odd' => $item->gg,
|
||||
'decimal' => 2,
|
||||
'dec' => 2,
|
||||
'max' => $item->gg == $max['gg'] ? 1 : 0,
|
||||
'min' => $item->gg == $min['gg'] ? 1 : 0,
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
@include('filament.tables.columns.multiline.fums', [
|
||||
'odd' => $item->ng,
|
||||
'decimal' => 2,
|
||||
'dec' => 2,
|
||||
'max' => $item->ng == $max['ng'] ? 1 : 0,
|
||||
'min' => $item->ng == $min['ng'] ? 1 : 0,
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
@include('filament.tables.columns.multiline.fums', [
|
||||
'odd' => $item->margin,
|
||||
'decimal' => 1,
|
||||
'max' => $item->margin == $max['margin'] ? 1 : 0,
|
||||
'min' => $item->margin == $min['margin'] ? 1 : 0,
|
||||
'dec' => 1,
|
||||
'max' => false,
|
||||
'min' => false,
|
||||
])
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
@@ -16,32 +16,32 @@
|
||||
'icon' => $item->bookmaker->icon ?? '',
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
@include('filament.tables.columns.multiline.fums', [
|
||||
'odd' => $item->over,
|
||||
'decimal' => 2,
|
||||
'dec' => 2,
|
||||
'max' => $item->over == $max['over'] ? 1 : 0,
|
||||
'min' => $item->over == $min['over'] ? 1 : 0,
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
@include('filament.tables.columns.multiline.fums', [
|
||||
'odd' => $item->under,
|
||||
'decimal' => 2,
|
||||
'dec' => 2,
|
||||
'max' => $item->under == $max['under'] ? 1 : 0,
|
||||
'min' => $item->under == $min['under'] ? 1 : 0,
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
@include('filament.tables.columns.multiline.fums', [
|
||||
'odd' => $item->total,
|
||||
'decimal' => 1,
|
||||
'dec' => 1,
|
||||
'max' => false,
|
||||
'min' => false,
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
@include('filament.tables.columns.multiline.fums', [
|
||||
'odd' => $item->margin,
|
||||
'decimal' => 1,
|
||||
'max' => $item->margin == $max['margin'] ? 1 : 0,
|
||||
'min' => $item->margin == $min['margin'] ? 1 : 0,
|
||||
'dec' => 1,
|
||||
'max' => false,
|
||||
'min' => false,
|
||||
])
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
@@ -16,25 +16,25 @@
|
||||
'icon' => $item->bookmaker->icon ?? '',
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
@include('filament.tables.columns.multiline.fums', [
|
||||
'odd' => $item->htq,
|
||||
'decimal' => 2,
|
||||
'dec' => 2,
|
||||
'max' => $item->htq == $max['htq'] ? 1 : 0,
|
||||
'min' => $item->htq == $min['htq'] ? 1 : 0,
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
@include('filament.tables.columns.multiline.fums', [
|
||||
'odd' => $item->atq,
|
||||
'decimal' => 2,
|
||||
'dec' => 2,
|
||||
'max' => $item->atq == $max['atq'] ? 1 : 0,
|
||||
'min' => $item->atq == $min['atq'] ? 1 : 0,
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
@include('filament.tables.columns.multiline.fums', [
|
||||
'odd' => $item->margin,
|
||||
'decimal' => 1,
|
||||
'max' => $item->margin == $max['margin'] ? 1 : 0,
|
||||
'min' => $item->margin == $min['margin'] ? 1 : 0,
|
||||
'dec' => 1,
|
||||
'max' => false,
|
||||
'min' => false,
|
||||
])
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user