wip
This commit is contained in:
1 parent
d317c733b9
commit
3b8cebf10a
6 files changed
+17
-33
No files matched your search
@@ -323,10 +323,18 @@ class ColumnOdds extends Column
|
||||
$filter = $this->filter[$model->bookmaker_id] ?? 0;
|
||||
|
||||
if ($filter) {
|
||||
if ($model->margin <= $filter['margin']) {
|
||||
$this->compare = $this->data->where('bookmaker_id', $model->bookmaker_id)->first();
|
||||
if ($this->bettype == 'odds_dc') {
|
||||
if ($model->margin <= $filter['margin'] * 2) {
|
||||
$this->compare = $this->data->where('bookmaker_id', $model->bookmaker_id)->first();
|
||||
|
||||
return;
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
if ($model->margin <= $filter['margin']) {
|
||||
$this->compare = $this->data->where('bookmaker_id', $model->bookmaker_id)->first();
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user