This commit is contained in:
2025-12-22 13:47:32 +05:00
parent 2b2704f6d2
commit db3800921e

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;
}), // }),
]; ];
} }