<?php

use App\Http\Controllers\Admin\MemberController;

Route::get('/members', [MemberController::class, 'index'])->name('members');
Route::get('/members/create', [MemberController::class, 'create'])->name('members.create');
Route::post('/members', [MemberController::class, 'store'])->name('members.store');
Route::get('/members/{user}/edit', [MemberController::class, 'edit'])->name('members.edit');
Route::post('/members/{user}/update', [MemberController::class, 'update'])->name('members.update');
Route::post('/members/{user}/status', [MemberController::class, 'updateStatus'])->name('members.status');
Route::post('/members/{user}/sponsor', [MemberController::class, 'updateSponsor'])->name('members.sponsor');
Route::post('/members/{user}/placement', [MemberController::class, 'updatePlacement'])->name('members.placement');
Route::post('/members/{user}/impersonate', [MemberController::class, 'impersonate'])->name('members.impersonate');
Route::post('/members/{user}/close', [MemberController::class, 'close'])->name('members.close');
Route::post('/members/merge', [MemberController::class, 'merge'])->name('members.merge');
Route::post('/members/{user}/reset-password', [MemberController::class, 'resetPassword'])->name('members.reset-password');
Route::post('/members/{user}/reset-otp', [MemberController::class, 'resetOtp'])->name('members.reset-otp');
Route::post('/members/{user}/reset-pin', [MemberController::class, 'resetTransactionPin'])->name('members.reset-pin');
Route::post('/members/{user}/toggle-login-otp', [MemberController::class, 'toggleLoginOtp'])->name('members.toggle-login-otp');
Route::post('/members/{user}/rank-override', [MemberController::class, 'overrideRank'])->name('members.rank-override');
Route::post('/members/{user}/force-plan', [MemberController::class, 'forcePlan'])->name('members.force-plan');
Route::post('/members/{user}/bv-adjust', [MemberController::class, 'adjustBv'])->name('members.bv-adjust');
Route::post('/members/bulk-import', [MemberController::class, 'bulkImport'])->name('members.bulk-import');
Route::get('/members/imports', [MemberController::class, 'imports'])->name('members.imports');
Route::get('/members/imports/{batch}/errors', [MemberController::class, 'downloadImportErrors'])->name('members.imports.errors');
