Section::make('AQL Report Form')
->schema([
TextInput::make('limitCardNumber')
->label('Limit Card')
->disabled(true),
TextInput::make('orderQuantity')
->label('Order Quantity')
->disabled(true),
Select::make('stageId')
->options($this->stages)
->label('Stage')
->afterStateUpdated(function (Set $set, Get $get) {
$this->updateDefects($this->stageId, $set); // <----- this fills the $defectListSchema property
})
->reactive(),
])->columns(3),
Section::make('Defect List')
->schema(function () {
return $this->defectListSchema;
})
->hidden(function () {
return $this->hideDefectList;
}),
Section::make('AQL Report Form')
->schema([
TextInput::make('limitCardNumber')
->label('Limit Card')
->disabled(true),
TextInput::make('orderQuantity')
->label('Order Quantity')
->disabled(true),
Select::make('stageId')
->options($this->stages)
->label('Stage')
->afterStateUpdated(function (Set $set, Get $get) {
$this->updateDefects($this->stageId, $set); // <----- this fills the $defectListSchema property
})
->reactive(),
])->columns(3),
Section::make('Defect List')
->schema(function () {
return $this->defectListSchema;
})
->hidden(function () {
return $this->hideDefectList;
}),