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');
|
return Element::query()->whereIn('id', $arr)->orderBy('name')->pluck('name', 'id');
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
->afterStateUpdated(function (callable $set) {
|
||||||
|
$set('tm_player_id', null);
|
||||||
|
})
|
||||||
->preload()
|
->preload()
|
||||||
->searchable()
|
->searchable()
|
||||||
->live()
|
->live()
|
||||||
@@ -101,7 +104,7 @@ class Statistic extends BaseDashboard
|
|||||||
->preload()
|
->preload()
|
||||||
->searchable()
|
->searchable()
|
||||||
->options(function (Get $get) {
|
->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(),
|
->live(),
|
||||||
Select::make('team_position')
|
Select::make('team_position')
|
||||||
|
|||||||
Reference in new issue
Block a user