This commit is contained in:
2024-11-23 13:34:22 +05:00
parent 45b727e572
commit 2aa8bf9869

View File

@@ -356,7 +356,17 @@ class NovaVisaMasterPaymentOrder extends Resource
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;
}),
];
}
}