This commit is contained in:
salam committed 2026-06-18 17:57:22 +02:00
1 parent 5cf6ec20dc
commit 3fbfff888f
2 files changed
+45 -12

No files matched your search

+8 -7
View File
@@ -162,10 +162,10 @@ class Statistic extends BaseDashboard
->placeholder('Similar Past Matches')
->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>') : '')
->columnSpan([
'default' => 1,
'sm' => 2,
])
// ->columnSpan([
// 'default' => 1,
// 'sm' => 2,
// ])
->prefixAction(
Action::make('iconInfo')
->icon('phosphor-question')
@@ -180,9 +180,9 @@ class Statistic extends BaseDashboard
$set('team_position', null);
})
->options([
'none' => 'Similar Past Matches: None',
'league' => 'Similar Past Matches: League',
'all' => 'Similar Past Matches: All Database',
'none' => 'SPM: None',
'league' => 'SPM: League',
'all' => 'SPM: All Database',
]),
Slider::make('accuracy')
// ->label('Accuracy min: 0, max: 0.25, steps: 0.025')
@@ -206,6 +206,7 @@ class Statistic extends BaseDashboard
->live(),
Select::make('tm_player_id')
->hiddenLabel()
->allowHtml()
->placeholder('Player')
->hidden(fn(Get $get) => $get('similar_past_matches') != 'none')
->prefixIconColor(fn(Get $get): string => $get('similar_past_matches') == 'none' ? 'primary' : '')