popup highest max and min wip
This commit is contained in:
1 parent
668310b03d
commit
99b901009c
20 files changed
+292
-373
No files matched your search
@@ -8,16 +8,20 @@ class ColumnGgng extends Column
|
||||
{
|
||||
protected string $view = 'filament.tables.columns.column-ggng';
|
||||
|
||||
protected ?array $max;
|
||||
|
||||
protected ?array $min;
|
||||
|
||||
protected ?array $bookmakers;
|
||||
|
||||
protected $max;
|
||||
|
||||
protected $min;
|
||||
|
||||
protected $act;
|
||||
|
||||
protected ?bool $has_data;
|
||||
|
||||
public function bookmakers(?array $bookmakers): static
|
||||
{
|
||||
array_unshift($bookmakers, auth()->user()->bookmaker_id);
|
||||
|
||||
$this->bookmakers = $bookmakers;
|
||||
|
||||
return $this;
|
||||
@@ -30,16 +34,23 @@ class ColumnGgng extends Column
|
||||
|
||||
public function loadData($record)
|
||||
{
|
||||
$this->has_data = count($record->odds_ggng) ? true : false;
|
||||
|
||||
$this->act = $record->odds_ggng->where('bookmaker_id', auth()->user()->bookmaker_id)->first();
|
||||
|
||||
$this->max['gg'] = $record->odds_ggng->max('gg');
|
||||
$this->min['gg'] = $record->odds_ggng->min('gg');
|
||||
|
||||
$this->max['ng'] = $record->odds_ggng->max('ng');
|
||||
|
||||
$this->min['gg'] = $record->odds_ggng->min('gg');
|
||||
|
||||
$this->min['ng'] = $record->odds_ggng->min('ng');
|
||||
|
||||
$this->max['margin'] = $record->odds_ggng->max('margin');
|
||||
$this->min['margin'] = $record->odds_ggng->min('margin');
|
||||
}
|
||||
|
||||
$this->has_data = count($record->odds_ggng) ? true : false;
|
||||
public function getAct()
|
||||
{
|
||||
return $this->act;
|
||||
}
|
||||
|
||||
public function getMax()
|
||||
|
||||
Reference in new issue
Block a user