Commit f615f47db02a9857e70d5807f2c80d2995b21b9e

Authored by Андрей Ларионов
1 parent 0a20e5050b
Exists in master

Страница каталога фильтры и сортировки, страница категория

Showing 12 changed files with 1371 additions and 972 deletions Side-by-side Diff

app/Http/Controllers/MainController.php
... ... @@ -3,12 +3,15 @@
3 3 namespace App\Http\Controllers;
4 4  
5 5 use App\Models\Area;
  6 +use App\Models\format_area;
6 7 use App\Models\House;
7 8 use App\Models\News;
8 9 use App\Models\Partners;
  10 +use App\Models\type_area;
9 11 use Illuminate\Http\Request;
10 12 use App\Classes\RusDate;
11 13 use PhpParser\Node\Stmt\Switch_;
  14 +use Illuminate\Support\Facades\Response;
12 15  
13 16 class MainController extends Controller
14 17 {
... ... @@ -23,6 +26,35 @@ class MainController extends Controller
23 26 }
24 27  
25 28 /*
  29 + * Фильтр ajax в каталоге
  30 + */
  31 + public function catalog_ajax_filter(Request $request) {
  32 + $Res = Array();
  33 + if (!empty($request->area)) {
  34 + $area_table = Area::where('id', '=', $request->area)->get();
  35 + $Res[] = $area_table[0]->name_area;
  36 + } else {
  37 + $Res[] = "Все объекты";
  38 + }
  39 +
  40 + if (!empty($request->type_area)) {
  41 + $type_area_table = type_area::where('id', '=', $request->type_area)->get();
  42 + $Res[] = $type_area_table[0]->name_type;
  43 + } else {
  44 + $Res[] = "Тип недвижимости";
  45 + }
  46 +
  47 + if (!empty($request->format_area)) {
  48 + $format_area_table = format_area::where('id', '=', $request->format_area)->get();
  49 + $Res[] = $format_area_table[0]->name_format;
  50 + } else {
  51 + $Res[] = "Формат недвижимости";
  52 + }
  53 +
  54 + return json_encode($Res);
  55 + }
  56 +
  57 + /*
26 58 * Страница ЖК
27 59 */
28 60 public function Complex(Area $area, Request $request) {
... ... @@ -33,8 +65,8 @@ class MainController extends Controller
33 65  
34 66 if ($request->view == 'arenda') {
35 67 switch ($request->sort_price) {
36   - case 1: $house_arenda = $house_arenda->orderBy('rent_in_month');break;
37   - case 2: $house_arenda = $house_arenda->orderByDesc('rent_in_month');break;
  68 + case 1: $house_arenda = $house_arenda->orderBy('price');break;
  69 + case 2: $house_arenda = $house_arenda->orderByDesc('price');break;
38 70 }
39 71 switch ($request->sort_new) {
40 72 case 1: $house_arenda = $house_arenda->orderByDesc('created_at');break;
... ... @@ -45,14 +77,14 @@ class MainController extends Controller
45 77 case 2: $house_arenda = $house_arenda->orderBy('area')->get();break;
46 78 }
47 79 } else {
48   - $house_arenda = $house_arenda->orderBy('rent_in_year')->
  80 + $house_arenda = $house_arenda->orderBy('price')->
49 81 orderByDesc('created_at')->
50 82 orderByDesc('area')->get();
51 83 }
52 84  
53 85 ////////раздел продажа
54 86 $house_prodaja = House::with('areas')->
55   - //where('area_id', '=', $area->id)->
  87 + where('area_id', '=', $area->id)->
56 88 where('format_house', '=', 'Продажа');
57 89  
58 90 if ($request->view == 'prodaja') {
... ... @@ -107,8 +139,8 @@ class MainController extends Controller
107 139  
108 140 if ($request->view == 'arendovannie') {
109 141 switch ($request->sort_price) {
110   - case 1: $house_arendovannie = $house_arendovannie->orderBy('rent_in_month');break;
111   - case 2: $house_arendovannie = $house_arendovannie->orderByDesc('rent_in_month');break;
  142 + case 1: $house_arendovannie = $house_arendovannie->orderBy('price');break;
  143 + case 2: $house_arendovannie = $house_arendovannie->orderByDesc('price');break;
112 144 }
113 145 switch ($request->sort_new) {
114 146 case 1: $house_arendovannie = $house_arendovannie->orderByDesc('created_at');break;
... ... @@ -119,7 +151,7 @@ class MainController extends Controller
119 151 case 2: $house_arendovannie = $house_arendovannie->orderBy('area')->get();break;
120 152 }
121 153 } else {
122   - $house_arendovannie = $house_arendovannie->orderBy('rent_in_year')->
  154 + $house_arendovannie = $house_arendovannie->orderBy('price')->
123 155 orderByDesc('created_at')->
124 156 orderByDesc('area')->get();
125 157 }
... ... @@ -156,10 +188,291 @@ class MainController extends Controller
156 188 }
157 189  
158 190 /*
  191 + * Категории каталога Аренда/Продажа/Бизнес
  192 + */
  193 + public function Category($cat) {
  194 + switch ($cat) {
  195 + case 'arenda':
  196 + $title = "Аренда торговых помещениий";
  197 + $format_house = 'Аренда';
  198 + break;
  199 + case 'sale':
  200 + $title = "Продажа торговых помещений";
  201 + $format_house = 'Продажа';
  202 + break;
  203 + case 'bussiness':
  204 + $title = "Арендый бизнес";
  205 + $format_house = 'Бизнес';
  206 + break;
  207 + default:
  208 + $title = "Аренда торговых помещениий";
  209 + $format_house = 'Аренда';
  210 + break;
  211 + }
  212 +
  213 + $houses = House::with('areas')->
  214 + where('format_house', '=', $format_house)->get();
  215 +
  216 + return view('category_catalog', compact('title', 'houses'));
  217 + }
  218 +
  219 +
  220 + /*
159 221 * Каталог
160 222 */
161   - public function Catalog() {
162   - return view('catalog');
  223 + public function Catalog(Request $request) {
  224 +
  225 + //////////раздел аренда/////////////////////////////////////////////////////////////////
  226 + $house_arenda = House::with('areas')->
  227 + where('format_house', '=', 'Аренда');
  228 + // условия поиска по объектам комплексов
  229 + if (!empty($request->area)) {
  230 + $house_arenda = $house_arenda->where('area_id', '=', $request->area);
  231 + }
  232 + // условия поиска по типу недвижимости
  233 + if (!empty($request->type_area)) {
  234 + $house_arenda = $house_arenda->where('type_area_id', '=', $request->type_area);
  235 + }
  236 + // условия поиска по формату недвижимости
  237 + if (!empty($request->format_area)) {
  238 + $house_arenda = $house_arenda->where('format_area_id', '=', $request->format_area);
  239 + }
  240 + // условия поиска по площади - минимальная площадь
  241 + if (!empty($request->area_m2_min)) {
  242 + $house_arenda = $house_arenda->where('area', '>', $request->area_m2_min);
  243 + }
  244 + // условия поиска по площади - максимальная площадь
  245 + if (!empty($request->area_m2_max)) {
  246 + $house_arenda = $house_arenda->where('area', '<', $request->area_m2_max);
  247 + }
  248 + // условия поиска по цене - минимальная цена
  249 + if (!empty($request->price_min)) {
  250 + $house_arenda = $house_arenda->where('price', '>', $request->price_min);
  251 + }
  252 + // условия поиска по цене - максимальная цена
  253 + if (!empty($request->price_max)) {
  254 + $house_arenda = $house_arenda->where('price', '<', $request->price_max);
  255 + }
  256 + // условия поиска по адресу
  257 + if (!empty($request->address)) {
  258 + $house_arenda = $house_arenda->where('address', 'LIKE', "%".$request->address."%");
  259 + }
  260 +
  261 + if ($request->view == 'arenda') {
  262 + switch ($request->sort_price) {
  263 + case 1: $house_arenda = $house_arenda->orderBy('price');break;
  264 + case 2: $house_arenda = $house_arenda->orderByDesc('price');break;
  265 + }
  266 + switch ($request->sort_new) {
  267 + case 1: $house_arenda = $house_arenda->orderByDesc('created_at');break;
  268 + case 2: $house_arenda = $house_arenda->orderBy('created_at');break;
  269 + }
  270 + switch ($request->sort_area) {
  271 + case 1: $house_arenda = $house_arenda->orderByDesc('area')->get();break;
  272 + case 2: $house_arenda = $house_arenda->orderBy('area')->get();break;
  273 + }
  274 + } else {
  275 + $house_arenda = $house_arenda->orderBy('price')->
  276 + orderByDesc('created_at')->
  277 + orderByDesc('area')->get();
  278 + }
  279 +
  280 + ////////раздел продажа//////////////////////////////////////////////////////////////////
  281 + $house_prodaja = House::with('areas')->
  282 + where('format_house', '=', 'Продажа');
  283 +
  284 + // условия поиска по объектам комплексов
  285 + if (!empty($request->area)) {
  286 + $house_prodaja = $house_prodaja->where('area_id', '=', $request->area);
  287 + }
  288 + // условия поиска по типу недвижимости
  289 + if (!empty($request->type_area)) {
  290 + $house_prodaja = $house_prodaja->where('type_area_id', '=', $request->type_area);
  291 + }
  292 + // условия поиска по формату недвижимости
  293 + if (!empty($request->format_area)) {
  294 + $house_prodaja = $house_prodaja->where('format_area_id', '=', $request->format_area);
  295 + }
  296 + // условия поиска по площади - минимальная площадь
  297 + if (!empty($request->area_m2_min)) {
  298 + $house_prodaja = $house_prodaja->where('area', '>', $request->area_m2_min);
  299 + }
  300 + // условия поиска по площади - максимальная площадь
  301 + if (!empty($request->area_m2_max)) {
  302 + $house_prodaja = $house_prodaja->where('area', '<', $request->area_m2_max);
  303 + }
  304 + // условия поиска по цене - минимальная цена
  305 + if (!empty($request->price_min)) {
  306 + $house_prodaja = $house_prodaja->where('price', '>', $request->price_min);
  307 + }
  308 + // условия поиска по цене - максимальная цена
  309 + if (!empty($request->price_max)) {
  310 + $house_prodaja = $house_prodaja->where('price', '<', $request->price_max);
  311 + }
  312 + // условия поиска по адресу
  313 + if (!empty($request->address)) {
  314 + $house_prodaja = $house_prodaja->where('address', 'LIKE', "%".$request->address."%");
  315 + }
  316 +
  317 + if ($request->view == 'prodaja') {
  318 + switch ($request->sort_price) {
  319 + case 1: $house_prodaja = $house_prodaja->orderBy('price');break;
  320 + case 2: $house_prodaja = $house_prodaja->orderByDesc('price');break;
  321 + }
  322 + switch ($request->sort_new) {
  323 + case 1: $house_prodaja = $house_prodaja->orderByDesc('created_at');break;
  324 + case 2: $house_prodaja = $house_prodaja->orderBy('created_at');break;
  325 + }
  326 + switch ($request->sort_area) {
  327 + case 1: $house_prodaja = $house_prodaja->orderByDesc('area')->get();break;
  328 + case 2: $house_prodaja = $house_prodaja->orderBy('area')->get();break;
  329 + }
  330 + } else {
  331 + $house_prodaja = $house_prodaja->orderBy('price')->
  332 + orderByDesc('created_at')->
  333 + orderByDesc('area')->get();
  334 + }
  335 +
  336 + //////////////// Раздел бизнеса/////////////////////////////////////////////////////////
  337 + $house_bissnes = House::with('areas')->
  338 + where('format_house', '=', 'Бизнес');
  339 + //orderByDesc('created_at')->get();
  340 +
  341 + // условия поиска по объектам комплексов
  342 + if (!empty($request->area)) {
  343 + $house_bissnes = $house_bissnes->where('area_id', '=', $request->area);
  344 + }
  345 + // условия поиска по типу недвижимости
  346 + if (!empty($request->type_area)) {
  347 + $house_bissnes = $house_bissnes->where('type_area_id', '=', $request->type_area);
  348 + }
  349 + // условия поиска по формату недвижимости
  350 + if (!empty($request->format_area)) {
  351 + $house_bissnes = $house_bissnes->where('format_area_id', '=', $request->format_area);
  352 + }
  353 + // условия поиска по площади - минимальная площадь
  354 + if (!empty($request->area_m2_min)) {
  355 + $house_bissnes = $house_bissnes->where('area', '>', $request->area_m2_min);
  356 + }
  357 + // условия поиска по площади - максимальная площадь
  358 + if (!empty($request->area_m2_max)) {
  359 + $house_bissnes = $house_bissnes->where('area', '<', $request->area_m2_max);
  360 + }
  361 + // условия поиска по цене - минимальная цена
  362 + if (!empty($request->price_min)) {
  363 + $house_bissnes = $house_bissnes->where('price', '>', $request->price_min);
  364 + }
  365 + // условия поиска по цене - максимальная цена
  366 + if (!empty($request->price_max)) {
  367 + $house_bissnes = $house_bissnes->where('price', '<', $request->price_max);
  368 + }
  369 + // условия поиска по адресу
  370 + if (!empty($request->address)) {
  371 + $house_bissnes = $house_bissnes->where('address', 'LIKE', "%".$request->address."%");
  372 + }
  373 +
  374 + if ($request->view == 'bissnes') {
  375 + switch ($request->sort_price) {
  376 + case 1: $house_bissnes = $house_bissnes->orderBy('price');break;
  377 + case 2: $house_bissnes = $house_bissnes->orderByDesc('price');break;
  378 + }
  379 + switch ($request->sort_new) {
  380 + case 1: $house_bissnes = $house_bissnes->orderByDesc('created_at');break;
  381 + case 2: $house_bissnes = $house_bissnes->orderBy('created_at');break;
  382 + }
  383 + switch ($request->sort_area) {
  384 + case 1: $house_bissnes = $house_bissnes->orderByDesc('area')->get();break;
  385 + case 2: $house_bissnes = $house_bissnes->orderBy('area')->get();break;
  386 + }
  387 + } else {
  388 + $house_bissnes = $house_bissnes->orderBy('price')->
  389 + orderByDesc('created_at')->
  390 + orderByDesc('area')->get();
  391 + }
  392 +
  393 + //////////раздел арендованные//////////////////////////////////////////////////////////
  394 + $house_arendovannie = House::with('areas')->
  395 + where('format_house', '=', 'Арендованные');
  396 + //orderByDesc('created_at')->get();
  397 +
  398 + // условия поиска по объектам комплексов
  399 + if (!empty($request->area)) {
  400 + $house_arendovannie = $house_arendovannie->where('area_id', '=', $request->area);
  401 + }
  402 + // условия поиска по типу недвижимости
  403 + if (!empty($request->type_area)) {
  404 + $house_arendovannie = $house_arendovannie->where('type_area_id', '=', $request->type_area);
  405 + }
  406 + // условия поиска по формату недвижимости
  407 + if (!empty($request->format_area)) {
  408 + $house_arendovannie = $house_arendovannie->where('format_area_id', '=', $request->format_area);
  409 + }
  410 + // условия поиска по площади - минимальная площадь
  411 + if (!empty($request->area_m2_min)) {
  412 + $house_arendovannie = $house_arendovannie->where('area', '>', $request->area_m2_min);
  413 + }
  414 + // условия поиска по площади - максимальная площадь
  415 + if (!empty($request->area_m2_max)) {
  416 + $house_arendovannie = $house_arendovannie->where('area', '<', $request->area_m2_max);
  417 + }
  418 + // условия поиска по цене - минимальная цена
  419 + if (!empty($request->price_min)) {
  420 + $house_arendovannie = $house_arendovannie->where('price', '>', $request->price_min);
  421 + }
  422 + // условия поиска по цене - максимальная цена
  423 + if (!empty($request->price_max)) {
  424 + $house_arendovannie = $house_arendovannie->where('price', '<', $request->price_max);
  425 + }
  426 + // условия поиска по адресу
  427 + if (!empty($request->address)) {
  428 + $house_arendovannie = $house_arendovannie->where('address', 'LIKE', "%".$request->address."%");
  429 + }
  430 +
  431 + if ($request->view == 'arendovannie') {
  432 + switch ($request->sort_price) {
  433 + case 1: $house_arendovannie = $house_arendovannie->orderBy('price');break;
  434 + case 2: $house_arendovannie = $house_arendovannie->orderByDesc('price');break;
  435 + }
  436 + switch ($request->sort_new) {
  437 + case 1: $house_arendovannie = $house_arendovannie->orderByDesc('created_at');break;
  438 + case 2: $house_arendovannie = $house_arendovannie->orderBy('created_at');break;
  439 + }
  440 + switch ($request->sort_area) {
  441 + case 1: $house_arendovannie = $house_arendovannie->orderByDesc('area')->get();break;
  442 + case 2: $house_arendovannie = $house_arendovannie->orderBy('area')->get();break;
  443 + }
  444 + } else {
  445 + $house_arendovannie = $house_arendovannie->orderBy('price')->
  446 + orderByDesc('created_at')->
  447 + orderByDesc('area')->get();
  448 + }
  449 +
  450 + if ($request->ajax()) {
  451 + switch($request->view) {
  452 + case 'arenda': return view('ajax.complex.arenda', compact('house_arenda')); break;
  453 + case 'prodaja': return view('ajax.complex.prodaja', compact('house_prodaja'));break;
  454 + case 'bissnes': return view('ajax.complex.bissnes', compact('house_bissnes')); break;
  455 + case 'arendovannie': return view('ajax.complex.arendovannie', compact('house_arendovannie')); break;
  456 + }
  457 + }
  458 + if (session('message') == 'Искать') {
  459 + session()->flash('message', 'Сброс');
  460 + } else {
  461 + session()->flash('message', 'Искать');
  462 + }
  463 +
  464 + if (empty($request)) {
  465 + session()->flash('message', 'Искать');
  466 + }
  467 +
  468 + return view('catalog', compact(
  469 + 'house_arenda',
  470 + 'house_prodaja',
  471 + 'house_bissnes',
  472 + 'house_arendovannie'
  473 + ));
  474 +
  475 +
163 476 }
164 477  
165 478 /*
app/Providers/ComposerServiceProvider.php
... ... @@ -19,7 +19,7 @@ class ComposerServiceProvider extends ServiceProvider
19 19 */
20 20 public function register()
21 21 {
22   - $views = ['part.filter.main','part.filter.catalog'];
  22 + $views = ['part.filter.main','part.filter.catalog', 'part.filter.category'];
23 23  
24 24 View::composer($views,
25 25 function($view) {
database/seeders/HousesTableSeeder.php
... ... @@ -31,11 +31,12 @@ class HousesTableSeeder extends Seeder
31 31 'format_house' => 'Аренда',
32 32 'floor' => 5,
33 33 'floor_bild' => 25,
34   - 'price' => 0,
  34 + 'price' => 2334,
35 35 'rent_in_year' => 280000,
36   - 'rent_in_month' => 2334,
  36 + 'rent_in_month' => 0,
37 37 'object_plan' => '',
38 38 'floor_plan' => '',
  39 + 'foto_main' => 'images/card/card-img-1.jpg',
39 40 ],
40 41 /*2*/[
41 42 'title' => 'Индустриальная недвижимость2',
... ... @@ -51,11 +52,12 @@ class HousesTableSeeder extends Seeder
51 52 'format_house' => 'Аренда',
52 53 'floor' => 3,
53 54 'floor_bild' => 20,
54   - 'price' => 0,
  55 + 'price' => 10000,
55 56 'rent_in_year' => 120000,
56   - 'rent_in_month' => 10000,
  57 + 'rent_in_month' => 0,
57 58 'object_plan' => '',
58 59 'floor_plan' => '',
  60 + 'foto_main' => 'images/card/card-img-2.jpg',
59 61 ],
60 62 /*3*/[
61 63 'title' => 'Индустриальная недвижимость3',
... ... @@ -76,6 +78,7 @@ class HousesTableSeeder extends Seeder
76 78 'rent_in_month' => 0,
77 79 'object_plan' => '',
78 80 'floor_plan' => '',
  81 + 'foto_main' => 'images/card/card-img-3.jpg',
79 82 ],
80 83  
81 84 /*4*/[
... ... @@ -97,6 +100,7 @@ class HousesTableSeeder extends Seeder
97 100 'rent_in_month' => 0,
98 101 'object_plan' => '',
99 102 'floor_plan' => '',
  103 + 'foto_main' => 'images/card/card-img-4.jpg',
100 104 ],
101 105  
102 106 /*5*/
... ... @@ -114,11 +118,12 @@ class HousesTableSeeder extends Seeder
114 118 'format_house' => 'Аренда',
115 119 'floor' => 7,
116 120 'floor_bild' => 15,
117   - 'price' => 0,
  121 + 'price' => 2222,
118 122 'rent_in_year' => 250000,
119   - 'rent_in_month' => 2222,
  123 + 'rent_in_month' => 0,
120 124 'object_plan' => '',
121 125 'floor_plan' => '',
  126 + 'foto_main' => '',
122 127 ],
123 128  
124 129 /*6*/
... ... @@ -136,11 +141,12 @@ class HousesTableSeeder extends Seeder
136 141 'format_house' => 'Аренда',
137 142 'floor' => 5,
138 143 'floor_bild' => 25,
139   - 'price' => 0,
  144 + 'price' => 800,
140 145 'rent_in_year' => 190000,
141   - 'rent_in_month' => 800,
  146 + 'rent_in_month' => 0,
142 147 'object_plan' => '',
143 148 'floor_plan' => '',
  149 + 'foto_main' => 'images/card/card-img-5.jpg',
144 150 ],
145 151  
146 152 /*7*/
... ... @@ -163,6 +169,7 @@ class HousesTableSeeder extends Seeder
163 169 'rent_in_month' => 0,
164 170 'object_plan' => '',
165 171 'floor_plan' => '',
  172 + 'foto_main' => 'images/card/card-img-6.jpg',
166 173 ],
167 174  
168 175 /*8*/
... ... @@ -180,11 +187,12 @@ class HousesTableSeeder extends Seeder
180 187 'format_house' => 'Аренда',
181 188 'floor' => 5,
182 189 'floor_bild' => 21,
183   - 'price' => 0,
  190 + 'price' => 4000,
184 191 'rent_in_year' => 450000,
185   - 'rent_in_month' => 4000,
  192 + 'rent_in_month' => 0,
186 193 'object_plan' => '',
187 194 'floor_plan' => '',
  195 + 'foto_main' => 'images/card/card-img-7.jpg',
188 196 ],
189 197 ];
190 198  
... ... @@ -207,6 +215,7 @@ class HousesTableSeeder extends Seeder
207 215 $albom->rent_in_month = $item['rent_in_month'];
208 216 $albom->object_plan = $item['object_plan'];
209 217 $albom->floor_plan = $item['floor_plan'];
  218 + $albom->foto_main = $item['foto_main'];
