<?php

use App\Http\Controllers\BookingController;
use App\Http\Controllers\HomeController;
use App\Http\Controllers\OfferController;
use App\Http\Controllers\RideController;
use Illuminate\Support\Facades\Route;

Route::get('/', HomeController::class)->name('home');
Route::post('/rides', [RideController::class, 'store'])->name('rides.store');
Route::get('/rides/{ride}/confirmed', [RideController::class, 'confirmed'])->name('rides.confirmed');
Route::get('/offers/{offer:slug}', [OfferController::class, 'show'])->name('offers.show');
Route::post('/offers/{offer}/bookings', [BookingController::class, 'store'])->name('bookings.store');
Route::get('/bookings/{booking}/success', [BookingController::class, 'success'])->name('bookings.success');
Route::view('/healthz', 'healthz')->name('healthz');
