wip player select statistk
This commit is contained in:
1 parent
421ad934dc
commit
30c32397a8
1 file changed
+4
-1
@@ -68,6 +68,9 @@ class Statistic extends BaseDashboard
|
||||
return Element::query()->whereIn('id', $arr)->orderBy('name')->pluck('name', 'id');
|
||||
}
|
||||
})
|
||||
->afterStateUpdated(function (callable $set) {
|
||||
$set('tm_player_id', null);
|
||||
})
|
||||
->preload()
|
||||
->searchable()
|
||||
->live()
|
||||
@@ -101,7 +104,7 @@ class Statistic extends BaseDashboard
|
||||
->preload()
|
||||
->searchable()
|
||||
->options(function (Get $get) {
|
||||
return StatistikoDetail::where('id_squadra_tm', $get('txodds_id'))->pluck('name', 'tm_player_id');
|
||||
return StatistikoDetail::where('txodds_id', $get('team_id'))->pluck('name', 'tm_player_id');
|
||||
})
|
||||
->live(),
|
||||
Select::make('team_position')
|
||||
|
||||
Reference in new issue
Block a user