This commit is contained in:
Mekan1206
2026-05-13 22:17:14 +05:00
parent 99b09dcc06
commit 64f0ae35ef

View File

@@ -350,22 +350,22 @@ class NovaSberPaymentOrder extends Resource
public function actions(NovaRequest $request): array public function actions(NovaRequest $request): array
{ {
return [ return [
// MakeSberPaymentAction::make() MakeSberPaymentAction::make()
// ->icon('credit-card') ->icon('credit-card')
// ->sole() ->sole()
// ->canSee(function ($request) { ->canSee(function ($request) {
// /** @var \App\Modules\SberPaymentOrder\Models\SberPaymentOrder $resource */ /** @var \App\Modules\SberPaymentOrder\Models\SberPaymentOrder $resource */
// $resource = $this->resource; $resource = $this->resource;
// if (in_array($resource->status, [ if (in_array($resource->status, [
// OrderRepo::PENDING, OrderRepo::PENDING,
// OrderRepo::CANCELLED, OrderRepo::CANCELLED,
// ])) { ])) {
// return false; return false;
// } }
// return true; return true;
// }), }),
]; ];
} }