wip
This commit is contained in:
1 parent
da7d4092ac
commit
0cf815c00f
39 files changed
+582
-1760
No files matched your search
@@ -1,50 +0,0 @@
|
||||
@php
|
||||
$loadData($record);
|
||||
$act = $getAct();
|
||||
@endphp
|
||||
|
||||
@if ($hasData())
|
||||
|
||||
<div {{ $getExtraAttributeBag() }} class="grid grid-cols-5 gap-1">
|
||||
|
||||
@include('filament.tables.columns.multiline.label', ['labels' => ['1X', '12', 'X2']])
|
||||
|
||||
@foreach ($getBookmaker() as $bookmaker_id)
|
||||
@foreach ($record->odds_dc as $item)
|
||||
@if ($item->bookmaker_id == $bookmaker_id && in_array($item->bookmaker_id, $getSlots()))
|
||||
@include('filament.tables.columns.multiline.bkm', [
|
||||
'bookmaker_id' => $item->bookmaker_id,
|
||||
'icon' => $item->bookmaker->icon ?? '',
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
'odd' => $item->dc1x,
|
||||
'dec' => 2,
|
||||
'hig' => isset($act['dc1x']) && $item->dc1x >= $act['dc1x'] ? 1 : 0,
|
||||
'has' => isset($act['dc1x']) && $item->bookmaker_id != auth()->user()->bookmaker_id,
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
'odd' => $item->dc12,
|
||||
'dec' => 2,
|
||||
'hig' => isset($act['dc12']) && $item->dc12 >= $act['dc12'] ? 1 : 0,
|
||||
'has' => isset($act['dc12']) && $item->bookmaker_id != auth()->user()->bookmaker_id,
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
'odd' => $item->dcx2,
|
||||
'dec' => 2,
|
||||
'hig' => isset($act['dcx2']) && $item->dcx2 >= $act['dcx2'] ? 1 : 0,
|
||||
'has' => isset($act['dcx2']) && $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
|
||||
@@ -1,43 +0,0 @@
|
||||
@php
|
||||
$loadData($record);
|
||||
$act = $getAct();
|
||||
@endphp
|
||||
|
||||
@if ($hasData())
|
||||
|
||||
<div {{ $getExtraAttributeBag() }} class="grid grid-cols-4 gap-1">
|
||||
|
||||
@include('filament.tables.columns.multiline.label', ['labels' => ['DNB1', 'DNB2']])
|
||||
|
||||
@foreach ($getBookmaker() as $bookmaker_id)
|
||||
@foreach ($record->odds_dnb as $item)
|
||||
@if ($item->bookmaker_id == $bookmaker_id && in_array($item->bookmaker_id, $getSlots()))
|
||||
@include('filament.tables.columns.multiline.bkm', [
|
||||
'bookmaker_id' => $item->bookmaker_id,
|
||||
'icon' => $item->bookmaker->icon ?? '',
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
'odd' => $item->dnb1,
|
||||
'dec' => 2,
|
||||
'hig' => isset($act['dnb1']) && $item->dnb1 >= $act['dnb1'] ? 1 : 0,
|
||||
'has' => isset($act['dnb1']) && $item->bookmaker_id != auth()->user()->bookmaker_id,
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
'odd' => $item->dnb2,
|
||||
'dec' => 2,
|
||||
'hig' => isset($act['dnb2']) && $item->dnb2 >= $act['dnb2'] ? 1 : 0,
|
||||
'has' => isset($act['dnb2']) && $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
|
||||
@@ -1,43 +0,0 @@
|
||||
@php
|
||||
$loadData($record);
|
||||
$act = $getAct();
|
||||
@endphp
|
||||
|
||||
@if ($hasData())
|
||||
|
||||
<div {{ $getExtraAttributeBag() }} class="grid grid-cols-4 gap-1">
|
||||
|
||||
@include('filament.tables.columns.multiline.label', ['labels' => ['GG', 'NG']])
|
||||
|
||||
@foreach ($getBookmaker() as $bookmaker_id)
|
||||
@foreach ($record->odds_ggng as $item)
|
||||
@if ($item->bookmaker_id == $bookmaker_id && in_array($item->bookmaker_id, $getSlots()))
|
||||
@include('filament.tables.columns.multiline.bkm', [
|
||||
'bookmaker_id' => $item->bookmaker_id,
|
||||
'icon' => $item->bookmaker->icon ?? '',
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
'odd' => $item->gg,
|
||||
'dec' => 2,
|
||||
'hig' => isset($act['gg']) && $item->gg >= $act['gg'] ? 1 : 0,
|
||||
'has' => isset($act['gg']) && $item->bookmaker_id != auth()->user()->bookmaker_id,
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
'odd' => $item->ng,
|
||||
'dec' => 2,
|
||||
'hig' => isset($act['ng']) && $item->ng >= $act['ng'] ? 1 : 0,
|
||||
'has' => isset($act['ng']) && $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
|
||||
@@ -1,43 +0,0 @@
|
||||
@php
|
||||
$loadData($record);
|
||||
$act = $getAct();
|
||||
@endphp
|
||||
|
||||
@if ($hasData())
|
||||
|
||||
<div {{ $getExtraAttributeBag() }} class="grid grid-cols-4 gap-1">
|
||||
|
||||
@include('filament.tables.columns.multiline.label', ['labels' => ['1', '2']])
|
||||
|
||||
@foreach ($getBookmaker() as $bookmaker_id)
|
||||
@foreach ($record->odds_2ways_s1 as $item)
|
||||
@if ($item->bookmaker_id == $bookmaker_id && in_array($item->bookmaker_id, $getSlots()))
|
||||
@include('filament.tables.columns.multiline.bkm', [
|
||||
'bookmaker_id' => $item->bookmaker_id,
|
||||
'icon' => $item->bookmaker->icon ?? '',
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
'odd' => $item->h2w,
|
||||
'dec' => 2,
|
||||
'hig' => isset($act['h2w']) && $item->h2w >= $act[''] ? 1 : 0,
|
||||
'has' => isset($act['h2w']) && $item->bookmaker_id != auth()->user()->bookmaker_id,
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
'odd' => $item->a2w,
|
||||
'dec' => 2,
|
||||
'hig' => isset($act['a2w']) && $item->a2w >= $act['a2w'] ? 1 : 0,
|
||||
'has' => isset($act['a2w']) && $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
|
||||
@@ -1,43 +0,0 @@
|
||||
@php
|
||||
$loadData($record);
|
||||
$act = $getAct();
|
||||
@endphp
|
||||
|
||||
@if ($hasData())
|
||||
|
||||
<div {{ $getExtraAttributeBag() }} class="grid grid-cols-4 gap-1">
|
||||
|
||||
@include('filament.tables.columns.multiline.label', ['labels' => ['1', '2']])
|
||||
|
||||
@foreach ($getBookmaker() as $bookmaker_id)
|
||||
@foreach ($record->odds_2ways as $item)
|
||||
@if ($item->bookmaker_id == $bookmaker_id && in_array($item->bookmaker_id, $getSlots()))
|
||||
@include('filament.tables.columns.multiline.bkm', [
|
||||
'bookmaker_id' => $item->bookmaker_id,
|
||||
'icon' => $item->bookmaker->icon ?? '',
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
'odd' => $item->h2w,
|
||||
'dec' => 2,
|
||||
'hig' => isset($act['h2w']) && $item->h2w >= $act[''] ? 1 : 0,
|
||||
'has' => isset($act['h2w']) && $item->bookmaker_id != auth()->user()->bookmaker_id,
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
'odd' => $item->a2w,
|
||||
'dec' => 2,
|
||||
'hig' => isset($act['a2w']) && $item->a2w >= $act['a2w'] ? 1 : 0,
|
||||
'has' => isset($act['a2w']) && $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,137 @@
|
||||
@php
|
||||
$data = $loadData($record);
|
||||
@endphp
|
||||
|
||||
|
||||
@if ($hasData())
|
||||
|
||||
@php
|
||||
$client = $getClient();
|
||||
$label = $getOddsLabels();
|
||||
@endphp
|
||||
|
||||
@if ($getColumns() == 2)
|
||||
<div class="grid grid-cols-4 gap-1" style="font-size: 10.5px; text-align:center; width:200px;">
|
||||
@else
|
||||
<div {{ $getExtraAttributeBag() }} class="grid grid-cols-5 gap-1"
|
||||
style="font-size: 10.5px; text-align:center; width:250px;">
|
||||
@endif
|
||||
|
||||
@include('filament.tables.columns.multiline.label', ['labels' => $label])
|
||||
|
||||
@foreach ($data as $item)
|
||||
@if (in_array($item->bookmaker_id, $getSlots()))
|
||||
@include('filament.tables.columns.multiline.bkm', [
|
||||
'bookmaker_id' => $item->bookmaker_id,
|
||||
'icon' => $item->bookmaker->icon ?? '',
|
||||
])
|
||||
|
||||
@switch ($getBettype())
|
||||
@case ('odds_tq')
|
||||
|
||||
@case ('odds_2ways')
|
||||
|
||||
@case ('odds_2ways_s1')
|
||||
@include('filament.tables.columns.multiline.odd', [
|
||||
'odd' => $item->h2w,
|
||||
'client' => $client?->h2w,
|
||||
])
|
||||
@include('filament.tables.columns.multiline.odd', [
|
||||
'odd' => $item->a2w,
|
||||
'client' => $client?->a2w,
|
||||
])
|
||||
@break;
|
||||
@case ('odds_3ways')
|
||||
|
||||
@case ('odds_3ways_ht')
|
||||
@include('filament.tables.columns.multiline.odd', [
|
||||
'odd' => $item->h3w,
|
||||
'client' => $client?->h3w,
|
||||
])
|
||||
@include('filament.tables.columns.multiline.odd', [
|
||||
'odd' => $item->d3w,
|
||||
'client' => $client?->d3w,
|
||||
])
|
||||
@include('filament.tables.columns.multiline.odd', [
|
||||
'odd' => $item->a3w,
|
||||
'client' => $client?->a3w,
|
||||
])
|
||||
@break;
|
||||
@case ('odds_dc')
|
||||
@include('filament.tables.columns.multiline.odd', [
|
||||
'odd' => $item->dc1x,
|
||||
'client' => $client?->dc1x,
|
||||
])
|
||||
@include('filament.tables.columns.multiline.odd', [
|
||||
'odd' => $item->dc12,
|
||||
'client' => $client?->dc12,
|
||||
])
|
||||
@include('filament.tables.columns.multiline.odd', [
|
||||
'odd' => $item->dcx2,
|
||||
'client' => $client?->dcx2,
|
||||
])
|
||||
@break;
|
||||
@case ('odds_dnb')
|
||||
@include('filament.tables.columns.multiline.odd', [
|
||||
'odd' => $item->dnb1,
|
||||
'client' => $client?->dnb1,
|
||||
])
|
||||
@include('filament.tables.columns.multiline.odd', [
|
||||
'odd' => $item->dnb2,
|
||||
'client' => $client?->dnb2,
|
||||
])
|
||||
@break;
|
||||
@case ('odds_ggng')
|
||||
@include('filament.tables.columns.multiline.odd', [
|
||||
'odd' => $item->gg,
|
||||
'client' => $client?->gg,
|
||||
])
|
||||
@include('filament.tables.columns.multiline.odd', [
|
||||
'odd' => $item->ng,
|
||||
'client' => $client?->ng,
|
||||
])
|
||||
@break;
|
||||
@case ('odds_points')
|
||||
|
||||
@case ('odds_points_ht')
|
||||
|
||||
@case ('odds_points_q1')
|
||||
@include('filament.tables.columns.multiline.odd', [
|
||||
'odd' => $item->home,
|
||||
'client' => $client?->home,
|
||||
])
|
||||
@include('filament.tables.columns.multiline.odd', [
|
||||
'odd' => $item->away,
|
||||
'client' => $client?->away,
|
||||
])
|
||||
@include('filament.tables.columns.multiline.spread', [
|
||||
'odd' => $item->handicap,
|
||||
])
|
||||
@break;
|
||||
@case ('odds_totals')
|
||||
|
||||
@case ('odds_totals_ht')
|
||||
|
||||
@case ('odds_totals_q1')
|
||||
@include('filament.tables.columns.multiline.odd', [
|
||||
'odd' => $item->over,
|
||||
'client' => $client?->over,
|
||||
])
|
||||
@include('filament.tables.columns.multiline.odd', [
|
||||
'odd' => $item->under,
|
||||
'client' => $client?->under,
|
||||
])
|
||||
@include('filament.tables.columns.multiline.spread', [
|
||||
'odd' => $item->total,
|
||||
])
|
||||
@break;
|
||||
@endswitch
|
||||
|
||||
|
||||
@include('filament.tables.columns.multiline.spread', [
|
||||
'odd' => $item->margin,
|
||||
])
|
||||
@endif
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
@@ -1,49 +0,0 @@
|
||||
@php
|
||||
$loadData($record);
|
||||
$act = $getAct();
|
||||
@endphp
|
||||
|
||||
@if ($hasData())
|
||||
|
||||
<div {{ $getExtraAttributeBag() }} class="grid grid-cols-5 gap-1">
|
||||
|
||||
@include('filament.tables.columns.multiline.label', ['labels' => ['O', 'U', 'T']])
|
||||
|
||||
@foreach ($getBookmaker() as $bookmaker_id)
|
||||
@foreach ($record->odds_points_q1 as $item)
|
||||
@if ($item->bookmaker_id == $bookmaker_id && in_array($item->bookmaker_id, $getSlots()))
|
||||
@include('filament.tables.columns.multiline.bkm', [
|
||||
'bookmaker_id' => $item->bookmaker_id,
|
||||
'icon' => $item->bookmaker->icon ?? '',
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
'odd' => $item->home,
|
||||
'dec' => 2,
|
||||
'hig' => isset($act['home']) && $item->home >= $act['home'] ? 1 : 0,
|
||||
'has' => isset($act['home']) && $item->bookmaker_id != auth()->user()->bookmaker_id,
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
'odd' => $item->away,
|
||||
'dec' => 2,
|
||||
'hig' => isset($act['away']) && $item->away >= $act['away'] ? 1 : 0,
|
||||
'has' => isset($act['away']) && $item->bookmaker_id != auth()->user()->bookmaker_id,
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
'odd' => $item->handicap,
|
||||
'dec' => 1,
|
||||
'has' => false,
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
'odd' => $item->margin,
|
||||
'dec' => 1,
|
||||
'has' => false,
|
||||
])
|
||||
@endif
|
||||
@endforeach
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
@@ -1,49 +0,0 @@
|
||||
@php
|
||||
$loadData($record);
|
||||
$act = $getAct();
|
||||
@endphp
|
||||
|
||||
@if ($hasData())
|
||||
|
||||
<div {{ $getExtraAttributeBag() }} class="grid grid-cols-5 gap-1">
|
||||
|
||||
@include('filament.tables.columns.multiline.label', ['labels' => ['O', 'U', 'T']])
|
||||
|
||||
@foreach ($getBookmaker() as $bookmaker_id)
|
||||
@foreach ($record->odds_points as $item)
|
||||
@if ($item->bookmaker_id == $bookmaker_id && in_array($item->bookmaker_id, $getSlots()))
|
||||
@include('filament.tables.columns.multiline.bkm', [
|
||||
'bookmaker_id' => $item->bookmaker_id,
|
||||
'icon' => $item->bookmaker->icon ?? '',
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
'odd' => $item->home,
|
||||
'dec' => 2,
|
||||
'hig' => isset($act['home']) && $item->home >= $act['home'] ? 1 : 0,
|
||||
'has' => isset($act['home']) && $item->bookmaker_id != auth()->user()->bookmaker_id,
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
'odd' => $item->away,
|
||||
'dec' => 2,
|
||||
'hig' => isset($act['away']) && $item->away >= $act['away'] ? 1 : 0,
|
||||
'has' => isset($act['away']) && $item->bookmaker_id != auth()->user()->bookmaker_id,
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
'odd' => $item->handicap,
|
||||
'dec' => 1,
|
||||
'has' => false,
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
'odd' => $item->margin,
|
||||
'dec' => 1,
|
||||
'has' => false,
|
||||
])
|
||||
@endif
|
||||
@endforeach
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
@@ -1,49 +0,0 @@
|
||||
@php
|
||||
$loadData($record);
|
||||
$act = $getAct();
|
||||
@endphp
|
||||
|
||||
@if ($hasData())
|
||||
|
||||
<div {{ $getExtraAttributeBag() }} class="grid grid-cols-5 gap-1">
|
||||
|
||||
@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 && in_array($item->bookmaker_id, $getSlots()))
|
||||
@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
|
||||
@@ -1,49 +0,0 @@
|
||||
@php
|
||||
$loadData($record);
|
||||
$act = $getAct();
|
||||
@endphp
|
||||
|
||||
@if ($hasData())
|
||||
|
||||
<div {{ $getExtraAttributeBag() }} class="grid grid-cols-5 gap-1">
|
||||
|
||||
@include('filament.tables.columns.multiline.label', ['labels' => ['O', 'U', 'T']])
|
||||
|
||||
@foreach ($getBookmaker() as $bookmaker_id)
|
||||
@foreach ($record->odds_totals_q1 as $item)
|
||||
@if ($item->bookmaker_id == $bookmaker_id && in_array($item->bookmaker_id, $getSlots()))
|
||||
@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
|
||||
@@ -1,49 +0,0 @@
|
||||
@php
|
||||
$loadData($record);
|
||||
$act = $getAct();
|
||||
@endphp
|
||||
|
||||
@if ($hasData())
|
||||
|
||||
<div {{ $getExtraAttributeBag() }} class="grid grid-cols-5 gap-1">
|
||||
|
||||
@include('filament.tables.columns.multiline.label', ['labels' => ['O', 'U', 'T']])
|
||||
|
||||
@foreach ($getBookmaker() as $bookmaker_id)
|
||||
@foreach ($record->odds_totals as $item)
|
||||
@if ($item->bookmaker_id == $bookmaker_id && in_array($item->bookmaker_id, $getSlots()))
|
||||
@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
|
||||
@@ -1,42 +0,0 @@
|
||||
@php
|
||||
$loadData($record);
|
||||
$act = $getAct();
|
||||
@endphp
|
||||
|
||||
@if ($hasData())
|
||||
|
||||
<div {{ $getExtraAttributeBag() }} class="grid grid-cols-4 gap-1">
|
||||
|
||||
@include('filament.tables.columns.multiline.label', ['labels' => ['H', 'A']])
|
||||
@foreach ($getBookmaker() as $bookmaker_id)
|
||||
@foreach ($record->odds_tq as $item)
|
||||
@if ($item->bookmaker_id == $bookmaker_id && in_array($item->bookmaker_id, $getSlots()))
|
||||
@include('filament.tables.columns.multiline.bkm', [
|
||||
'bookmaker_id' => $item->bookmaker_id,
|
||||
'icon' => $item->bookmaker->icon ?? '',
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
'odd' => $item->htq,
|
||||
'dec' => 2,
|
||||
'hig' => isset($act['htq']) && $item->htq >= $act['htq'] ? 1 : 0,
|
||||
'has' => isset($act['htq']) && $item->bookmaker_id != auth()->user()->bookmaker_id,
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.odds', [
|
||||
'odd' => $item->atq,
|
||||
'dec' => 2,
|
||||
'hig' => isset($act['atq']) && $item->atq >= $act['atq'] ? 1 : 0,
|
||||
'has' => isset($act['atq']) && $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
|
||||
@@ -1,55 +0,0 @@
|
||||
@php
|
||||
$loadData($record);
|
||||
$act = $getAct();
|
||||
$max = $getMax();
|
||||
$min = $getMin();
|
||||
@endphp
|
||||
|
||||
@if ($hasData())
|
||||
|
||||
<div {{ $getExtraAttributeBag() }} class="grid grid-cols-5 gap-1">
|
||||
|
||||
@include('filament.tables.columns.multiline.label', [
|
||||
'labels' => ['1', 'X', '2'],
|
||||
'twice' => false,
|
||||
])
|
||||
|
||||
@foreach ($getBookmaker() as $bookmaker_id)
|
||||
@foreach ($record->odds_3ways as $item)
|
||||
@if ($item->bookmaker_id == $bookmaker_id && in_array($item->bookmaker_id, $getSlots()))
|
||||
@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
|
||||
@@ -1,50 +0,0 @@
|
||||
@php
|
||||
$loadData($record);
|
||||
$act = $getAct();
|
||||
@endphp
|
||||
|
||||
@if ($hasData())
|
||||
|
||||
<div {{ $getExtraAttributeBag() }} class="grid grid-cols-5 gap-1">
|
||||
|
||||
@include('filament.tables.columns.multiline.label', ['labels' => ['1', 'X', '2']])
|
||||
|
||||
@foreach ($getBookmaker() as $bookmaker_id)
|
||||
@foreach ($record->odds_3ways_ht as $item)
|
||||
@if ($item->bookmaker_id == $bookmaker_id && in_array($item->bookmaker_id, $getSlots()))
|
||||
@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,10 @@
|
||||
@if ($client > 1 && $odd >= $client)
|
||||
<div class="bg-gray-400/25 rounded">
|
||||
@else
|
||||
<div>
|
||||
@endif
|
||||
|
||||
@if (isset($odd))
|
||||
{{ number_format($odd, 2) }}
|
||||
@endif
|
||||
</div>
|
||||
@@ -1,14 +0,0 @@
|
||||
<div style="font-size: 10.5px; text-align:center;" class="m-0 p-0
|
||||
|
||||
|
||||
@if($has && $hig)
|
||||
bg-gray-400/25 rounded
|
||||
@endif
|
||||
|
||||
">
|
||||
|
||||
@if (isset($odd))
|
||||
{{ number_format($odd, $dec) }}
|
||||
@endif
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,7 @@
|
||||
<div>
|
||||
|
||||
@if (isset($odd))
|
||||
{{ number_format($odd, 1) }}
|
||||
@endif
|
||||
|
||||
</div>
|
||||
Reference in new issue
Block a user