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