Added logic for not ok slectremark text box gets visble in production characteristic page #922

Merged
jothi merged 1 commits from ranjith-dev into master 2026-08-22 06:36:53 +00:00
Showing only changes of commit 46544c8543 - Show all commits

View File

@@ -190,7 +190,11 @@ class ProductionCharacteristicResource extends Resource
->label('Remark')
->reactive()
->required(fn ($get) => $get('status') == 'ConditionallyAccepted')
->visible(fn ($get) => $get('status') == 'ConditionallyAccepted'),
// ->visible(fn ($get) => $get('status') == 'ConditionallyAccepted'),
->visible(fn ($get) => in_array($get('status'), [
'NotOk',
'ConditionallyAccepted',
])),
Forms\Components\Hidden::make('created_by')
->label('Created By'),
Forms\Components\Hidden::make('updated_by')