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
View File
@@ -11,6 +11,8 @@ class ColumnDc extends Column
protected ?array $max;
protected ?array $min;
protected $data;
protected ?array $bookmakers;
@@ -34,12 +36,16 @@ class ColumnDc extends Column
$this->data = OddsDc::with('bookmaker')->where('event_id', $record->id)->get();
$this->max['dc1x'] = $this->data->max('dc1x');
$this->min['dc1x'] = $this->data->min('dc1x');
$this->max['dc12'] = $this->data->max('dc12');
$this->min['dc12'] = $this->data->min('dc12');
$this->max['dcx2'] = $this->data->max('dcx2');
$this->min['dcx2'] = $this->data->min('dcx2');
$this->max['margin'] = $this->data->max('margin');
$this->min['margin'] = $this->data->min('margin');
$this->has_data = count($this->data) ? true : false;
}
@@ -54,6 +60,11 @@ class ColumnDc extends Column
return $this->max;
}
public function getMin()
{
return $this->min;
}
public function hasData()
{
return $this->has_data;