210 219 $albom->save();
211 220 }
212 221 }
resources/views/catalog.blade.php
Changes suppressed. Click to show
... ... @@ -4,43 +4,206 @@
4 4 @include('part.filter.catalog')
5 5 @endsection
6 6  
  7 +@section('custom_js')
  8 + <script>
  9 + $(window).load(function() {
  10 + var url_str = "<?=url()->full();?>";
  11 + var url = new URL(url_str);
  12 + var searchParams = new URLSearchParams(url.search.substring(1));
  13 +
  14 + var area = searchParams.get("area"),
  15 + type_area = searchParams.get("type_area"),
  16 + format_area= searchParams.get("format_area"),
  17 + address= searchParams.get("address");
  18 +
  19 + var area_name = $('#area_name');
  20 + var type_area_name = $('#type_area_name');
  21 + var format_area_name = $('#format_area_name');
  22 + var address_name = $('#address');
  23 +
  24 + if ((area !== "") || (type_area !== "") || (format_area !== "") || (address !== ""))
  25 + {
  26 + $.ajax({
  27 + type: "GET",
  28 + url: "{{ route('catalog_ajax_filter') }}",
  29 + data: "area=" + area + "&type_area=" + type_area + "&format_area=" + format_area + "&address=" + address + "",
  30 + success: function (data) {
  31 + console.log('Фильтры данных были переданы ');
  32 + data = JSON.parse(data);
  33 + console.log(data);
  34 +
  35 + if (area !== "") {
  36 + area_name.html(data[0]);
  37 + }
  38 + if (type_area !== "") {
  39 + type_area_name.html(data[1]);
  40 + }
  41 + if (format_area !== "") {
  42 + format_area_name.html(data[2]);
  43 + }
  44 + if (address !== "") {
  45 + address_name.html(data[3]);
  46 + }
  47 +
  48 + },
  49 + headers: {
  50 + 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
  51 + },
  52 + error: function (data) {
  53 + console.log('Error: ' + data);
  54 + }
  55 + });
  56 + }
  57 + });
  58 +
  59 + $(document).on('click', '.js_sort_group_item', function() {
  60 + var val = $(this).data('val');
  61 + var sort_price_val = '';
  62 + var sort_area_val = '';
  63 + var sort_new_val = '';
  64 +
  65 + $('.sort-price').each(function() {
  66 + var this_ = $(this);
  67 + var v = $(this).data('val');
  68 + if (this_.hasClass('active'))
  69 + sort_price_val = v;
  70 + });
  71 +
  72 + $('.sort-new').each(function() {
  73 + var v = $(this).data('val');
  74 + var this_ = $(this);
  75 + if (this_.hasClass('active'))
  76 + sort_new_val = v;
  77 + });
  78 +
  79 + $('.sort-area').each(function() {
  80 + var v = $(this).data('val');
  81 + var this_ = $(this);
  82 + if (this_.hasClass('active'))
  83 + sort_area_val = v;
  84 +
  85 + });
  86 +
  87 + console.log('-------------------');
  88 + $.ajax({
  89 + type: "GET",
  90 + url: "{{ route('catalog') }}",
  91 + data: "view=arenda&sort_price="+sort_price_val+"&sort_new="+sort_new_val+"&sort_area="+sort_area_val+""+
  92 + "&area=<?if (isset($_GET['area'])) echo $_GET['area'];?>&type_area=<?if (isset($_GET['type_area'])) echo $_GET['type_area'];?>&format_area=<? if (isset($_GET['format_area'])) echo $_GET['format_area'];?>"+
  93 + "&area_m2_min=<? if (isset($_GET['area_m2_min'])) echo $_GET['area_m2_min'];?>&area_m2_max=<? if (isset($_GET['area_m2_max'])) echo $_GET['area_m2_max'];?>"+
  94 + "&price_min=<? if (isset($_GET['price_min'])) echo $_GET['price_min'];?>&price_max=<? if (isset($_GET['price_max'])) echo $_GET['price_max'];?>&address=<? if (isset($_GET['address'])) echo $_GET['address'];?>",
  95 + success: function(data) {
  96 + console.log('Успешно обновлены данные АРЕНДА таблиц ');
  97 + $('#arenda_block').html(data);
  98 + },
  99 + headers: {
  100 + 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
  101 + },
  102 + error: function(data) {
  103 + console.log('Error: '+ data);
  104 + }
  105 + });
  106 +
  107 + $.ajax({
  108 + type: "GET",
  109 + url: "{{ route('catalog') }}",
  110 + data: "view=prodaja&sort_price="+sort_price_val+"&sort_new="+sort_new_val+"&sort_area="+sort_area_val+""+
  111 + "&area=<?if (isset($_GET['area'])) echo $_GET['area'];?>&type_area=<?if (isset($_GET['type_area'])) echo $_GET['type_area'];?>&format_area=<? if (isset($_GET['format_area'])) echo $_GET['format_area'];?>"+
  112 + "&area_m2_min=<? if (isset($_GET['area_m2_min'])) echo $_GET['area_m2_min'];?>&area_m2_max=<? if (isset($_GET['area_m2_max'])) echo $_GET['area_m2_max'];?>"+
  113 + "&price_min=<? if (isset($_GET['price_min'])) echo $_GET['price_min'];?>&price_max=<? if (isset($_GET['price_max'])) echo $_GET['price_max'];?>&address=<? if (isset($_GET['address'])) echo $_GET['address'];?>",
  114 + success: function(data) {
  115 + console.log('Успешно обновлены данные ПРОДАЖА таблиц ');
  116 + $('#prodaja_block').html(data);
  117 + },
  118 + headers: {
  119 + 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
  120 + },
  121 + error: function(data) {
  122 + console.log('Error: '+ data);
  123 + }
  124 + });
  125 +
  126 + $.ajax({
  127 + type: "GET",
  128 + url: "{{ route('catalog') }}",
  129 + data: "view=bissnes&sort_price="+sort_price_val+"&sort_new="+sort_new_val+"&sort_area="+sort_area_val+""+
  130 + "&area=<?if (isset($_GET['area'])) echo $_GET['area'];?>&type_area=<?if (isset($_GET['type_area'])) echo $_GET['type_area'];?>&format_area=<? if (isset($_GET['format_area'])) echo $_GET['format_area'];?>"+
  131 + "&area_m2_min=<? if (isset($_GET['area_m2_min'])) echo $_GET['area_m2_min'];?>&area_m2_max=<? if (isset($_GET['area_m2_max'])) echo $_GET['area_m2_max'];?>"+
  132 + "&price_min=<? if (isset($_GET['price_min'])) echo $_GET['price_min'];?>&price_max=<? if (isset($_GET['price_max'])) echo $_GET['price_max'];?>&address=<? if (isset($_GET['address'])) echo $_GET['address'];?>",
  133 + success: function(data) {
  134 + console.log('Успешно обновлены данные БИЗНЕС таблиц ');
  135 + $('#bissnes_block').html(data);
  136 + },
  137 + headers: {
  138 + 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
  139 + },
  140 + error: function(data) {
  141 + console.log('Error: '+ data);
  142 + }
  143 + });
  144 +
  145 + $.ajax({
  146 + type: "GET",
  147 + url: "{{ route('catalog') }}",
  148 + data: "view=arendovannie&sort_price="+sort_price_val+"&sort_new="+sort_new_val+"&sort_area="+sort_area_val+""+
  149 + "&area=<?if (isset($_GET['area'])) echo $_GET['area'];?>&type_area=<?if (isset($_GET['type_area'])) echo $_GET['type_area'];?>&format_area=<? if (isset($_GET['format_area'])) echo $_GET['format_area'];?>"+
  150 + "&area_m2_min=<? if (isset($_GET['area_m2_min'])) echo $_GET['area_m2_min'];?>&area_m2_max=<? if (isset($_GET['area_m2_max'])) echo $_GET['area_m2_max'];?>"+
  151 + "&price_min=<? if (isset($_GET['price_min'])) echo $_GET['price_min'];?>&price_max=<? if (isset($_GET['price_max'])) echo $_GET['price_max'];?>&address=<? if (isset($_GET['address'])) echo $_GET['address'];?>",
  152 + success: function(data) {
  153 + console.log('Успешно обновлены данные таблиц ');
  154 + $('#arendovannie_block').html(data);
  155 + //.append(data);
  156 + },
  157 + headers: {
  158 + 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
  159 + },
  160 + error: function(data) {
  161 + console.log('Error: '+ data);
  162 + }
  163 + });
  164 +
  165 + }
  166 + );
  167 + </script>
  168 +@endsection
  169 +
7 170 @section('content')
8 171 <section class="catalog">
9 172 <div class="container">
10 173 <div class="catalog__top top-catalog">
11 174 <div class="top-catalog__inner">
12 175 <h2 class="top-catalog__title title">Каталог коммерческой недвижимости</h2>
13   - <div class="top-catalog__result">Найдено объектов по Вашему запросу: <span>5294</span></div>
  176 + <div class="top-catalog__result">Найдено объектов по Вашему запросу: <span><?=$house_arenda->count()+$house_prodaja->count()+$house_bissnes->count()+$house_arendovannie->count(); ?></span></div>
14 177 </div>
15 178 <form class="top-catalog__sorts">
16 179 <div class="top-catalog__sort-group sort-group js_sort_group">
17 180 <input class="js_sort_group_input" type="hidden">
18 181 <div class="sort-group__current js_sort_group_current">Сначала дешевле</div>
19 182 <ul class="sort-group__list js_sort_group_list">
20   - <li class="sort-group__item js_sort_group_item active" data-val="1">Сначала дешевле</li>
21   - <li class="sort-group__item js_sort_group_item" data-val="2">Сначала дороже</li>
  183 + <li class="sort-price sort-group__item js_sort_group_item active" data-val="1">Сначала дешевле</li>
  184 + <li class="sort-price sort-group__item js_sort_group_item" data-val="2">Сначала дороже</li>
22 185 </ul>
23 186 </div>
24 187 <div class="top-catalog__sort-group sort-group js_sort_group">
25 188 <input class="js_sort_group_input" type="hidden">
26 189 <div class="sort-group__current js_sort_group_current">Сначала новые</div>
27 190 <ul class="sort-group__list js_sort_group_list">
28   - <li class="sort-group__item js_sort_group_item active" data-val="1">Сначала новые</li>
29   - <li class="sort-group__item js_sort_group_item" data-val="2">Сначала старые</li>
  191 + <li class="sort-new sort-group__item js_sort_group_item active" data-val="1">Сначала новые</li>
  192 + <li class="sort-new sort-group__item js_sort_group_item" data-val="2">Сначала старые</li>
30 193 </ul>
31 194 </div>
32 195 <div class="top-catalog__sort-group sort-group sort-group--wide js_sort_group">
33 196 <input class="js_sort_group_input" type="hidden">
34 197 <div class="sort-group__current js_sort_group_current">Сначала с большей площадью</div>
35 198 <ul class="sort-group__list js_sort_group_list">
36   - <li class="sort-group__item js_sort_group_item active" data-val="1">Сначала с большей площадью</li>
37   - <li class="sort-group__item js_sort_group_item" data-val="2">Сначала с меньшей площадью</li>
  199 + <li class="sort-area sort-group__item js_sort_group_item active" data-val="1">Сначала с большей площадью</li>
  200 + <li class="sort-area sort-group__item js_sort_group_item" data-val="2">Сначала с меньшей площадью</li>
38 201 </ul>
39 202 </div>
40 203 </form>
41 204 </div>
42 205 </div>
43   - <div class="catalog__sliders">
  206 + <div class="complex__sliders">
44 207 <section class="slider">
45 208 <div class="container">
46 209 <div class="slider__wrap">
... ... @@ -49,242 +212,26 @@
49 212 <div class="slider__control">
50 213 <div class="swiper-button-prev">
51 214 <svg width="10" height="17">
52   - <use xlink:href="images/sprite.svg#slider-arrow"></use>
  215 + <use xlink:href="{{ asset('images/sprite.svg#slider-arrow') }}"></use>
