<?php

use App\Http\Controllers\Public\BookingCancellationController;
use App\Http\Controllers\Public\CompanyPageController;
use Illuminate\Support\Facades\Route;

Route::get('/reserva/cancelar', [BookingCancellationController::class, 'lookup'])->name('public.bookings.cancel.lookup');
Route::post('/reserva/cancelar', [BookingCancellationController::class, 'find'])->name('public.bookings.cancel.lookup.submit');
Route::get('/reserva/{booking}/cancelar', [BookingCancellationController::class, 'show'])->name('public.bookings.cancel.show');
Route::post('/reserva/{booking}/cancelar', [BookingCancellationController::class, 'cancel'])->name('public.bookings.cancel');

Route::prefix('empresa')->name('public.')->group(function () {
    Route::get('/{slug}', [CompanyPageController::class, 'show'])->name('company.show');
});
