diff --git a/app/Filament/Widgets/Data/HelperStatisticType.php b/app/Filament/Widgets/Data/HelperStatisticType.php index 6dbcec2b..c4be4b1a 100644 --- a/app/Filament/Widgets/Data/HelperStatisticType.php +++ b/app/Filament/Widgets/Data/HelperStatisticType.php @@ -7,11 +7,11 @@ class HelperStatisticType protected static array $types = [ 'gls' => 'Goals', 'crn' => 'Corner', - 'fls' => 'Fouls', + 'fls' => 'Fouls Commited', 'ofs' => 'Offside', 'crd' => 'Cards', - 'snt' => 'S on T', - 'tsh' => 'Shots', + 'snt' => 'Shots on Target', + 'tsh' => 'Total Shots', ]; public static function get($filter): string diff --git a/app/Filament/Widgets/StatsMedianAverage.php b/app/Filament/Widgets/StatsMedianAverage.php index ca4ff5d2..d1361fc7 100644 --- a/app/Filament/Widgets/StatsMedianAverage.php +++ b/app/Filament/Widgets/StatsMedianAverage.php @@ -81,6 +81,7 @@ class StatsMedianAverage extends StatsOverviewWidget $m1 = floor($m); $m2 = ceil($m); $median_home = round(($arr_home[$m1] + $arr_home[$m2]) / 2, 2); + $m = $total_away / 2; $m1 = floor($m); $m2 = ceil($m); @@ -90,6 +91,7 @@ class StatsMedianAverage extends StatsOverviewWidget // odd $m = $total_home / 2; $median_home = $arr_home[$m]; + $m = floor($total_away / 2); $median_away = $arr_away[$m]; }