This commit is contained in:
salam committed 2026-05-23 18:06:50 +02:00
1 parent 188e873f8d
commit 25f8518773
2 files changed
+55 -10

No files matched your search

@@ -13,6 +13,14 @@ class StatsMedianAverage extends StatsOverviewWidget
protected ?string $pollingInterval = null;
public function getColumns(): int|array
{
return [
'md' => 3,
'xl' => 6,
];
}
protected function getStats(): array
{
$filters = $this->filters;
@@ -50,6 +58,9 @@ class StatsMedianAverage extends StatsOverviewWidget
Stat::make('Number of events', $total),
Stat::make('Average', round($summe / $total, 1)),
Stat::make('Median', $median),
Stat::make('Win', $data['results']['w']),
Stat::make('Draw', $data['results']['d']),
Stat::make('Lost', $data['results']['l']),
];
}
}