This commit is contained in:
salam committed 2026-06-25 16:29:00 +02:00
1 parent aeea5f731b
commit 12d29c7b3e
1 file changed
+4 -3
+4 -3
View File
@@ -177,6 +177,7 @@ class Statistic extends BaseDashboard
Select::make('similar_past_matches') Select::make('similar_past_matches')
->live() ->live()
->hiddenLabel() ->hiddenLabel()
->prefix('SPM')
->placeholder('Similar Past Matches') ->placeholder('Similar Past Matches')
->prefixIconColor('primary') ->prefixIconColor('primary')
->suffix(fn(Get $get): string|HtmlString => $get('similar_past_matches') != 'none' ? new HtmlString('<div class="text-center w-24 font-bold rounded p-1 bg-blue-600 dark:bg-blue-700 text-white dark:text-gray-300">± ' . $get('accuracy') . '</div>') : '') ->suffix(fn(Get $get): string|HtmlString => $get('similar_past_matches') != 'none' ? new HtmlString('<div class="text-center w-24 font-bold rounded p-1 bg-blue-600 dark:bg-blue-700 text-white dark:text-gray-300">± ' . $get('accuracy') . '</div>') : '')
@@ -193,9 +194,9 @@ class Statistic extends BaseDashboard
$set('team_position', null); $set('team_position', null);
}) })
->options([ ->options([
'none' => 'SPM: None', 'none' => 'None',
'league' => 'SPM: League', 'league' => 'League',
'all' => 'SPM: All Database', 'all' => 'All Database',
]), ]),
Slider::make('accuracy') Slider::make('accuracy')
->live() ->live()