ranjith-dev #346

Merged
jothi merged 2 commits from ranjith-dev into master 2026-02-18 05:23:05 +00:00
2 changed files with 3 additions and 0 deletions

View File

@@ -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;

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