<?php

use Illuminate\Support\Facades\Route;
use Inertia\Inertia;

use App\Http\Controllers\HomeController;
use App\Http\Controllers\ImageGenerationController;
use App\Http\Controllers\DashboardController;



Route::get('/', [HomeController::class, 'index'])
    ->name('home');

// Route::get('dashboard', function () {
//     return Inertia::render('Dashboard');
// })->middleware(['auth', 'verified'])->name('dashboard');

Route::get('/pricing', function () {
    return Inertia::render('Pricing');
})->name('pricing');
Route::post('/generate', [
    ImageGenerationController::class,
    'generate'
])->name('generate.image');
Route::middleware(['auth'])->group(function () {

    Route::get('/dashboard', [
        DashboardController::class,
        'index'
    ])->name('dashboard');

    Route::get('/generate', function () {
        return Inertia::render('Generate');
    })->name('generate');

    Route::get('/history', function () {
        return Inertia::render('History');
    })->name('history');

    Route::get('/favorites', function () {
        return Inertia::render('Favorites');
    })->name('favorites');

    Route::get('/billing', function () {
        return Inertia::render('Billing');
    })->name('billing');

    Route::get('/api-keys', function () {
        return Inertia::render('ApiKeys');
    })->name('api-keys');

    Route::get('/settings', function () {
        return Inertia::render('Settings');
    })->name('settings');
});
require __DIR__ . '/settings.php';
require __DIR__ . '/auth.php';
