ranjith-dev #668

Merged
jothi merged 6 commits from ranjith-dev into master 2026-05-29 11:05:50 +00:00
Showing only changes of commit 8c362bd83f - Show all commits

View File

@@ -56,17 +56,20 @@ class WorkGroupMasterResource extends Resource
->afterStateUpdated(function ($state, $set, callable $get) {
$plantId = $get('plant_id');
$set('pqPlantError', null);
$set('wgmPlantError', null);
$set('name', null);
$set('description', null);
$set('operation_number', null);
if (! $plantId) {
$set('pqPlantError', 'Please select a plant first.');
$set('wgmPlantError', 'Please select a plant first.');
return;
}
})
->hint(fn ($get) => $get('pqPlantError') ? $get('pqPlantError') : null)
->extraAttributes(fn ($get) => [
'class' => $get('wgmPlantError') ? 'border-red-500' : '',
])
->hint(fn ($get) => $get('wgmPlantError') ? $get('wgmPlantError') : null)
->hintColor('danger'),
Forms\Components\TextInput::make('name')
->label('Group Work Center')