web.php 2.03 KB
<?php

use Illuminate\Support\Facades\Route;
use App\Http\Controllers\MainController;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

//Главная страница
Route::get('/',[MainController::class, 'index'])->name('index');

//Страница Избранные
Route::get('favorite',[MainController::class, 'favorite'])->name('favorite');

//Страница контакты
Route::get('contact',[MainController::class, 'contact'])->name('contact');

//Страница каталог
Route::get('catalog',[MainController::class, 'catalog'])->name('catalog');

//Страница новости
Route::get('news',[MainController::class, 'news'])->name('news');

//Страница о компании
Route::get('about',[MainController::class, 'about'])->name('about');

//Страница объекты на карте
Route::get('maps',[MainController::class, 'mapsobj'])->name('maps');

// Политика конфедициальности
Route::get('conf', function () {
    return view('conf');
})->name('conf');

//Детальная страница предложения недвижимости
Route::get('offer/{house:id}', [MainController::class, 'offer'])->name('offer');

//Детальная страница новостей
Route::get('detail-new/{news:id}', [MainController::class, 'DetailNew'])->name('new');

//Страница ЖилойКомплекс
Route::get('complex/{area:id}', [MainController::class, 'complex'])->name('complex');

// ajax-фильтры каталога
Route::get('catalog_ajax_filter', [MainController::class, 'catalog_ajax_filter'])->name('catalog_ajax_filter');

//Категория
Route::get('category/{cat}', [MainController::class, 'Category'])->name('category');