<?php

use Illuminate\Support\Facades\Route;
use App\Http\Controllers\ContactController;

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

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

Route::get('/institute', function () {
    return view('college');
})->name('institute');

Route::get('/Institute', function () {
    return view('college');
})->name('Institute');

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

Route::get('/RKDF-University', function () {
    return view('RKDFUniversity');
})->name('RKDF-University');

Route::get('/RKCAMS-Course', function () {
    return view('course');
})->name('RKCAMS-Course');

Route::get('/CME', function () {
    return view('cme');
})->name('CME');

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

Route::get('/other-details', function () {
    return view('other_details');
})->name('other-details');

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

Route::get('/Contact-Us', function () {return view('contact-us') ;})->name('Contact-Us');

Route::get('/department-Samhita-Siddhanta-Sanskrit', function () {return view('Samhita-Siddhanta-Sanskrit') ;})->name('Samhita-Siddhanta-Sanskrit');
Route::get('/department-Rachana-Sharira', function () {return view('Rachana-Sharira') ;})->name('Rachana-Sharira');
Route::get('/department-Kriya-Sharira', function () {return view('Kriya-Sharira') ;})->name('Kriya-Sharira');
Route::get('/department-Dravyaguna', function () {return view('Dravyaguna') ;})->name('Dravyaguna');
Route::get('/department-Rasashastra-Bhaishajyakalpana', function () {return view('Rasashastra-Bhaishajyakalpana') ;})->name('Rasashastra-Bhaishajyakalpana');
Route::get('/department-Roga-Nidan-Vikriti-Vigyan', function () {return view('Roga-Nidan-Vikriti-Vigyan') ;})->name('Roga-Nidan-Vikriti-Vigyan');
Route::get('/department-Agada-Tantra', function () {return view('Agada-Tantra') ;})->name('Agada-Tantra');
Route::get('/department-Swasthavritta-Yoga', function () {return view('Swasthavritta-Yoga') ;})->name('Swasthavritta-Yoga');
Route::get('/department-Kayachikitsa', function () {return view('Kayachikitsa') ;})->name('Kayachikitsa');
Route::get('/department-Panchakarma', function () {return view('Panchakarma') ;})->name('Panchakarma');
Route::get('/department-Shalya-Tantra', function () {return view('Shalya-Tantra') ;})->name('Shalya-Tantra');
Route::get('/department-Shalakya-Tantra', function () {return view('Shalakya-Tantra') ;})->name('Shalakya-Tantra');
Route::get('/department-Prasuti-Tantra-Stree-Roga', function () {return view('Prasuti-Tantra-Stree-Roga') ;})->name('Prasuti-Tantra-Stree-Roga');
Route::get('/department-Kaumarabhritya', function () {return view('Kaumarabhritya') ;})->name('Kaumarabhritya');

Route::post('/contact-submit', [ContactController::class, 'submit'])
    ->name('contact.submit')
    ->middleware('throttle:10,1');
// Route::post('/contact-submit', [ContactController::class, 'submit'])->middleware('throttle:10,1');

Route::post('/enquiry', [EnquiryController::class, 'store'])
    ->name('enquiry.store')
    ->middleware('throttle:10,1');

Route::get('/Dashboard', [DashboardController::class,'index'])->middleware(['throttle:60,1']);

Route::prefix('admin')
    ->name('admin.')
    ->middleware(['auth'])
    ->group(function () {
        Route::resource('stats', \App\Http\Controllers\Admin\StatController::class);
    });
