name('index'); // ------------------------------ tours (مثل products) ------------------------------ Route::prefix('tours')->name('tours.')->controller(TourController::class) ->group(function () { Route::get('/', 'index')->name('index'); Route::get('remove-filters', 'removeFilters')->name('remove-filters'); Route::get('{tour}', 'show')->name('show'); }); // json-suggestion-search (جستجوی پیشنهادی تورها) Route::get('tours/search/suggestion', [TourController::class, 'searchSuggestion']) ->name('tours.searchSuggestion'); // ------------------------------ flights ------------------------------ //Route::prefix('flights')->name('flights.')->controller(FlightController::class) // ->group(function () { // Route::get('/', 'index')->name('index'); // Route::get('search', 'search')->name('search'); // Route::get('{flight}', 'show')->name('show'); // }); // ------------------------------ نظرات (مهمان یا عضو) ------------------------------ //Route::post('tours/{tour}/comments', [CommentController::class, 'store']) // ->middleware('auth')->name('comments.store'); // ------------------------------ علاقه‌مندی‌ها ------------------------------ //Route::prefix('favorites')->name('favorites.') // ->middleware('auth')->controller(SiteFavoriteController::class) // ->group(function () { // Route::get('/', 'index')->name('index'); // Route::post('toggle', 'toggle')->name('toggle'); // افزودن/حذف با ajax // Route::get('clear', 'clear')->name('clear'); // }); // ------------------------------ رزرو و پرداخت ------------------------------ //Route::prefix('booking')->name('booking.') // ->middleware('auth')->controller(SiteBookingController::class) // ->group(function () { // Route::get('/', 'index')->name('index'); // فرم رزرو تور // Route::post('tours/{tour}', 'store')->name('store'); // ثبت رزرو // }); // //Route::get('payment/{booking}/pay', [PaymentController::class, 'pay']) // ->middleware('auth')->name('payment.pay'); // ------------------------------ پنل شخصی کاربر ------------------------------ //Route::prefix('account')->name('account.')->middleware('auth')->group(function () { // // Route::get('/', [HomeController::class, 'index'])->name('index'); // داشبورد // Route::get('bookings', [BookingController::class, 'index'])->name('bookings'); // رزروها // Route::get('favorites', [FavoriteController::class, 'index'])->name('favorites'); // Route::get('comments', [CommentController::class, 'index'])->name('comments'); // // Route::prefix('edit-profile')->name('edit-profile.') // ->controller(EditProfileController::class)->group(function () { // Route::get('/', 'index')->name('index'); // Route::post('/', 'post')->name('post'); // }); //}); // ------------------------------ صفحات ثابت ------------------------------ //Route::get('/about', [PageController::class, 'about'])->name('about'); //Route::get('/contact', [PageController::class, 'contact'])->name('contact'); //Route::get('/faq', [PageController::class, 'faq'])->name('faq');