fimetto minimum ok
This commit is contained in:
1 parent
9c78f507f4
commit
a2b0569c9e
20 files changed
+134
-25
No files matched your search
@@ -11,6 +11,8 @@ class ColumnTotal extends Column
|
||||
|
||||
protected ?array $max;
|
||||
|
||||
protected ?array $min;
|
||||
|
||||
protected $data;
|
||||
|
||||
protected ?array $bookmakers;
|
||||
@@ -34,10 +36,13 @@ class ColumnTotal extends Column
|
||||
$this->data = OddsTotal::with('bookmaker')->where('event_id', $record->id)->get();
|
||||
|
||||
$this->max['over'] = $this->data->max('over');
|
||||
$this->min['over'] = $this->data->min('over');
|
||||
|
||||
$this->max['under'] = $this->data->max('under');
|
||||
$this->min['under'] = $this->data->min('under');
|
||||
|
||||
$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 ColumnTotal extends Column
|
||||
return $this->max;
|
||||
}
|
||||
|
||||
public function getMin()
|
||||
{
|
||||
return $this->min;
|
||||
}
|
||||
|
||||
public function hasData()
|
||||
{
|
||||
return $this->has_data;
|
||||
|
||||
Reference in new issue
Block a user