This commit is contained in:
salam committed 2026-08-30 22:58:08 +02:00
1 parent 677f61a415
commit aa59ad8d9e
1 file changed
+3 -1
+3 -1
View File
@@ -331,6 +331,7 @@ class Statistic extends BaseDashboard
->extraAttributes([ ->extraAttributes([
'class' => 'radio-statistic-group', 'class' => 'radio-statistic-group',
]) ])
->hidden(fn(Get $get) => $get('similar_past_matches') != 'none')
->columnSpan([ ->columnSpan([
'default' => 4, 'default' => 4,
'sm' => 4, 'sm' => 4,
@@ -351,7 +352,7 @@ class Statistic extends BaseDashboard
->placeholder('Current Season') ->placeholder('Current Season')
->prefixIconColor('success') ->prefixIconColor('success')
// ->prefixIconColor(fn(Get $get): string => $get('season') ? 'success' : 'primary') // ->prefixIconColor(fn(Get $get): string => $get('season') ? 'success' : 'primary')
->hidden(fn (Get $get) => $get('season_or_date') == 'date') ->hidden(fn(Get $get) => $get('season_or_date') == 'date' || $get('similar_past_matches') != 'none')
->prefixIcon('phosphor-calendar-star-fill') ->prefixIcon('phosphor-calendar-star-fill')
->options(function (Get $get) { ->options(function (Get $get) {
return LoadSeasons::load($get('sofascore_category_id')); return LoadSeasons::load($get('sofascore_category_id'));
@@ -388,6 +389,7 @@ class Statistic extends BaseDashboard
->action(fn(Set $set) => $set('end_date', null)) ->action(fn(Set $set) => $set('end_date', null))
), ),
Action::make('esc') Action::make('esc')
->label('Reset [esc]')
->icon('phosphor-x-circle') ->icon('phosphor-x-circle')
->color('gray') ->color('gray')
->keyBindings(['esc']) ->keyBindings(['esc'])