<?php

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

Route::get('/', [FrontController::class, 'home'])->name('home');
Route::get('/about', [FrontController::class, 'about'])->name('about');
Route::get('/services', [FrontController::class, 'services'])->name('services');
Route::get('/projects', [FrontController::class, 'projects'])->name('projects');
Route::get('/projects/{project:slug}', [FrontController::class, 'projectShow'])->name('projects.show');
Route::get('/clients', [FrontController::class, 'clients'])->name('clients');
Route::get('/certifications', [FrontController::class, 'certifications'])->name('certifications');
Route::get('/downloads', [FrontController::class, 'downloads'])->name('downloads');
Route::get('/contact', [FrontController::class, 'contact'])->name('contact');
Route::post('/contact', [FrontController::class, 'contactSubmit'])->name('contact.submit');
Route::get('/privacy', [FrontController::class, 'privacy'])->name('privacy');

Route::get('/{slug}', [FrontController::class, 'page'])->where('slug', '(?!admin$)[a-z0-9-]+')->name('page');