53 216 </svg>
54 217 </div>
55 218 <div class="swiper-button-next">
56 219 <svg width="10" height="17">
57   - <use xlink:href="images/sprite.svg#slider-arrow"></use>
  220 + <use xlink:href="{{ asset('images/sprite.svg#slider-arrow') }}"></use>
58 221 </svg>
59 222 </div>
60 223 </div>
61 224 </div>
62 225 <div class="slider__swiper swiper">
63   - <div class="swiper-wrapper">
64   - <div class="swiper-slide">
65   - <div class="card">
66   - <div class="card__top"><img src="images/card/card-img-1.jpg" alt="Фото недвижимости" loading="lazy">
67   - <h3 class="card__title">Салон красоты</h3>
68   - <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites">
69   - <svg width="18" height="18">
70   - <use xlink:href="images/sprite.svg#card-favorites-empty"></use>
71   - </svg>
72   - <svg width="18" height="18">
73   - <use xlink:href="images/sprite.svg#card-favorites"></use>
74   - </svg></span><a class="card__label card__label-messenger" href="#">
75   - <svg width="25" height="25">
76   - <use xlink:href="images/sprite.svg#card-messenger"></use>
77   - </svg></a></div>
78   - </div>
79   - <div class="card__cnt">
80   - <div class="card__info">
81   - <address class="card__line card__line-complex">ЖК “Новинки 1”</address>
82   - <address class="card__line">Фрунзенская (10 мин., пешком)<span style="background-color: #FFC955;"></span></address>
83   - <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address>
84   - <div class="card__line">Площадь: <b>556 м2</b></div>
85   - <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div>
86   - </div>
87   - <div class="card__price"><span>1 000 000 ₽</span>
88   - </div><a class="card__btn btn btn--bordered" href="#">Подробнее</a>
89   - </div>
90   - </div>
91   - </div>
92   - <div class="swiper-slide">
93   - <div class="card">
94   - <div class="card__top"><img src="images/card/card-img-2.jpg" alt="Фото недвижимости" loading="lazy">
95   - <h3 class="card__title">Барбер-шоп</h3>
96   - <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites">
97   - <svg width="18" height="18">
98   - <use xlink:href="images/sprite.svg#card-favorites-empty"></use>
99   - </svg>
100   - <svg width="18" height="18">
101   - <use xlink:href="images/sprite.svg#card-favorites"></use>
102   - </svg></span><a class="card__label card__label-messenger" href="#">
103   - <svg width="25" height="25">
104   - <use xlink:href="images/sprite.svg#card-messenger"></use>
105   - </svg></a></div>
106   - </div>
107   - <div class="card__cnt">
108   - <div class="card__info">
109   - <address class="card__line card__line-complex">ЖК “Новоарбатский”</address>
110   - <address class="card__line">Арбатская (8 мин., пешком)<span style="background-color: #0000A0;"></span></address>
111   - <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address>
112   - <div class="card__line">Площадь: <b>6 556 м2</b></div>
113   - <div class="card__line">Цена за м<sup>2</sup>: <b>5 225 256 ₽</b></div>
114   - </div>
115   - <div class="card__price"><span>15 520 900 ₽</span><span>в месяц</span>
116   - </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a>
117   - </div>
118   - </div>
119   - </div>
120   - <div class="swiper-slide">
121   - <div class="card">
122   - <div class="card__top"><img src="images/card/card-img-3.jpg" alt="Фото недвижимости" loading="lazy">
123   - <h3 class="card__title">Аптека</h3>
124   - <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites">
125   - <svg width="18" height="18">
126   - <use xlink:href="images/sprite.svg#card-favorites-empty"></use>
127   - </svg>
128   - <svg width="18" height="18">
129   - <use xlink:href="images/sprite.svg#card-favorites"></use>
130   - </svg></span><a class="card__label card__label-messenger" href="#">
131   - <svg width="25" height="25">
132   - <use xlink:href="images/sprite.svg#card-messenger"></use>
133   - </svg></a></div>
134   - </div>
135   - <div class="card__cnt">
136   - <div class="card__info">
137   - <address class="card__line card__line-complex">ЖК “Садовые кварталы”</address>
138   - <address class="card__line">Коломенская (2 мин., пешком)<span style="background-color: #029B55;"></span></address>
139   - <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address>
140   - <div class="card__line">Площадь: <b>8 626 м2</b></div>
141   - <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div>
142   - </div>
143   - <div class="card__price"><span>5 280 000 ₽</span>
144   - </div><a class="card__btn btn btn--bordered" href="#">Подробнее о продаже</a>
145   - </div>
146   - </div>
147   - </div>
148   - <div class="swiper-slide">
149   - <div class="card">
150   - <div class="card__top"><img src="images/card/card-img-4.jpg" alt="Фото недвижимости" loading="lazy">
151   - <h3 class="card__title">Витрина</h3>
152   - <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites">
153   - <svg width="18" height="18">
154   - <use xlink:href="images/sprite.svg#card-favorites-empty"></use>
155   - </svg>
156   - <svg width="18" height="18">
157   - <use xlink:href="images/sprite.svg#card-favorites"></use>
158   - </svg></span><a class="card__label card__label-messenger" href="#">
159   - <svg width="25" height="25">
160   - <use xlink:href="images/sprite.svg#card-messenger"></use>
161   - </svg></a></div>
162   - </div>
163   - <div class="card__cnt">
164   - <div class="card__info">
165   - <address class="card__line card__line-complex">ЖК “Нахимовский проспект, 46”</address>
166   - <address class="card__line">Парк Победы (5 мин., пешком)<span style="background-color: #222964;"></span></address>
167   - <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address>
168   - <div class="card__line">Площадь: <b>6 856 м2</b></div>
169   - <div class="card__line">Цена за м<sup>2</sup>: <b>25 256 ₽</b></div>
170   - </div>
171   - <div class="card__price"><span>2 625 520 ₽</span><span>в месяц</span>
172   - </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a>
173   - </div>
174   - </div>
175   - </div>
176   - <div class="swiper-slide">
177   - <div class="card">
178   - <div class="card__top"><img src="images/card/card-img-1.jpg" alt="Фото недвижимости" loading="lazy">
179   - <h3 class="card__title">Салон красоты</h3>
180   - <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites">
181   - <svg width="18" height="18">
182   - <use xlink:href="images/sprite.svg#card-favorites-empty"></use>
183   - </svg>
184   - <svg width="18" height="18">
185   - <use xlink:href="images/sprite.svg#card-favorites"></use>
186   - </svg></span><a class="card__label card__label-messenger" href="#">
187   - <svg width="25" height="25">
188   - <use xlink:href="images/sprite.svg#card-messenger"></use>
189   - </svg></a></div>
190   - </div>
191   - <div class="card__cnt">
192   - <div class="card__info">
193   - <address class="card__line card__line-complex">ЖК “Новинки 1”</address>
194   - <address class="card__line">Фрунзенская (10 мин., пешком)<span style="background-color: #FFC955;"></span></address>
195   - <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address>
196   - <div class="card__line">Площадь: <b>556 м2</b></div>
197   - <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div>
198   - </div>
199   - <div class="card__price"><span>1 000 000 ₽</span>
200   - </div><a class="card__btn btn btn--bordered" href="#">Подробнее</a>
201   - </div>
202   - </div>
203   - </div>
204   - <div class="swiper-slide">
205   - <div class="card">
206   - <div class="card__top"><img src="images/card/card-img-2.jpg" alt="Фото недвижимости" loading="lazy">
207   - <h3 class="card__title">Барбер-шоп</h3>
208   - <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites">
209   - <svg width="18" height="18">
210   - <use xlink:href="images/sprite.svg#card-favorites-empty"></use>
211   - </svg>
212   - <svg width="18" height="18">
213   - <use xlink:href="images/sprite.svg#card-favorites"></use>
214   - </svg></span><a class="card__label card__label-messenger" href="#">
215   - <svg width="25" height="25">
216   - <use xlink:href="images/sprite.svg#card-messenger"></use>
217   - </svg></a></div>
218   - </div>
219   - <div class="card__cnt">
220   - <div class="card__info">
221   - <address class="card__line card__line-complex">ЖК “Новоарбатский”</address>
222   - <address class="card__line">Арбатская (8 мин., пешком)<span style="background-color: #0000A0;"></span></address>
223   - <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address>
224   - <div class="card__line">Площадь: <b>6 556 м2</b></div>
225   - <div class="card__line">Цена за м<sup>2</sup>: <b>5 225 256 ₽</b></div>
226   - </div>
227   - <div class="card__price"><span>15 520 900 ₽</span><span>в месяц</span>
228   - </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a>
229   - </div>
230   - </div>
231   - </div>
232   - <div class="swiper-slide">
233   - <div class="card">
234   - <div class="card__top"><img src="images/card/card-img-3.jpg" alt="Фото недвижимости" loading="lazy">
235   - <h3 class="card__title">Аптека</h3>
236   - <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites">
237   - <svg width="18" height="18">
238   - <use xlink:href="images/sprite.svg#card-favorites-empty"></use>
239   - </svg>
240   - <svg width="18" height="18">
241   - <use xlink:href="images/sprite.svg#card-favorites"></use>
242   - </svg></span><a class="card__label card__label-messenger" href="#">
243   - <svg width="25" height="25">
244   - <use xlink:href="images/sprite.svg#card-messenger"></use>
245   - </svg></a></div>
246   - </div>
247   - <div class="card__cnt">
248   - <div class="card__info">
249   - <address class="card__line card__line-complex">ЖК “Садовые кварталы”</address>
250   - <address class="card__line">Коломенская (2 мин., пешком)<span style="background-color: #029B55;"></span></address>
251   - <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address>
252   - <div class="card__line">Площадь: <b>8 626 м2</b></div>
253   - <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div>
254   - </div>
255   - <div class="card__price"><span>5 280 000 ₽</span>
256   - </div><a class="card__btn btn btn--bordered" href="#">Подробнее о продаже</a>
257   - </div>
258   - </div>
259   - </div>
260   - <div class="swiper-slide">
261   - <div class="card">
262   - <div class="card__top"><img src="images/card/card-img-4.jpg" alt="Фото недвижимости" loading="lazy">
263   - <h3 class="card__title">Витрина</h3>
264   - <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites">
265   - <svg width="18" height="18">
266   - <use xlink:href="images/sprite.svg#card-favorites-empty"></use>
267   - </svg>
268   - <svg width="18" height="18">
269   - <use xlink:href="images/sprite.svg#card-favorites"></use>
270   - </svg></span><a class="card__label card__label-messenger" href="#">
271   - <svg width="25" height="25">
272   - <use xlink:href="images/sprite.svg#card-messenger"></use>
273   - </svg></a></div>
274   - </div>
275   - <div class="card__cnt">
276   - <div class="card__info">
277   - <address class="card__line card__line-complex">ЖК “Нахимовский проспект, 46”</address>
278   - <address class="card__line">Парк Победы (5 мин., пешком)<span style="background-color: #222964;"></span></address>
279   - <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address>
280   - <div class="card__line">Площадь: <b>6 856 м2</b></div>
281   - <div class="card__line">Цена за м<sup>2</sup>: <b>25 256 ₽</b></div>
282   - </div>
283   - <div class="card__price"><span>2 625 520 ₽</span><span>в месяц</span>
284   - </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a>
285   - </div>
286   - </div>
287   - </div>
  226 + <div class="swiper-wrapper" id="arenda_block">
  227 + @if ($house_arenda->count())
  228 + @foreach ($house_arenda as $house1)
  229 + @include('catalogs.elemhouse', ['house' => $house1])
  230 + @endforeach
  231 + @else
  232 + <h3>Здесь пока что нет предложений</h3>
  233 + @endif
  234 +
288 235 </div>
289 236 </div>
290 237 <div class="swiper-pagination"></div>
... ... @@ -299,242 +246,25 @@
299 246 <div class="slider__control">
300 247 <div class="swiper-button-prev">
301 248 <svg width="10" height="17">
302   - <use xlink:href="images/sprite.svg#slider-arrow"></use>
  249 + <use xlink:href="{{ asset('images/sprite.svg#slider-arrow') }}"></use>
303 250 </svg>
304 251 </div>
305 252 <div class="swiper-button-next">
306 253 <svg width="10" height="17">
307   - <use xlink:href="images/sprite.svg#slider-arrow"></use>
  254 + <use xlink:href="{{ asset('images/sprite.svg#slider-arrow') }}"></use>
