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