{{-- Tambahkan blok ini ke dalam routes/web.php, di dalam middleware 'auth' yang sudah ada. --}} // ── Cek ID Game & Invoice ────────────────────────────────────────── Route::middleware(['auth'])->prefix('topup')->name('invoices.')->group(function () { Route::get('/', [App\Http\Controllers\InvoiceController::class, 'index']) ->name('index'); Route::get('/game/{gameCode}', [App\Http\Controllers\InvoiceController::class, 'buyGame']) ->name('buy'); Route::post('/check-id', [App\Http\Controllers\InvoiceController::class, 'checkId']) ->name('check-id'); Route::post('/confirm', [App\Http\Controllers\InvoiceController::class, 'confirm']) ->name('confirm'); Route::post('/store', [App\Http\Controllers\InvoiceController::class, 'store']) ->name('store'); Route::get('/invoice/{invoiceNumber}', [App\Http\Controllers\InvoiceController::class, 'show']) ->name('show'); Route::get('/riwayat', [App\Http\Controllers\InvoiceController::class, 'history']) ->name('history'); });