308 255 </svg>
309 256 </div>
310 257 </div>
311 258 </div>
312 259 <div class="slider__swiper swiper">
313   - <div class="swiper-wrapper">
314   - <div class="swiper-slide">
315   - <div class="card">
316   - <div class="card__top"><img src="images/card/card-img-1.jpg" alt="Фото недвижимости" loading="lazy">
317   - <h3 class="card__title">Салон красоты</h3>
318   - <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites">
319   - <svg width="18" height="18">
320   - <use xlink:href="images/sprite.svg#card-favorites-empty"></use>
321   - </svg>
322   - <svg width="18" height="18">
323   - <use xlink:href="images/sprite.svg#card-favorites"></use>
324   - </svg></span><a class="card__label card__label-messenger" href="#">
325   - <svg width="25" height="25">
326   - <use xlink:href="images/sprite.svg#card-messenger"></use>
327   - </svg></a></div>
328   - </div>
329   - <div class="card__cnt">
330   - <div class="card__info">
331   - <address class="card__line card__line-complex">ЖК “Новинки 1”</address>
332   - <address class="card__line">Фрунзенская (10 мин., пешком)<span style="background-color: #FFC955;"></span></address>
333   - <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address>
334   - <div class="card__line">Площадь: <b>556 м2</b></div>
335   - <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div>
336   - </div>
337   - <div class="card__price"><span>1 000 000 ₽</span>
338   - </div><a class="card__btn btn btn--bordered" href="#">Подробнее</a>
339   - </div>
340   - </div>
341   - </div>
342   - <div class="swiper-slide">
343   - <div class="card">
344   - <div class="card__top"><img src="images/card/card-img-2.jpg" alt="Фото недвижимости" loading="lazy">
345   - <h3 class="card__title">Барбер-шоп</h3>
346   - <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites">
347   - <svg width="18" height="18">
348   - <use xlink:href="images/sprite.svg#card-favorites-empty"></use>
349   - </svg>
350   - <svg width="18" height="18">
351   - <use xlink:href="images/sprite.svg#card-favorites"></use>
352   - </svg></span><a class="card__label card__label-messenger" href="#">
353   - <svg width="25" height="25">
354   - <use xlink:href="images/sprite.svg#card-messenger"></use>
355   - </svg></a></div>
356   - </div>
357   - <div class="card__cnt">
358   - <div class="card__info">
359   - <address class="card__line card__line-complex">ЖК “Новоарбатский”</address>
360   - <address class="card__line">Арбатская (8 мин., пешком)<span style="background-color: #0000A0;"></span></address>
361   - <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address>
362   - <div class="card__line">Площадь: <b>6 556 м2</b></div>
363   - <div class="card__line">Цена за м<sup>2</sup>: <b>5 225 256 ₽</b></div>
364   - </div>
365   - <div class="card__price"><span>15 520 900 ₽</span><span>в месяц</span>
366   - </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a>
367   - </div>
368   - </div>
369   - </div>
370   - <div class="swiper-slide">
371   - <div class="card">
372   - <div class="card__top"><img src="images/card/card-img-3.jpg" alt="Фото недвижимости" loading="lazy">
373   - <h3 class="card__title">Аптека</h3>
374   - <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites">
375   - <svg width="18" height="18">
376   - <use xlink:href="images/sprite.svg#card-favorites-empty"></use>
377   - </svg>
378   - <svg width="18" height="18">
379   - <use xlink:href="images/sprite.svg#card-favorites"></use>
380   - </svg></span><a class="card__label card__label-messenger" href="#">
381   - <svg width="25" height="25">
382   - <use xlink:href="images/sprite.svg#card-messenger"></use>
383   - </svg></a></div>
384   - </div>
385   - <div class="card__cnt">
386   - <div class="card__info">
387   - <address class="card__line card__line-complex">ЖК “Садовые кварталы”</address>
388   - <address class="card__line">Коломенская (2 мин., пешком)<span style="background-color: #029B55;"></span></address>
389   - <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address>
390   - <div class="card__line">Площадь: <b>8 626 м2</b></div>
391   - <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div>
392   - </div>
393   - <div class="card__price"><span>5 280 000 ₽</span>
394   - </div><a class="card__btn btn btn--bordered" href="#">Подробнее о продаже</a>
395   - </div>
396   - </div>
397   - </div>
398   - <div class="swiper-slide">
399   - <div class="card">
400   - <div class="card__top"><img src="images/card/card-img-4.jpg" alt="Фото недвижимости" loading="lazy">
401   - <h3 class="card__title">Витрина</h3>
402   - <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites">
403   - <svg width="18" height="18">
404   - <use xlink:href="images/sprite.svg#card-favorites-empty"></use>
405   - </svg>
406   - <svg width="18" height="18">
407   - <use xlink:href="images/sprite.svg#card-favorites"></use>
408   - </svg></span><a class="card__label card__label-messenger" href="#">
409   - <svg width="25" height="25">
410   - <use xlink:href="images/sprite.svg#card-messenger"></use>
411   - </svg></a></div>
412   - </div>
413   - <div class="card__cnt">
414   - <div class="card__info">
415   - <address class="card__line card__line-complex">ЖК “Нахимовский проспект, 46”</address>
416   - <address class="card__line">Парк Победы (5 мин., пешком)<span style="background-color: #222964;"></span></address>
417   - <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address>
418   - <div class="card__line">Площадь: <b>6 856 м2</b></div>
419   - <div class="card__line">Цена за м<sup>2</sup>: <b>25 256 ₽</b></div>
420   - </div>
421   - <div class="card__price"><span>2 625 520 ₽</span><span>в месяц</span>
422   - </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a>
423   - </div>
424   - </div>
425   - </div>
426   - <div class="swiper-slide">
427   - <div class="card">
428   - <div class="card__top"><img src="images/card/card-img-1.jpg" alt="Фото недвижимости" loading="lazy">
429   - <h3 class="card__title">Салон красоты</h3>
430   - <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites">
431   - <svg width="18" height="18">
432   - <use xlink:href="images/sprite.svg#card-favorites-empty"></use>
433   - </svg>
434   - <svg width="18" height="18">
435   - <use xlink:href="images/sprite.svg#card-favorites"></use>
436   - </svg></span><a class="card__label card__label-messenger" href="#">
437   - <svg width="25" height="25">
438   - <use xlink:href="images/sprite.svg#card-messenger"></use>
439   - </svg></a></div>
440   - </div>
441   - <div class="card__cnt">
442   - <div class="card__info">
443   - <address class="card__line card__line-complex">ЖК “Новинки 1”</address>
444   - <address class="card__line">Фрунзенская (10 мин., пешком)<span style="background-color: #FFC955;"></span></address>
445   - <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address>
446   - <div class="card__line">Площадь: <b>556 м2</b></div>
447   - <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div>
448   - </div>
449   - <div class="card__price"><span>1 000 000 ₽</span>
450   - </div><a class="card__btn btn btn--bordered" href="#">Подробнее</a>
451   - </div>
452   - </div>
453   - </div>
454   - <div class="swiper-slide">
455   - <div class="card">
456   - <div class="card__top"><img src="images/card/card-img-2.jpg" alt="Фото недвижимости" loading="lazy">
457   - <h3 class="card__title">Барбер-шоп</h3>
458   - <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites">
459   - <svg width="18" height="18">
460   - <use xlink:href="images/sprite.svg#card-favorites-empty"></use>
461   - </svg>
462   - <svg width="18" height="18">
463   - <use xlink:href="images/sprite.svg#card-favorites"></use>
464   - </svg></span><a class="card__label card__label-messenger" href="#">
465   - <svg width="25" height="25">
466   - <use xlink:href="images/sprite.svg#card-messenger"></use>
467   - </svg></a></div>
468   - </div>
469   - <div class="card__cnt">
470   - <div class="card__info">
471   - <address class="card__line card__line-complex">ЖК “Новоарбатский”</address>
472   - <address class="card__line">Арбатская (8 мин., пешком)<span style="background-color: #0000A0;"></span></address>
473   - <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address>
474   - <div class="card__line">Площадь: <b>6 556 м2</b></div>
475   - <div class="card__line">Цена за м<sup>2</sup>: <b>5 225 256 ₽</b></div>
476   - </div>
477   - <div class="card__price"><span>15 520 900 ₽</span><span>в месяц</span>
478   - </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a>
479   - </div>
480   - </div>
481   - </div>
482   - <div class="swiper-slide">
483   - <div class="card">
484   - <div class="card__top"><img src="images/card/card-img-3.jpg" alt="Фото недвижимости" loading="lazy">
485   - <h3 class="card__title">Аптека</h3>
486   - <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites">
487   - <svg width="18" height="18">
488   - <use xlink:href="images/sprite.svg#card-favorites-empty"></use>
489   - </svg>
490   - <svg width="18" height="18">
491   - <use xlink:href="images/sprite.svg#card-favorites"></use>
492   - </svg></span><a class="card__label card__label-messenger" href="#">
493   - <svg width="25" height="25">
494   - <use xlink:href="images/sprite.svg#card-messenger"></use>
495   - </svg></a></div>
496   - </div>
497   - <div class="card__cnt">
498   - <div class="card__info">
499   - <address class="card__line card__line-complex">ЖК “Садовые кварталы”</address>
500   - <address class="card__line">Коломенская (2 мин., пешком)<span style="background-color: #029B55;"></span></address>
501   - <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address>
502   - <div class="card__line">Площадь: <b>8 626 м2</b></div>
503   - <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div>
504   - </div>
505   - <div class="card__price"><span>5 280 000 ₽</span>
506   - </div><a class="card__btn btn btn--bordered" href="#">Подробнее о продаже</a>
507   - </div>
508   - </div>
509   - </div>
510   - <div class="swiper-slide">
511   - <div class="card">
512   - <div class="card__top"><img src="images/card/card-img-4.jpg" alt="Фото недвижимости" loading="lazy">
513   - <h3 class="card__title">Витрина</h3>
514   - <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites">
515   - <svg width="18" height="18">
516   - <use xlink:href="images/sprite.svg#card-favorites-empty"></use>
517   - </svg>
518   - <svg width="18" height="18">
519   - <use xlink:href="images/sprite.svg#card-favorites"></use>
520   - </svg></span><a class="card__label card__label-messenger" href="#">
521   - <svg width="25" height="25">
522   - <use xlink:href="images/sprite.svg#card-messenger"></use>
523   - </svg></a></div>
524   - </div>
525   - <div class="card__cnt">
526   - <div class="card__info">
527   - <address class="card__line card__line-complex">ЖК “Нахимовский проспект, 46”</address>
528   - <address class="card__line">Парк Победы (5 мин., пешком)<span style="background-color: #222964;"></span></address>
529   - <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address>
530   - <div class="card__line">Площадь: <b>6 856 м2</b></div>
531   - <div class="card__line">Цена за м<sup>2</sup>: <b>25 256 ₽</b></div>
532   - </div>
533   - <div class="card__price"><span>2 625 520 ₽</span><span>в месяц</span>
534   - </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a>
535   - </div>
536   - </div>
537   - </div>
  260 + <div class="swiper-wrapper" id="prodaja_block">
  261 + @if ($house_prodaja->count())
  262 + @foreach ($house_prodaja as $house2)
  263 + @include('catalogs.elemhouse', ['house' => $house2])
  264 + @endforeach
  265 + @else
  266 + <h3>Здесь пока что нет предложений</h3>
  267 + @endif
538 268 </div>
539 269 </div>
540 270 <div class="swiper-pagination"></div>
... ... @@ -549,242 +279,25 @@
549 279 <div class="slider__control">
550 280 <div class="swiper-button-prev">
551 281 <svg width="10" height="17">
552   - <use xlink:href="images/sprite.svg#slider-arrow"></use>
  282 + <use xlink:href="{{ asset('images/sprite.svg#slider-arrow') }}"></use>
553 283 </svg>
554 284 </div>
555 285 <div class="swiper-button-next">
556 286 <svg width="10" height="17">
557   - <use xlink:href="images/sprite.svg#slider-arrow"></use>
  287 + <use xlink:href="{{ asset('images/sprite.svg#slider-arrow') }}"></use>
558 288 </svg>
559 289 </div>
560 290 </div>
561 291 </div>
562 292 <div class="slider__swiper swiper">
563   - <div class="swiper-wrapper">
564   - <div class="swiper-slide">
565   - <div class="card">
566   - <div class="card__top"><img src="images/card/card-img-1.jpg" alt="Фото недвижимости" loading="lazy">
567   - <h3 class="card__title">Салон красоты</h3>
568   - <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites">
569   - <svg width="18" height="18">
570   - <use xlink:href="images/sprite.svg#card-favorites-empty"></use>
571   - </svg>
572   - <svg width="18" height="18">
573   - <use xlink:href="images/sprite.svg#card-favorites"></use>
574   - </svg></span><a class="card__label card__label-messenger" href="#">
575   - <svg width="25" height="25">
576   - <use xlink:href="images/sprite.svg#card-messenger"></use>
577   - </svg></a></div>
578   - </div>
579   - <div class="card__cnt">
580   - <div class="card__info">
581   - <address class="card__line card__line-complex">ЖК “Новинки 1”</address>
582   - <address class="card__line">Фрунзенская (10 мин., пешком)<span style="background-color: #FFC955;"></span></address>
583   - <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address>
584   - <div class="card__line">Площадь: <b>556 м2</b></div>
585   - <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div>
586   - </div>
587   - <div class="card__price"><span>1 000 000 ₽</span>
588   - </div><a class="card__btn btn btn--bordered" href="#">Подробнее</a>
589   - </div>
590   - </div>
591   - </div>
592   - <div class="swiper-slide">
593   - <div class="card">
594   - <div class="card__top"><img src="images/card/card-img-2.jpg" alt="Фото недвижимости" loading="lazy">
595   - <h3 class="card__title">Барбер-шоп</h3>
596   - <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites">
597   - <svg width="18" height="18">
598   - <use xlink:href="images/sprite.svg#card-favorites-empty"></use>
599   - </svg>
600   - <svg width="18" height="18">
601   - <use xlink:href="images/sprite.svg#card-favorites"></use>
602   - </svg></span><a class="card__label card__label-messenger" href="#">
603   - <svg width="25" height="25">
604   - <use xlink:href="images/sprite.svg#card-messenger"></use>
605   - </svg></a></div>
606   - </div>
607   - <div class="card__cnt">
608   - <div class="card__info">
609   - <address class="card__line card__line-complex">ЖК “Новоарбатский”</address>
610   - <address class="card__line">Арбатская (8 мин., пешком)<span style="background-color: #0000A0;"></span></address>
611   - <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address>
612   - <div class="card__line">Площадь: <b>6 556 м2</b></div>
613   - <div class="card__line">Цена за м<sup>2</sup>: <b>5 225 256 ₽</b></div>
614   - </div>
615   - <div class="card__price"><span>15 520 900 ₽</span><span>в месяц</span>
616   - </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a>
617   - </div>
618   - </div>
619   - </div>
620   - <div class="swiper-slide">
621   - <div class="card">
622   - <div class="card__top"><img src="images/card/card-img-3.jpg" alt="Фото недвижимости" loading="lazy">
623   - <h3 class="card__title">Аптека</h3>
624   - <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites">
625   - <svg width="18" height="18">
626   - <use xlink:href="images/sprite.svg#card-favorites-empty"></use>
627   - </svg>
628   - <svg width="18" height="18">
629   - <use xlink:href="images/sprite.svg#card-favorites"></use>
630   - </svg></span><a class="card__label card__label-messenger" href="#">
631   - <svg width="25" height="25">
632   - <use xlink:href="images/sprite.svg#card-messenger"></use>
633   - </svg></a></div>
634   - </div>
635   - <div class="card__cnt">
636   - <div class="card__info">
637   - <address class="card__line card__line-complex">ЖК “Садовые кварталы”</address>
638   - <address class="card__line">Коломенская (2 мин., пешком)<span style="background-color: #029B55;"></span></address>
639   - <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address>
640   - <div class="card__line">Площадь: <b>8 626 м2</b></div>
641   - <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div>
642   - </div>
643   - <div class="card__price"><span>5 280 000 ₽</span>
644   - </div><a class="card__btn btn btn--bordered" href="#">Подробнее о продаже</a>
645   - </div>
646   - </div>
647   - </div>
648   - <div class="swiper-slide">
649   - <div class="card">
650   - <div class="card__top"><img src="images/card/card-img-4.jpg" alt="Фото недвижимости" loading="lazy">
651   - <h3 class="card__title">Витрина</h3>
652   - <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites">
653   - <svg width="18" height="18">
654   - <use xlink:href="images/sprite.svg#card-favorites-empty"></use>
655   - </svg>
656   - <svg width="18" height="18">
657   - <use xlink:href="images/sprite.svg#card-favorites"></use>
658   - </svg></span><a class="card__label card__label-messenger" href="#">
659   - <svg width="25" height="25">
660   - <use xlink:href="images/sprite.svg#card-messenger"></use>
661   - </svg></a></div>
662   - </div>
663   - <div class="card__cnt">
664   - <div class="card__info">
665   - <address class="card__line card__line-complex">ЖК “Нахимовский проспект, 46”</address>
666   - <address class="card__line">Парк Победы (5 мин., пешком)<span style="background-color: #222964;"></span></address>
667   - <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address>
668   - <div class="card__line">Площадь: <b>6 856 м2</b></div>
669   - <div class="card__line">Цена за м<sup>2</sup>: <b>25 256 ₽</b></div>
670   - </div>
671   - <div class="card__price"><span>2 625 520 ₽</span><span>в месяц</span>
672   - </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a>
673   - </div>
674   - </div>
675   - </div>
676   - <div class="swiper-slide">
677   - <div class="card">
678   - <div class="card__top"><img src="images/card/card-img-1.jpg" alt="Фото недвижимости" loading="lazy">
679   - <h3 class="card__title">Салон красоты</h3>
680   - <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites">
681   - <svg width="18" height="18">
682   - <use xlink:href="images/sprite.svg#card-favorites-empty"></use>
683   - </svg>
684   - <svg width="18" height="18">
685   - <use xlink:href="images/sprite.svg#card-favorites"></use>
686   - </svg></span><a class="card__label card__label-messenger" href="#">
687   - <svg width="25" height="25">
688   - <use xlink:href="images/sprite.svg#card-messenger"></use>
689   - </svg></a></div>
690   - </div>
691   - <div class="card__cnt">
692   - <div class="card__info">
693   - <address class="card__line card__line-complex">ЖК “Новинки 1”</address>
694   - <address class="card__line">Фрунзенская (10 мин., пешком)<span style="background-color: #FFC955;"></span></address>
695   - <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address>
696   - <div class="card__line">Площадь: <b>556 м2</b></div>
697   - <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div>
698   - </div>
699   - <div class="card__price"><span>1 000 000 ₽</span>
700   - </div><a class="card__btn btn btn--bordered" href="#">Подробнее</a>
701   - </div>
702   - </div>
703   - </div>
704   - <div class="swiper-slide">
705   - <div class="card">
706   - <div class="card__top"><img src="images/card/card-img-2.jpg" alt="Фото недвижимости" loading="lazy">
707   - <h3 class="card__title">Барбер-шоп</h3>
708   - <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites">
709   - <svg width="18" height="18">
710   - <use xlink:href="images/sprite.svg#card-favorites-empty"></use>
711   - </svg>
712   - <svg width="18" height="18">
713   - <use xlink:href="images/sprite.svg#card-favorites"></use>
714   - </svg></span><a class="card__label card__label-messenger" href="#">
715   - <svg width="25" height="25">
716   - <use xlink:href="images/sprite.svg#card-messenger"></use>
717   - </svg></a></div>
718   - </div>
719   - <div class="card__cnt">
720   - <div class="card__info">
721   - <address class="card__line card__line-complex">ЖК “Новоарбатский”</address>
722   - <address class="card__line">Арбатская (8 мин., пешком)<span style="background-color: #0000A0;"></span></address>
723   - <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address>
724   - <div class="card__line">Площадь: <b>6 556 м2</b></div>
725   - <div class="card__line">Цена за м<sup>2</sup>: <b>5 225 256 ₽</b></div>
726   - </div>
727   - <div class="card__price"><span>15 520 900 ₽</span><span>в месяц</span>
728   - </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a>
729   - </div>
730   - </div>
731   - </div>
732   - <div class="swiper-slide">
733   - <div class="card">
734   - <div class="card__top"><img src="images/card/card-img-3.jpg" alt="Фото недвижимости" loading="lazy">
735   - <h3 class="card__title">Аптека</h3>
736   - <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites">
737   - <svg width="18" height="18">
738   - <use xlink:href="images/sprite.svg#card-favorites-empty"></use>
739   - </svg>
740   - <svg width="18" height="18">
741   - <use xlink:href="images/sprite.svg#card-favorites"></use>
742   - </svg></span><a class="card__label card__label-messenger" href="#">
743   - <svg width="25" height="25">
744   - <use xlink:href="images/sprite.svg#card-messenger"></use>
745   - </svg></a></div>
746   - </div>
747   - <div class="card__cnt">
748   - <div class="card__info">
749   - <address class="card__line card__line-complex">ЖК “Садовые кварталы”</address>
750   - <address class="card__line">Коломенская (2 мин., пешком)<span style="background-color: #029B55;"></span></address>
751   - <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address>
752   - <div class="card__line">Площадь: <b>8 626 м2</b></div>
753   - <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div>
754   - </div>
755   - <div class="card__price"><span>5 280 000 ₽</span>
756   - </div><a class="card__btn btn btn--bordered" href="#">Подробнее о продаже</a>
757   - </div>
758   - </div>
759   - </div>
760   - <div class="swiper-slide">
761   - <div class="card">
762   - <div class="card__top"><img src="images/card/card-img-4.jpg" alt="Фото недвижимости" loading="lazy">
763   - <h3 class="card__title">Витрина</h3>
764   - <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites">
765   - <svg width="18" height="18">
766   - <use xlink:href="images/sprite.svg#card-favorites-empty"></use>
767   - </svg>
768   - <svg width="18" height="18">
769   - <use xlink:href="images/sprite.svg#card-favorites"></use>
770   - </svg></span><a class="card__label card__label-messenger" href="#">
771   - <svg width="25" height="25">
772   - <use xlink:href="images/sprite.svg#card-messenger"></use>
773   - </svg></a></div>
774   - </div>
775   - <div class="card__cnt">
776   - <div class="card__info">
777   - <address class="card__line card__line-complex">ЖК “Нахимовский проспект, 46”</address>
778   - <address class="card__line">Парк Победы (5 мин., пешком)<span style="background-color: #222964;"></span></address>
779   - <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address>
780   - <div class="card__line">Площадь: <b>6 856 м2</b></div>
781   - <div class="card__line">Цена за м<sup>2</sup>: <b>25 256 ₽</b></div>
782   - </div>
783   - <div class="card__price"><span>2 625 520 ₽</span><span>в месяц</span>
784   - </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a>
785   - </div>
786   - </div>
787   - </div>
  293 + <div class="swiper-wrapper" id="bissnes_block">
  294 + @if ($house_bissnes->count())
  295 + @foreach ($house_bissnes as $house3)
  296 + @include('catalogs.elemhouse', ['house' => $house3])
  297 + @endforeach
  298 + @else
  299 + <h3>Здесь пока что нет предложений</h3>
  300 + @endif
