feat: add flight details page and comment system for users and guests

This commit is contained in:
2026-08-18 12:55:17 +03:30
parent 7cdfcdbef2
commit f47a876a87
10 changed files with 770 additions and 30 deletions
+15 -8
View File
@@ -2,25 +2,32 @@
use App\Http\Controllers\Account\EditProfileController;
use App\Http\Controllers\Account\ProfileController;
use App\Http\Controllers\BookingController;
use App\Http\Controllers\FlightController;
use App\Http\Controllers\IndexController;
use App\Http\Controllers\TourController;
use Illuminate\Support\Facades\Route;
Route::get('/' , [IndexController::class , 'index'])->name('index');
Route::get('/', [IndexController::class, 'index'])->name('index');
Route::prefix('flights')->controller(FlightController::class)->name('flights.')->group(function (){
Route::get('/' , 'index')->name('index');
Route::get('{flight}','show')->name('show');
Route::prefix('flights')->controller(FlightController::class)->name('flights.')->group(function () {
Route::get('/', 'index')->name('index');
Route::prefix('{flight}')->group(function () {
Route::get('/', 'show')->name('show');
Route::post('/comment', 'commentStore')->name('comments.store');
Route::post('/booking', [BookingController::class, 'store'])->name('booking.store');
});
});
Route::prefix('tours')->controller(TourController::class)->name('tours.')->group(function (){
Route::get('/' , 'index')->name('index');
Route::get('{tour}','show')->name('show');
Route::prefix('tours')->controller(TourController::class)->name('tours.')->group(function () {
Route::get('/', 'index')->name('index');
Route::get('{tour}', 'show')->name('show');
});
Route::prefix('account')->name('accounts.')->middleware('auth')->group(function (){
Route::prefix('account')->name('accounts.')->middleware('auth')->group(function () {
Route::controller(ProfileController::class)->group(function () {
Route::get('/profile', 'index')->name('profile');
Route::get('/get-cities/{province_id}', 'getCities')->name('get-cities');