fumetto max ok
This commit is contained in:
1 parent
9e7384daf8
commit
9c78f507f4
58 files changed
+672
-144
No files matched your search
@@ -11,6 +11,8 @@ class Column3way extends Column
|
||||
|
||||
protected $data;
|
||||
|
||||
protected ?array $max;
|
||||
|
||||
protected ?array $bookmakers;
|
||||
|
||||
protected ?bool $has_data;
|
||||
@@ -31,6 +33,14 @@ class Column3way extends Column
|
||||
{
|
||||
$this->data = Odds3way::with('bookmaker')->where('event_id', $record->id)->get();
|
||||
|
||||
$this->max['h3w'] = $this->data->max('h3w');
|
||||
|
||||
$this->max['d3w'] = $this->data->max('d3w');
|
||||
|
||||
$this->max['a3w'] = $this->data->max('a3w');
|
||||
|
||||
$this->max['margin'] = $this->data->max('margin');
|
||||
|
||||
$this->has_data = count($this->data) ? true : false;
|
||||
}
|
||||
|
||||
@@ -39,6 +49,11 @@ class Column3way extends Column
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
public function getMax()
|
||||
{
|
||||
return $this->max;
|
||||
}
|
||||
|
||||
public function hasData()
|
||||
{
|
||||
return $this->has_data;
|
||||
|
||||
Reference in new issue
Block a user