788 301 </div>
789 302 </div>
790 303 <div class="swiper-pagination"></div>
... ... @@ -799,242 +312,26 @@
799 312 <div class="slider__control">
800 313 <div class="swiper-button-prev">
801 314 <svg width="10" height="17">
802   - <use xlink:href="images/sprite.svg#slider-arrow"></use>
  315 + <use xlink:href="{{ asset('images/sprite.svg#slider-arrow') }}"></use>
803 316 </svg>
804 317 </div>
805 318 <div class="swiper-button-next">
806 319 <svg width="10" height="17">
807   - <use xlink:href="images/sprite.svg#slider-arrow"></use>
  320 + <use xlink:href="{{ asset('images/sprite.svg#slider-arrow') }}"></use>
808 321 </svg>
809 322 </div>
810 323 </div>
811 324 </div>
812 325 <div class="slider__swiper swiper">
813   - <div class="swiper-wrapper">
814   - <div class="swiper-slide">
815   - <div class="card">
816   - <div class="card__top"><img src="images/card/card-img-1.jpg" alt="Фото недвижимости" loading="lazy">
817   - <h3 class="card__title">Салон красоты</h3>
818   - <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites">
819   - <svg width="18" height="18">
820   - <use xlink:href="images/sprite.svg#card-favorites-empty"></use>
821   - </svg>
822   - <svg width="18" height="18">
823   - <use xlink:href="images/sprite.svg#card-favorites"></use>
824   - </svg></span><a class="card__label card__label-messenger" href="#">
825   - <svg width="25" height="25">
826   - <use xlink:href="images/sprite.svg#card-messenger"></use>
827   - </svg></a></div>
828   - </div>
829   - <div class="card__cnt">
830   - <div class="card__info">
831   - <address class="card__line card__line-complex">ЖК “Новинки 1”</address>
832   - <address class="card__line">Фрунзенская (10 мин., пешком)<span style="background-color: #FFC955;"></span></address>
833   - <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address>
834   - <div class="card__line">Площадь: <b>556 м2</b></div>
835   - <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div>
836   - </div>
837   - <div class="card__price"><span>1 000 000 ₽</span>
838   - </div><a class="card__btn btn btn--bordered" href="#">Подробнее</a>
839   - </div>
840   - </div>
841   - </div>
842   - <div class="swiper-slide">
843   - <div class="card">
844   - <div class="card__top"><img src="images/card/card-img-2.jpg" alt="Фото недвижимости" loading="lazy">
845   - <h3 class="card__title">Барбер-шоп</h3>
846   - <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites">
847   - <svg width="18" height="18">
848   - <use xlink:href="images/sprite.svg#card-favorites-empty"></use>
849   - </svg>
850   - <svg width="18" height="18">
851   - <use xlink:href="images/sprite.svg#card-favorites"></use>
852   - </svg></span><a class="card__label card__label-messenger" href="#">
853   - <svg width="25" height="25">
854   - <use xlink:href="images/sprite.svg#card-messenger"></use>
855   - </svg></a></div>
856   - </div>
857   - <div class="card__cnt">
858   - <div class="card__info">
859   - <address class="card__line card__line-complex">ЖК “Новоарбатский”</address>
860   - <address class="card__line">Арбатская (8 мин., пешком)<span style="background-color: #0000A0;"></span></address>
861   - <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address>
862   - <div class="card__line">Площадь: <b>6 556 м2</b></div>
863   - <div class="card__line">Цена за м<sup>2</sup>: <b>5 225 256 ₽</b></div>
864   - </div>
865   - <div class="card__price"><span>15 520 900 ₽</span><span>в месяц</span>
866   - </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a>
867   - </div>
868   - </div>
869   - </div>
870   - <div class="swiper-slide">
871   - <div class="card">
872   - <div class="card__top"><img src="images/card/card-img-3.jpg" alt="Фото недвижимости" loading="lazy">
873   - <h3 class="card__title">Аптека</h3>
874   - <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites">
875   - <svg width="18" height="18">
876   - <use xlink:href="images/sprite.svg#card-favorites-empty"></use>
877   - </svg>
878   - <svg width="18" height="18">
879   - <use xlink:href="images/sprite.svg#card-favorites"></use>
880   - </svg></span><a class="card__label card__label-messenger" href="#">
881   - <svg width="25" height="25">
882   - <use xlink:href="images/sprite.svg#card-messenger"></use>
883   - </svg></a></div>
884   - </div>
885   - <div class="card__cnt">
886   - <div class="card__info">
887   - <address class="card__line card__line-complex">ЖК “Садовые кварталы”</address>
888   - <address class="card__line">Коломенская (2 мин., пешком)<span style="background-color: #029B55;"></span></address>
889   - <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address>
890   - <div class="card__line">Площадь: <b>8 626 м2</b></div>
891   - <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div>
892   - </div>
893   - <div class="card__price"><span>5 280 000 ₽</span>
894   - </div><a class="card__btn btn btn--bordered" href="#">Подробнее о продаже</a>
895   - </div>
896   - </div>
897   - </div>
898   - <div class="swiper-slide">
899   - <div class="card">
900   - <div class="card__top"><img src="images/card/card-img-4.jpg" alt="Фото недвижимости" loading="lazy">
901   - <h3 class="card__title">Витрина</h3>
902   - <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites">
903   - <svg width="18" height="18">
904   - <use xlink:href="images/sprite.svg#card-favorites-empty"></use>
905   - </svg>
906   - <svg width="18" height="18">
907   - <use xlink:href="images/sprite.svg#card-favorites"></use>
908   - </svg></span><a class="card__label card__label-messenger" href="#">
909   - <svg width="25" height="25">
910   - <use xlink:href="images/sprite.svg#card-messenger"></use>
911   - </svg></a></div>
912   - </div>
913   - <div class="card__cnt">
914   - <div class="card__info">
915   - <address class="card__line card__line-complex">ЖК “Нахимовский проспект, 46”</address>
916   - <address class="card__line">Парк Победы (5 мин., пешком)<span style="background-color: #222964;"></span></address>
917   - <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address>
918   - <div class="card__line">Площадь: <b>6 856 м2</b></div>
919   - <div class="card__line">Цена за м<sup>2</sup>: <b>25 256 ₽</b></div>
920   - </div>
921   - <div class="card__price"><span>2 625 520 ₽</span><span>в месяц</span>
922   - </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a>
923   - </div>
924   - </div>
925   - </div>
926   - <div class="swiper-slide">
927   - <div class="card">
928   - <div class="card__top"><img src="images/card/card-img-1.jpg" alt="Фото недвижимости" loading="lazy">
929   - <h3 class="card__title">Салон красоты</h3>
930   - <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites">
931   - <svg width="18" height="18">
932   - <use xlink:href="images/sprite.svg#card-favorites-empty"></use>
933   - </svg>
934   - <svg width="18" height="18">
935   - <use xlink:href="images/sprite.svg#card-favorites"></use>
936   - </svg></span><a class="card__label card__label-messenger" href="#">
937   - <svg width="25" height="25">
938   - <use xlink:href="images/sprite.svg#card-messenger"></use>
939   - </svg></a></div>
940   - </div>
941   - <div class="card__cnt">
942   - <div class="card__info">
943   - <address class="card__line card__line-complex">ЖК “Новинки 1”</address>
944   - <address class="card__line">Фрунзенская (10 мин., пешком)<span style="background-color: #FFC955;"></span></address>
945   - <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address>
946   - <div class="card__line">Площадь: <b>556 м2</b></div>
947   - <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div>
948   - </div>
949   - <div class="card__price"><span>1 000 000 ₽</span>
950   - </div><a class="card__btn btn btn--bordered" href="#">Подробнее</a>
951   - </div>
952   - </div>
953   - </div>
954   - <div class="swiper-slide">
955   - <div class="card">
956   - <div class="card__top"><img src="images/card/card-img-2.jpg" alt="Фото недвижимости" loading="lazy">
957   - <h3 class="card__title">Барбер-шоп</h3>
958   - <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites">
959   - <svg width="18" height="18">
960   - <use xlink:href="images/sprite.svg#card-favorites-empty"></use>
961   - </svg>
962   - <svg width="18" height="18">
963   - <use xlink:href="images/sprite.svg#card-favorites"></use>
964   - </svg></span><a class="card__label card__label-messenger" href="#">
965   - <svg width="25" height="25">
966   - <use xlink:href="images/sprite.svg#card-messenger"></use>
967   - </svg></a></div>
968   - </div>
969   - <div class="card__cnt">
970   - <div class="card__info">
971   - <address class="card__line card__line-complex">ЖК “Новоарбатский”</address>
972   - <address class="card__line">Арбатская (8 мин., пешком)<span style="background-color: #0000A0;"></span></address>
973   - <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address>
974   - <div class="card__line">Площадь: <b>6 556 м2</b></div>
975   - <div class="card__line">Цена за м<sup>2</sup>: <b>5 225 256 ₽</b></div>
976   - </div>
977   - <div class="card__price"><span>15 520 900 ₽</span><span>в месяц</span>
978   - </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a>
979   - </div>
980   - </div>
981   - </div>
982   - <div class="swiper-slide">
983   - <div class="card">
984   - <div class="card__top"><img src="images/card/card-img-3.jpg" alt="Фото недвижимости" loading="lazy">
985   - <h3 class="card__title">Аптека</h3>
986   - <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites">
987   - <svg width="18" height="18">
988   - <use xlink:href="images/sprite.svg#card-favorites-empty"></use>
989   - </svg>
990   - <svg width="18" height="18">
991   - <use xlink:href="images/sprite.svg#card-favorites"></use>
992   - </svg></span><a class="card__label card__label-messenger" href="#">
993   - <svg width="25" height="25">
994   - <use xlink:href="images/sprite.svg#card-messenger"></use>
995   - </svg></a></div>
996   - </div>
997   - <div class="card__cnt">
998   - <div class="card__info">
999   - <address class="card__line card__line-complex">ЖК “Садовые кварталы”</address>
1000   - <address class="card__line">Коломенская (2 мин., пешком)<span style="background-color: #029B55;"></span></address>
1001   - <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address>
1002   - <div class="card__line">Площадь: <b>8 626 м2</b></div>
1003   - <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div>
1004   - </div>
1005   - <div class="card__price"><span>5 280 000 ₽</span>
1006   - </div><a class="card__btn btn btn--bordered" href="#">Подробнее о продаже</a>
1007   - </div>
1008   - </div>
1009   - </div>
1010   - <div class="swiper-slide">
1011   - <div class="card">
1012   - <div class="card__top"><img src="images/card/card-img-4.jpg" alt="Фото недвижимости" loading="lazy">
1013   - <h3 class="card__title">Витрина</h3>
1014   - <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites">
1015   - <svg width="18" height="18">
1016   - <use xlink:href="images/sprite.svg#card-favorites-empty"></use>
1017   - </svg>
1018   - <svg width="18" height="18">
1019   - <use xlink:href="images/sprite.svg#card-favorites"></use>
1020   - </svg></span><a class="card__label card__label-messenger" href="#">
1021   - <svg width="25" height="25">
1022   - <use xlink:href="images/sprite.svg#card-messenger"></use>
1023   - </svg></a></div>
1024   - </div>
1025   - <div class="card__cnt">
1026   - <div class="card__info">
1027   - <address class="card__line card__line-complex">ЖК “Нахимовский проспект, 46”</address>
1028   - <address class="card__line">Парк Победы (5 мин., пешком)<span style="background-color: #222964;"></span></address>
1029   - <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address>
1030   - <div class="card__line">Площадь: <b>6 856 м2</b></div>
1031   - <div class="card__line">Цена за м<sup>2</sup>: <b>25 256 ₽</b></div>
1032   - </div>
1033   - <div class="card__price"><span>2 625 520 ₽</span><span>в месяц</span>
1034   - </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a>
1035   - </div>
1036   - </div>
1037   - </div>
  326 + <div class="swiper-wrapper" id="arendovannie_block">
  327 + @if ($house_arendovannie->count())
  328 + @foreach ($house_arendovannie as $house1)
  329 + @include('catalogs.elemhouse', ['house' => $house1])
  330 + @endforeach
  331 + @else
  332 + <h3>Здесь пока что нет предложений</h3>
  333 + @endif
  334 +
1038 335 </div>
1039 336 </div>
1040 337 <div class="swiper-pagination"></div>
resources/views/catalogs/elemhouse.blade.php
... ... @@ -29,16 +29,20 @@
29 29 </div>
30 30 <? switch ($house->format_house) {
31 31 case 'Аренда':
32   - $price = $house->rent_in_month;
33 32 $comment = "<span>в месяц</span>";
34 33 break;
35 34 case 'Продажа':
36   - $price = $house->price;
37 35 $comment = "";
38 36 break;
  37 + case 'Бизнес':
  38 + $comment= "<span>в месяц</span>";
  39 + break;
  40 + case 'Арендованные':
  41 + $comment = "<span>в месяц</span>";
  42 + break;
39 43 }
40 44 ?>
41   - <div class="card__price"><span>{{ $price }} ₽ </span><? echo $comment; ?>
  45 + <div class="card__price"><span>{{ $house->price }} ₽ </span><? echo $comment; ?>
42 46 </div><a class="card__btn btn btn--bordered" href="{{ route('offer', ['house' => $house->id]) }}">Подробнее</a>
43 47 </div>
44 48 </div>
resources/views/catalogs/house_mini.blade.php
... ... @@ -0,0 +1,48 @@
  1 +<div class="card">
  2 + <div class="card__top">
  3 + @if (empty($house->foto_main))
  4 +
  5 + @else
  6 + <img src="{{ asset($house->foto_main) }}" alt="{{ $house->title }}" loading="lazy"/>
  7 + @endif;
  8 +
  9 + <h3 class="card__title">{{$house->typearea->name_type }}</h3>
  10 + <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites">
  11 + <svg width="18" height="18">
  12 + <use xlink:href="{{ asset('images/sprite.svg#card-favorites-empty') }}"></use>
  13 + </svg>
  14 + <svg width="18" height="18">
  15 + <use xlink:href="{{ asset('images/sprite.svg#card-favorites') }}"></use>
  16 + </svg></span><a class="card__label card__label-messenger" href="#">
  17 + <svg width="25" height="25">
  18 + <use xlink:href="{{ asset('images/sprite.svg#card-messenger') }}"></use>
  19 + </svg></a></div>
  20 + </div>
  21 + <div class="card__cnt">
  22 + <div class="card__info">
  23 + <address class="card__line card__line-complex">{{ $house->areas->name_area }}</address>
  24 + <address class="card__line">{{$house->metro}} ({{$house->description_metro }})<span style="background-color: #FFC955;"></span></address>
  25 + <address class="card__line">{{$house->address }}</address>
  26 + <div class="card__line">Площадь: <b>{{$house->area}} м2</b></div>
  27 + <div class="card__line">Цена за м<sup>2</sup>: <b>{{ $house->price_m2 }}₽</b></div>
  28 + </div>
  29 + <? switch ($house->format_house) {
  30 + case 'Аренда':
  31 + $comment = "<span>в месяц</span>";
  32 + break;
  33 + case 'Продажа':
  34 + $comment = "";
  35 + break;
  36 + case 'Бизнес':
  37 + $comment= "<span>в месяц</span>";
  38 + break;
  39 + case 'Арендованные':
  40 + $comment = "<span>в месяц</span>";
  41 + break;
  42 + }
  43 + ?>
  44 + <div class="card__price"><span>{{ $house->price }} ₽ </span><? echo $comment; ?>
  45 + </div><a class="card__btn btn btn--bordered" href="{{ route('offer', ['house' => $house->id]) }}">Подробнее</a>
  46 + </div>
  47 + </div>
  48 +
