wip
This commit is contained in:
1 parent
e5b600df5b
commit
e6488343c1
2 files changed
+23
-14
No files matched your search
@@ -374,22 +374,22 @@ public function fields(NovaRequest $request): array
|
||||
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