This commit is contained in:
salam committed 2026-08-01 12:34:01 +02:00
1 parent aae9594d8f
commit 4f7de2e489
2 files changed
+4 -3

No files matched your search

@@ -27,14 +27,15 @@ class PlayerPerSeason
$res2 = StatistikoPlayer::with('event')->where('ss_player_id', $val->ss_player_id)->get();
foreach ($res2 as $val2) {
dd($val2);
if (!isset($collection[$val2->event->season])) {
$collection[$val2->event->season]['events_played_home'] = 0;
$collection[$val2->event->season]['events_played_away'] = 0;
$collection[$val2->event->season]['minutes_played_home'] = 0;
$collection[$val2->event->season]['minutes_played_away'] = 0;
}
if ($val2->minutes_played > 0) {
if ((int) $val2->minutes_played > 0) {
if ($val2->activeteam_id == $val2->event->home_id) {
$collection[$val2->event->season]['events_played_home'] += 1;