multi betts wip
This commit is contained in:
1 parent
1aa044fff1
commit
b39196c9eb
62 files changed
+1237
-208
No files matched your search
@@ -0,0 +1,51 @@
|
||||
@if ($hasData())
|
||||
<div class="mx-3 my-auto">
|
||||
<template x-ref="template_2way_{{ $record->id }}">
|
||||
<div class="grid grid-cols-4 grid-rows-5 gap-1 m-5 z-10">
|
||||
|
||||
@include('filament.tables.columns.multiline.label', ['labels' => ['1', '2']])
|
||||
|
||||
@php
|
||||
$max = $getMax();
|
||||
$min = $getMin();
|
||||
@endphp
|
||||
|
||||
@foreach ($record->odds_2ways 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->h2w,
|
||||
'dec' => 2,
|
||||
'max' => $item->h2w == $max['h2w'] ? 1 : 0,
|
||||
'min' => $item->h2w == $min['h2w'] ? 1 : 0,
|
||||
])
|
||||
|
||||
@include('filament.tables.columns.multiline.fums', [
|
||||
'odd' => $item->a2w,
|
||||
'dec' => 2,
|
||||
'max' => $item->a2w == $max['a2w'] ? 1 : 0,
|
||||
'min' => $item->a2w == $min['a2w'] ? 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_2way_{{ $record->id }}.innerHTML,
|
||||
allowHTML: true,
|
||||
theme: $store.theme,
|
||||
appendTo: $root
|
||||
}" />
|
||||
</div>
|
||||
@endif
|
||||
Reference in new issue
Block a user