wip
This commit is contained in:
@@ -374,22 +374,22 @@ class NovaVisaMasterPaymentOrder extends Resource
|
|||||||
public function actions(NovaRequest $request): array
|
public function actions(NovaRequest $request): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
MakePaymentNovaVisaMaster::make()
|
// MakePaymentNovaVisaMaster::make()
|
||||||
->icon('credit-card')
|
// ->icon('credit-card')
|
||||||
->sole()
|
// ->sole()
|
||||||
->canSee(function ($request) {
|
// ->canSee(function ($request) {
|
||||||
/** @var VisaMasterPaymentOrderModel $order */
|
// /** @var VisaMasterPaymentOrderModel $order */
|
||||||
$order = $this->resource;
|
// $order = $this->resource;
|
||||||
|
|
||||||
if (in_array($order->status, [
|
// if (in_array($order->status, [
|
||||||
OrderRepo::PENDING,
|
// OrderRepo::PENDING,
|
||||||
OrderRepo::CANCELLED,
|
// OrderRepo::CANCELLED,
|
||||||
])) {
|
// ])) {
|
||||||
return false;
|
// return false;
|
||||||
}
|
// }
|
||||||
|
|
||||||
return true;
|
// return true;
|
||||||
}),
|
// }),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user