This commit is contained in:
salam committed 2026-08-25 08:03:22 +02:00
1 parent d316d486b9
commit c6c5cdc1b1
21 files changed
+620 -34

No files matched your search

+1 -1
View File
@@ -248,7 +248,7 @@ class LoadEvents
$dataset_away2[] = (int) $value['val_home'];
}
}
$n = max(count($dataset_home), count($dataset_home2));
$n = min(count($dataset_home), count($dataset_home2));
$f = array_first($labels);
$step = round($f / $n);
$labels = [];
@@ -86,7 +86,8 @@ class LoadEventsQuery
* STATTISTIC DATA
*/
$res = StatistikoEvent::with('home')->with('away')->where('league_id', 18)
// dd($league_id, $home_id, $away_id);
$res = StatistikoEvent::with('home')->with('away')
->where(function ($query) use ($league_id, $similar_past_matches) {
switch ($similar_past_matches) {
case 'none':