fumetto max ok

This commit is contained in:
salam committed 2026-01-03 17:46:23 +01:00
1 parent 9e7384daf8
commit 9c78f507f4
58 files changed
+672 -144

No files matched your search

@@ -1,8 +1,14 @@
@if ($hasData())
<div class="mx-3 my-auto">
<template x-ref="template">
<template x-ref="template_dc">
<div class="grid grid-cols-5 grid-rows-5 gap-1 m-5 z-10">
@include('filament.tables.columns.multiline.label', ['labels' => ['1X', '12', 'X2']])
@php
$max = $getMax();
@endphp
@foreach ($getData() as $item)
@include('filament.tables.columns.multiline.bkm', [
'bookmaker_id' => $item->bookmaker_id,
@@ -10,23 +16,27 @@
])
@include('filament.tables.columns.multiline.odds', [
'odd' => $item->dcx1,
'odd' => $item->dc1x,
'decimal' => 2,
'max' => $item->dc1x == $max['dc1x'] ? 1 : 0,
])
@include('filament.tables.columns.multiline.odds', [
'odd' => $item->dc12,
'decimal' => 2,
'max' => $item->dc12 == $max['dc12'] ? 1 : 0,
])
@include('filament.tables.columns.multiline.odds', [
'odd' => $item->dcx2,
'decimal' => 2,
'max' => $item->dcx2 == $max['dcx2'] ? 1 : 0,
])
@include('filament.tables.columns.multiline.odds', [
'odd' => $item->margin,
'decimal' => 1,
'max' => $item->margin == $max['margin'] ? 1 : 0,
])
@endforeach
</div>
@@ -34,7 +44,7 @@
<x-filament::icon-button icon="heroicon-o-chat-bubble-left-ellipsis" color="gray"
x-tooltip.html="{
content: () => $refs.template.innerHTML,
content: () => $refs.template_dc.innerHTML,
allowHTML: true,
theme: $store.theme,
appendTo: $root