diff --git a/app/Filament/Pages/Statistic.php b/app/Filament/Pages/Statistic.php index 5fe95c4e..016749eb 100644 --- a/app/Filament/Pages/Statistic.php +++ b/app/Filament/Pages/Statistic.php @@ -106,7 +106,7 @@ class Statistic extends BaseDashboard } }) ->prefixIcon('phosphor-users-three') - ->disabled(fn(Get $get) => $get('similar_past_matches') != 'none') + ->hidden(fn(Get $get) => $get('similar_past_matches') != 'none') ->options(function (Get $get) { if ($get('match_id')) { $res = StatisticFixtures::where('id', $get('match_id'))->get(); @@ -130,7 +130,7 @@ class Statistic extends BaseDashboard ->placeholder('Team Position') ->prefix('Team Position') ->prefixIcon('phosphor-map-pin') - ->disabled(fn(Get $get) => $get('similar_past_matches') != 'none') + ->hidden(fn(Get $get) => $get('similar_past_matches') != 'none') ->default('all') ->selectablePlaceholder(false) ->options([