55 lines
1.9 KiB
PHP
55 lines
1.9 KiB
PHP
@if ($hasData())
|
|
<div class="mx-3 my-auto">
|
|
<template x-ref="template_1x2">
|
|
<div class="grid grid-cols-5 grid-rows-5 gap-1 m-5 z-10">
|
|
|
|
@include('filament.tables.columns.multiline.label', ['labels' => ['1', 'X', '2']])
|
|
|
|
@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->h3w,
|
|
'decimal' => 2,
|
|
'max' => $item->h3w == $max['h3w'] ? 1 : 0,
|
|
])
|
|
|
|
@include('filament.tables.columns.multiline.odds', [
|
|
'odd' => $item->d3w,
|
|
'decimal' => 2,
|
|
'max' => $item->d3w == $max['d3w'] ? 1 : 0,
|
|
])
|
|
|
|
@include('filament.tables.columns.multiline.odds', [
|
|
'odd' => $item->a3w,
|
|
'decimal' => 2,
|
|
'max' => $item->a3w == $max['a3w'] ? 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_1x2.innerHTML,
|
|
allowHTML: true,
|
|
theme: $store.theme,
|
|
appendTo: $root,
|
|
interactive: true
|
|
}" />
|
|
</div>
|
|
@endif
|