58 lines
2.0 KiB
PHP
58 lines
2.0 KiB
PHP
@php
|
|
$loadData($record);
|
|
@endphp
|
|
|
|
@if ($hasData())
|
|
|
|
@include('filament.tables.columns.fumetto.fumetto_tq')
|
|
|
|
<div {{ $getExtraAttributeBag() }} class="grid grid-cols-4" style="width: 190px;">
|
|
|
|
@include('filament.tables.columns.multiline.label', ['labels' => ['H', 'A']])
|
|
|
|
@php
|
|
$act = $getAct();
|
|
$rows = 0;
|
|
@endphp
|
|
|
|
@foreach ($getBookmaker() as $bookmaker_id)
|
|
@foreach ($record->odds_tq as $item)
|
|
@if ($item->bookmaker_id == $bookmaker_id)
|
|
@php
|
|
$rows++;
|
|
@endphp
|
|
|
|
@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
|
|
@livewire('SetBookmakerSlot', [
|
|
'rows' => $rows,
|
|
'column' => false,
|
|
])
|
|
</div>
|
|
@endif
|