50 lines
1.9 KiB
PHP
50 lines
1.9 KiB
PHP
@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
|