popup highest max and min wip

This commit is contained in:
salam committed 2026-01-04 15:56:53 +01:00
1 parent 668310b03d
commit 99b901009c
20 files changed
+292 -373

No files matched your search

+19 -8
View File
@@ -8,9 +8,11 @@ class ColumnDc extends Column
{
protected string $view = 'filament.tables.columns.column-dc';
protected ?array $max;
protected $max;
protected ?array $min;
protected $min;
protected $act;
protected ?array $bookmakers;
@@ -18,6 +20,8 @@ class ColumnDc extends Column
public function bookmakers(?array $bookmakers): static
{
array_unshift($bookmakers, auth()->user()->bookmaker_id);
$this->bookmakers = $bookmakers;
return $this;
@@ -30,19 +34,26 @@ class ColumnDc extends Column
public function loadData($record)
{
$this->has_data = count($record->odds_dc) ? true : false;
$this->act = $record->odds_dc->where('bookmaker_id', auth()->user()->bookmaker_id)->first();
$this->max['dc1x'] = $record->odds_dc->max('dc1x');
$this->min['dc1x'] = $record->odds_dc->min('dc1x');
$this->max['dc12'] = $record->odds_dc->max('dc12');
$this->min['dc12'] = $record->odds_dc->min('dc12');
$this->max['dcx2'] = $record->odds_dc->max('dcx2');
$this->min['dc1x'] = $record->odds_dc->min('dc1x');
$this->min['dc12'] = $record->odds_dc->min('dc12');
$this->min['dcx2'] = $record->odds_dc->min('dcx2');
}
$this->max['margin'] = $record->odds_dc->max('margin');
$this->min['margin'] = $record->odds_dc->min('margin');
$this->has_data = count($record->odds_dc) ? true : false;
public function getAct()
{
return $this->act;
}
public function getMax()