Compare commits
3 Commits
b864bda85e
...
a09adf0ea5
| Author | SHA1 | Date | |
|---|---|---|---|
| a09adf0ea5 | |||
|
|
a297734bad | ||
|
|
20b02bfd7a |
@@ -43,6 +43,7 @@ class GrMasterResource extends Resource
|
||||
Forms\Components\Select::make('plant_id')
|
||||
->label('Plant')
|
||||
->reactive()
|
||||
->searchable()
|
||||
->relationship('plant', 'name')
|
||||
->options(function (callable $get) {
|
||||
$userHas = Filament::auth()->user()->plant_id;
|
||||
|
||||
@@ -49,6 +49,7 @@ class ProcessOrderResource extends Resource
|
||||
->schema([
|
||||
Forms\Components\Select::make('plant_id')
|
||||
->label('Plant')
|
||||
->searchable()
|
||||
->relationship('plant', 'name')
|
||||
->options(function (callable $get) {
|
||||
$userHas = Filament::auth()->user()->plant_id;
|
||||
@@ -76,6 +77,7 @@ class ProcessOrderResource extends Resource
|
||||
->required(),
|
||||
Forms\Components\Select::make('line_id')
|
||||
->label('Line')
|
||||
->searchable()
|
||||
->options(function (callable $get) {
|
||||
$plantId = $get('plant_id');
|
||||
if (empty($plantId)) {
|
||||
|
||||
Reference in New Issue
Block a user