From adcac05883570ed0dda5b309590cd719dcb7741e Mon Sep 17 00:00:00 2001 From: salam Date: Wed, 27 May 2026 12:06:41 +0200 Subject: [PATCH] wip --- app/Filament/Widgets/ChartMovingAverageEvent.php | 5 +++++ app/Filament/Widgets/ChartMovingAveragePlayer.php | 4 ++-- app/Filament/Widgets/ChartPunctualEvent.php | 2 +- app/Filament/Widgets/ChartPunctualPlayer.php | 7 +------ 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/app/Filament/Widgets/ChartMovingAverageEvent.php b/app/Filament/Widgets/ChartMovingAverageEvent.php index b6997b34..8d8c885c 100644 --- a/app/Filament/Widgets/ChartMovingAverageEvent.php +++ b/app/Filament/Widgets/ChartMovingAverageEvent.php @@ -30,6 +30,11 @@ class ChartMovingAverageEvent extends ChartWidget return $data; } + public function getDescription(): ?string + { + return 'Moving Average'; + } + protected function getType(): string { return 'line'; diff --git a/app/Filament/Widgets/ChartMovingAveragePlayer.php b/app/Filament/Widgets/ChartMovingAveragePlayer.php index 38cc55b4..157fb598 100644 --- a/app/Filament/Widgets/ChartMovingAveragePlayer.php +++ b/app/Filament/Widgets/ChartMovingAveragePlayer.php @@ -34,7 +34,7 @@ class ChartMovingAveragePlayer extends ChartWidget public function getDescription(): ?string { - return 'Player Moving Average'; + return 'Moving Average'; } protected function getData(): array @@ -43,7 +43,7 @@ class ChartMovingAveragePlayer extends ChartWidget return []; } - $this->heading = HelperStatisticType::get($this->filters); + $this->heading = 'Player '.HelperStatisticType::get($this->filters); $data = LoadPlayer::load($this->filters); diff --git a/app/Filament/Widgets/ChartPunctualEvent.php b/app/Filament/Widgets/ChartPunctualEvent.php index 1b16b0e8..f9d1f514 100644 --- a/app/Filament/Widgets/ChartPunctualEvent.php +++ b/app/Filament/Widgets/ChartPunctualEvent.php @@ -21,7 +21,7 @@ class ChartPunctualEvent extends ChartWidget $data = LoadEvents::load($this->filters); if (isset($data['description'])) { - $this->description = 'Punctual '.$data['description']; + $this->description = $data['description']; } return $data; diff --git a/app/Filament/Widgets/ChartPunctualPlayer.php b/app/Filament/Widgets/ChartPunctualPlayer.php index 5d6d15c2..27a421a9 100644 --- a/app/Filament/Widgets/ChartPunctualPlayer.php +++ b/app/Filament/Widgets/ChartPunctualPlayer.php @@ -31,18 +31,13 @@ class ChartPunctualPlayer extends ChartWidget ], ]; - public function getDescription(): ?string - { - return 'Player Punctual'; - } - protected function getData(): array { if ($this->filters['statistic_type'] == 'crn') { return []; } - $this->heading = HelperStatisticType::get($this->filters); + $this->heading = 'Player '.HelperStatisticType::get($this->filters); $data = LoadPlayer::load($this->filters);