resources/views/category_catalog.blade.php
... ... @@ -0,0 +1,595 @@
  1 +@extends('layout.site', ['title' => $title])
  2 +
  3 +@section('filter')
  4 + @include('part.filter.category', ['title' => $title])
  5 +@endsection
  6 +
  7 +@section('content')
  8 + <section class="category">
  9 + <div class="container">
  10 + <div class="category__top top-catalog">
  11 + <div class="top-catalog__inner">
  12 + <h2 class="top-catalog__title title">Аренда торговых помещений</h2>
  13 + <div class="top-catalog__result">Найдено объектов по Вашему запросу: <span>356</span></div>
  14 + </div>
  15 + <form class="top-catalog__sorts">
  16 + <div class="top-catalog__sort-group sort-group js_sort_group">
  17 + <input class="js_sort_group_input" type="hidden">
  18 + <div class="sort-group__current js_sort_group_current">Сначала дешевле</div>
  19 + <ul class="sort-group__list js_sort_group_list">
  20 + <li class="sort-price sort-group__item js_sort_group_item active" data-val="1">Сначала дешевле</li>
  21 + <li class="sort-price sort-group__item js_sort_group_item" data-val="2">Сначала дороже</li>
  22 + </ul>
  23 + </div>
  24 + <div class="top-catalog__sort-group sort-group js_sort_group">
  25 + <input class="js_sort_group_input" type="hidden">
  26 + <div class="sort-group__current js_sort_group_current">Сначала новые</div>
  27 + <ul class="sort-group__list js_sort_group_list">
  28 + <li class="sort-new sort-group__item js_sort_group_item active" data-val="1">Сначала новые</li>
  29 + <li class="sort-new sort-group__item js_sort_group_item" data-val="2">Сначала старые</li>
  30 + </ul>
  31 + </div>
  32 + <div class="top-catalog__sort-group sort-group sort-group--wide js_sort_group">
  33 + <input class="js_sort_group_input" type="hidden">
  34 + <div class="sort-group__current js_sort_group_current">Сначала с большей площадью</div>
  35 + <ul class="sort-group__list js_sort_group_list">
  36 + <li class="sort-area sort-group__item js_sort_group_item active" data-val="1">Сначала с большей площадью</li>
  37 + <li class="sort-area sort-group__item js_sort_group_item" data-val="2">Сначала с меньшей площадью</li>
  38 + </ul>
  39 + </div>
  40 + </form>
  41 + </div>
  42 + <div class="category__grid">
  43 + @if ($houses->count())
  44 + @foreach ($houses as $house1)
  45 + @include('catalogs.house_mini', ['house' => $house1])
  46 + @endforeach
  47 + @else
  48 + <h3>Здесь пока что нет предложений</h3>
  49 + @endif
  50 + <!--<div class="card">
  51 + <div class="card__top"><img src="images/card/card-img-1.jpg" alt="Фото недвижимости" loading="lazy">
  52 + <h3 class="card__title">Салон красоты</h3>
  53 + <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites">
  54 + <svg width="18" height="18">
  55 + <use xlink:href="images/sprite.svg#card-favorites-empty"></use>
  56 + </svg>
  57 + <svg width="18" height="18">
  58 + <use xlink:href="images/sprite.svg#card-favorites"></use>
  59 + </svg></span><a class="card__label card__label-messenger" href="#">
  60 + <svg width="25" height="25">
  61 + <use xlink:href="images/sprite.svg#card-messenger"></use>
  62 + </svg></a></div>
  63 + </div>
  64 + <div class="card__cnt">
  65 + <div class="card__info">
  66 + <address class="card__line card__line-complex">ЖК “Новинки 1”</address>
  67 + <address class="card__line">Фрунзенская (10 мин., пешком)<span style="background-color: #FFC955;"></span></address>
  68 + <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address>
  69 + <div class="card__line">Площадь: <b>556 м2</b></div>
  70 + <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div>
  71 + </div>
  72 + <div class="card__price"><span>1 000 000 ₽</span>
  73 + </div><a class="card__btn btn btn--bordered" href="#">Подробнее</a>
  74 + </div>
  75 + </div>
  76 + <div class="card">
  77 + <div class="card__top"><img src="images/card/card-img-2.jpg" alt="Фото недвижимости" loading="lazy">
  78 + <h3 class="card__title">Барбер-шоп</h3>
  79 + <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites">
  80 + <svg width="18" height="18">
  81 + <use xlink:href="images/sprite.svg#card-favorites-empty"></use>
  82 + </svg>
  83 + <svg width="18" height="18">
  84 + <use xlink:href="images/sprite.svg#card-favorites"></use>
  85 + </svg></span><a class="card__label card__label-messenger" href="#">
  86 + <svg width="25" height="25">
  87 + <use xlink:href="images/sprite.svg#card-messenger"></use>
  88 + </svg></a></div>
  89 + </div>
  90 + <div class="card__cnt">
  91 + <div class="card__info">
  92 + <address class="card__line card__line-complex">ЖК “Новоарбатский”</address>
  93 + <address class="card__line">Арбатская (8 мин., пешком)<span style="background-color: #0000A0;"></span></address>
  94 + <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address>
  95 + <div class="card__line">Площадь: <b>6 556 м2</b></div>
  96 + <div class="card__line">Цена за м<sup>2</sup>: <b>5 225 256 ₽</b></div>
  97 + </div>
  98 + <div class="card__price"><span>15 520 900 ₽</span><span>в месяц</span>
  99 + </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a>
  100 + </div>
  101 + </div>
  102 + <div class="card">
  103 + <div class="card__top"><img src="images/card/card-img-3.jpg" alt="Фото недвижимости" loading="lazy">
  104 + <h3 class="card__title">Аптека</h3>
  105 + <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites">
  106 + <svg width="18" height="18">
  107 + <use xlink:href="images/sprite.svg#card-favorites-empty"></use>
  108 + </svg>
  109 + <svg width="18" height="18">
  110 + <use xlink:href="images/sprite.svg#card-favorites"></use>
  111 + </svg></span><a class="card__label card__label-messenger" href="#">
  112 + <svg width="25" height="25">
  113 + <use xlink:href="images/sprite.svg#card-messenger"></use>
  114 + </svg></a></div>
  115 + </div>
  116 + <div class="card__cnt">
  117 + <div class="card__info">
  118 + <address class="card__line card__line-complex">ЖК “Садовые кварталы”</address>
  119 + <address class="card__line">Коломенская (2 мин., пешком)<span style="background-color: #029B55;"></span></address>
  120 + <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address>
  121 + <div class="card__line">Площадь: <b>8 626 м2</b></div>
  122 + <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div>
  123 + </div>
  124 + <div class="card__price"><span>5 280 000 ₽</span>
  125 + </div><a class="card__btn btn btn--bordered" href="#">Подробнее о продаже</a>
  126 + </div>
  127 + </div>
  128 + <div class="card">
  129 + <div class="card__top"><img src="images/card/card-img-4.jpg" alt="Фото недвижимости" loading="lazy">
  130 + <h3 class="card__title">Витрина</h3>
  131 + <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites">
  132 + <svg width="18" height="18">
  133 + <use xlink:href="images/sprite.svg#card-favorites-empty"></use>
  134 + </svg>
  135 + <svg width="18" height="18">
  136 + <use xlink:href="images/sprite.svg#card-favorites"></use>
  137 + </svg></span><a class="card__label card__label-messenger" href="#">
  138 + <svg width="25" height="25">
  139 + <use xlink:href="images/sprite.svg#card-messenger"></use>
  140 + </svg></a></div>
  141 + </div>
  142 + <div class="card__cnt">
  143 + <div class="card__info">
  144 + <address class="card__line card__line-complex">ЖК “Нахимовский проспект, 46”</address>
  145 + <address class="card__line">Парк Победы (5 мин., пешком)<span style="background-color: #222964;"></span></address>
  146 + <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address>
  147 + <div class="card__line">Площадь: <b>6 856 м2</b></div>
  148 + <div class="card__line">Цена за м<sup>2</sup>: <b>25 256 ₽</b></div>
  149 + </div>
  150 + <div class="card__price"><span>2 625 520 ₽</span><span>в месяц</span>
  151 + </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a>
  152 + </div>
  153 + </div>
  154 + <div class="card">
  155 + <div class="card__top"><img src="images/card/card-img-1.jpg" alt="Фото недвижимости" loading="lazy">
  156 + <h3 class="card__title">Салон красоты</h3>
  157 + <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites">
  158 + <svg width="18" height="18">
  159 + <use xlink:href="images/sprite.svg#card-favorites-empty"></use>
  160 + </svg>
  161 + <svg width="18" height="18">
  162 + <use xlink:href="images/sprite.svg#card-favorites"></use>
  163 + </svg></span><a class="card__label card__label-messenger" href="#">
  164 + <svg width="25" height="25">
  165 + <use xlink:href="images/sprite.svg#card-messenger"></use>
  166 + </svg></a></div>
  167 + </div>
  168 + <div class="card__cnt">
  169 + <div class="card__info">
  170 + <address class="card__line card__line-complex">ЖК “Новинки 1”</address>
  171 + <address class="card__line">Фрунзенская (10 мин., пешком)<span style="background-color: #FFC955;"></span></address>
  172 + <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address>
  173 + <div class="card__line">Площадь: <b>556 м2</b></div>
  174 + <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div>
  175 + </div>
  176 + <div class="card__price"><span>1 000 000 ₽</span>
  177 + </div><a class="card__btn btn btn--bordered" href="#">Подробнее</a>
  178 + </div>
  179 + </div>
  180 + <div class="card">
  181 + <div class="card__top"><img src="images/card/card-img-2.jpg" alt="Фото недвижимости" loading="lazy">
  182 + <h3 class="card__title">Барбер-шоп</h3>
  183 + <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites">
  184 + <svg width="18" height="18">
  185 + <use xlink:href="images/sprite.svg#card-favorites-empty"></use>
  186 + </svg>
  187 + <svg width="18" height="18">
  188 + <use xlink:href="images/sprite.svg#card-favorites"></use>
  189 + </svg></span><a class="card__label card__label-messenger" href="#">
  190 + <svg width="25" height="25">
  191 + <use xlink:href="images/sprite.svg#card-messenger"></use>
  192 + </svg></a></div>
  193 + </div>
  194 + <div class="card__cnt">
  195 + <div class="card__info">
  196 + <address class="card__line card__line-complex">ЖК “Новоарбатский”</address>
  197 + <address class="card__line">Арбатская (8 мин., пешком)<span style="background-color: #0000A0;"></span></address>
  198 + <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address>
  199 + <div class="card__line">Площадь: <b>6 556 м2</b></div>
  200 + <div class="card__line">Цена за м<sup>2</sup>: <b>5 225 256 ₽</b></div>
  201 + </div>
  202 + <div class="card__price"><span>15 520 900 ₽</span><span>в месяц</span>
  203 + </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a>
  204 + </div>
  205 + </div>
  206 + <div class="card">
  207 + <div class="card__top"><img src="images/card/card-img-3.jpg" alt="Фото недвижимости" loading="lazy">
  208 + <h3 class="card__title">Аптека</h3>
  209 + <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites">
  210 + <svg width="18" height="18">
  211 + <use xlink:href="images/sprite.svg#card-favorites-empty"></use>
  212 + </svg>
  213 + <svg width="18" height="18">
  214 + <use xlink:href="images/sprite.svg#card-favorites"></use>
  215 + </svg></span><a class="card__label card__label-messenger" href="#">
  216 + <svg width="25" height="25">
  217 + <use xlink:href="images/sprite.svg#card-messenger"></use>
  218 + </svg></a></div>
  219 + </div>
  220 + <div class="card__cnt">
  221 + <div class="card__info">
  222 + <address class="card__line card__line-complex">ЖК “Садовые кварталы”</address>
  223 + <address class="card__line">Коломенская (2 мин., пешком)<span style="background-color: #029B55;"></span></address>
  224 + <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address>
  225 + <div class="card__line">Площадь: <b>8 626 м2</b></div>
  226 + <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div>
  227 + </div>
  228 + <div class="card__price"><span>5 280 000 ₽</span>
  229 + </div><a class="card__btn btn btn--bordered" href="#">Подробнее о продаже</a>
  230 + </div>
  231 + </div>
  232 + <div class="card">
  233 + <div class="card__top"><img src="images/card/card-img-4.jpg" alt="Фото недвижимости" loading="lazy">
  234 + <h3 class="card__title">Витрина</h3>
  235 + <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites">
  236 + <svg width="18" height="18">
  237 + <use xlink:href="images/sprite.svg#card-favorites-empty"></use>
  238 + </svg>
  239 + <svg width="18" height="18">
  240 + <use xlink:href="images/sprite.svg#card-favorites"></use>
  241 + </svg></span><a class="card__label card__label-messenger" href="#">
  242 + <svg width="25" height="25">
  243 + <use xlink:href="images/sprite.svg#card-messenger"></use>
  244 + </svg></a></div>
  245 + </div>
  246 + <div class="card__cnt">
  247 + <div class="card__info">
  248 + <address class="card__line card__line-complex">ЖК “Нахимовский проспект, 46”</address>
  249 + <address class="card__line">Парк Победы (5 мин., пешком)<span style="background-color: #222964;"></span></address>
  250 + <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address>
  251 + <div class="card__line">Площадь: <b>6 856 м2</b></div>
  252 + <div class="card__line">Цена за м<sup>2</sup>: <b>25 256 ₽</b></div>
  253 + </div>
  254 + <div class="card__price"><span>2 625 520 ₽</span><span>в месяц</span>
  255 + </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a>
  256 + </div>
  257 + </div>
  258 + <div class="card">
  259 + <div class="card__top"><img src="images/card/card-img-1.jpg" alt="Фото недвижимости" loading="lazy">
  260 + <h3 class="card__title">Салон красоты</h3>
  261 + <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites">
  262 + <svg width="18" height="18">
  263 + <use xlink:href="images/sprite.svg#card-favorites-empty"></use>
  264 + </svg>
  265 + <svg width="18" height="18">
  266 + <use xlink:href="images/sprite.svg#card-favorites"></use>
  267 + </svg></span><a class="card__label card__label-messenger" href="#">
  268 + <svg width="25" height="25">
  269 + <use xlink:href="images/sprite.svg#card-messenger"></use>
  270 + </svg></a></div>
  271 + </div>
  272 + <div class="card__cnt">
  273 + <div class="card__info">
  274 + <address class="card__line card__line-complex">ЖК “Новинки 1”</address>
  275 + <address class="card__line">Фрунзенская (10 мин., пешком)<span style="background-color: #FFC955;"></span></address>
  276 + <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address>
  277 + <div class="card__line">Площадь: <b>556 м2</b></div>
  278 + <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div>
  279 + </div>
  280 + <div class="card__price"><span>1 000 000 ₽</span>
  281 + </div><a class="card__btn btn btn--bordered" href="#">Подробнее</a>
  282 + </div>
  283 + </div>
  284 + <div class="card">
  285 + <div class="card__top"><img src="images/card/card-img-2.jpg" alt="Фото недвижимости" loading="lazy">
  286 + <h3 class="card__title">Барбер-шоп</h3>
  287 + <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites">
  288 + <svg width="18" height="18">
  289 + <use xlink:href="images/sprite.svg#card-favorites-empty"></use>
  290 + </svg>
  291 + <svg width="18" height="18">
  292 + <use xlink:href="images/sprite.svg#card-favorites"></use>
  293 + </svg></span><a class="card__label card__label-messenger" href="#">
  294 + <svg width="25" height="25">
  295 + <use xlink:href="images/sprite.svg#card-messenger"></use>
  296 + </svg></a></div>
  297 + </div>
  298 + <div class="card__cnt">
  299 + <div class="card__info">
  300 + <address class="card__line card__line-complex">ЖК “Новоарбатский”</address>
  301 + <address class="card__line">Арбатская (8 мин., пешком)<span style="background-color: #0000A0;"></span></address>
  302 + <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address>
  303 + <div class="card__line">Площадь: <b>6 556 м2</b></div>
  304 + <div class="card__line">Цена за м<sup>2</sup>: <b>5 225 256 ₽</b></div>
  305 + </div>
  306 + <div class="card__price"><span>15 520 900 ₽</span><span>в месяц</span>
  307 + </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a>
  308 + </div>
  309 + </div>
  310 + <div class="card">
  311 + <div class="card__top"><img src="images/card/card-img-3.jpg" alt="Фото недвижимости" loading="lazy">
  312 + <h3 class="card__title">Аптека</h3>
  313 + <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites">
  314 + <svg width="18" height="18">
  315 + <use xlink:href="images/sprite.svg#card-favorites-empty"></use>
  316 + </svg>
  317 + <svg width="18" height="18">
  318 + <use xlink:href="images/sprite.svg#card-favorites"></use>
  319 + </svg></span><a class="card__label card__label-messenger" href="#">
  320 + <svg width="25" height="25">
  321 + <use xlink:href="images/sprite.svg#card-messenger"></use>
  322 + </svg></a></div>
  323 + </div>
  324 + <div class="card__cnt">
  325 + <div class="card__info">
  326 + <address class="card__line card__line-complex">ЖК “Садовые кварталы”</address>
  327 + <address class="card__line">Коломенская (2 мин., пешком)<span style="background-color: #029B55;"></span></address>
  328 + <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address>
  329 + <div class="card__line">Площадь: <b>8 626 м2</b></div>
  330 + <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div>
  331 + </div>
  332 + <div class="card__price"><span>5 280 000 ₽</span>
  333 + </div><a class="card__btn btn btn--bordered" href="#">Подробнее о продаже</a>
  334 + </div>
  335 + </div>
  336 + <div class="card">
  337 + <div class="card__top"><img src="images/card/card-img-4.jpg" alt="Фото недвижимости" loading="lazy">
  338 + <h3 class="card__title">Витрина</h3>
  339 + <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites">
  340 + <svg width="18" height="18">
  341 + <use xlink:href="images/sprite.svg#card-favorites-empty"></use>
  342 + </svg>
  343 + <svg width="18" height="18">
  344 + <use xlink:href="images/sprite.svg#card-favorites"></use>
  345 + </svg></span><a class="card__label card__label-messenger" href="#">
  346 + <svg width="25" height="25">
  347 + <use xlink:href="images/sprite.svg#card-messenger"></use>
  348 + </svg></a></div>
  349 + </div>
  350 + <div class="card__cnt">
  351 + <div class="card__info">
  352 + <address class="card__line card__line-complex">ЖК “Нахимовский проспект, 46”</address>
  353 + <address class="card__line">Парк Победы (5 мин., пешком)<span style="background-color: #222964;"></span></address>
  354 + <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address>
  355 + <div class="card__line">Площадь: <b>6 856 м2</b></div>
  356 + <div class="card__line">Цена за м<sup>2</sup>: <b>25 256 ₽</b></div>
  357 + </div>
  358 + <div class="card__price"><span>2 625 520 ₽</span><span>в месяц</span>
  359 + </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a>
  360 + </div>
  361 + </div>
  362 + <div class="card">
  363 + <div class="card__top"><img src="images/card/card-img-1.jpg" alt="Фото недвижимости" loading="lazy">
  364 + <h3 class="card__title">Салон красоты</h3>
  365 + <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites">
  366 + <svg width="18" height="18">
  367 + <use xlink:href="images/sprite.svg#card-favorites-empty"></use>
  368 + </svg>
  369 + <svg width="18" height="18">
  370 + <use xlink:href="images/sprite.svg#card-favorites"></use>
  371 + </svg></span><a class="card__label card__label-messenger" href="#">
  372 + <svg width="25" height="25">
  373 + <use xlink:href="images/sprite.svg#card-messenger"></use>
  374 + </svg></a></div>
  375 + </div>
  376 + <div class="card__cnt">
  377 + <div class="card__info">
  378 + <address class="card__line card__line-complex">ЖК “Новинки 1”</address>
  379 + <address class="card__line">Фрунзенская (10 мин., пешком)<span style="background-color: #FFC955;"></span></address>
  380 + <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address>
  381 + <div class="card__line">Площадь: <b>556 м2</b></div>
  382 + <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div>
  383 + </div>
  384 + <div class="card__price"><span>1 000 000 ₽</span>
  385 + </div><a class="card__btn btn btn--bordered" href="#">Подробнее</a>
  386 + </div>
  387 + </div>
  388 + <div class="card">
  389 + <div class="card__top"><img src="images/card/card-img-2.jpg" alt="Фото недвижимости" loading="lazy">
  390 + <h3 class="card__title">Барбер-шоп</h3>
  391 + <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites">
  392 + <svg width="18" height="18">
  393 + <use xlink:href="images/sprite.svg#card-favorites-empty"></use>
  394 + </svg>
  395 + <svg width="18" height="18">
  396 + <use xlink:href="images/sprite.svg#card-favorites"></use>
  397 + </svg></span><a class="card__label card__label-messenger" href="#">
  398 + <svg width="25" height="25">
  399 + <use xlink:href="images/sprite.svg#card-messenger"></use>
  400 + </svg></a></div>
  401 + </div>
  402 + <div class="card__cnt">
  403 + <div class="card__info">
  404 + <address class="card__line card__line-complex">ЖК “Новоарбатский”</address>
  405 + <address class="card__line">Арбатская (8 мин., пешком)<span style="background-color: #0000A0;"></span></address>
  406 + <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address>
  407 + <div class="card__line">Площадь: <b>6 556 м2</b></div>
  408 + <div class="card__line">Цена за м<sup>2</sup>: <b>5 225 256 ₽</b></div>
  409 + </div>
  410 + <div class="card__price"><span>15 520 900 ₽</span><span>в месяц</span>
  411 + </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a>
  412 + </div>
  413 + </div>
  414 + <div class="card">
  415 + <div class="card__top"><img src="images/card/card-img-3.jpg" alt="Фото недвижимости" loading="lazy">
  416 + <h3 class="card__title">Аптека</h3>
  417 + <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites">
  418 + <svg width="18" height="18">
  419 + <use xlink:href="images/sprite.svg#card-favorites-empty"></use>
  420 + </svg>
  421 + <svg width="18" height="18">
  422 + <use xlink:href="images/sprite.svg#card-favorites"></use>
  423 + </svg></span><a class="card__label card__label-messenger" href="#">
  424 + <svg width="25" height="25">
  425 + <use xlink:href="images/sprite.svg#card-messenger"></use>
  426 + </svg></a></div>
  427 + </div>
  428 + <div class="card__cnt">
  429 + <div class="card__info">
  430 + <address class="card__line card__line-complex">ЖК “Садовые кварталы”</address>
  431 + <address class="card__line">Коломенская (2 мин., пешком)<span style="background-color: #029B55;"></span></address>
  432 + <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address>
  433 + <div class="card__line">Площадь: <b>8 626 м2</b></div>
  434 + <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div>
  435 + </div>
  436 + <div class="card__price"><span>5 280 000 ₽</span>
  437 + </div><a class="card__btn btn btn--bordered" href="#">Подробнее о продаже</a>
  438 + </div>
  439 + </div>
  440 + <div class="card">
  441 + <div class="card__top"><img src="images/card/card-img-4.jpg" alt="Фото недвижимости" loading="lazy">
  442 + <h3 class="card__title">Витрина</h3>
  443 + <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites">
  444 + <svg width="18" height="18">
  445 + <use xlink:href="images/sprite.svg#card-favorites-empty"></use>
  446 + </svg>
  447 + <svg width="18" height="18">
  448 + <use xlink:href="images/sprite.svg#card-favorites"></use>
  449 + </svg></span><a class="card__label card__label-messenger" href="#">
  450 + <svg width="25" height="25">
  451 + <use xlink:href="images/sprite.svg#card-messenger"></use>
  452 + </svg></a></div>
  453 + </div>
  454 + <div class="card__cnt">
  455 + <div class="card__info">
  456 + <address class="card__line card__line-complex">ЖК “Нахимовский проспект, 46”</address>
  457 + <address class="card__line">Парк Победы (5 мин., пешком)<span style="background-color: #222964;"></span></address>
  458 + <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address>
  459 + <div class="card__line">Площадь: <b>6 856 м2</b></div>
  460 + <div class="card__line">Цена за м<sup>2</sup>: <b>25 256 ₽</b></div>
  461 + </div>
  462 + <div class="card__price"><span>2 625 520 ₽</span><span>в месяц</span>
  463 + </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a>
  464 + </div>
  465 + </div>
  466 + <div class="card">
  467 + <div class="card__top"><img src="images/card/card-img-1.jpg" alt="Фото недвижимости" loading="lazy">
  468 + <h3 class="card__title">Салон красоты</h3>
  469 + <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites">
  470 + <svg width="18" height="18">
  471 + <use xlink:href="images/sprite.svg#card-favorites-empty"></use>
  472 + </svg>
  473 + <svg width="18" height="18">
  474 + <use xlink:href="images/sprite.svg#card-favorites"></use>
  475 + </svg></span><a class="card__label card__label-messenger" href="#">
  476 + <svg width="25" height="25">
  477 + <use xlink:href="images/sprite.svg#card-messenger"></use>
  478 + </svg></a></div>
  479 + </div>
  480 + <div class="card__cnt">
  481 + <div class="card__info">
  482 + <address class="card__line card__line-complex">ЖК “Новинки 1”</address>
  483 + <address class="card__line">Фрунзенская (10 мин., пешком)<span style="background-color: #FFC955;"></span></address>
  484 + <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address>
  485 + <div class="card__line">Площадь: <b>556 м2</b></div>
  486 + <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div>
  487 + </div>
  488 + <div class="card__price"><span>1 000 000 ₽</span>
  489 + </div><a class="card__btn btn btn--bordered" href="#">Подробнее</a>
  490 + </div>
  491 + </div>
  492 + <div class="card">
  493 + <div class="card__top"><img src="images/card/card-img-2.jpg" alt="Фото недвижимости" loading="lazy">
  494 + <h3 class="card__title">Барбер-шоп</h3>
  495 + <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites">
  496 + <svg width="18" height="18">
  497 + <use xlink:href="images/sprite.svg#card-favorites-empty"></use>
  498 + </svg>
  499 + <svg width="18" height="18">
  500 + <use xlink:href="images/sprite.svg#card-favorites"></use>
  501 + </svg></span><a class="card__label card__label-messenger" href="#">
  502 + <svg width="25" height="25">
  503 + <use xlink:href="images/sprite.svg#card-messenger"></use>
  504 + </svg></a></div>
  505 + </div>
  506 + <div class="card__cnt">
  507 + <div class="card__info">
  508 + <address class="card__line card__line-complex">ЖК “Новоарбатский”</address>
  509 + <address class="card__line">Арбатская (8 мин., пешком)<span style="background-color: #0000A0;"></span></address>
  510 + <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address>
  511 + <div class="card__line">Площадь: <b>6 556 м2</b></div>
  512 + <div class="card__line">Цена за м<sup>2</sup>: <b>5 225 256 ₽</b></div>
  513 + </div>
  514 + <div class="card__price"><span>15 520 900 ₽</span><span>в месяц</span>
  515 + </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a>
  516 + </div>
  517 + </div>
  518 + <div class="card">
  519 + <div class="card__top"><img src="images/card/card-img-3.jpg" alt="Фото недвижимости" loading="lazy">
  520 + <h3 class="card__title">Аптека</h3>
  521 + <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites">
  522 + <svg width="18" height="18">
  523 + <use xlink:href="images/sprite.svg#card-favorites-empty"></use>
  524 + </svg>
  525 + <svg width="18" height="18">
  526 + <use xlink:href="images/sprite.svg#card-favorites"></use>
  527 + </svg></span><a class="card__label card__label-messenger" href="#">
  528 + <svg width="25" height="25">
  529 + <use xlink:href="images/sprite.svg#card-messenger"></use>
  530 + </svg></a></div>
  531 + </div>
  532 + <div class="card__cnt">
  533 + <div class="card__info">
  534 + <address class="card__line card__line-complex">ЖК “Садовые кварталы”</address>
  535 + <address class="card__line">Коломенская (2 мин., пешком)<span style="background-color: #029B55;"></span></address>
  536 + <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address>
  537 + <div class="card__line">Площадь: <b>8 626 м2</b></div>
  538 + <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div>
  539 + </div>
  540 + <div class="card__price"><span>5 280 000 ₽</span>
  541 + </div><a class="card__btn btn btn--bordered" href="#">Подробнее о продаже</a>
  542 + </div>
  543 + </div>
  544 + <div class="card">
  545 + <div class="card__top"><img src="images/card/card-img-4.jpg" alt="Фото недвижимости" loading="lazy">
  546 + <h3 class="card__title">Витрина</h3>
  547 + <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites">
  548 + <svg width="18" height="18">
  549 + <use xlink:href="images/sprite.svg#card-favorites-empty"></use>
  550 + </svg>
  551 + <svg width="18" height="18">
  552 + <use xlink:href="images/sprite.svg#card-favorites"></use>
  553 + </svg></span><a class="card__label card__label-messenger" href="#">
  554 + <svg width="25" height="25">
  555 + <use xlink:href="images/sprite.svg#card-messenger"></use>
  556 + </svg></a></div>
  557 + </div>
  558 + <div class="card__cnt">
  559 + <div class="card__info">
  560 + <address class="card__line card__line-complex">ЖК “Нахимовский проспект, 46”</address>
  561 + <address class="card__line">Парк Победы (5 мин., пешком)<span style="background-color: #222964;"></span></address>
  562 + <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address>
  563 + <div class="card__line">Площадь: <b>6 856 м2</b></div>
  564 + <div class="card__line">Цена за м<sup>2</sup>: <b>25 256 ₽</b></div>
  565 + </div>
  566 + <div class="card__price"><span>2 625 520 ₽</span><span>в месяц</span>
  567 + </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a>
  568 + </div>
  569 + </div>-->
  570 + </div>
  571 + <div class="pagination">
  572 + <div class="pagination__inner"><a class="pagination__btn pagination__btn-prev disabled" href="#">
  573 + <svg width="10" height="17">
  574 + <use xlink:href="images/sprite.svg#slider-arrow"></use>
  575 + </svg></a>
  576 + <ul class="pagination__list">
  577 + <li class="pagination__item"><a class="pagination__link active" href="#">1</a></li>
  578 + <li class="pagination__item"><a class="pagination__link" href="#">2</a></li>
  579 + <li class="pagination__item"><a class="pagination__link" href="#">3</a></li>
  580 + <li class="pagination__item"><a class="pagination__link more" href="#">...</a></li>
  581 + <li class="pagination__item"><a class="pagination__link" href="#">8</a></li>
  582 + </ul><a class="pagination__btn pagination__btn-next" href="#">
  583 + <svg width="10" height="17">
  584 + <use xlink:href="images/sprite.svg#slider-arrow"></use>
  585 + </svg></a>
  586 + </div>
  587 + </div>
  588 + </div>
  589 + </section>
  590 +@endsection
  591 +
  592 +@section('form_feedback')
  593 + <!-- Форма обратной связи -->
  594 + @include('form.form_feedback')
  595 +@endsection
