Files
nuhodds_fi4/resources/views/filament/tables/columns/fumetto/fumetto_ggng.blade.php
T
2026-01-04 08:19:46 +01:00

52 lines
1.9 KiB
PHP

@if ($hasData())
<div class="mx-3 my-auto">
<template x-ref="template_gg_{{ $record->id }}">
<div class="grid grid-cols-4 grid-rows-5 gap-1 m-5 z-10">
@include('filament.tables.columns.multiline.label', ['labels' => ['GG', 'NG']])
@php
$max = $getMax();
$min = $getMin();
@endphp
@foreach ($record->odds_ggng 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->gg,
'decimal' => 2,
'max' => $item->gg == $max['gg'] ? 1 : 0,
'min' => $item->gg == $min['gg'] ? 1 : 0,
])
@include('filament.tables.columns.multiline.odds', [
'odd' => $item->ng,
'decimal' => 2,
'max' => $item->ng == $max['ng'] ? 1 : 0,
'min' => $item->ng == $min['ng'] ? 1 : 0,
])
@include('filament.tables.columns.multiline.odds', [
'odd' => $item->margin,
'decimal' => 1,
'max' => $item->margin == $max['margin'] ? 1 : 0,
'min' => $item->margin == $min['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_gg_{{ $record->id }}.innerHTML,
allowHTML: true,
theme: $store.theme,
appendTo: $root
}" />
</div>
@endif