<?php

use App\Http\Controllers\Admin\AdminDashboardController;
use Illuminate\Support\Facades\Route;

/*
| Mounted at central-domain /admin (see bootstrap/app.php).
*/
Route::middleware(['auth', 'role:super_admin'])->name('admin.')->group(function () {
    Route::get('/', [AdminDashboardController::class, 'index'])->name('dashboard');

    Route::get('/payments', [\App\Http\Controllers\Admin\AdminPaymentController::class, 'index'])->name('payments.index');
    Route::get('/payments/{payment}', [\App\Http\Controllers\Admin\AdminPaymentController::class, 'show'])->name('payments.show');
    Route::post('/payments/{payment}/review', [\App\Http\Controllers\Admin\AdminPaymentController::class, 'review'])->name('payments.review');
    Route::get('/payments/{payment}/proof', [\App\Http\Controllers\Admin\AdminPaymentController::class, 'proof'])->name('payments.proof');

    Route::get('/activity', [\App\Http\Controllers\Admin\AdminActivityController::class, 'index'])->name('activity.index');
    Route::get('/plans', [\App\Http\Controllers\Admin\AdminPlanController::class, 'index'])->name('plans.index');
    Route::put('/plans/{plan}', [\App\Http\Controllers\Admin\AdminPlanController::class, 'update'])->name('plans.update');
});
