wiip
This commit is contained in:
1 parent
82f3654a05
commit
be4a08982e
8 files changed
+364
-326
No files matched your search
@@ -250,6 +250,9 @@ class Statistic extends BaseDashboard
|
||||
->pipsFormatter(RawJs::make(<<<'JS'
|
||||
`${$value.toFixed(2)}`
|
||||
JS)),
|
||||
/************************
|
||||
* PLAYER
|
||||
************************/
|
||||
Select::make('ss_player_id')
|
||||
->live()
|
||||
->hiddenLabel()
|
||||
@@ -313,7 +316,7 @@ class Statistic extends BaseDashboard
|
||||
->columns(2)
|
||||
->hiddenLabel()
|
||||
->multiple()
|
||||
->placeholder('All Seasons')
|
||||
->placeholder('Current Season')
|
||||
->prefixIconColor('success')
|
||||
// ->prefixIconColor(fn(Get $get): string => $get('season') ? 'success' : 'primary')
|
||||
->hidden(fn(Get $get) => $get('season_or_date') == 'date')
|
||||
@@ -321,6 +324,9 @@ class Statistic extends BaseDashboard
|
||||
->preload()
|
||||
->options(function (Get $get) {
|
||||
return LoadSeasons::load($get('league_id'));
|
||||
})
|
||||
->afterStateUpdated(function (callable $set) {
|
||||
$set('ss_player_id', null);
|
||||
}),
|
||||
DatePicker::make('start_date')
|
||||
->live()
|
||||
|
||||
Reference in new issue
Block a user