<?php

use App\Http\Controllers\Admin\WalletController;

Route::get('/wallet', [WalletController::class, 'index'])->name('wallet');
Route::get('/wallet/{user}/ledger', [WalletController::class, 'ledger'])->name('wallet.ledger');
Route::get('/wallet/{user}/ledger/export', [WalletController::class, 'exportLedger'])->name('wallet.ledger.export');
Route::post('/wallet/credit', [WalletController::class, 'credit'])->name('wallet.credit');
Route::post('/wallet/debit', [WalletController::class, 'debit'])->name('wallet.debit');
Route::post('/wallet/reconcile', [WalletController::class, 'reconcile'])->name('wallet.reconcile');
Route::post('/wallet/{user}/freeze', [WalletController::class, 'freeze'])->name('wallet.freeze');
Route::post('/wallet/transfer', [WalletController::class, 'transferBetweenWallets'])->name('wallet.transfer');
Route::post('/wallet/reverse', [WalletController::class, 'reverse'])->name('wallet.reverse');
Route::post('/wallet/bulk-adjust', [WalletController::class, 'bulkAdjust'])->name('wallet.bulk-adjust');
Route::get('/wallet/imports/{batch}/errors', [WalletController::class, 'downloadAdjustErrors'])->name('wallet.imports.errors');