resources/views/complex.blade.php
... ... @@ -219,7 +219,7 @@
219 219 </form>
220 220 </div>
221 221 </div>
222   - <div id="ajax_block" class="complex__sliders">
  222 + <div class="complex__sliders">
223 223 <section class="slider">
224 224 <div class="container">
225 225 <div class="slider__wrap">
resources/views/part/filter/catalog.blade.php
... ... @@ -5,7 +5,7 @@
5 5 <div class="hero__inner">
6 6 <div class="breadcrumbs">
7 7 <ul class="breadcrumbs__list">
8   - <li class="breadcrumbs__item"><a class="breadcrumbs__link" href="#">Главная</a></li>
  8 + <li class="breadcrumbs__item"><a class="breadcrumbs__link" href="{{ route('index') }}">Главная</a></li>
9 9 <li class="breadcrumbs__item"><span class="breadcrumbs__link">Каталог</span></li>
10 10 </ul>
11 11 </div>
... ... @@ -14,12 +14,15 @@
14 14 <p class="hero__descr">В Москве, Новой Москве и Подмосковье</p>
15 15 </div>
16 16 <div class="hero__bottom">
17   - <div class="hero__links"><a class="hero__link" href="#">Аренда торговых помещениий</a><a class="hero__link" href="#">Продажа торговых помещений</a><a class="hero__link" href="#">Арендый бизнес</a></div>
18   - <form class="hero-search">
  17 + <div class="hero__links">
  18 + <a class="hero__link" href="{{ route('category', ['cat'=>'arenda']) }}">Аренда торговых помещениий</a>
  19 + <a class="hero__link" href="{{ route('category', ['cat'=>'sale']) }}">Продажа торговых помещений</a>
  20 + <a class="hero__link" href="{{ route('category', ['cat'=>'bussiness']) }}">Арендый бизнес</a></div>
  21 + <form class="hero-search" action="{{ route('catalog') }}" method="GET">
19 22 <div class="hero-search__control">
20 23 <div class="hero-filter hero-filter--modified1 js_hero_filter">
21   - <input class="js_hero_filter_input" type="hidden">
22   - <div class="hero-filter__current js_hero_filter_current">Все объекты</div>
  24 + <input class="js_hero_filter_input" id="area" name="area" type="hidden">
  25 + <div class="hero-filter__current js_hero_filter_current" id="area_name" name="area_name">Все объекты</div>
23 26 <div class="hero-filter__dropdown js_hero_filter_dropdown">
24 27 <ul class="hero-filter__list">
25 28 <li class="hero-filter__item" data-val="0">Все объекты</li>
... ... @@ -32,8 +35,8 @@
32 35 </div>
33 36 </div>
34 37 <div class="hero-filter hero-filter--modified2 js_hero_filter">
35   - <input class="js_hero_filter_input" type="hidden">
36   - <div class="hero-filter__current js_hero_filter_current">Тип недвижимости</div>
  38 + <input class="js_hero_filter_input" id="type_area" name="type_area" type="hidden">
  39 + <div class="hero-filter__current js_hero_filter_current" id="type_area_name" name="type_area_name">Тип недвижимости</div>
37 40 <div class="hero-filter__dropdown js_hero_filter_dropdown">
38 41 <ul class="hero-filter__list">
39 42 <li class="hero-filter__item" data-val="0">Выбрать все</li>
... ... @@ -46,8 +49,8 @@
46 49 </div>
47 50 </div>
48 51 <div class="hero-filter hero-filter--modified3 js_hero_filter">
49   - <input class="js_hero_filter_input" type="hidden">
50   - <div class="hero-filter__current js_hero_filter_current">Формат недвижимости</div>
  52 + <input class="js_hero_filter_input" id="format_area" name="format_area" type="hidden">
  53 + <div class="hero-filter__current js_hero_filter_current" id="format_area_name" name="format_area_name">Формат недвижимости</div>
51 54 <div class="hero-filter__dropdown js_hero_filter_dropdown">
52 55 <ul class="hero-filter__list">
53 56 <li class="hero-filter__item" data-val="0">Выбрать все</li>
... ... @@ -64,10 +67,10 @@
64 67 <div class="hero-filter__dropdown js_hero_filter_dropdown">
65 68 <div class="hero-filter__fields">
66 69 <label class="hero-filter__field"><span>От</span>
67   - <input class="js_hero_filter_field js_hero_filter_from" type="text" data-min="50" placeholder="50">
  70 + <input class="js_hero_filter_field js_hero_filter_from" id="area_m2_min" name="area_m2_min" type="text" data-min="3" placeholder="3" value="<?if (isset($_GET['area_m2_min'])) { echo($_GET['area_m2_min']); }?>">
68 71 </label>
69 72 <label class="hero-filter__field"><span>До</span>
70   - <input class="js_hero_filter_field js_hero_filter_to" type="text" data-max="125000" placeholder="125 000">
  73 + <input class="js_hero_filter_field js_hero_filter_to" id="area_m2_max" name="area_m2_max" type="text" data-max="125000" placeholder="125 000" value="<?if (isset($_GET['area_m2_max'])) { echo($_GET['area_m2_max']);}?>">
