->action(function (Collection $records) { $records->each(function (User $user) { $user->update(['is_active' => !$user->is_active]); }); Notification::make() ->success() ->title('User status updated') ->body('The selected users\' statuses have been toggled.') ->send(); })