diff --git a/src/resources/vue/Admin/User.vue b/src/resources/vue/Admin/User.vue --- a/src/resources/vue/Admin/User.vue +++ b/src/resources/vue/Admin/User.vue @@ -136,6 +136,13 @@ +
+
+
+ +
+
+
@@ -281,6 +288,7 @@ import EventLog from '../Widgets/EventLog' import ModalDialog from '../Widgets/ModalDialog' import TransactionLog from '../Widgets/TransactionLog' + import ReceiptList from '../Widgets/ReceiptList' import { ListTable } from '../Widgets/ListTools' import { default as DistlistList } from '../Distlist/ListWidget' import { default as DomainList } from '../Domain/ListWidget' @@ -307,6 +315,7 @@ ResourceList, SharedFolderList, TransactionLog, + ReceiptList, UserList }, beforeRouteUpdate (to, from, next) { @@ -363,6 +372,7 @@ }, tabs: [ { label: 'user.finances' }, + { label: 'wallet.receipts' }, { label: 'user.aliases', count: 0 }, { label: 'form.subscriptions', count: 0 }, { label: 'user.domains', count: 0 }, diff --git a/src/routes/api.php b/src/routes/api.php --- a/src/routes/api.php +++ b/src/routes/api.php @@ -263,6 +263,8 @@ Route::apiResource('wallets', API\V4\Admin\WalletsController::class); Route::post('wallets/{id}/one-off', [API\V4\Admin\WalletsController::class, 'oneOff']); + Route::get('wallets/{id}/receipts', [API\V4\Admin\WalletsController::class, 'receipts']); + Route::get('wallets/{id}/receipts/{receipt}', [API\V4\Admin\WalletsController::class, 'receiptDownload']); Route::get('wallets/{id}/transactions', [API\V4\Admin\WalletsController::class, 'transactions']); Route::get('stats/chart/{chart}', [API\V4\Admin\StatsController::class, 'chart']);