59 lines
2.2 KiB
PHP
59 lines
2.2 KiB
PHP
@if ($hasData())
|
|
<div class="mx-3 my-auto">
|
|
<template x-ref="template_total_{{ $record->id }}">
|
|
<div class="grid grid-cols-5 grid-rows-5 gap-1 m-5 z-10">
|
|
|
|
@include('filament.tables.columns.multiline.label', ['labels' => ['O', 'U', 'T']])
|
|
|
|
@php
|
|
$max = $getMax();
|
|
$min = $getMin();
|
|
@endphp
|
|
|
|
@foreach ($record->odds_totals as $item)
|
|
@include('filament.tables.columns.multiline.bkm', [
|
|
'bookmaker_id' => $item->bookmaker_id,
|
|
'icon' => $item->bookmaker->icon ?? '',
|
|
])
|
|
|
|
@include('filament.tables.columns.multiline.fums', [
|
|
'odd' => $item->over,
|
|
'dec' => 2,
|
|
'max' => $item->over == $max['over'] ? 1 : 0,
|
|
'min' => $item->over == $min['over'] ? 1 : 0,
|
|
])
|
|
|
|
@include('filament.tables.columns.multiline.fums', [
|
|
'odd' => $item->under,
|
|
'dec' => 2,
|
|
'max' => $item->under == $max['under'] ? 1 : 0,
|
|
'min' => $item->under == $min['under'] ? 1 : 0,
|
|
])
|
|
|
|
@include('filament.tables.columns.multiline.fums', [
|
|
'odd' => $item->total,
|
|
'dec' => 1,
|
|
'max' => false,
|
|
'min' => false,
|
|
])
|
|
|
|
@include('filament.tables.columns.multiline.fums', [
|
|
'odd' => $item->margin,
|
|
'dec' => 1,
|
|
'max' => false,
|
|
'min' => false,
|
|
])
|
|
@endforeach
|
|
</div>
|
|
</template>
|
|
|
|
<x-filament::icon-button icon="heroicon-o-chat-bubble-left-ellipsis" color="gray"
|
|
x-tooltip.html="{
|
|
content: () => $refs.template_total_{{ $record->id }}.innerHTML,
|
|
allowHTML: true,
|
|
theme: $store.theme,
|
|
appendTo: $root
|
|
}" />
|
|
</div>
|
|
@endif
|