Compare commits
4 Commits
97b6561ad3
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e1ab8f7950 | ||
|
|
1c32df52e7 | ||
|
|
64f0ae35ef | ||
|
|
99b09dcc06 |
@@ -350,22 +350,22 @@ class NovaSberPaymentOrder extends Resource
|
||||
public function actions(NovaRequest $request): array
|
||||
{
|
||||
return [
|
||||
// MakeSberPaymentAction::make()
|
||||
// ->icon('credit-card')
|
||||
// ->sole()
|
||||
// ->canSee(function ($request) {
|
||||
// /** @var \App\Modules\SberPaymentOrder\Models\SberPaymentOrder $resource */
|
||||
// $resource = $this->resource;
|
||||
MakeSberPaymentAction::make()
|
||||
->icon('credit-card')
|
||||
->sole()
|
||||
->canSee(function ($request) {
|
||||
/** @var \App\Modules\SberPaymentOrder\Models\SberPaymentOrder $resource */
|
||||
$resource = $this->resource;
|
||||
|
||||
// if (in_array($resource->status, [
|
||||
// OrderRepo::PENDING,
|
||||
// OrderRepo::CANCELLED,
|
||||
// ])) {
|
||||
// return false;
|
||||
// }
|
||||
if (in_array($resource->status, [
|
||||
OrderRepo::PENDING,
|
||||
OrderRepo::CANCELLED,
|
||||
])) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// return true;
|
||||
// }),
|
||||
return true;
|
||||
}),
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
@@ -128,7 +128,7 @@ class VisaMasterPaymentOrderFieldsForDetail
|
||||
Text::make(__('Töleg ugradyjynyň goýum hasaby'), function () use ($resource) {
|
||||
return sprintf(
|
||||
'<strong>%s</strong>',
|
||||
$resource->sender_deposit_account && is_numeric($resource->sender_deposit_account) ? number_format($resource->sender_deposit_account, 0, '', '') : '0'
|
||||
number_format($resource->sender_deposit_account, 0, '', '')
|
||||
);
|
||||
})->asHtml(),
|
||||
|
||||
|
||||
@@ -382,12 +382,13 @@ class NovaVisaMasterPaymentOrder extends Resource
|
||||
$order = $this->resource;
|
||||
|
||||
if (in_array($order->status, [
|
||||
OrderRepo::COMPLETED,
|
||||
OrderRepo::PENDING,
|
||||
OrderRepo::CANCELLED,
|
||||
])) {
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
return false;
|
||||
return true;
|
||||
}),
|
||||
];
|
||||
}
|
||||
|
||||
@@ -107,6 +107,7 @@ class NovaMenuRepo
|
||||
MenuItem::resource(CurrencyRate::class)->canSee(fn() => NovaPermissionRepo::isAdmin() || NovaPermissionRepo::isCurrencyMaintainer()),
|
||||
MenuItem::resource(NovaVisaMasterSetting::class)->canSee(fn() => NovaPermissionRepo::isAdmin() || NovaPermissionRepo::isCurrencyMaintainer()),
|
||||
])->icon('currency-dollar')
|
||||
->canSee(NovaPermissionRepo::isCurrencyMaintainer())
|
||||
->collapsedByDefault(),
|
||||
|
||||
MenuSection::resource(OnlinePaymentHistoryResource::class)
|
||||
|
||||
@@ -99,6 +99,10 @@
|
||||
"type": "vcs",
|
||||
"url": "https://github.com/anditsung/nova-locale-switcher"
|
||||
},
|
||||
"1": {
|
||||
"type": "vcs",
|
||||
"url": "https://github.com/nurmuhammet-ali/nova-tabs"
|
||||
},
|
||||
"2": {
|
||||
"type": "path",
|
||||
"url": "./nova-components/NovaCustomHtml"
|
||||
|
||||
2258
composer.lock
generated
2258
composer.lock
generated
File diff suppressed because it is too large
Load Diff
BIN
vendor.zip
BIN
vendor.zip
Binary file not shown.
Reference in New Issue
Block a user