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
{
return [
MakeSberPaymentAction::make()
->icon('credit-card')
->sole()
->canSee(function ($request) {
/** @var \App\Modules\SberPaymentOrder\Models\SberPaymentOrder $resource */
$resource = $this->resource;
// MakeSberPaymentAction::make()
// ->icon('credit-card')
// ->sole()
// ->canSee(function ($request) {
// /** @var \App\Modules\SberPaymentOrder\Models\SberPaymentOrder $resource */
// $resource = $this->resource;
if (in_array($resource->status, [
OrderRepo::PENDING,
OrderRepo::CANCELLED,
])) {
return false;
}
// if (in_array($resource->status, [
// OrderRepo::PENDING,
// OrderRepo::CANCELLED,
// ])) {
// return false;
// }
return true;
}),
// return true;
// }),
];
}