<?php

use App\Http\Controllers\DashboardController;
use App\Http\Controllers\GuestWebController;
use Illuminate\Support\Facades\Route;

// Root URL shows login page
Route::get('/', function () {
    return view('auth.login');
});

// CRM Web Routes
Route::get('/dashboard', [DashboardController::class, 'index'])->name('dashboard');
Route::get('/guests/search', [GuestWebController::class, 'search'])->name('guests.search');
Route::get('/guests/new', [GuestWebController::class, 'new'])->name('guests.new');
Route::get('/guests/{id}', [GuestWebController::class, 'profile'])->name('guests.profile');
Route::get('/admin', function () {
    return view('admin.dashboard');
})->name('admin.dashboard');
