modifications details

This commit is contained in:
salam committed 2026-07-28 21:37:18 +02:00
1 parent c143dcf727
commit c1892e86aa
21 files changed
+99 -108

No files matched your search

+8 -8
View File
@@ -73,7 +73,7 @@ class Statistic extends BaseDashboard
->afterStateUpdated(function (callable $set, $state) {
$set('match_id', null);
$set('team_id', null);
$set('tm_player_id', null);
$set('ss_player_id', null);
$set('season', null);
}),
Select::make('match_id')
@@ -86,7 +86,7 @@ class Statistic extends BaseDashboard
})
->afterStateUpdated(function (callable $set) {
$set('team_id', null);
$set('tm_player_id', null);
$set('ss_player_id', null);
})
->placeholder('Events'),
@@ -116,7 +116,7 @@ class Statistic extends BaseDashboard
}
})
->afterStateUpdated(function (callable $set) {
$set('tm_player_id', null);
$set('ss_player_id', null);
})
->placeholder('Team'),
@@ -140,7 +140,7 @@ class Statistic extends BaseDashboard
'away' => 'Away',
])->afterStateUpdated(function (callable $set) {
// $set('team_id', null);
$set('tm_player_id', null);
$set('ss_player_id', null);
}),
]),
Grid::make([
@@ -196,7 +196,7 @@ class Statistic extends BaseDashboard
->selectablePlaceholder(false)
->afterStateUpdated(function (callable $set) {
$set('team_id', null);
$set('tm_player_id', null);
$set('ss_player_id', null);
$set('team_position', null);
})
->options([
@@ -218,7 +218,7 @@ class Statistic extends BaseDashboard
->pipsFormatter(RawJs::make(<<<'JS'
`${$value.toFixed(2)}`
JS)),
Select::make('tm_player_id')
Select::make('ss_player_id')
->live()
->hiddenLabel()
->allowHtml()
@@ -237,12 +237,12 @@ class Statistic extends BaseDashboard
->placeholder('Time on field')
->prefixIcon('phosphor-watch-fill')
->default('all')
->hidden(fn(Get $get) => ! $get('tm_player_id'))
->hidden(fn(Get $get) => ! $get('ss_player_id'))
->prefixIconColor('success')
->selectablePlaceholder(false)
// ->afterStateUpdated(function (callable $set) {
// // $set('team_id', null);
// $set('tm_player_id', null);
// $set('ss_player_id', null);
// })
->options([
'all' => 'All',