This commit is contained in:
nurmuhammet committed 2024-11-23 17:19:25 +05:00
1 parent 2aa8bf9869
commit d8f847346b
7 files changed
+51 -19

No files matched your search

@@ -330,7 +330,17 @@ public function actions(NovaRequest $request): array
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;
}),
];
}
}