Files
nuhodds_fi4/resources/views/filament/tables/columns/fumetto/fumetto_dnb.blade.php
T
2026-01-04 15:56:53 +01:00

52 lines
1.9 KiB
PHP

@if ($hasData())
<div class="mx-3 my-auto">
<template x-ref="template_dnb_{{ $record->id }}">
<div class="grid grid-cols-4 grid-rows-5 gap-1 m-5 z-10">
@include('filament.tables.columns.multiline.label', ['labels' => ['DNB1', 'DNB2']])
@php
$max = $getMax();
$min = $getMin();
@endphp
@foreach ($record->odds_dnb 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->dnb1,
'dec' => 2,
'max' => $item->dnb1 == $max['dnb1'] ? 1 : 0,
'min' => $item->dnb1 == $min['dnb1'] ? 1 : 0,
])
@include('filament.tables.columns.multiline.fums', [
'odd' => $item->dnb2,
'dec' => 2,
'max' => $item->dnb2 == $max['dnb2'] ? 1 : 0,
'min' => $item->dnb2 == $min['dnb2'] ? 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="heroicon-o-chat-bubble-left-ellipsis" color="gray"
x-tooltip.html="{
content: () => $refs.template_dnb_{{ $record->id }}.innerHTML,
allowHTML: true,
theme: $store.theme,
appendTo: $root
}" />
</div>
@endif