wip
This commit is contained in:
1 parent
60e5ce45ce
commit
12d29d6a6b
4 files changed
+45
-11
No files matched your search
@@ -33,6 +33,10 @@ class LoadEventsQuery
|
||||
$statistic_type = 'gls';
|
||||
}
|
||||
|
||||
// if($similar_past_matches != 'none'){
|
||||
// $team_id = 0;
|
||||
// }
|
||||
|
||||
$season = GetSeason::load($season, $sofascore_category_id);
|
||||
|
||||
// dd($season);
|
||||
@@ -81,6 +85,7 @@ class LoadEventsQuery
|
||||
}
|
||||
}
|
||||
|
||||
// dd($handicap_range, $total_range);
|
||||
/**
|
||||
* STATTISTIC DATA
|
||||
*/
|
||||
@@ -114,19 +119,21 @@ class LoadEventsQuery
|
||||
return $query->whereBetween('exp_handicap', $handicap_range);
|
||||
})->when($total_range, function ($query) use ($total_range) {
|
||||
return $query->whereBetween('exp_total', $total_range);
|
||||
})->when($start, function ($query) use ($start) {
|
||||
})
|
||||
->when($start, function ($query) use ($start) {
|
||||
return $query->whereDate('starttime', '>=', $start);
|
||||
})->when($end, function ($query) use ($end) {
|
||||
return $query->whereDate('starttime', '<=', $end);
|
||||
})
|
||||
->when($season, function ($query) use ($season, $season_or_date) {
|
||||
if ($season_or_date == 'season') {
|
||||
return $query->whereIn('season', $season);
|
||||
}
|
||||
})
|
||||
// ->when($season, function ($query) use ($season, $season_or_date) {
|
||||
// if ($season_or_date == 'season') {
|
||||
// return $query->whereIn('season', $season);
|
||||
// }
|
||||
// })
|
||||
->orderBy('starttime', 'ASC')
|
||||
->get();
|
||||
|
||||
// dd($res);
|
||||
// dd($season, $team_id, $home_id, $away_id, $res);
|
||||
|
||||
$arr = [];
|
||||
|
||||
Reference in new issue
Block a user