filter finised
This commit is contained in:
1 parent
ff43f231f0
commit
f684d61a61
15 files changed
+376
-136
No files matched your search
@@ -4,6 +4,8 @@
|
||||
|
||||
@php
|
||||
$taken = false;
|
||||
$compare_bookmaker_id = $getCompareBookmaker();
|
||||
$favorits = $getFavorits();
|
||||
@endphp
|
||||
|
||||
@foreach ($multilines as $multiline)
|
||||
@@ -11,6 +13,11 @@
|
||||
@if ($multiline->bookmaker_id == $slot)
|
||||
@php
|
||||
$taken = true;
|
||||
$favorit = 0;
|
||||
$compared = $compare_bookmaker_id == $multiline->bookmaker_id ? 1 :0;
|
||||
if($compared){
|
||||
$favorit = min($client?->h3w,$client?->d3w,$client?->a3w);
|
||||
}
|
||||
@endphp
|
||||
|
||||
@include('filament.tables.columns.multiline.bkm', [
|
||||
@@ -19,9 +26,25 @@
|
||||
])
|
||||
|
||||
@switch ($getBettype())
|
||||
@case ('odds_tq')
|
||||
|
||||
@case ('odds_2ways')
|
||||
@include('filament.tables.columns.multiline.odd-slots', [
|
||||
'odd' => $multiline->h2w,
|
||||
'client' => $client?->h2w,
|
||||
'compared' => $compared,
|
||||
'favorit' => $favorits['h2w'],
|
||||
'd' => 2,
|
||||
])
|
||||
@include('filament.tables.columns.multiline.odd-slots', [
|
||||
'odd' => $multiline->a2w,
|
||||
'client' => $client?->a2w,
|
||||
'compared' => $compared,
|
||||
'favorit' => $favorits['a2w'],
|
||||
'd' => 2,
|
||||
])
|
||||
@break;
|
||||
|
||||
@case ('odds_tq')
|
||||
|
||||
@case ('odds_2ways_s1')
|
||||
@include('filament.tables.columns.multiline.odd', [
|
||||
@@ -35,7 +58,30 @@
|
||||
'd' => 2,
|
||||
])
|
||||
@break;
|
||||
|
||||
@case ('odds_3ways')
|
||||
@include('filament.tables.columns.multiline.odd-slots', [
|
||||
'odd' => $multiline?->h3w,
|
||||
'client' => $client?->h3w,
|
||||
'compared' => $compared,
|
||||
'favorit' => $favorits['h3w'],
|
||||
'd' => 2,
|
||||
])
|
||||
@include('filament.tables.columns.multiline.odd-slots', [
|
||||
'odd' => $multiline->d3w,
|
||||
'client' => $client?->d3w,
|
||||
'compared' => $compared,
|
||||
'favorit' => $favorits['d3w'],
|
||||
'd' => 2,
|
||||
])
|
||||
@include('filament.tables.columns.multiline.odd-slots', [
|
||||
'odd' => $multiline->a3w,
|
||||
'client' => $client?->a3w,
|
||||
'compared' => $compared,
|
||||
'favorit' => $favorits['a3w'],
|
||||
'd' => 2,
|
||||
])
|
||||
@break;
|
||||
|
||||
@case ('odds_3ways_ht')
|
||||
@include('filament.tables.columns.multiline.odd', [
|
||||
@@ -96,6 +142,26 @@
|
||||
])
|
||||
@break;
|
||||
@case ('odds_points')
|
||||
@include('filament.tables.columns.multiline.odd-slots', [
|
||||
'odd' => $multiline->home,
|
||||
'client' => $client?->home,
|
||||
'compared' => $compared,
|
||||
'favorit' => $favorits['home'],
|
||||
'd' => 2,
|
||||
])
|
||||
@include('filament.tables.columns.multiline.odd-slots', [
|
||||
'odd' => $multiline->away,
|
||||
'compared' => $compared,
|
||||
'client' => $client?->away,
|
||||
'favorit' => $favorits['away'],
|
||||
'd' => 2,
|
||||
])
|
||||
@include('filament.tables.columns.multiline.odd', [
|
||||
'odd' => $multiline->handicap,
|
||||
'client' => false,
|
||||
'd' => 1,
|
||||
])
|
||||
@break;
|
||||
|
||||
@case ('odds_points_ht')
|
||||
|
||||
@@ -116,6 +182,7 @@
|
||||
'd' => 1,
|
||||
])
|
||||
@break;
|
||||
|
||||
@case ('odds_totals')
|
||||
|
||||
@case ('odds_totals_ht')
|
||||
@@ -139,10 +206,11 @@
|
||||
@break;
|
||||
@endswitch
|
||||
|
||||
|
||||
@include('filament.tables.columns.multiline.odd', [
|
||||
@include('filament.tables.columns.multiline.odd-slots', [
|
||||
'odd' => $multiline->margin,
|
||||
'client' => false,
|
||||
'compared' => $compared,
|
||||
'client' => $client?->margin,
|
||||
'favorit' => $favorits['margin'],
|
||||
'd' => 1,
|
||||
])
|
||||
@endif
|
||||
|
||||
Reference in new issue
Block a user