Files
nuhodds_fi4/resources/views/filament/tables/columns/fumetto/fumetto_1x2.blade.php
T
2026-01-10 15:57:23 +01:00

60 lines
2.2 KiB
PHP

@if ($hasData())
<div class="mx-3 my-auto">
<template x-ref="template_1x2_{{ $record->id }}">
<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();
$min = $getMin();
@endphp
@foreach ($record->odds_3ways 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->h3w,
'dec' => 2,
'max' => $item->h3w >= $max['h3w'] ? 1 : 0,
'min' => $item->h3w <= $min['h3w'] ? 1 : 0,
])
@include('filament.tables.columns.multiline.fums', [
'odd' => $item->d3w,
'dec' => 2,
'max' => $item->d3w >= $max['d3w'] ? 1 : 0,
'min' => $item->d3w <= $min['d3w'] ? 1 : 0,
])
@include('filament.tables.columns.multiline.fums', [
'odd' => $item->a3w,
'dec' => 2,
'max' => $item->a3w >= $max['a3w'] ? 1 : 0,
'min' => $item->a3w <= $min['a3w'] ? 1 : 0,
])
@include('filament.tables.columns.multiline.fums', [
'odd' => $item->margin,
'dec' => 1,
'max' => false,
'min' => false,
])
@endforeach
</div>
</template>
<x-filament::icon-button icon="phosphor-chat-centered-text" color="gray"
x-tooltip.html="{
content: () => $refs.template_1x2_{{ $record->id }}.innerHTML,
allowHTML: true,
theme: $store.theme,
appendTo: $root,
interactive: true
}" />
</div>
@endif