1
0
forked from poc/pds

Added searchable option for plant_id and line_id

This commit is contained in:
dhanabalan
2026-02-18 10:48:39 +05:30
parent 20b02bfd7a
commit a297734bad

View File

@@ -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)) {