This commit is contained in:
nurmuhammet committed 2024-11-23 13:34:22 +05:00
1 parent 45b727e572
commit 2aa8bf9869
1 file changed
+11 -1
@@ -356,7 +356,17 @@ public function actions(NovaRequest $request): array
return [
MakePaymentNovaVisaMaster::make()
->icon('credit-card')
->sole(),
->sole()
->canSee(function ($request) {
if (in_array($this->resource->status, [
OrderRepo::PENDING,
OrderRepo::CANCELLED,
])) {
return false;
}
return true;
}),
];
}
}