wallet pagination, export

This commit is contained in:
JiaSheng
2023-10-22 23:46:09 +08:00
parent af8444e0d9
commit 56bba0eaaf
15 changed files with 468 additions and 20 deletions
+2
View File
@@ -10,6 +10,8 @@ Route::group(['prefix' => 'transactions', 'namespace' => 'Transactions', 'as' =>
Route::delete('/delete-payment/{id}', 'DeletePaymentTransactionController@delete')->name('payment.delete');
Route::put('{id}/status/update/{status}', 'UpdateTransactionStatusController@update')->where('status', 'approve|expire|reject')->name('update');
Route::get('wallet/list', 'ListWalletTransactionsController@list')->name('wallet.list');
Route::group(['prefix' => 'payment', 'as' => 'payment.'], function () {
Route::post('/create', 'CreatePaymentTransactionController@create')->name('create');
Route::post('/upload-verification-document/{transaction_id}', 'UploadPaymentVerificationDocumentController@upload')->name('verification.create');
+2
View File
@@ -1068,6 +1068,8 @@ Route::get('/wallet/{marking}/details', function ($marking) {
return view('pages.wallet.index', ['id' => $id, 'marking' => $marking]);
})->name('wallet.details');
Route::get('/wallet/{wallet_id}/{is_precise}/export', 'Exports\ExportCustomersWalletTransactionToExcelController@export')->name('wallet.details-export');
Route::get('/wallet/audit', function (Request $request) {
$wallets = \App\Models\Wallet::all();