138 lines
5.0 KiB
PHP
138 lines
5.0 KiB
PHP
@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
|