diff --git a/app/Filament/Pages/Statistic.php b/app/Filament/Pages/Statistic.php index a79a3300..281a35a8 100644 --- a/app/Filament/Pages/Statistic.php +++ b/app/Filament/Pages/Statistic.php @@ -128,7 +128,7 @@ class Statistic extends BaseDashboard ]), Slider::make('accuracy') ->hiddenLabel() - ->disabled(fn (Get $get) => $get('similar_past_matches') == 'none') + ->disabled(fn (Get $get) => $get('similar_past_matches') != 'none') ->fillTrack() ->default(5) ->step(0.1) @@ -137,22 +137,6 @@ class Statistic extends BaseDashboard ->range(minValue: 0, maxValue: 1) ->pips() ->live(), - // Select::make('accuracy') - // ->disabled(fn (Get $get) => $get('similar_past_matches') == 'none') - // ->default(0.5) - // ->options([ - // '0.1' => '0.1', - // '0.2' => '0.2', - // '0.3' => '0.3', - // '0.4' => '0.4', - // '0.5' => '0.5', - // '0.6' => '0.6', - // '0.7' => '0.7', - // '0.8' => '0.8', - // '0.9' => '0.9', - // '1' => '1.0', - // ]) - // ->native(false), ])->columns(6) ->columnSpanFull(), Fieldset::make('Player')