comp wip
This commit is contained in:
1 parent
f59ac10c2a
commit
7a9eeb8aad
25 files changed
+253
-78
No files matched your search
@@ -20,8 +20,6 @@ class Column3way extends Column
|
||||
|
||||
public function bookmakers(?array $bookmakers): static
|
||||
{
|
||||
array_unshift($bookmakers, auth()->user()->bookmaker_id);
|
||||
|
||||
$this->bookmakers = $bookmakers;
|
||||
|
||||
return $this;
|
||||
@@ -29,11 +27,12 @@ class Column3way extends Column
|
||||
|
||||
public function getBookmaker(): ?array
|
||||
{
|
||||
return $this->bookmakers;
|
||||
return $this->bookmakers['bookmaker'] ?? [];
|
||||
}
|
||||
|
||||
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,6 +48,13 @@ class Column3way extends Column
|
||||
$this->min['d3w'] = $record->odds_3ways->min('d3w');
|
||||
|
||||
$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']);
|
||||
|
||||
// });
|
||||
|
||||
}
|
||||
|
||||
public function getAct()
|
||||
|
||||
Reference in new issue
Block a user