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