Added logic in asrs for visible edit #683

Merged
jothi merged 1 commits from ranjith-dev into master 2026-06-01 04:11:42 +00:00

View File

@@ -395,7 +395,7 @@ class AsrsItemValidationResource extends Resource
// }), // }),
->visible(function ($record): bool { ->visible(function ($record): bool {
return auth()->user()?->hasRole('SuperAdmin') return auth()->user()?->hasRole('SuperAdmin')
|| strtolower(trim($record->status ?? '')) != 'updated'; || strtolower(trim($record->status ?? '')) != 'updated' || strtolower(trim($record->status ?? '')) == null || strtolower(trim($record->status ?? '')) == '';
}), }),
]) ])
->bulkActions([ ->bulkActions([