fimetto minimum ok

This commit is contained in:
salam committed 2026-01-03 18:15:52 +01:00
1 parent 9c78f507f4
commit a2b0569c9e
20 files changed
+134 -25

No files matched your search

@@ -11,6 +11,8 @@ class ColumnGgng extends Column
protected ?array $max;
protected ?array $min;
protected $data;
protected ?array $bookmakers;
@@ -34,10 +36,13 @@ class ColumnGgng extends Column
$this->data = OddsGgng::with('bookmaker')->where('event_id', $record->id)->get();
$this->max['gg'] = $this->data->max('gg');
$this->min['gg'] = $this->data->min('gg');
$this->max['ng'] = $this->data->max('ng');
$this->min['ng'] = $this->data->min('ng');
$this->max['margin'] = $this->data->max('margin');
$this->min['margin'] = $this->data->min('margin');
$this->has_data = count($this->data) ? true : false;
}
@@ -52,6 +57,11 @@ class ColumnGgng extends Column
return $this->max;
}
public function getMin()
{
return $this->min;
}
public function hasData()
{
return $this->has_data;