This commit is contained in:
salam committed 2026-06-17 16:08:14 +02:00
1 parent 9c4ed7c6b6
commit 75cf5db961
1 file changed
+11 -11
+11 -11
View File
@@ -159,10 +159,10 @@ class Statistic extends BaseDashboard
->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>') : '')
// ->columnSpan([ ->columnSpan([
// 'default' => 1, 'default' => 1,
// 'xl' => 2, 'sm' => 2,
// ]) ])
->prefixAction( ->prefixAction(
Action::make('iconInfo') Action::make('iconInfo')
->icon('phosphor-question') ->icon('phosphor-question')
@@ -177,9 +177,9 @@ class Statistic extends BaseDashboard
$set('team_position', null); $set('team_position', null);
}) })
->options([ ->options([
'none' => 'SPM: None', 'none' => 'Similar Past Matches: None',
'league' => 'SPM: League', 'league' => 'Similar Past Matches: League',
'all' => 'SPM: All Database', 'all' => 'Similar Past Matches: All Database',
]), ]),
Slider::make('accuracy') Slider::make('accuracy')
// ->label('Accuracy min: 0, max: 0.25, steps: 0.025') // ->label('Accuracy min: 0, max: 0.25, steps: 0.025')
@@ -192,10 +192,10 @@ class Statistic extends BaseDashboard
->step(0.025) ->step(0.025)
->decimalPlaces(3) ->decimalPlaces(3)
// ->tooltips() // ->tooltips()
->columnSpan([ // ->columnSpan([
'default' => 1, // 'default' => 1,
'xl' => 2, // 'xl' => 2,
]) // ])
->pips() ->pips()
->pipsFormatter(RawJs::make(<<<'JS' ->pipsFormatter(RawJs::make(<<<'JS'
`${$value.toFixed(2)}` `${$value.toFixed(2)}`