removed logic in asrs
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Gemini PR Review / Gemini PR Review (pull_request) Has been cancelled
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Has been cancelled
Laravel Larastan / larastan (pull_request) Has been cancelled
Laravel Pint / pint (pull_request) Has been cancelled

This commit is contained in:
dhanabalan
2026-06-01 09:44:37 +05:30
parent 184f458b75
commit c6c0fec823

View File

@@ -385,7 +385,7 @@ class AsrsItemValidationResource extends Resource
->filtersFormMaxHeight('280px') ->filtersFormMaxHeight('280px')
->actions([ ->actions([
Tables\Actions\ViewAction::make(), Tables\Actions\ViewAction::make(),
Tables\Actions\EditAction::make() Tables\Actions\EditAction::make(),
// ->hidden(function ($record): bool { // ->hidden(function ($record): bool {
// if (auth()->user()?->hasRole('SuperAdmin')) { // if (auth()->user()?->hasRole('SuperAdmin')) {
// return false; // return false;
@@ -393,10 +393,10 @@ class AsrsItemValidationResource extends Resource
// return trim(strtolower($record->status)) == 'updated'; // return trim(strtolower($record->status)) == 'updated';
// }), // }),
->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 ?? '')) == null || strtolower(trim($record->status ?? '')) == ''; // || strtolower(trim($record->status ?? '')) != 'updated' || strtolower(trim($record->status ?? '')) == null || strtolower(trim($record->status ?? '')) == '';
}), // }),
]) ])
->bulkActions([ ->bulkActions([
Tables\Actions\BulkActionGroup::make([ Tables\Actions\BulkActionGroup::make([