46 lines
1.7 KiB
PHP
46 lines
1.7 KiB
PHP
@if ($hasData())
|
|
<div class="mx-3 my-auto">
|
|
<template x-ref="template_tq">
|
|
<div class="grid grid-cols-4 grid-rows-5 gap-1 m-5 z-10">
|
|
|
|
@include('filament.tables.columns.multiline.label', ['labels' => ['H', 'A']])
|
|
@php
|
|
$max = $getMax();
|
|
@endphp
|
|
@foreach ($getData() as $item)
|
|
@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' => $item->htq == $max['htq'] ? 1 : 0,
|
|
])
|
|
|
|
@include('filament.tables.columns.multiline.odds', [
|
|
'odd' => $item->atq,
|
|
'decimal' => 2,
|
|
'max' => $item->atq == $max['atq'] ? 1 : 0,
|
|
])
|
|
|
|
@include('filament.tables.columns.multiline.odds', [
|
|
'odd' => $item->margin,
|
|
'decimal' => 1,
|
|
'max' => $item->margin == $max['margin'] ? 1 : 0,
|
|
])
|
|
@endforeach
|
|
</div>
|
|
</template>
|
|
|
|
<x-filament::icon-button icon="heroicon-o-chat-bubble-left-ellipsis" color="gray"
|
|
x-tooltip.html="{
|
|
content: () => $refs.template_tq.innerHTML,
|
|
allowHTML: true,
|
|
theme: $store.theme,
|
|
appendTo: $root
|
|
}" />
|
|
</div>
|
|
@endif
|