<?php

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

/*
|--------------------------------------------------------------------------
| Landing Page Routes
|--------------------------------------------------------------------------
|
| These routes handle the public-facing landing page for the
| Angaza Mediation Centre learning portal.
|
*/

// Landing page (homepage)
Route::get('/', [LandingPageController::class, 'index'])->name('landing.home');

// Alternative route for /home
Route::get('/home', [LandingPageController::class, 'index'])->name('landing.home.alt');

// API routes for dynamic content (AJAX)
Route::get('/api/organization', [LandingPageController::class, 'getOrganization'])->name('api.organization');
Route::get('/api/sliders', [LandingPageController::class, 'getSliders'])->name('api.sliders');
