This commit is contained in:
salam committed 2026-07-27 19:11:09 +02:00
1 parent 3627a78989
commit c143dcf727
2 files changed
+8 -8

No files matched your search

+7 -4
View File
@@ -111,10 +111,9 @@ class LoadEvents
}
})->pluck('match_id')->toArray();
$matches_played = StatistikoPlayer::query()
->whereIn('match_id', $matches_season)
->where('tm_player_id', '=', (int) $tm_player_id)
->where('tm_player_id', $tm_player_id)
->when($player_on_field, function ($query) use ($player_on_field) {
// 'all' => 'All',
// 'lineup' => 'Lineup',
@@ -133,7 +132,6 @@ class LoadEvents
})
->pluck('match_id')->toArray();
$description = ' with ' . StatistikoDetail::where('tm_player_id', (int) $tm_player_id)->value('name') . ' (' . \count($matches_played) . ')';
if (! $matches_played) {
@@ -257,7 +255,6 @@ class LoadEvents
break;
}
} else {
if ($team_position == 'home') {
switch ($value['result_code']) {
case '1':
@@ -354,6 +351,9 @@ class LoadEvents
break;
}
} else {
// dd($team_id, $value['home_id'], $value['away_id']);
switch ($value['result_code']) {
case '1':
if ($team_id == $value['home_id']) {
@@ -532,6 +532,9 @@ class LoadEvents
];
}
// Log::debug($results);
/**
* LEAGUE AVERAGES
*/