<?php

use App\Http\Controllers\AdmissionController;
use App\Http\Controllers\ContactController;
use App\Http\Controllers\DocumentController;
use App\Http\Controllers\EventController;
use App\Http\Controllers\GalleryController;
use App\Http\Controllers\HomeController;
use App\Http\Controllers\LevelController;
use App\Http\Controllers\NewsController;
use App\Http\Controllers\TeacherController;
use App\Http\Controllers\VideoController;
use Illuminate\Support\Facades\Route;

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

Route::get('/niveles', [LevelController::class, 'index'])->name('levels.index');
Route::get('/niveles/{slug}', [LevelController::class, 'show'])->name('levels.show');

Route::get('/noticias', [NewsController::class, 'index'])->name('news.index');
Route::get('/noticias/{slug}', [NewsController::class, 'show'])->name('news.show');

Route::get('/eventos', [EventController::class, 'index'])->name('events.index');
Route::get('/eventos/{event}', [EventController::class, 'show'])->name('events.show');

Route::get('/docentes', [TeacherController::class, 'index'])->name('teachers.index');

Route::get('/galeria', [GalleryController::class, 'index'])->name('gallery.index');
Route::get('/videos', [VideoController::class, 'index'])->name('videos.index');
Route::get('/documentos', [DocumentController::class, 'index'])->name('documents.index');

Route::get('/admisiones', [AdmissionController::class, 'index'])->name('admissions.index');
Route::post('/admisiones', [AdmissionController::class, 'store'])->name('admissions.store');

Route::get('/contacto', [ContactController::class, 'index'])->name('contact.index');
Route::post('/contacto', [ContactController::class, 'store'])->name('contact.store');
