fucking around with tooltip update
This commit is contained in:
1 parent
a6fc328669
commit
b0482cacf6
33 files changed
+302
-254
No files matched your search
@@ -19,6 +19,7 @@ use App\Filament\Tables\Columns\ColumnTotalQ1;
|
|||||||
use App\Filament\Tables\Columns\ColumnTq;
|
use App\Filament\Tables\Columns\ColumnTq;
|
||||||
use App\Filament\Tables\Columns\EventColumn;
|
use App\Filament\Tables\Columns\EventColumn;
|
||||||
use App\Filament\Tables\Columns\MatchIds;
|
use App\Filament\Tables\Columns\MatchIds;
|
||||||
|
use App\Filament\Tables\Columns\PopupOdds;
|
||||||
use App\Models\CompetitionGroup;
|
use App\Models\CompetitionGroup;
|
||||||
use App\Models\Country;
|
use App\Models\Country;
|
||||||
use App\Models\Event;
|
use App\Models\Event;
|
||||||
@@ -99,6 +100,8 @@ class EventsTable
|
|||||||
->alignCenter()
|
->alignCenter()
|
||||||
->label('ML'),
|
->label('ML'),
|
||||||
|
|
||||||
|
PopupOdds::make('1x2')->label(''),
|
||||||
|
|
||||||
Column3way::make('odds_3ways')->bookmakers(self::$multiline_bookmaker['odds_3ways'] ?? [])
|
Column3way::make('odds_3ways')->bookmakers(self::$multiline_bookmaker['odds_3ways'] ?? [])
|
||||||
->visible(fn () => in_array('odds_3ways', self::$bettype_settings))
|
->visible(fn () => in_array('odds_3ways', self::$bettype_settings))
|
||||||
->verticalAlignment(VerticalAlignment::Start)
|
->verticalAlignment(VerticalAlignment::Start)
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ class Column3way extends Column
|
|||||||
|
|
||||||
protected $act;
|
protected $act;
|
||||||
|
|
||||||
protected ?bool $has_data;
|
protected ?int $has_data;
|
||||||
|
|
||||||
public function bookmakers(?array $bookmakers): static
|
public function bookmakers(?array $bookmakers): static
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ class Column3wayHt extends Column
|
|||||||
|
|
||||||
protected $act;
|
protected $act;
|
||||||
|
|
||||||
protected ?bool $has_data;
|
protected ?int $has_data;
|
||||||
|
|
||||||
public function bookmakers(?array $bookmakers): static
|
public function bookmakers(?array $bookmakers): static
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ class ColumnDc extends Column
|
|||||||
|
|
||||||
protected ?array $bookmakers;
|
protected ?array $bookmakers;
|
||||||
|
|
||||||
protected ?bool $has_data;
|
protected ?int $has_data;
|
||||||
|
|
||||||
public function bookmakers(?array $bookmakers): static
|
public function bookmakers(?array $bookmakers): static
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ class ColumnDnb extends Column
|
|||||||
|
|
||||||
protected $act;
|
protected $act;
|
||||||
|
|
||||||
protected ?bool $has_data;
|
protected ?int $has_data;
|
||||||
|
|
||||||
public function bookmakers(?array $bookmakers): static
|
public function bookmakers(?array $bookmakers): static
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ class ColumnGgng extends Column
|
|||||||
|
|
||||||
protected $act;
|
protected $act;
|
||||||
|
|
||||||
protected ?bool $has_data;
|
protected ?int $has_data;
|
||||||
|
|
||||||
public function bookmakers(?array $bookmakers): static
|
public function bookmakers(?array $bookmakers): static
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ class ColumnMl extends Column
|
|||||||
|
|
||||||
protected $act;
|
protected $act;
|
||||||
|
|
||||||
protected ?bool $has_data;
|
protected ?int $has_data;
|
||||||
|
|
||||||
public function bookmakers(?array $bookmakers): static
|
public function bookmakers(?array $bookmakers): static
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ class ColumnMlS1 extends Column
|
|||||||
|
|
||||||
protected $act;
|
protected $act;
|
||||||
|
|
||||||
protected ?bool $has_data;
|
protected ?int $has_data;
|
||||||
|
|
||||||
public function bookmakers(?array $bookmakers): static
|
public function bookmakers(?array $bookmakers): static
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ class ColumnPoint extends Column
|
|||||||
|
|
||||||
protected $act;
|
protected $act;
|
||||||
|
|
||||||
protected ?bool $has_data;
|
protected ?int $has_data;
|
||||||
|
|
||||||
public function bookmakers(?array $bookmakers): static
|
public function bookmakers(?array $bookmakers): static
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ class ColumnPointQ1 extends Column
|
|||||||
|
|
||||||
protected $act;
|
protected $act;
|
||||||
|
|
||||||
protected ?bool $has_data;
|
protected ?int $has_data;
|
||||||
|
|
||||||
public function bookmakers(?array $bookmakers): static
|
public function bookmakers(?array $bookmakers): static
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ class ColumnTotal extends Column
|
|||||||
|
|
||||||
protected $act;
|
protected $act;
|
||||||
|
|
||||||
protected ?bool $has_data;
|
protected ?int $has_data;
|
||||||
|
|
||||||
public function bookmakers(?array $bookmakers): static
|
public function bookmakers(?array $bookmakers): static
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ class ColumnTotalHt extends Column
|
|||||||
|
|
||||||
protected $act;
|
protected $act;
|
||||||
|
|
||||||
protected ?bool $has_data;
|
protected ?int $has_data;
|
||||||
|
|
||||||
public function bookmakers(?array $bookmakers): static
|
public function bookmakers(?array $bookmakers): static
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ class ColumnTotalQ1 extends Column
|
|||||||
|
|
||||||
protected $act;
|
protected $act;
|
||||||
|
|
||||||
protected ?bool $has_data;
|
protected ?int $has_data;
|
||||||
|
|
||||||
public function bookmakers(?array $bookmakers): static
|
public function bookmakers(?array $bookmakers): static
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ class ColumnTq extends Column
|
|||||||
|
|
||||||
protected $act;
|
protected $act;
|
||||||
|
|
||||||
protected ?bool $has_data;
|
protected ?int $has_data;
|
||||||
|
|
||||||
public function bookmakers(?array $bookmakers): static
|
public function bookmakers(?array $bookmakers): static
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -0,0 +1,58 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Filament\Tables\Columns;
|
||||||
|
|
||||||
|
use Filament\Tables\Columns\Column;
|
||||||
|
|
||||||
|
class PopupOdds extends Column
|
||||||
|
{
|
||||||
|
protected string $view = 'filament.tables.columns.popup-odds';
|
||||||
|
|
||||||
|
protected $max;
|
||||||
|
|
||||||
|
protected $min;
|
||||||
|
|
||||||
|
protected $act;
|
||||||
|
|
||||||
|
protected ?int $has_data;
|
||||||
|
|
||||||
|
public function loadData($record)
|
||||||
|
{
|
||||||
|
$this->has_data = count($record->odds_3ways);
|
||||||
|
|
||||||
|
$this->act = $record->odds_3ways->where('bookmaker_id', auth()->user()->bookmaker_id)->first();
|
||||||
|
|
||||||
|
$this->max['h3w'] = $record->odds_3ways->max('h3w');
|
||||||
|
|
||||||
|
$this->max['d3w'] = $record->odds_3ways->max('d3w');
|
||||||
|
|
||||||
|
$this->max['a3w'] = $record->odds_3ways->max('a3w');
|
||||||
|
|
||||||
|
$this->min['h3w'] = $record->odds_3ways->min('h3w');
|
||||||
|
|
||||||
|
$this->min['d3w'] = $record->odds_3ways->min('d3w');
|
||||||
|
|
||||||
|
$this->min['a3w'] = $record->odds_3ways->min('a3w');
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getAct()
|
||||||
|
{
|
||||||
|
return $this->act;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getMax()
|
||||||
|
{
|
||||||
|
return $this->max;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getMin()
|
||||||
|
{
|
||||||
|
return $this->min;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function hasData()
|
||||||
|
{
|
||||||
|
return $this->has_data;
|
||||||
|
}
|
||||||
|
}
|
||||||
+1
-1
@@ -89,4 +89,4 @@
|
|||||||
},
|
},
|
||||||
"minimum-stability": "stable",
|
"minimum-stability": "stable",
|
||||||
"prefer-stable": true
|
"prefer-stable": true
|
||||||
}
|
}
|
||||||
Generated
+3
-3
@@ -12814,12 +12814,12 @@
|
|||||||
],
|
],
|
||||||
"aliases": [],
|
"aliases": [],
|
||||||
"minimum-stability": "stable",
|
"minimum-stability": "stable",
|
||||||
"stability-flags": {},
|
"stability-flags": [],
|
||||||
"prefer-stable": true,
|
"prefer-stable": true,
|
||||||
"prefer-lowest": false,
|
"prefer-lowest": false,
|
||||||
"platform": {
|
"platform": {
|
||||||
"php": "^8.3"
|
"php": "^8.3"
|
||||||
},
|
},
|
||||||
"platform-dev": {},
|
"platform-dev": [],
|
||||||
"plugin-api-version": "2.9.0"
|
"plugin-api-version": "2.6.0"
|
||||||
}
|
}
|
||||||
@@ -7,75 +7,7 @@
|
|||||||
|
|
||||||
@if ($hasData())
|
@if ($hasData())
|
||||||
|
|
||||||
<div class="mx-3 my-auto">
|
@include('filament.tables.columns.fumetto.fumetto_1x2')
|
||||||
<template x-ref="template_1x2_{{ $record->id }}">
|
|
||||||
|
|
||||||
@if ($hasData() > 9)
|
|
||||||
<div class="grid grid-cols-13 gap-2 m-5 z-10 text-xs text-center">
|
|
||||||
@include('filament.tables.columns.fumetto-multiline.label', [
|
|
||||||
'labels' => ['1', 'X', '2'],
|
|
||||||
'twice' => true,
|
|
||||||
])
|
|
||||||
@else
|
|
||||||
<div class="grid grid-cols-6 gap-2 m-5 z-10 text-xs text-center">
|
|
||||||
@include('filament.tables.columns.fumetto-multiline.label', [
|
|
||||||
'labels' => ['1', 'X', '2'],
|
|
||||||
'twice' => false,
|
|
||||||
])
|
|
||||||
@endif
|
|
||||||
|
|
||||||
@foreach ($record->odds_3ways 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->h3w,
|
|
||||||
'dec' => 2,
|
|
||||||
'max' => $item->h3w >= $max['h3w'] ? 1 : 0,
|
|
||||||
'min' => $item->h3w <= $min['h3w'] ? 1 : 0,
|
|
||||||
])
|
|
||||||
|
|
||||||
@include('filament.tables.columns.fumetto-multiline.odds', [
|
|
||||||
'odd' => $item->d3w,
|
|
||||||
'dec' => 2,
|
|
||||||
'max' => $item->d3w >= $max['d3w'] ? 1 : 0,
|
|
||||||
'min' => $item->d3w <= $min['d3w'] ? 1 : 0,
|
|
||||||
])
|
|
||||||
|
|
||||||
@include('filament.tables.columns.fumetto-multiline.odds', [
|
|
||||||
'odd' => $item->a3w,
|
|
||||||
'dec' => 2,
|
|
||||||
'max' => $item->a3w >= $max['a3w'] ? 1 : 0,
|
|
||||||
'min' => $item->a3w <= $min['a3w'] ? 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>
|
|
||||||
|
|
||||||
<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>
|
|
||||||
|
|
||||||
<div {{ $getExtraAttributeBag() }} class="grid grid-cols-5 gap-1" style="width: 225px;">
|
<div {{ $getExtraAttributeBag() }} class="grid grid-cols-5 gap-1" style="width: 225px;">
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
@if ($hasData())
|
|
||||||
<div class="mx-3 my-auto">
|
<div class="mx-3 my-auto">
|
||||||
<template x-ref="template_1x2_{{ $record->id }}">
|
<template x-ref="template_1x2_{{ $record->id }}">
|
||||||
|
|
||||||
@@ -16,9 +15,6 @@
|
|||||||
])
|
])
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
<div>{{ $time }}</div>
|
|
||||||
|
|
||||||
|
|
||||||
@php
|
@php
|
||||||
$max = $getMax();
|
$max = $getMax();
|
||||||
$min = $getMin();
|
$min = $getMin();
|
||||||
@@ -75,5 +71,4 @@
|
|||||||
appendTo: $root,
|
appendTo: $root,
|
||||||
interactive: true,
|
interactive: true,
|
||||||
}" />
|
}" />
|
||||||
</div>
|
</div>
|
||||||
@endif
|
|
||||||
@@ -1,76 +1,74 @@
|
|||||||
@if ($hasData())
|
<div class="mx-3 my-auto">
|
||||||
<div class="mx-3 my-auto">
|
<template x-ref="template_1x2_ht_{{ $record->id }}">
|
||||||
<template x-ref="template_1x2_ht_{{ $record->id }}">
|
|
||||||
|
|
||||||
@if ($hasData() > 9)
|
@if ($hasData() > 9)
|
||||||
<div class="grid grid-cols-13 gap-2 m-5 z-10 text-xs text-center">
|
<div class="grid grid-cols-13 gap-2 m-5 z-10 text-xs text-center">
|
||||||
|
@include('filament.tables.columns.fumetto-multiline.label', [
|
||||||
|
'labels' => ['1', 'X', '2'],
|
||||||
|
'twice' => true,
|
||||||
|
])
|
||||||
|
@else
|
||||||
|
<div class="grid grid-cols-6 gap-2 m-5 z-10 text-xs text-center">
|
||||||
@include('filament.tables.columns.fumetto-multiline.label', [
|
@include('filament.tables.columns.fumetto-multiline.label', [
|
||||||
'labels' => ['1', 'X', '2'],
|
'labels' => ['1', 'X', '2'],
|
||||||
'twice' => true,
|
'twice' => false,
|
||||||
])
|
])
|
||||||
@else
|
@endif
|
||||||
<div class="grid grid-cols-6 gap-2 m-5 z-10 text-xs text-center">
|
|
||||||
@include('filament.tables.columns.fumetto-multiline.label', [
|
@php
|
||||||
'labels' => ['1', 'X', '2'],
|
$max = $getMax();
|
||||||
'twice' => false,
|
$min = $getMin();
|
||||||
])
|
@endphp
|
||||||
|
|
||||||
|
@foreach ($record->odds_3ways_ht 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->h3w,
|
||||||
|
'dec' => 2,
|
||||||
|
'max' => $item->h3w >= $max['h3w'] ? 1 : 0,
|
||||||
|
'min' => $item->h3w <= $min['h3w'] ? 1 : 0,
|
||||||
|
])
|
||||||
|
|
||||||
|
@include('filament.tables.columns.fumetto-multiline.odds', [
|
||||||
|
'odd' => $item->d3w,
|
||||||
|
'dec' => 2,
|
||||||
|
'max' => $item->d3w >= $max['d3w'] ? 1 : 0,
|
||||||
|
'min' => $item->d3w <= $min['d3w'] ? 1 : 0,
|
||||||
|
])
|
||||||
|
|
||||||
|
@include('filament.tables.columns.fumetto-multiline.odds', [
|
||||||
|
'odd' => $item->a3w,
|
||||||
|
'dec' => 2,
|
||||||
|
'max' => $item->a3w >= $max['a3w'] ? 1 : 0,
|
||||||
|
'min' => $item->a3w <= $min['a3w'] ? 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
|
@endif
|
||||||
|
@endforeach
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
@php
|
<x-filament::icon-button icon="phosphor-chat-centered-text" color="gray"
|
||||||
$max = $getMax();
|
x-tooltip.html="{
|
||||||
$min = $getMin();
|
content: () => $refs.template_1x2_ht_{{ $record->id }}.innerHTML,
|
||||||
@endphp
|
allowHTML: true,
|
||||||
|
theme: $store.theme,
|
||||||
@foreach ($record->odds_3ways_ht as $i => $item)
|
appendTo: $root,
|
||||||
@include('filament.tables.columns.fumetto-multiline.bkm', [
|
interactive: true
|
||||||
'bookmaker_id' => $item->bookmaker_id,
|
}" />
|
||||||
'icon' => $item->bookmaker->icon ?? '',
|
</div>
|
||||||
])
|
|
||||||
|
|
||||||
@include('filament.tables.columns.fumetto-multiline.odds', [
|
|
||||||
'odd' => $item->h3w,
|
|
||||||
'dec' => 2,
|
|
||||||
'max' => $item->h3w >= $max['h3w'] ? 1 : 0,
|
|
||||||
'min' => $item->h3w <= $min['h3w'] ? 1 : 0,
|
|
||||||
])
|
|
||||||
|
|
||||||
@include('filament.tables.columns.fumetto-multiline.odds', [
|
|
||||||
'odd' => $item->d3w,
|
|
||||||
'dec' => 2,
|
|
||||||
'max' => $item->d3w >= $max['d3w'] ? 1 : 0,
|
|
||||||
'min' => $item->d3w <= $min['d3w'] ? 1 : 0,
|
|
||||||
])
|
|
||||||
|
|
||||||
@include('filament.tables.columns.fumetto-multiline.odds', [
|
|
||||||
'odd' => $item->a3w,
|
|
||||||
'dec' => 2,
|
|
||||||
'max' => $item->a3w >= $max['a3w'] ? 1 : 0,
|
|
||||||
'min' => $item->a3w <= $min['a3w'] ? 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>
|
|
||||||
|
|
||||||
<x-filament::icon-button icon="phosphor-chat-centered-text" color="gray"
|
|
||||||
x-tooltip.html="{
|
|
||||||
content: () => $refs.template_1x2_ht_{{ $record->id }}.innerHTML,
|
|
||||||
allowHTML: true,
|
|
||||||
theme: $store.theme,
|
|
||||||
appendTo: $root,
|
|
||||||
interactive: true
|
|
||||||
}" />
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
@@ -1,77 +1,75 @@
|
|||||||
@if ($hasData())
|
<div class="mx-3 my-auto">
|
||||||
<div class="mx-3 my-auto">
|
<template x-ref="template_dc_{{ $record->id }}">
|
||||||
<template x-ref="template_dc_{{ $record->id }}">
|
@if ($hasData() > 9)
|
||||||
@if ($hasData() > 9)
|
<div class="grid grid-cols-13 gap-2 m-5 z-10 text-xs text-center">
|
||||||
<div class="grid grid-cols-13 gap-2 m-5 z-10 text-xs text-center">
|
@include('filament.tables.columns.fumetto-multiline.label', [
|
||||||
|
'labels' => ['1X', '12', 'X2'],
|
||||||
|
'twice' => true,
|
||||||
|
])
|
||||||
|
@else
|
||||||
|
<div class="grid grid-cols-6 gap-2 m-5 z-10 text-xs text-center">
|
||||||
@include('filament.tables.columns.fumetto-multiline.label', [
|
@include('filament.tables.columns.fumetto-multiline.label', [
|
||||||
'labels' => ['1X', '12', 'X2'],
|
'labels' => ['1X', '12', 'X2'],
|
||||||
'twice' => true,
|
'twice' => false,
|
||||||
])
|
])
|
||||||
@else
|
@endif
|
||||||
<div class="grid grid-cols-6 gap-2 m-5 z-10 text-xs text-center">
|
|
||||||
@include('filament.tables.columns.fumetto-multiline.label', [
|
|
||||||
'labels' => ['1X', '12', 'X2'],
|
@php
|
||||||
'twice' => false,
|
$max = $getMax();
|
||||||
])
|
$min = $getMin();
|
||||||
|
@endphp
|
||||||
|
|
||||||
|
@foreach ($record->odds_dc 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->dc1x,
|
||||||
|
'dec' => 2,
|
||||||
|
'max' => $item->dc1x >= $max['dc1x'] ? 1 : 0,
|
||||||
|
'min' => $item->dc1x <= $min['dc1x'] ? 1 : 0,
|
||||||
|
])
|
||||||
|
|
||||||
|
@include('filament.tables.columns.fumetto-multiline.odds', [
|
||||||
|
'odd' => $item->dc12,
|
||||||
|
'dec' => 2,
|
||||||
|
'max' => $item->dc12 >= $max['dc12'] ? 1 : 0,
|
||||||
|
'min' => $item->dc12 <= $min['dc12'] ? 1 : 0,
|
||||||
|
])
|
||||||
|
|
||||||
|
@include('filament.tables.columns.fumetto-multiline.odds', [
|
||||||
|
'odd' => $item->dcx2,
|
||||||
|
'dec' => 2,
|
||||||
|
'max' => $item->dcx2 >= $max['dcx2'] ? 1 : 0,
|
||||||
|
'min' => $item->dcx2 <= $min['dcx2'] ? 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
|
@endif
|
||||||
|
@endforeach
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<x-filament::icon-button icon="phosphor-chat-centered-text" color="gray"
|
||||||
@php
|
x-tooltip.html="{
|
||||||
$max = $getMax();
|
content: () => $refs.template_dc_{{ $record->id }}.innerHTML,
|
||||||
$min = $getMin();
|
allowHTML: true,
|
||||||
@endphp
|
theme: $store.theme,
|
||||||
|
appendTo: $root
|
||||||
@foreach ($record->odds_dc as $i => $item)
|
}" />
|
||||||
@include('filament.tables.columns.fumetto-multiline.bkm', [
|
</div>
|
||||||
'bookmaker_id' => $item->bookmaker_id,
|
|
||||||
'icon' => $item->bookmaker->icon ?? '',
|
|
||||||
])
|
|
||||||
|
|
||||||
@include('filament.tables.columns.fumetto-multiline.odds', [
|
|
||||||
'odd' => $item->dc1x,
|
|
||||||
'dec' => 2,
|
|
||||||
'max' => $item->dc1x >= $max['dc1x'] ? 1 : 0,
|
|
||||||
'min' => $item->dc1x <= $min['dc1x'] ? 1 : 0,
|
|
||||||
])
|
|
||||||
|
|
||||||
@include('filament.tables.columns.fumetto-multiline.odds', [
|
|
||||||
'odd' => $item->dc12,
|
|
||||||
'dec' => 2,
|
|
||||||
'max' => $item->dc12 >= $max['dc12'] ? 1 : 0,
|
|
||||||
'min' => $item->dc12 <= $min['dc12'] ? 1 : 0,
|
|
||||||
])
|
|
||||||
|
|
||||||
@include('filament.tables.columns.fumetto-multiline.odds', [
|
|
||||||
'odd' => $item->dcx2,
|
|
||||||
'dec' => 2,
|
|
||||||
'max' => $item->dcx2 >= $max['dcx2'] ? 1 : 0,
|
|
||||||
'min' => $item->dcx2 <= $min['dcx2'] ? 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>
|
|
||||||
|
|
||||||
<x-filament::icon-button icon="phosphor-chat-centered-text" color="gray"
|
|
||||||
x-tooltip.html="{
|
|
||||||
content: () => $refs.template_dc_{{ $record->id }}.innerHTML,
|
|
||||||
allowHTML: true,
|
|
||||||
theme: $store.theme,
|
|
||||||
appendTo: $root
|
|
||||||
}" />
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
@if ($hasData())
|
|
||||||
<div class="mx-3 my-auto">
|
<div class="mx-3 my-auto">
|
||||||
<template x-ref="template_dnb_{{ $record->id }}">
|
<template x-ref="template_dnb_{{ $record->id }}">
|
||||||
|
|
||||||
@@ -65,4 +64,3 @@
|
|||||||
appendTo: $root
|
appendTo: $root
|
||||||
}" />
|
}" />
|
||||||
</div>
|
</div>
|
||||||
@endif
|
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
@if ($hasData())
|
|
||||||
<div class="mx-3 my-auto">
|
<div class="mx-3 my-auto">
|
||||||
<template x-ref="template_gg_{{ $record->id }}">
|
<template x-ref="template_gg_{{ $record->id }}">
|
||||||
@if ($hasData() > 9)
|
@if ($hasData() > 9)
|
||||||
@@ -63,4 +62,3 @@
|
|||||||
appendTo: $root
|
appendTo: $root
|
||||||
}" />
|
}" />
|
||||||
</div>
|
</div>
|
||||||
@endif
|
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
@if ($hasData())
|
|
||||||
<div class="mx-3 my-auto">
|
<div class="mx-3 my-auto">
|
||||||
<template x-ref="template_2way_{{ $record->id }}">
|
<template x-ref="template_2way_{{ $record->id }}">
|
||||||
|
|
||||||
@@ -66,4 +65,3 @@
|
|||||||
appendTo: $root
|
appendTo: $root
|
||||||
}" />
|
}" />
|
||||||
</div>
|
</div>
|
||||||
@endif
|
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
@if ($hasData())
|
|
||||||
<div class="mx-3 my-auto">
|
<div class="mx-3 my-auto">
|
||||||
<template x-ref="template_2way_s1_{{ $record->id }}">
|
<template x-ref="template_2way_s1_{{ $record->id }}">
|
||||||
|
|
||||||
@@ -65,4 +64,3 @@
|
|||||||
appendTo: $root
|
appendTo: $root
|
||||||
}" />
|
}" />
|
||||||
</div>
|
</div>
|
||||||
@endif
|
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
@if ($hasData())
|
|
||||||
<div class="mx-3 my-auto">
|
<div class="mx-3 my-auto">
|
||||||
<template x-ref="template_point_{{ $record->id }}">
|
<template x-ref="template_point_{{ $record->id }}">
|
||||||
@if ($hasData() > 9)
|
@if ($hasData() > 9)
|
||||||
@@ -71,4 +70,3 @@
|
|||||||
appendTo: $root
|
appendTo: $root
|
||||||
}" />
|
}" />
|
||||||
</div>
|
</div>
|
||||||
@endif
|
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
@if ($hasData())
|
|
||||||
<div class="mx-3 my-auto">
|
<div class="mx-3 my-auto">
|
||||||
<template x-ref="template_point_q1_{{ $record->id }}">
|
<template x-ref="template_point_q1_{{ $record->id }}">
|
||||||
|
|
||||||
@@ -72,4 +71,3 @@
|
|||||||
appendTo: $root
|
appendTo: $root
|
||||||
}" />
|
}" />
|
||||||
</div>
|
</div>
|
||||||
@endif
|
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
@if ($hasData())
|
|
||||||
<div class="mx-3 my-auto">
|
<div class="mx-3 my-auto">
|
||||||
<template x-ref="template_total_{{ $record->id }}">
|
<template x-ref="template_total_{{ $record->id }}">
|
||||||
@if ($hasData() > 9)
|
@if ($hasData() > 9)
|
||||||
@@ -70,4 +69,3 @@
|
|||||||
appendTo: $root
|
appendTo: $root
|
||||||
}" />
|
}" />
|
||||||
</div>
|
</div>
|
||||||
@endif
|
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
@if ($hasData())
|
|
||||||
<div class="mx-3 my-auto">
|
<div class="mx-3 my-auto">
|
||||||
<template x-ref="template_total_ht_{{ $record->id }}">
|
<template x-ref="template_total_ht_{{ $record->id }}">
|
||||||
@if ($hasData() > 9)
|
@if ($hasData() > 9)
|
||||||
@@ -70,4 +69,3 @@
|
|||||||
appendTo: $root
|
appendTo: $root
|
||||||
}" />
|
}" />
|
||||||
</div>
|
</div>
|
||||||
@endif
|
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
@if ($hasData())
|
|
||||||
<div class="mx-3 my-auto">
|
<div class="mx-3 my-auto">
|
||||||
<template x-ref="template_total_q1_{{ $record->id }}">
|
<template x-ref="template_total_q1_{{ $record->id }}">
|
||||||
@if ($hasData() > 9)
|
@if ($hasData() > 9)
|
||||||
@@ -70,4 +69,3 @@
|
|||||||
appendTo: $root
|
appendTo: $root
|
||||||
}" />
|
}" />
|
||||||
</div>
|
</div>
|
||||||
@endif
|
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
@if ($hasData())
|
|
||||||
<div class="mx-3 my-auto">
|
<div class="mx-3 my-auto">
|
||||||
<template x-ref="template_tq_{{ $record->id }}">
|
<template x-ref="template_tq_{{ $record->id }}">
|
||||||
@if ($hasData() > 9)
|
@if ($hasData() > 9)
|
||||||
@@ -65,4 +64,3 @@
|
|||||||
appendTo: $root
|
appendTo: $root
|
||||||
}" />
|
}" />
|
||||||
</div>
|
</div>
|
||||||
@endif
|
|
||||||
@@ -0,0 +1,83 @@
|
|||||||
|
@php
|
||||||
|
$loadData($record);
|
||||||
|
$act = $getAct();
|
||||||
|
$max = $getMax();
|
||||||
|
$min = $getMin();
|
||||||
|
@endphp
|
||||||
|
|
||||||
|
@if ($hasData())
|
||||||
|
<div class="mx-3 my-auto">
|
||||||
|
<template x-ref="template_1x2_{{ $record->id }}">
|
||||||
|
|
||||||
|
@if ($hasData() > 9)
|
||||||
|
<div class="grid grid-cols-13 gap-2 m-5 z-10 text-xs text-center">
|
||||||
|
@include('filament.tables.columns.fumetto-multiline.label', [
|
||||||
|
'labels' => ['1', 'X', '2'],
|
||||||
|
'twice' => true,
|
||||||
|
])
|
||||||
|
@else
|
||||||
|
<div class="grid grid-cols-6 gap-2 m-5 z-10 text-xs text-center">
|
||||||
|
@include('filament.tables.columns.fumetto-multiline.label', [
|
||||||
|
'labels' => ['1', 'X', '2'],
|
||||||
|
'twice' => false,
|
||||||
|
])
|
||||||
|
@endif
|
||||||
|
|
||||||
|
@php
|
||||||
|
$max = $getMax();
|
||||||
|
$min = $getMin();
|
||||||
|
@endphp
|
||||||
|
|
||||||
|
@foreach ($record->odds_3ways 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->h3w,
|
||||||
|
'dec' => 2,
|
||||||
|
'max' => $item->h3w >= $max['h3w'] ? 1 : 0,
|
||||||
|
'min' => $item->h3w <= $min['h3w'] ? 1 : 0,
|
||||||
|
])
|
||||||
|
|
||||||
|
@include('filament.tables.columns.fumetto-multiline.odds', [
|
||||||
|
'odd' => $item->d3w,
|
||||||
|
'dec' => 2,
|
||||||
|
'max' => $item->d3w >= $max['d3w'] ? 1 : 0,
|
||||||
|
'min' => $item->d3w <= $min['d3w'] ? 1 : 0,
|
||||||
|
])
|
||||||
|
|
||||||
|
@include('filament.tables.columns.fumetto-multiline.odds', [
|
||||||
|
'odd' => $item->a3w,
|
||||||
|
'dec' => 2,
|
||||||
|
'max' => $item->a3w >= $max['a3w'] ? 1 : 0,
|
||||||
|
'min' => $item->a3w <= $min['a3w'] ? 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>
|
||||||
|
|
||||||
|
<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
|
||||||
Reference in new issue
Block a user