79 lines
2.7 KiB
PHP
79 lines
2.7 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']])
|
|
|
|
@foreach ($record->odds_tq as $item)
|
|
@if ($item->bookmaker_id == auth()->user()->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->htq,
|
|
'decimal' => 2,
|
|
'max' => false,
|
|
'min' => false,
|
|
'main' => true,
|
|
])
|
|
|
|
@include('filament.tables.columns.multiline.odds', [
|
|
'odd' => $item->atq,
|
|
'decimal' => 2,
|
|
'max' => false,
|
|
'min' => false,
|
|
'main' => true,
|
|
])
|
|
|
|
@include('filament.tables.columns.multiline.odds', [
|
|
'odd' => $item->margin,
|
|
'decimal' => 1,
|
|
'max' => false,
|
|
'min' => false,
|
|
'main' => true,
|
|
])
|
|
@endif
|
|
@endforeach
|
|
|
|
@foreach ($getBookmaker() as $bookmaker_id)
|
|
@foreach ($record->odds_tq 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->htq,
|
|
'decimal' => 2,
|
|
'max' => false,
|
|
'min' => false,
|
|
])
|
|
|
|
@include('filament.tables.columns.multiline.odds', [
|
|
'odd' => $item->atq,
|
|
'decimal' => 2,
|
|
'max' => false,
|
|
'min' => false,
|
|
])
|
|
|
|
@include('filament.tables.columns.multiline.odds', [
|
|
'odd' => $item->margin,
|
|
'decimal' => 1,
|
|
'max' => false,
|
|
'min' => false,
|
|
])
|
|
@endif
|
|
@endforeach
|
|
@endforeach
|
|
</div>
|
|
@endif
|