54 lines
2.1 KiB
PHP
54 lines
2.1 KiB
PHP
@php
|
|
$loadData($record);
|
|
$act = $getAct();
|
|
@endphp
|
|
|
|
@if ($hasData())
|
|
|
|
@include('filament.tables.columns.fumetto.fumetto_1x2_ht')
|
|
|
|
<div {{ $getExtraAttributeBag() }} class="grid grid-cols-5" style="width: 225px;">
|
|
|
|
@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)
|
|
|
|
@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
|