This commit is contained in:
salam committed 2026-10-05 19:39:34 +02:00
1 parent 74ff567cce
commit 916fb91895
9 files changed
+503 -346

No files matched your search

@@ -33,6 +33,7 @@ class LoadEventsQueryAll
$total_range = [];
if ($similar_past_matches != 'none') {
$team_id = 0;
$ss_player_id = 0;
$team_position = '';
$exp_handicap = $match->exp_away - $match->exp_home;
$exp_total = $match->exp_away + $match->exp_home;
@@ -40,12 +41,6 @@ class LoadEventsQueryAll
$total_range = [$exp_total - $accuracy, $exp_total + $accuracy];
}
if ($similar_past_matches != 'none') {
$team_position = '';
$team_id = 0;
$ss_player_id = 0;
}
// dd($season);
$season = GetSeason::load($season, $seasonmode);
@@ -98,6 +93,8 @@ class LoadEventsQueryAll
/**
* STATTISTIC DATA
*/
// Log::debug('result', [$similar_past_matches, $home_id, $away_id, $team_id]);
return StatistikoEvent::with('home')->with('away')
->where(function ($query) use ($league_id, $similar_past_matches) {
switch ($similar_past_matches) {