71 74 </label>
72 75 </div>
73 76 <button class="hero-filter__reset js_hero_filter_reset" type="button">Очистить</button>
... ... @@ -78,10 +81,10 @@
78 81 <div class="hero-filter__dropdown js_hero_filter_dropdown">
79 82 <div class="hero-filter__fields">
80 83 <label class="hero-filter__field"><span>От</span>
81   - <input class="js_hero_filter_field js_hero_filter_from" type="text" data-min="50" placeholder="50">
  84 + <input class="js_hero_filter_field js_hero_filter_from" id="price_min" name="price_min" type="text" data-min="50" placeholder="50" value="<?if (isset($_GET['price_min'])) { echo ($_GET['price_min']); } ?>">
82 85 </label>
83 86 <label class="hero-filter__field"><span>До</span>
84   - <input class="js_hero_filter_field js_hero_filter_to" type="text" data-max="125000" placeholder="125 000">
  87 + <input class="js_hero_filter_field js_hero_filter_to" id="price_max" name="price_max" type="text" data-max="125000" placeholder="125 000" value="<?if (isset($_GET['price_max'])) { echo ($_GET['price_max']); }?>">
85 88 </label>
86 89 </div>
87 90 <button class="hero-filter__reset js_hero_filter_reset" type="button">Очистить</button>
... ... @@ -90,16 +93,18 @@
90 93 </div>
91 94 <div class="hero-search__bottom">
92 95 <div class="hero-search__field">
93   - <input type="text" placeholder="Укажите метро, округ, район, улицу">
  96 + <input type="text" id="address" name="address" placeholder="Укажите метро, округ, район, улицу" value="<?if (isset($_GET['address'])) { echo ($_GET['address']); }?>">
94 97 <button>
95 98 <svg width="20" height="20">
96   - <use xlink:href="images/sprite.svg#hero-search"> </use>
  99 + <use xlink:href="{{ asset('images/sprite.svg#hero-search') }}"> </use>
97 100 </svg>
98 101 </button>
99 102 </div>
100 103 <div class="hero-search__buttons">
101 104 <a class="hero-search__btn btn btn--white js_hero_search_btn" href="{{ route('maps') }}">Показать на карте</a>
102   - <button class="hero-search__btn btn btn--main js_hero_search_btn">Поиск</button>
  105 + <button type="submit" class="hero-search__btn btn btn--main js_hero_search_btn">
  106 + {{ session()->get('message') }}
  107 + </button>
103 108 </div>
104 109 </div>
105 110 </form>
resources/views/part/filter/category.blade.php
... ... @@ -0,0 +1,117 @@
  1 +<section class="hero hero--modified1">
  2 + <div class="container">
  3 + <div class="hero__bg" style="background-image:url({{ asset('images/category-bg.jpg') }})"></div>
  4 + <div class="hero__wrap">
  5 + <div class="hero__inner">
  6 + <div class="breadcrumbs">
  7 + <ul class="breadcrumbs__list">
  8 + <li class="breadcrumbs__item"><a class="breadcrumbs__link" href="{{ route('index') }}">Главная</a></li>
  9 + <li class="breadcrumbs__item"><a class="breadcrumbs__link" href="{{ route('catalog') }}">Каталог</a></li>
  10 + <li class="breadcrumbs__item"><span class="breadcrumbs__link">{{ $title }}</span></li>
  11 + </ul>
  12 + </div>
  13 + <div class="hero__cnt">
  14 + <h1 class="hero__title title-main">{{ $title }}</h1>
  15 + <p class="hero__descr">В Москве, Новой Москве и Подмосковье</p>
  16 + </div>
  17 + <div class="hero__bottom">
  18 + <div class="hero__links">
  19 + <a class="hero__link {{ (url()->current() == route('category', ['cat'=>'arenda']))? 'active' : null }}" href="{{ route('category', ['cat'=>'arenda']) }}">Аренда торговых помещениий</a>
  20 + <a class="hero__link {{ (url()->current() == route('category', ['cat'=>'sale']))? 'active' : null }}" href="{{ route('category', ['cat'=>'sale']) }}">Продажа торговых помещений</a>
  21 + <a class="hero__link {{ (url()->current() == route('category', ['cat'=>'bussiness']))? 'active' : null }}" href="{{ route('category', ['cat'=>'bussiness']) }}">Арендый бизнес</a></div>
  22 + </div>
  23 + <form class="hero-search" action="{{ url()->current() }}" method="GET">
  24 + <div class="hero-search__control">
  25 + <div class="hero-filter hero-filter--modified1 js_hero_filter">
  26 + <input class="js_hero_filter_input" id="area" name="area" type="hidden">
  27 + <div class="hero-filter__current js_hero_filter_current" id="area_name" name="area_name">Все объекты</div>
  28 + <div class="hero-filter__dropdown js_hero_filter_dropdown">
  29 + <ul class="hero-filter__list">
  30 + <li class="hero-filter__item" data-val="0">Все объекты</li>
  31 + @if ($items_area->count())
  32 + @foreach($items_area as $item_area)
  33 + <li class="hero-filter__item" data-val="{{ $item_area->id }}">{{ $item_area->name_area }}</li>
  34 + @endforeach
  35 + @endif
  36 + </ul>
  37 + </div>
  38 + </div>
  39 + <div class="hero-filter hero-filter--modified2 js_hero_filter">
  40 + <input class="js_hero_filter_input" id="type_area" name="type_area" type="hidden">
  41 + <div class="hero-filter__current js_hero_filter_current" id="type_area_name" name="type_area_name">Тип недвижимости</div>
  42 + <div class="hero-filter__dropdown js_hero_filter_dropdown">
  43 + <ul class="hero-filter__list">
  44 + <li class="hero-filter__item" data-val="0">Выбрать все</li>
  45 + @if ($items_type_area->count())
  46 + @foreach($items_type_area as $item_type_area)
  47 + <li class="hero-filter__item" data-val="{{ $item_type_area->id }}">{{ $item_type_area->name_type }}</li>
  48 + @endforeach
  49 + @endif
  50 + </ul>
  51 + </div>
  52 + </div>
  53 + <div class="hero-filter hero-filter--modified3 js_hero_filter">
  54 + <input class="js_hero_filter_input" id="format_area" name="format_area" type="hidden">
  55 + <div class="hero-filter__current js_hero_filter_current" id="format_area_name" name="format_area_name">Формат недвижимости</div>
  56 + <div class="hero-filter__dropdown js_hero_filter_dropdown">
  57 + <ul class="hero-filter__list">
  58 + <li class="hero-filter__item" data-val="0">Выбрать все</li>
  59 + @if ($items_format_area->count())
  60 + @foreach($items_format_area as $item_format_area)
  61 + <li class="hero-filter__item" data-val="{{ $item_format_area->id }}">{{ $item_format_area->name_format }}</li>
  62 + @endforeach
  63 + @endif
  64 + </ul>
  65 + </div>
  66 + </div>
  67 + <div class="hero-filter hero-filter--modified4 js_hero_filter">
  68 + <div class="hero-filter__current js_hero_filter_current">Площадь, м<sup>2</sup></div>
  69 + <div class="hero-filter__dropdown js_hero_filter_dropdown">
  70 + <div class="hero-filter__fields">
  71 + <label class="hero-filter__field"><span>От</span>
  72 + <input class="js_hero_filter_field js_hero_filter_from" id="area_m2_min" name="area_m2_min" type="text" data-min="3" placeholder="3" value="<?if (isset($_GET['area_m2_min'])) { echo($_GET['area_m2_min']); }?>">
  73 + </label>
  74 + <label class="hero-filter__field"><span>До</span>
  75 + <input class="js_hero_filter_field js_hero_filter_to" id="area_m2_max" name="area_m2_max" type="text" data-max="125000" placeholder="125 000" value="<?if (isset($_GET['area_m2_max'])) { echo($_GET['area_m2_max']);}?>">
  76 + </label>
  77 + </div>
  78 + <button class="hero-filter__reset js_hero_filter_reset" type="button">Очистить</button>
  79 + </div>
  80 + </div>
  81 + <div class="hero-filter hero-filter--modified5 js_hero_filter">
  82 + <div class="hero-filter__current js_hero_filter_current">Стоимость, ₽</div>
  83 + <div class="hero-filter__dropdown js_hero_filter_dropdown">
  84 + <div class="hero-filter__fields">
  85 + <label class="hero-filter__field"><span>От</span>
  86 + <input class="js_hero_filter_field js_hero_filter_from" id="price_min" name="price_min" type="text" data-min="50" placeholder="50" value="<?if (isset($_GET['price_min'])) { echo ($_GET['price_min']); } ?>">
  87 + </label>
  88 + <label class="hero-filter__field"><span>До</span>
  89 + <input class="js_hero_filter_field js_hero_filter_to" id="price_max" name="price_max" type="text" data-max="125000" placeholder="125 000" value="<?if (isset($_GET['price_max'])) { echo ($_GET['price_max']); }?>">
  90 + </label>
  91 + </div>
  92 + <button class="hero-filter__reset js_hero_filter_reset" type="button">Очистить</button>
  93 + </div>
  94 + </div>
  95 + </div>
  96 + <div class="hero-search__bottom">
  97 + <div class="hero-search__field">
  98 + <input type="text" id="address" name="address" placeholder="Укажите метро, округ, район, улицу" value="<?if (isset($_GET['address'])) { echo ($_GET['address']); }?>">
  99 + <button>
  100 + <svg width="20" height="20">
  101 + <use xlink:href="{{ asset('images/sprite.svg#hero-search') }}"> </use>
  102 + </svg>
  103 + </button>
  104 + </div>
  105 + <div class="hero-search__buttons">
  106 + <a class="hero-search__btn btn btn--white js_hero_search_btn" href="{{ route('maps') }}">Показать на карте</a>
  107 + <button type="submit" class="hero-search__btn btn btn--main js_hero_search_btn">
  108 + Искать
  109 + </button>
  110 + </div>
  111 + </div>
  112 + </form>
  113 + </div>
  114 + </div>
  115 + </div>
  116 + </div>
  117 +</section>
resources/views/part/filter/main.blade.php
... ... @@ -8,26 +8,29 @@
8 8 <p class="hero__descr">В Москве, Новой Москве и Подмосковье</p>
9 9 </div>
10 10 <div class="hero__bottom">
11   - <div class="hero__links"><a class="hero__link" href="#">Аренда торговых помещениий</a><a class="hero__link" href="#">Продажа торговых помещений</a><a class="hero__link" href="#">Арендый бизнес</a></div>
12   - <form class="hero-search">
  11 + <div class="hero__links">
  12 + <a class="hero__link" href="{{ route('category', ['cat'=>'arenda']) }}">Аренда торговых помещениий</a>
  13 + <a class="hero__link" href="{{ route('category', ['cat'=>'sale']) }}">Продажа торговых помещений</a>
  14 + <a class="hero__link" href="{{ route('category', ['cat'=>'bussiness']) }}">Арендый бизнес</a></div>
  15 + <form class="hero-search" action="{{ route('catalog') }}" method="GET">
13 16 <div class="hero-search__control">
14 17 <div class="hero-filter hero-filter--modified1 js_hero_filter">
15   - <input class="js_hero_filter_input" type="hidden">
16   - <div class="hero-filter__current js_hero_filter_current">Все объекты</div>
  18 + <input class="js_hero_filter_input" id="area" name="area" type="hidden">
  19 + <div class="hero-filter__current js_hero_filter_current" id="area_name" name="area_name">Все объекты</div>
17 20 <div class="hero-filter__dropdown js_hero_filter_dropdown">
18 21 <ul class="hero-filter__list">
19 22 <li class="hero-filter__item" data-val="0">Все объекты</li>
20 23 @if ($items_area->count())
21 24 @foreach($items_area as $item_area)
22   - <li class="hero-filter__item" data-val="{{ $item_area->id }}">{{ $item_area->name_area }}</li>
  25 + <li class="hero-filter__item" data-val="{{ $item_area->id }}">{{ $item_area->name_area }}</li>
23 26 @endforeach
24 27 @endif
25 28 </ul>
26 29 </div>
27 30 </div>
28 31 <div class="hero-filter hero-filter--modified2 js_hero_filter">
29   - <input class="js_hero_filter_input" type="hidden">
30   - <div class="hero-filter__current js_hero_filter_current">Тип недвижимости</div>
  32 + <input class="js_hero_filter_input" id="type_area" name="type_area" type="hidden">
  33 + <div class="hero-filter__current js_hero_filter_current" id="type_area_name" name="type_area_name">Тип недвижимости</div>
31 34 <div class="hero-filter__dropdown js_hero_filter_dropdown">
32 35 <ul class="hero-filter__list">
33 36 <li class="hero-filter__item" data-val="0">Выбрать все</li>
... ... @@ -40,8 +43,8 @@
40 43 </div>
41 44 </div>
42 45 <div class="hero-filter hero-filter--modified3 js_hero_filter">
43   - <input class="js_hero_filter_input" type="hidden">
44   - <div class="hero-filter__current js_hero_filter_current">Формат недвижимости</div>
  46 + <input class="js_hero_filter_input" id="format_area" name="format_area" type="hidden">
  47 + <div class="hero-filter__current js_hero_filter_current" id="format_area_name" name="format_area_name">Формат недвижимости</div>
45 48 <div class="hero-filter__dropdown js_hero_filter_dropdown">
46 49 <ul class="hero-filter__list">
47 50 <li class="hero-filter__item" data-val="0">Выбрать все</li>
... ... @@ -58,10 +61,10 @@
58 61 <div class="hero-filter__dropdown js_hero_filter_dropdown">
59 62 <div class="hero-filter__fields">
60 63 <label class="hero-filter__field"><span>От</span>
61   - <input class="js_hero_filter_field js_hero_filter_from" type="text" data-min="50" placeholder="50">
  64 + <input class="js_hero_filter_field js_hero_filter_from" id="area_m2_min" name="area_m2_min" type="text" data-min="3" placeholder="3" value="<?if (isset($_GET['area_m2_min'])) { echo($_GET['area_m2_min']); }?>">
62 65 </label>
63 66 <label class="hero-filter__field"><span>До</span>
64   - <input class="js_hero_filter_field js_hero_filter_to" type="text" data-max="125000" placeholder="125 000">
  67 + <input class="js_hero_filter_field js_hero_filter_to" id="area_m2_max" name="area_m2_max" type="text" data-max="125000" placeholder="125 000" value="<?if (isset($_GET['area_m2_max'])) { echo($_GET['area_m2_max']);}?>">
65 68 </label>
66 69 </div>
67 70 <button class="hero-filter__reset js_hero_filter_reset" type="button">Очистить</button>
... ... @@ -72,10 +75,10 @@
72 75 <div class="hero-filter__dropdown js_hero_filter_dropdown">
73 76 <div class="hero-filter__fields">
74 77 <label class="hero-filter__field"><span>От</span>
75   - <input class="js_hero_filter_field js_hero_filter_from" type="text" data-min="50" placeholder="50">
  78 + <input class="js_hero_filter_field js_hero_filter_from" id="price_min" name="price_min" type="text" data-min="50" placeholder="50" value="<?if (isset($_GET['price_min'])) { echo ($_GET['price_min']); } ?>">
76 79 </label>
77 80 <label class="hero-filter__field"><span>До</span>
78   - <input class="js_hero_filter_field js_hero_filter_to" type="text" data-max="125000" placeholder="125 000">
  81 + <input class="js_hero_filter_field js_hero_filter_to" id="price_max" name="price_max" type="text" data-max="125000" placeholder="125 000" value="<?if (isset($_GET['price_max'])) { echo ($_GET['price_max']); }?>">
79 82 </label>
80 83 </div>
81 84 <button class="hero-filter__reset js_hero_filter_reset" type="button">Очистить</button>
... ... @@ -84,16 +87,18 @@
84 87 </div>
85 88 <div class="hero-search__bottom">
86 89 <div class="hero-search__field">
87   - <input type="text" placeholder="Укажите метро, округ, район, улицу">
  90 + <input type="text" id="address" name="address" placeholder="Укажите метро, округ, район, улицу" value="<?if (isset($_GET['address'])) { echo ($_GET['address']); }?>">
88 91 <button>
89 92 <svg width="20" height="20">
90   - <use xlink:href="images/sprite.svg#hero-search"> </use>
  93 + <use xlink:href="{{ asset('images/sprite.svg#hero-search') }}"> </use>
91 94 </svg>
92 95 </button>
93 96 </div>
94 97 <div class="hero-search__buttons">
95 98 <a class="hero-search__btn btn btn--white js_hero_search_btn" href="{{ route('maps') }}">Показать на карте</a>
96   - <button type="submit" class="hero-search__btn btn btn--main js_hero_search_btn">Поиск</button>
  99 + <button type="submit" class="hero-search__btn btn btn--main js_hero_search_btn">
  100 + Искать<? //session()->get('message')?>
  101 + </button>
97 102 </div>
98 103 </div>
99 104 </form>
... ... @@ -47,3 +47,9 @@ Route::get(&#39;detail-new/{news:id}&#39;, [MainController::class, &#39;DetailNew&#39;])-&gt;name(&#39;
47 47  
48 48 //Страница ЖилойКомплекс
49 49 Route::get('complex/{area:id}', [MainController::class, 'complex'])->name('complex');
  50 +
  51 +// ajax-фильтры каталога
  52 +Route::get('catalog_ajax_filter', [MainController::class, 'catalog_ajax_filter'])->name('catalog_ajax_filter');
  53 +
  54 +//Категория
  55 +Route::get('category/{cat}', [MainController::class, 'Category'])->name('category');