44 lines
1.5 KiB
PHP
44 lines
1.5 KiB
PHP
@if ($hasData())
|
|
<div x-data="{ message: 'loading..' }" class="mx-3 my-auto">
|
|
<template x-ref="template">
|
|
<div class="grid grid-cols-5 grid-rows-5 gap-1 m-5">
|
|
|
|
@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->over,
|
|
'decimal' => 2,
|
|
])
|
|
|
|
@include('filament.tables.columns.multiline.odds', [
|
|
'odd' => $item->under,
|
|
'decimal' => 2,
|
|
])
|
|
|
|
@include('filament.tables.columns.multiline.odds', [
|
|
'odd' => $item->total,
|
|
'decimal' => 1,
|
|
])
|
|
|
|
@include('filament.tables.columns.multiline.odds', [
|
|
'odd' => $item->margin,
|
|
'decimal' => 1,
|
|
])
|
|
@endforeach
|
|
</div>
|
|
</template>
|
|
|
|
<x-filament::icon-button icon="heroicon-o-chat-bubble-left-ellipsis" color="gray"
|
|
x-tooltip.html="{
|
|
content: () => $refs.template.innerHTML,
|
|
allowHTML: true,
|
|
theme: $store.theme,
|
|
appendTo: $root
|
|
}" />
|
|
</div>
|
|
@endif
|