filter comparatore wip
This commit is contained in:
1 parent
7a9eeb8aad
commit
937c5908d2
40 files changed
+362
-306
No files matched your search
@@ -30,9 +30,13 @@ class Column3way extends Column
|
||||
return $this->bookmakers['bookmaker'] ?? [];
|
||||
}
|
||||
|
||||
public function getSlots(): ?array
|
||||
{
|
||||
return $this->bookmakers['slots'] ?? [];
|
||||
}
|
||||
|
||||
public function loadData($record)
|
||||
{
|
||||
|
||||
$this->has_data = count($record->odds_3ways) ? true : false;
|
||||
|
||||
$this->act = $record->odds_3ways->where('bookmaker_id', auth()->user()->bookmaker_id)->first();
|
||||
@@ -49,12 +53,7 @@ class Column3way extends Column
|
||||
|
||||
$this->min['a3w'] = $record->odds_3ways->min('a3w');
|
||||
|
||||
// $record->odds_3ways = $record->odds_3ways->filter(function (int $value, int $key) {
|
||||
|
||||
// return in_array($this->bookmakers['bookmaker'], $value['bookmaker_id']);
|
||||
|
||||
// });
|
||||
|
||||
$record->odds_3ways = FilterOdds::filter($record->odds_3ways, $this->bookmakers);
|
||||
}
|
||||
|
||||
public function getAct()
|
||||
|
||||
Reference in new issue
Block a user