fumetto 1col & 2col
This commit is contained in:
1 parent
937c5908d2
commit
531b4c0dc9
34 files changed
+809
-673
No files matched your search
@@ -1,53 +1,62 @@
|
||||
@if ($hasData())
|
||||
<div class="mx-3 my-auto">
|
||||
<template x-ref="template_gg_{{ $record->id }}">
|
||||
<div class="grid grid-cols-11 grid-rows-5 gap-1 m-5 z-10 text-xs text-center">
|
||||
|
||||
@include('filament.tables.columns.fumetto-multiline.label', ['labels' => ['GG', 'NG']])
|
||||
|
||||
@php
|
||||
$max = $getMax();
|
||||
$min = $getMin();
|
||||
@endphp
|
||||
|
||||
@foreach ($record->odds_ggng as $i => $item)
|
||||
@include('filament.tables.columns.fumetto-multiline.bkm', [
|
||||
'bookmaker_id' => $item->bookmaker_id,
|
||||
'icon' => $item->bookmaker->icon ?? '',
|
||||
@if ($hasData() > 9)
|
||||
<div class="grid grid-cols-11 gap-2 m-5 z-10 text-xs text-center">
|
||||
@include('filament.tables.columns.fumetto-multiline.label', [
|
||||
'labels' => ['GG', 'NG'],
|
||||
'twice' => true,
|
||||
])
|
||||
@else
|
||||
<div class="grid grid-cols-5 gap-2 m-5 z-10 text-xs text-center">
|
||||
@include('filament.tables.columns.fumetto-multiline.label', [
|
||||
'labels' => ['GG', 'NG'],
|
||||
'twice' => false,
|
||||
])
|
||||
@endif
|
||||
@php
|
||||
$max = $getMax();
|
||||
$min = $getMin();
|
||||
@endphp
|
||||
|
||||
@include('filament.tables.columns.fumetto-multiline.odds', [
|
||||
'odd' => $item->gg,
|
||||
'dec' => 2,
|
||||
'max' => $item->gg == $max['gg'] ? 1 : 0,
|
||||
'min' => $item->gg == $min['gg'] ? 1 : 0,
|
||||
])
|
||||
@foreach ($record->odds_ggng as $i => $item)
|
||||
@include('filament.tables.columns.fumetto-multiline.bkm', [
|
||||
'bookmaker_id' => $item->bookmaker_id,
|
||||
'icon' => $item->bookmaker->icon ?? '',
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.fumetto-multiline.odds', [
|
||||
'odd' => $item->ng,
|
||||
'dec' => 2,
|
||||
'max' => $item->ng == $max['ng'] ? 1 : 0,
|
||||
'min' => $item->ng == $min['ng'] ? 1 : 0,
|
||||
])
|
||||
@include('filament.tables.columns.fumetto-multiline.odds', [
|
||||
'odd' => $item->gg,
|
||||
'dec' => 2,
|
||||
'max' => $item->gg == $max['gg'] ? 1 : 0,
|
||||
'min' => $item->gg == $min['gg'] ? 1 : 0,
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.fumetto-multiline.odds', [
|
||||
'odd' => $item->margin,
|
||||
'dec' => 1,
|
||||
'max' => false,
|
||||
'min' => false,
|
||||
])
|
||||
@include('filament.tables.columns.fumetto-multiline.lastcheck', [
|
||||
'lastcheck' => $item->updated_at,
|
||||
])
|
||||
@if($i %2 == 0)
|
||||
@include('filament.tables.columns.fumetto-multiline.odds', [
|
||||
'odd' => $item->ng,
|
||||
'dec' => 2,
|
||||
'max' => $item->ng == $max['ng'] ? 1 : 0,
|
||||
'min' => $item->ng == $min['ng'] ? 1 : 0,
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.fumetto-multiline.odds', [
|
||||
'odd' => $item->margin,
|
||||
'dec' => 1,
|
||||
'max' => false,
|
||||
'min' => false,
|
||||
])
|
||||
@include('filament.tables.columns.fumetto-multiline.lastcheck', [
|
||||
'lastcheck' => $item->updated_at,
|
||||
])
|
||||
@if ($i % 2 == 0 && $hasData() > 9)
|
||||
<div></div>
|
||||
@endif
|
||||
@endforeach
|
||||
</div>
|
||||
</template>
|
||||
@endif
|
||||
@endforeach
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<x-filament::icon-button icon="phosphor-chat-centered-text" color="gray"
|
||||
x-tooltip.html="{
|
||||
<x-filament::icon-button icon="phosphor-chat-centered-text" color="gray"
|
||||
x-tooltip.html="{
|
||||
content: () => $refs.template_gg_{{ $record->id }}.innerHTML,
|
||||
allowHTML: true,
|
||||
theme: $store.theme,
|
||||
|
||||
Reference in new issue
Block a user