Added Updated logic in asrs resource pages
Some checks failed
Gemini PR Review / Gemini PR Review (pull_request) Waiting to run
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Waiting to run
Laravel Larastan / larastan (pull_request) Waiting to run
Laravel Pint / pint (pull_request) Waiting to run
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled

This commit is contained in:
dhanabalan
2026-05-26 10:18:46 +05:30
parent da526c7c0d
commit d4766a73e9
2 changed files with 13 additions and 6 deletions

View File

@@ -112,12 +112,12 @@ class AsrsItemValidationResource extends Resource
'In' => 'In',
'Out' => 'Out',
]),
Forms\Components\Select::make('status')
->label('Status')
->options([
'Updated' => 'Updated',
'NotUpdated' => 'Not Updated',
]),
// Forms\Components\Select::make('status')
// ->label('Status')
// ->options([
// 'Updated' => 'Updated',
// 'NotUpdated' => 'Not Updated',
// ]),
Forms\Components\Hidden::make('created_by')
->label('Created By')
->default(Filament::auth()->user()?->name ?? ''),

View File

@@ -10,6 +10,13 @@ class EditAsrsItemValidation extends EditRecord
{
protected static string $resource = AsrsItemValidationResource::class;
protected function mutateFormDataBeforeSave(array $data): array
{
$data['status'] = 'Updated';
return $data;
}
protected function getHeaderActions(): array
{
return [