This commit is contained in:
salam committed 2026-01-04 09:51:35 +01:00
1 parent 612a5444d3
commit 7dce81013b
3 files changed
+21 -5

No files matched your search

@@ -12,6 +12,8 @@ class Column3way extends Column
protected ?array $min;
protected ?array $act;
protected ?array $bookmakers;
protected ?bool $has_data;
@@ -32,19 +34,30 @@ class Column3way extends Column
{
$this->max['h3w'] = $record->odds_3way->max('h3w');
$this->min['h3w'] = $record->odds_3way->min('h3w');
$this->act['h3w'] = $record->odds_3way->where('bookmaker_id', auth()->user()->bookmaker_id);
$this->max['d3w'] = $record->odds_3way->max('d3w');
$this->min['d3w'] = $record->odds_3way->min('d3w');
$this->act['d3w'] = $record->odds_3way->where('bookmaker_id', auth()->user()->bookmaker_id)->get('d3w');
$this->max['a3w'] = $record->odds_3way->max('a3w');
$this->min['a3w'] = $record->odds_3way->min('a3w');
$this->act['a3w'] = $record->odds_3way->where('bookmaker_id', auth()->user()->bookmaker_id)->get('a3w');
$this->max['margin'] = $record->odds_3way->max('margin');
$this->min['margin'] = $record->odds_3way->min('margin');
$this->act['margin'] = $record->odds_3way->where('bookmaker_id', auth()->user()->bookmaker_id)->get('margin');
dd($this->act);
$this->has_data = count($record->odds_3way) ? true : false;
}
public function getAct()
{
return $this->act;
}
public function getMax()
{
return $this->max;