This commit is contained in:
salam committed 2026-08-30 17:53:03 +02:00
1 parent a794f6a384
commit 2a39d38a39
2 files changed
+5 -2

No files matched your search

+4 -2
View File
@@ -37,6 +37,8 @@ class StatsMedianAverage extends StatsOverviewWidget
{
$data = LoadEvents::load($this->filters, false);
// dd($data);
$team_id = (int) $this->filters['team_id'] ?? 0;
$season = $this->filters['season'] ?? 0;
@@ -192,10 +194,10 @@ class StatsMedianAverage extends StatsOverviewWidget
]);
// BOX 3
$boxes[] = Stat::make('Average '.$statistic_type, self::template_box3($home_team, $away_team, $value_home, $value_away))
$boxes[] = Stat::make('Average '.$statistic_type, self::template_box3($home_team, $away_team, $value_away, $value_home))
->description('Team '.$team_position)
->extraAttributes([
'x-init' => "animate('average_home', $value_home); animate('average_away', $value_away)",
'x-init' => "animate('average_home', $value_away); animate('average_away', $value_home)",
'class' => 'box-success',
]);