bookmakers = $bookmakers; return $this; } public function getBookmaker(): ?array { return $this->bookmakers['bookmaker'] ?? []; } public function getSlots(): ?array { return $this->bookmakers['slots'] ?? []; } public function loadData($record) { $this->has_data = count($record->odds_3ways_ht); $this->act = $record->odds_3ways_ht->where('bookmaker_id', auth()->user()->bookmaker_id)->first(); $this->max['h3w'] = $record->odds_3ways_ht->max('h3w'); $this->max['d3w'] = $record->odds_3ways_ht->max('d3w'); $this->max['a3w'] = $record->odds_3ways_ht->max('a3w'); $this->min['h3w'] = $record->odds_3ways_ht->min('h3w'); $this->min['d3w'] = $record->odds_3ways_ht->min('d3w'); $this->min['a3w'] = $record->odds_3ways_ht->min('a3w'); $record->odds_3ways_ht = FilterOdds::filter($record->odds_3ways_ht, $this->bookmakers); } public function getAct() { return $this->act; } public function getMax() { return $this->max; } public function getMin() { return $this->min; } public function hasData() { return $this->has_data; } }