2 Commits

Author SHA1 Message Date
52ac03b2a4 Merge pull request 'removed logic in asrs' (#684) from ranjith-dev into master
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Reviewed-on: #684
2026-06-01 04:14:52 +00:00
dhanabalan
c6c0fec823 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
2026-06-01 09:44:37 +05:30

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([