use last 180 days for player in PP

This commit is contained in:
salam committed 2026-10-10 12:10:00 +02:00
1 parent e384c577d1
commit 50e15caad1
2 files changed
+37 -249

No files matched your search

+1 -1
View File
@@ -389,7 +389,7 @@ class PlayerPropsDrop extends Widget
$team_home_away = 'away';
}
$player_totals = SofaScorePlayerPerSeason::with('details')->where('total_min', '>', 0)->where('season', 'total')->where('ss_team_id', $team_id)->get();
$player_totals = SofaScorePlayerPerSeason::with('details')->where('total_min', '>', 0)->where('season', 'last_180_days')->where('ss_team_id', $team_id)->get();
$count_player = 0;
foreach ($player_totals as $key => $value) {