This commit is contained in:
2024-11-23 17:19:25 +05:00
parent 2aa8bf9869
commit d8f847346b
7 changed files with 51 additions and 19 deletions

View File

@@ -330,7 +330,17 @@ class NovaSberPaymentOrder extends Resource
return [
MakeSberPaymentAction::make()
->icon('credit-card')
->sole(),
->sole()
->canSee(function ($request) {
if (in_array($this->resource->status, [
OrderRepo::PENDING,
OrderRepo::CANCELLED,
])) {
return false;
}
return true;
}),
];
}
}