filter comparatore wip

This commit is contained in:
salam committed 2026-01-21 19:49:28 +01:00
1 parent 7a9eeb8aad
commit 937c5908d2
40 files changed
+362 -306

No files matched your search

+6 -7
View File
@@ -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()