fucking around with tooltip update

This commit is contained in:
salam committed 2026-01-22 20:21:19 +01:00
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\EventColumn;
use App\Filament\Tables\Columns\MatchIds;
use App\Filament\Tables\Columns\PopupOdds;
use App\Models\CompetitionGroup;
use App\Models\Country;
use App\Models\Event;
@@ -99,6 +100,8 @@ class EventsTable
->alignCenter()
->label('ML'),
PopupOdds::make('1x2')->label(''),
Column3way::make('odds_3ways')->bookmakers(self::$multiline_bookmaker['odds_3ways'] ?? [])
->visible(fn () => in_array('odds_3ways', self::$bettype_settings))
->verticalAlignment(VerticalAlignment::Start)
+1 -1
View File
@@ -16,7 +16,7 @@ class Column3way extends Column
protected $act;
protected ?bool $has_data;
protected ?int $has_data;
public function bookmakers(?array $bookmakers): static
{
+1 -1
View File
@@ -16,7 +16,7 @@ class Column3wayHt extends Column
protected $act;
protected ?bool $has_data;
protected ?int $has_data;
public function bookmakers(?array $bookmakers): static
{
+1 -1
View File
@@ -16,7 +16,7 @@ class ColumnDc extends Column
protected ?array $bookmakers;
protected ?bool $has_data;
protected ?int $has_data;
public function bookmakers(?array $bookmakers): static
{
+1 -1
View File
@@ -16,7 +16,7 @@ class ColumnDnb extends Column
protected $act;
protected ?bool $has_data;
protected ?int $has_data;
public function bookmakers(?array $bookmakers): static
{
+1 -1
View File
@@ -16,7 +16,7 @@ class ColumnGgng extends Column
protected $act;
protected ?bool $has_data;
protected ?int $has_data;
public function bookmakers(?array $bookmakers): static
{
+1 -1
View File
@@ -16,7 +16,7 @@ class ColumnMl extends Column
protected $act;
protected ?bool $has_data;
protected ?int $has_data;
public function bookmakers(?array $bookmakers): static
{
+1 -1
View File
@@ -16,7 +16,7 @@ class ColumnMlS1 extends Column
protected $act;
protected ?bool $has_data;
protected ?int $has_data;
public function bookmakers(?array $bookmakers): static
{
+1 -1
View File
@@ -16,7 +16,7 @@ class ColumnPoint extends Column
protected $act;
protected ?bool $has_data;
protected ?int $has_data;
public function bookmakers(?array $bookmakers): static
{
@@ -16,7 +16,7 @@ class ColumnPointQ1 extends Column
protected $act;
protected ?bool $has_data;
protected ?int $has_data;
public function bookmakers(?array $bookmakers): static
{
+1 -1
View File
@@ -16,7 +16,7 @@ class ColumnTotal extends Column
protected $act;
protected ?bool $has_data;
protected ?int $has_data;
public function bookmakers(?array $bookmakers): static
{
@@ -16,7 +16,7 @@ class ColumnTotalHt extends Column
protected $act;
protected ?bool $has_data;
protected ?int $has_data;
public function bookmakers(?array $bookmakers): static
{
@@ -16,7 +16,7 @@ class ColumnTotalQ1 extends Column
protected $act;
protected ?bool $has_data;
protected ?int $has_data;
public function bookmakers(?array $bookmakers): static
{
+1 -1
View File
@@ -16,7 +16,7 @@ class ColumnTq extends Column
protected $act;
protected ?bool $has_data;
protected ?int $has_data;
public function bookmakers(?array $bookmakers): static
{
+58
View File
@@ -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;
}
}