<?php
use Illuminate\Support\Facades\Route;

Route::get('/', function () {
    return view('web.home');
})->name('web.home');

Route::view('/', 'web.home')->name('web.home');

Route::prefix('cs')->name('web.cs.')->group(function () {
    Route::view('/notice', 'web.cs.notice.index')->name('notice.index');
    Route::view('/faq',    'web.cs.faq.index')->name('faq.index');
    Route::view('/kakao',  'web.cs.kakao.index')->name('kakao.index');
    Route::view('/qna',    'web.cs.qna.index')->name('qna.index');
    Route::view('/guide',  'web.cs.guide.index')->name('guide.index');
});

Route::prefix('mypage')->name('web.mypage.')->group(function () {
    Route::view('/info',     'web.mypage.info.index')->name('info.index');
    Route::view('/usage',    'web.mypage.usage.index')->name('usage.index');
    Route::view('/exchange', 'web.mypage.exchange.index')->name('exchange.index');
    Route::view('/qna',      'web.mypage.qna.index')->name('qna.index');
});

Route::prefix('policy')->name('web.policy.')->group(function () {
    Route::view('/',        'web.policy.index')->name('index');
    Route::view('/privacy', 'web.policy.privacy.index')->name('privacy.index');
    Route::view('/terms',   'web.policy.terms.index')->name('terms.index');
    Route::view('/email',   'web.policy.email.index')->name('email.index');
});

Route::fallback(fn () => abort(404));
