This commit is contained in:
salam committed 2026-06-18 12:17:20 +02:00
1 parent 59e7cbd081
commit 37e27fe74a
1 file changed
+1 -1
+1 -1
View File
@@ -98,7 +98,7 @@ class StatsMedianAverage extends StatsOverviewWidget
if ($value['label'] == "Average Team") {
$av_home = $value['average_team_h'] ?? 0;
$av_away = $value['average_team_a'] ?? 0;
$boxes[] = Stat::make('Average ' . $statistic_type, self::template('av_team_home', 'av_team_away', 'Home', 'Away'))->description('League Season')->extraAttributes(['x-init' => "animate('av_team_home', $av_home); animate('av_team_away', $av_away)"]);
$boxes[] = Stat::make('Average ' . $statistic_type, self::template('av_team_home', 'av_team_away', 'Home', 'Away'))->description('Team Season')->extraAttributes(['x-init' => "animate('av_team_home', $av_home); animate('av_team_away', $av_away)"]);
$max_boxes++;
}
if ($value['label'] == "Average League") {