Commit 881f83e63b71a899e2a9cf8748db8a5c712ec754
1 parent
d2e0d4fcb2
Exists in
master
Создание карточки объекта-офиса
Showing 4 changed files with 484 additions and 153 deletions Side-by-side Diff
app/Http/Controllers/MainController.php
... | ... | @@ -2,6 +2,7 @@ |
2 | 2 | |
3 | 3 | namespace App\Http\Controllers; |
4 | 4 | |
5 | +use App\Models\Area; | |
5 | 6 | use App\Models\House; |
6 | 7 | use App\Models\News; |
7 | 8 | use App\Models\Partners; |
... | ... | @@ -45,7 +46,9 @@ class MainController extends Controller |
45 | 46 | * Новости |
46 | 47 | */ |
47 | 48 | public function News() { |
48 | - return view('news'); | |
49 | + //$news = News::orderByDesc('created_at')->limit(1)->paginate(); | |
50 | + $news_ = News::query()->orderByDesc('created_at')->paginate(4); | |
51 | + return view('news', compact('news_')); | |
49 | 52 | } |
50 | 53 | |
51 | 54 | /* |
resources/views/catalogs/paginate.blade.php
... | ... | @@ -0,0 +1,53 @@ |
1 | +@if ($paginator->hasPages()) | |
2 | + <div class="pagination"> | |
3 | + <div class="pagination__inner"> | |
4 | + @if ($paginator->onFirstPage()) | |
5 | + <a class="pagination__btn pagination__btn-prev disabled" href="#"> | |
6 | + <svg width="10" height="17"> | |
7 | + <use xlink:href="{{ asset('images/sprite.svg#slider-arrow')}}"></use> | |
8 | + </svg> | |
9 | + </a> | |
10 | + @else | |
11 | + <a class="pagination__btn pagination__btn-prev" href="{{ $paginator->previousPageUrl() }}"> | |
12 | + <svg width="10" height="17"> | |
13 | + <use xlink:href="{{ asset('images/sprite.svg#slider-arrow')}}"></use> | |
14 | + </svg> | |
15 | + </a> | |
16 | + @endif | |
17 | + <ul class="pagination__list"> | |
18 | + @foreach ($elements as $element) | |
19 | + @if (is_string($element)) | |
20 | + | |
21 | + <li class="disabled pagination__item"><span>{{ $element }}</span></li> | |
22 | + | |
23 | + @endif | |
24 | + @if (is_array($element)) | |
25 | + @foreach ($element as $page => $url) | |
26 | + @if ($page == $paginator->currentPage()) | |
27 | + | |
28 | + <li class="pagination__item"><a class="pagination__link active">{{ $page }}</a></li> | |
29 | + | |
30 | + @else | |
31 | + | |
32 | + <li class="pagination__item"><a class="pagination__link" href="{{ $url }}">{{ $page }}</a></li> | |
33 | + | |
34 | + @endif | |
35 | + @endforeach | |
36 | + @endif | |
37 | + @endforeach | |
38 | + | |
39 | + </ul> | |
40 | + @if ($paginator->hasMorePages()) | |
41 | + <a class="pagination__btn pagination__btn-next" href="{{ $paginator->nextPageUrl() }}"> | |
42 | + <svg width="10" height="17"> | |
43 | + <use xlink:href="{{ asset('images/sprite.svg#slider-arrow')}}"></use> | |
44 | + </svg></a> | |
45 | + @else | |
46 | + <a class="pagination__btn pagination__btn-next disabled" href="#"> | |
47 | + <svg width="10" height="17"> | |
48 | + <use xlink:href="{{ asset('images/sprite.svg#slider-arrow')}}"></use> | |
49 | + </svg></a> | |
50 | + @endif | |
51 | + </div> | |
52 | + </div> | |
53 | +@endif |
resources/views/house/post.blade.php
1 | -<?php | |
1 | +@extends('layout.site', ['title' => 'Избранное RentTorg']) | |
2 | + | |
3 | +@section('content') | |
4 | + <section class="intro" style="background-image:url({{ asset('images/intro-bg-2.jpg') }}"> | |
5 | + <div class="container"> | |
6 | + <div class="intro__wrap"> | |
7 | + <div class="breadcrumbs"> | |
8 | + <ul class="breadcrumbs__list"> | |
9 | + <li class="breadcrumbs__item"><a class="breadcrumbs__link" href="{{ route('index') }}">Главная</a></li> | |
10 | + <li class="breadcrumbs__item"><a class="breadcrumbs__link" href="{{ route('catalog') }}">Каталог</a></li> | |
11 | + <li class="breadcrumbs__item"><a class="breadcrumbs__link" href="#">Каталок недвижимости</a></li> | |
12 | + <li class="breadcrumbs__item"><a class="breadcrumbs__link" href="#">{{ $house->areas->name_area }}</a></li> | |
13 | + <li class="breadcrumbs__item"><span class="breadcrumbs__link">{{ $house->title }}</span></li> | |
14 | + </ul> | |
15 | + </div> | |
16 | + <div class="intro__inner"> | |
17 | + <div class="intro__cnt"> | |
18 | + <h1 class="intro__title title-main">{{ $house->title }}</h1><a class="intro__link-complex" href="#">Перейти на страницу: <span>{{ $house->areas->name_area }}</span></a> | |
19 | + <div class="intro__row"> | |
20 | + <div class="intro__col"> | |
21 | + <ul class="intro__list"> | |
22 | + <li class="intro__item" style="color:{{ $house->color_metro }};"><span>{{ $house->metro }}</span></li> | |
23 | + <li class="intro__item"><span>{{ $house->description_metro }}</span></li> | |
24 | + <li class="intro__item"><span>{{ $house->okrug }}</span></li> | |
25 | + </ul><a class="intro__link-map js_smooth_link" href="#offer-map">Посмотреть на карте</a> | |
26 | + </div> | |
27 | + <div class="intro__col"> | |
28 | + <div class="intro__group"><span>Адрес</span><span>{{ $house->address }}</span></div> | |
29 | + <div class="intro__group"><span>Артикул помещения</span><span>{{ $house->articul_area }}</span></div><a class="intro__link-map js_smooth_link" href="#offer-map">Посмотреть на карте</a> | |
30 | + </div> | |
31 | + </div> | |
32 | + <div class="intro__bottom"> | |
33 | + <div class="intro__views">16 человек интересовались этим объектом за последние 24 ч</div><a class="intro__link-phone btn btn--main" href="tel:+70001234567"><span>Позвонить | |
34 | + <svg width="22" height="22"> | |
35 | + <use xlink:href="images/sprite.svg#intro-link-phone"></use> | |
36 | + </svg></span></a> | |
37 | + </div> | |
38 | + </div> | |
39 | + <div class="intro__swiper swiper"> | |
40 | + <div class="swiper-wrapper"> | |
41 | + <div class="swiper-slide"> | |
42 | + <div class="intro-item"> | |
43 | + <div class="intro-item__img"><img src="{{ asset('images/intro-item-img-1.jpg') }}" alt=""></div> | |
44 | + <a class="intro-item__btn js_intro_item_btn" href="{{asset('images/intro-item-img-1.jpg')}}" data-caption="Фото 1"> | |
45 | + <svg width="16" height="16"> | |
46 | + <use xlink:href="{{ asset('images/sprite.svg#intro-item-btn') }}"></use> | |
47 | + </svg></a> | |
48 | + </div> | |
49 | + </div> | |
50 | + @foreach($house->fotohouse as $foto) | |
51 | + <div class="swiper-slide"> | |
52 | + <div class="intro-item"> | |
53 | + <div class="intro-item__img"><img src="{{ asset($foto->foto) }}" alt=""></div> | |
54 | + <a class="intro-item__btn js_intro_item_btn" href="{{ asset($foto->foto) }}" data-caption="Фото {{ $foto->id }}"> | |
55 | + <svg width="16" height="16"> | |
56 | + <use xlink:href="{{ asset('images/sprite.svg#intro-item-btn') }}"></use> | |
57 | + </svg></a> | |
58 | + </div> | |
59 | + </div> | |
60 | + @endforeach | |
61 | + | |
62 | + </div> | |
63 | + <div class="swiper-pagination"></div> | |
64 | + <div class="swiper-button-prev"> | |
65 | + <svg width="10" height="17"> | |
66 | + <use xlink:href="{{ asset('images/sprite.svg#slider-arrow') }}"></use> | |
67 | + </svg> | |
68 | + </div> | |
69 | + <div class="swiper-button-next"> | |
70 | + <svg width="10" height="17"> | |
71 | + <use xlink:href="{{ asset('images/sprite.svg#slider-arrow') }}"></use> | |
72 | + </svg> | |
73 | + </div> | |
74 | + </div> | |
75 | + </div> | |
76 | + </div> | |
77 | + </div> | |
78 | + </section> | |
79 | + <section class="offer"> | |
80 | + <div class="offer__wrap"> | |
81 | + <div class="container"> | |
82 | + <div class="offer__inner"> | |
83 | + <div class="offer-side"> | |
84 | + <div class="offer-side__tabs"> | |
85 | + <button class="offer-side__tab js_offer_side_tab active" type="button" data-tab="1">План объекта</button> | |
86 | + <button class="offer-side__tab js_offer_side_tab" type="button" data-tab="2">План этажа</button> | |
87 | + </div> | |
88 | + <div class="offer-side__cnt"> | |
89 | + <div class="offer-side-item js_offer_side_item active" data-item="1"> | |
90 | + <div class="offer-side-item__img"><img src="{{ asset('images/offer-side-item-img-1.jpg') }}" alt="План объекта"></div> | |
91 | + <a class="offer-side-item__btn js_offer_side_item_btn" href="#" data-btn="offer-side-popup"> | |
92 | + <svg width="16" height="16"> | |
93 | + <use xlink:href="{{ asset('images/sprite.svg#intro-item-btn') }}"></use> | |
94 | + </svg></a> | |
95 | + </div> | |
96 | + <div class="offer-side-item js_offer_side_item" data-item="2"> | |
97 | + <div class="offer-side-item__img"><img src="{{ asset('images/offer-side-item-img-2.jpg') }}" alt="План этажа"></div><a class="offer-side-item__btn js_offer_side_item_btn" href="#" data-btn="offer-side-popup"> | |
98 | + <svg width="16" height="16"> | |
99 | + <use xlink:href="{{ asset('images/sprite.svg#intro-item-btn') }}"></use> | |
100 | + </svg></a> | |
101 | + </div> | |
102 | + </div> | |
103 | + <div class="offer__lines"> | |
104 | + <div class="offer__line"><span>Аренда в год за м2</span><span>{{ $house->rent_in_year }} ₽</span></div> | |
105 | + <div class="offer__line"><span>Аренда в месяц</span><span>{{ $house->rent_in_month }} ₽</span></div> | |
106 | + <div class="offer__line"><span>Схема сделки</span><span>{{ $house->scheme_deal }}</span></div> | |
107 | + </div> | |
108 | + <div class="offer-side__buttons"><a class="offer-side__btn btn btn--main" href="#" data-btn="viewing"><span>Записаться на просмотр | |
109 | + <svg width="20" height="20"> | |
110 | + <use xlink:href="{{ asset('images/sprite.svg#offer-side-btn-viewing') }}"></use> | |
111 | + </svg></span></a><a class="offer-side__btn btn btn--main" href="#" data-btn="sending"><span>Отправить по Email | |
112 | + <svg width="22" height="22"> | |
113 | + <use xlink:href="{{ asset('images/sprite.svg#offer-side-btn-email') }}"></use> | |
114 | + </svg></span></a><a class="offer-side__btn btn btn--main" href="tel:+70001234567"><span>Позвонить | |
115 | + <svg width="22" height="22"> | |
116 | + <use xlink:href="{{ asset('images/sprite.svg#intro-link-phone') }}"></use> | |
117 | + </svg></span></a></div><a class="offer-side__download" href="#" download><span>Скачать презентацию | |
118 | + <svg width="60" height="60"> | |
119 | + <use xlink:href="{{ asset('images/sprite.svg#offer-side-download') }}"></use> | |
120 | + </svg></span></a> | |
121 | + </div> | |
122 | + <div class="offer__cnt"> | |
123 | + <h2 class="offer__title">{{ $house->title }} {{ $house->address }}</h2> | |
124 | + <div class="offer__lines"> | |
125 | + <div class="offer__line"><span>Площадь, м2</span><span>{{ $house->area }}</span></div> | |
126 | + <div class="offer__line"><span>Адрес</span><span>{{ $house->address }}</span></div> | |
127 | + <div class="offer__line"><span>Тип объекта</span><span>{{ $house->typearea->name_type }}</span></div> | |
128 | + <div class="offer__line"><span>Формат</span><span>{{ $house->format_house }}</span></div> | |
129 | + <div class="offer__line"><span>Этаж</span><span>{{ $house->floor }} эт.</span></div> | |
130 | + <div class="offer__line"><span>Этажность здания</span><span>{{ $house->floor_bild }} эт.</span></div> | |
131 | + <div class="offer__line"><span>Арендаторы</span><span>{{ $house->renter }}</span></div> | |
132 | + <div class="offer__line"><span>Состояние объекта</span><span>{{ $house->sos_obj }}</span></div> | |
133 | + <div class="offer__line"><span>Тип планировки</span><span>{{ $house->type_plan }}</span></div> | |
134 | + <div class="offer__line"><span>Наличие зоны разгрузки</span><span><? if($house->uploading_area == 1) {?>Есть<?} else {?>Нет<?}?></span></div> | |
135 | + <div class="offer__line"><span>Электрическая мощность</span><span>{{ $house->electric_power }} кВт</span></div> | |
136 | + <div class="offer__line"><span>Проездное</span><span><? if($house->travel_card == 1) {?>Есть<?} else {?>Нет<?}?></span></div> | |
137 | + <div class="offer__line"><span>Проходное место</span><span><? if($house->passing_place == 1) {?>Есть<?} else {?>Нет<?}?></span></div> | |
138 | + <div class="offer__line"><span>Отдельный вход</span><span><? if($house->separate_input == 1) {?>Есть<?} else {?>Нет<?}?></span></div> | |
139 | + <div class="offer__line"><span>Витрины</span><span><? if($house->shop_windows == 1) {?>Есть<?} else {?>Нет<?}?></span></div> | |
140 | + <div class="offer__line"><span>Место для рекламы</span><span><? if($house->place_advertising == 1) {?>Есть<?} else {?>Нет<?}?></span></div> | |
141 | + <div class="offer__line"><span>Окна</span><span>{{ $house->windows }}</span></div> | |
142 | + <div class="offer__line"><span>Вытяжка</span><span><? if($house->hood == 1) {?>Есть<?} else {?>Нет<?}?></span></div> | |
143 | + <div class="offer__line"><span>Центральное отопление</span><span><? if($house->central_hearing == 1) {?>Есть<?} else {?>Нет<?}?></span></div> | |
144 | + <div class="offer__line"><span>Возможные часы работы</span><span>{{ $house->opening_hours }}</span></div> | |
145 | + <div class="offer__line"><span>Отделка</span><span><? if($house->finishing == 1) {?>Есть<?} else {?>Нет<?}?></span></div> | |
146 | + <div class="offer__line"><span>Парковка</span><span>{{ $house->parking }} мест</span></div> | |
147 | + </div> | |
148 | + <p class="offer__additional">Уникальное расположение у входа/выхода из станции метро «Фрунзенская». Сверхинтенсивные пешеходные потоки, более 3 000 человек/час.</p> | |
149 | + </div> | |
150 | + </div> | |
151 | + <div class="offer-descr"> | |
152 | + <h3 class="offer-descr__caption">Описание объекта</h3> | |
153 | + <p class="offer-descr__text">Аренда торгового помещения на первой линии Краснопрудной улицы! Интенсивный пешеходный и автомобильный трафик! Шаговая доступность от метро Красносельская (2 минуты). Густонаселенный жилой массив, насыщенное деловое окружение. Формирующее стабильный интенсивный трафик Ваших потенциальных посетителей и покупателей! Развитая инфраструктура района, метро в нескольких минута пешком, автобусные остановки, городская стихийная парковка. Сетевое торговое окружение: Перекрёсток, Мираторг, Макдональдс, KFC и многие другие представители ритейла привлекающие в данную локацию местное население! Общая площадь: 131,2 кв. м. ( все в первом этаже). Зальная планировка. Все необходимые коммуникации. Электричество 35 Квт.</p> | |
154 | + </div> | |
155 | + </div> | |
156 | + </div> | |
157 | + <div class="offer__map map" id="offer-map"></div> | |
158 | + </section> | |
159 | + <section class="slider"> | |
160 | + <div class="container"> | |
161 | + <div class="slider__wrap"> | |
162 | + <div class="slider__top"> | |
163 | + <h2 class="slider__title title">Похожие помещения</h2> | |
164 | + <div class="slider__control"> | |
165 | + <div class="swiper-button-prev"> | |
166 | + <svg width="10" height="17"> | |
167 | + <use xlink:href="images/sprite.svg#slider-arrow"></use> | |
168 | + </svg> | |
169 | + </div> | |
170 | + <div class="swiper-button-next"> | |
171 | + <svg width="10" height="17"> | |
172 | + <use xlink:href="images/sprite.svg#slider-arrow"></use> | |
173 | + </svg> | |
174 | + </div> | |
175 | + </div> | |
176 | + </div> | |
177 | + <div class="slider__swiper swiper"> | |
178 | + <div class="swiper-wrapper"> | |
179 | + <div class="swiper-slide"> | |
180 | + <div class="card"> | |
181 | + <div class="card__top"><img src="images/card/card-img-1.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">ЖК “Новинки 1”</address> | |
197 | + <address class="card__line">Фрунзенская (10 мин., пешком)<span style="background-color: #FFC955;"></span></address> | |
198 | + <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address> | |
199 | + <div class="card__line">Площадь: <b>556 м2</b></div> | |
200 | + <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div> | |
201 | + </div> | |
202 | + <div class="card__price"><span>1 000 000 ₽</span> | |
203 | + </div><a class="card__btn btn btn--bordered" href="#">Подробнее</a> | |
204 | + </div> | |
205 | + </div> | |
206 | + </div> | |
207 | + <div class="swiper-slide"> | |
208 | + <div class="card"> | |
209 | + <div class="card__top"><img src="images/card/card-img-2.jpg" alt="Фото недвижимости" loading="lazy"> | |
210 | + <h3 class="card__title">Барбер-шоп</h3> | |
211 | + <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> | |
212 | + <svg width="18" height="18"> | |
213 | + <use xlink:href="images/sprite.svg#card-favorites-empty"></use> | |
214 | + </svg> | |
215 | + <svg width="18" height="18"> | |
216 | + <use xlink:href="images/sprite.svg#card-favorites"></use> | |
217 | + </svg></span><a class="card__label card__label-messenger" href="#"> | |
218 | + <svg width="25" height="25"> | |
219 | + <use xlink:href="images/sprite.svg#card-messenger"></use> | |
220 | + </svg></a></div> | |
221 | + </div> | |
222 | + <div class="card__cnt"> | |
223 | + <div class="card__info"> | |
224 | + <address class="card__line card__line-complex">ЖК “Новоарбатский”</address> | |
225 | + <address class="card__line">Арбатская (8 мин., пешком)<span style="background-color: #0000A0;"></span></address> | |
226 | + <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address> | |
227 | + <div class="card__line">Площадь: <b>6 556 м2</b></div> | |
228 | + <div class="card__line">Цена за м<sup>2</sup>: <b>5 225 256 ₽</b></div> | |
229 | + </div> | |
230 | + <div class="card__price"><span>15 520 900 ₽</span><span>в месяц</span> | |
231 | + </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a> | |
232 | + </div> | |
233 | + </div> | |
234 | + </div> | |
235 | + <div class="swiper-slide"> | |
236 | + <div class="card"> | |
237 | + <div class="card__top"><img src="images/card/card-img-3.jpg" alt="Фото недвижимости" loading="lazy"> | |
238 | + <h3 class="card__title">Аптека</h3> | |
239 | + <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> | |
240 | + <svg width="18" height="18"> | |
241 | + <use xlink:href="images/sprite.svg#card-favorites-empty"></use> | |
242 | + </svg> | |
243 | + <svg width="18" height="18"> | |
244 | + <use xlink:href="images/sprite.svg#card-favorites"></use> | |
245 | + </svg></span><a class="card__label card__label-messenger" href="#"> | |
246 | + <svg width="25" height="25"> | |
247 | + <use xlink:href="images/sprite.svg#card-messenger"></use> | |
248 | + </svg></a></div> | |
249 | + </div> | |
250 | + <div class="card__cnt"> | |
251 | + <div class="card__info"> | |
252 | + <address class="card__line card__line-complex">ЖК “Садовые кварталы”</address> | |
253 | + <address class="card__line">Коломенская (2 мин., пешком)<span style="background-color: #029B55;"></span></address> | |
254 | + <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address> | |
255 | + <div class="card__line">Площадь: <b>8 626 м2</b></div> | |
256 | + <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div> | |
257 | + </div> | |
258 | + <div class="card__price"><span>5 280 000 ₽</span> | |
259 | + </div><a class="card__btn btn btn--bordered" href="#">Подробнее о продаже</a> | |
260 | + </div> | |
261 | + </div> | |
262 | + </div> | |
263 | + <div class="swiper-slide"> | |
264 | + <div class="card"> | |
265 | + <div class="card__top"><img src="images/card/card-img-4.jpg" alt="Фото недвижимости" loading="lazy"> | |
266 | + <h3 class="card__title">Витрина</h3> | |
267 | + <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> | |
268 | + <svg width="18" height="18"> | |
269 | + <use xlink:href="images/sprite.svg#card-favorites-empty"></use> | |
270 | + </svg> | |
271 | + <svg width="18" height="18"> | |
272 | + <use xlink:href="images/sprite.svg#card-favorites"></use> | |
273 | + </svg></span><a class="card__label card__label-messenger" href="#"> | |
274 | + <svg width="25" height="25"> | |
275 | + <use xlink:href="images/sprite.svg#card-messenger"></use> | |
276 | + </svg></a></div> | |
277 | + </div> | |
278 | + <div class="card__cnt"> | |
279 | + <div class="card__info"> | |
280 | + <address class="card__line card__line-complex">ЖК “Нахимовский проспект, 46”</address> | |
281 | + <address class="card__line">Парк Победы (5 мин., пешком)<span style="background-color: #222964;"></span></address> | |
282 | + <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address> | |
283 | + <div class="card__line">Площадь: <b>6 856 м2</b></div> | |
284 | + <div class="card__line">Цена за м<sup>2</sup>: <b>25 256 ₽</b></div> | |
285 | + </div> | |
286 | + <div class="card__price"><span>2 625 520 ₽</span><span>в месяц</span> | |
287 | + </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a> | |
288 | + </div> | |
289 | + </div> | |
290 | + </div> | |
291 | + <div class="swiper-slide"> | |
292 | + <div class="card"> | |
293 | + <div class="card__top"><img src="images/card/card-img-1.jpg" alt="Фото недвижимости" loading="lazy"> | |
294 | + <h3 class="card__title">Салон красоты</h3> | |
295 | + <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> | |
296 | + <svg width="18" height="18"> | |
297 | + <use xlink:href="images/sprite.svg#card-favorites-empty"></use> | |
298 | + </svg> | |
299 | + <svg width="18" height="18"> | |
300 | + <use xlink:href="images/sprite.svg#card-favorites"></use> | |
301 | + </svg></span><a class="card__label card__label-messenger" href="#"> | |
302 | + <svg width="25" height="25"> | |
303 | + <use xlink:href="images/sprite.svg#card-messenger"></use> | |
304 | + </svg></a></div> | |
305 | + </div> | |
306 | + <div class="card__cnt"> | |
307 | + <div class="card__info"> | |
308 | + <address class="card__line card__line-complex">ЖК “Новинки 1”</address> | |
309 | + <address class="card__line">Фрунзенская (10 мин., пешком)<span style="background-color: #FFC955;"></span></address> | |
310 | + <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address> | |
311 | + <div class="card__line">Площадь: <b>556 м2</b></div> | |
312 | + <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div> | |
313 | + </div> | |
314 | + <div class="card__price"><span>1 000 000 ₽</span> | |
315 | + </div><a class="card__btn btn btn--bordered" href="#">Подробнее</a> | |
316 | + </div> | |
317 | + </div> | |
318 | + </div> | |
319 | + <div class="swiper-slide"> | |
320 | + <div class="card"> | |
321 | + <div class="card__top"><img src="images/card/card-img-2.jpg" alt="Фото недвижимости" loading="lazy"> | |
322 | + <h3 class="card__title">Барбер-шоп</h3> | |
323 | + <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> | |
324 | + <svg width="18" height="18"> | |
325 | + <use xlink:href="images/sprite.svg#card-favorites-empty"></use> | |
326 | + </svg> | |
327 | + <svg width="18" height="18"> | |
328 | + <use xlink:href="images/sprite.svg#card-favorites"></use> | |
329 | + </svg></span><a class="card__label card__label-messenger" href="#"> | |
330 | + <svg width="25" height="25"> | |
331 | + <use xlink:href="images/sprite.svg#card-messenger"></use> | |
332 | + </svg></a></div> | |
333 | + </div> | |
334 | + <div class="card__cnt"> | |
335 | + <div class="card__info"> | |
336 | + <address class="card__line card__line-complex">ЖК “Новоарбатский”</address> | |
337 | + <address class="card__line">Арбатская (8 мин., пешком)<span style="background-color: #0000A0;"></span></address> | |
338 | + <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address> | |
339 | + <div class="card__line">Площадь: <b>6 556 м2</b></div> | |
340 | + <div class="card__line">Цена за м<sup>2</sup>: <b>5 225 256 ₽</b></div> | |
341 | + </div> | |
342 | + <div class="card__price"><span>15 520 900 ₽</span><span>в месяц</span> | |
343 | + </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a> | |
344 | + </div> | |
345 | + </div> | |
346 | + </div> | |
347 | + <div class="swiper-slide"> | |
348 | + <div class="card"> | |
349 | + <div class="card__top"><img src="images/card/card-img-3.jpg" alt="Фото недвижимости" loading="lazy"> | |
350 | + <h3 class="card__title">Аптека</h3> | |
351 | + <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> | |
352 | + <svg width="18" height="18"> | |
353 | + <use xlink:href="images/sprite.svg#card-favorites-empty"></use> | |
354 | + </svg> | |
355 | + <svg width="18" height="18"> | |
356 | + <use xlink:href="images/sprite.svg#card-favorites"></use> | |
357 | + </svg></span><a class="card__label card__label-messenger" href="#"> | |
358 | + <svg width="25" height="25"> | |
359 | + <use xlink:href="images/sprite.svg#card-messenger"></use> | |
360 | + </svg></a></div> | |
361 | + </div> | |
362 | + <div class="card__cnt"> | |
363 | + <div class="card__info"> | |
364 | + <address class="card__line card__line-complex">ЖК “Садовые кварталы”</address> | |
365 | + <address class="card__line">Коломенская (2 мин., пешком)<span style="background-color: #029B55;"></span></address> | |
366 | + <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address> | |
367 | + <div class="card__line">Площадь: <b>8 626 м2</b></div> | |
368 | + <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div> | |
369 | + </div> | |
370 | + <div class="card__price"><span>5 280 000 ₽</span> | |
371 | + </div><a class="card__btn btn btn--bordered" href="#">Подробнее о продаже</a> | |
372 | + </div> | |
373 | + </div> | |
374 | + </div> | |
375 | + <div class="swiper-slide"> | |
376 | + <div class="card"> | |
377 | + <div class="card__top"><img src="images/card/card-img-4.jpg" alt="Фото недвижимости" loading="lazy"> | |
378 | + <h3 class="card__title">Витрина</h3> | |
379 | + <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> | |
380 | + <svg width="18" height="18"> | |
381 | + <use xlink:href="images/sprite.svg#card-favorites-empty"></use> | |
382 | + </svg> | |
383 | + <svg width="18" height="18"> | |
384 | + <use xlink:href="images/sprite.svg#card-favorites"></use> | |
385 | + </svg></span><a class="card__label card__label-messenger" href="#"> | |
386 | + <svg width="25" height="25"> | |
387 | + <use xlink:href="images/sprite.svg#card-messenger"></use> | |
388 | + </svg></a></div> | |
389 | + </div> | |
390 | + <div class="card__cnt"> | |
391 | + <div class="card__info"> | |
392 | + <address class="card__line card__line-complex">ЖК “Нахимовский проспект, 46”</address> | |
393 | + <address class="card__line">Парк Победы (5 мин., пешком)<span style="background-color: #222964;"></span></address> | |
394 | + <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address> | |
395 | + <div class="card__line">Площадь: <b>6 856 м2</b></div> | |
396 | + <div class="card__line">Цена за м<sup>2</sup>: <b>25 256 ₽</b></div> | |
397 | + </div> | |
398 | + <div class="card__price"><span>2 625 520 ₽</span><span>в месяц</span> | |
399 | + </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a> | |
400 | + </div> | |
401 | + </div> | |
402 | + </div> | |
403 | + </div> | |
404 | + </div> | |
405 | + <div class="swiper-pagination"></div> | |
406 | + </div> | |
407 | + </div> | |
408 | + </section> | |
409 | +@endsection | |
410 | + | |
411 | +@section('form_feedback') | |
412 | + <!-- Форма обратной связи --> | |
413 | + @include('form.form_feedback') | |
414 | +@endsection | |
415 | + |
resources/views/news.blade.php
... | ... | @@ -2,12 +2,12 @@ |
2 | 2 | |
3 | 3 | @section('content') |
4 | 4 | <section class="news"> |
5 | - <div class="news__wrap" style="background-image:url('images/news-bg.jpg')"> | |
5 | + <div class="news__wrap" style="background-image:url({{ asset('images/news-bg.jpg') }})"> | |
6 | 6 | <div class="container"> |
7 | 7 | <div class="news__inner"> |
8 | 8 | <div class="breadcrumbs"> |
9 | 9 | <ul class="breadcrumbs__list"> |
10 | - <li class="breadcrumbs__item"><a class="breadcrumbs__link" href="#">Главная</a></li> | |
10 | + <li class="breadcrumbs__item"><a class="breadcrumbs__link" href="{{ route('index') }}">Главная</a></li> | |
11 | 11 | <li class="breadcrumbs__item"><span class="breadcrumbs__link">Новости</span></li> |
12 | 12 | </ul> |
13 | 13 | </div> |
... | ... | @@ -20,156 +20,17 @@ |
20 | 20 | </div> |
21 | 21 | <div class="container"> |
22 | 22 | <div class="news__grid"> |
23 | - <div class="card-news"> | |
24 | - <div class="card-news__top"><img src="images/card/card-img-5.jpg" alt="Превью к новости" loading="lazy"> | |
25 | - <div class="card-news__date"><span>15</span><span>Декабря 2022</span></div> | |
26 | - </div> | |
27 | - <div class="card-news__cnt"> | |
28 | - <p class="card-news__descr">Компания Renttorg продолжает активно сотрудничать с площадкой Сбера Portal DA</p><a class="card-news__link" href="#">Подробнее | |
29 | - <svg width="17" height="12"> | |
30 | - <use xlink:href="images/sprite.svg#card-news-link-arrow"></use> | |
31 | - </svg></a> | |
32 | - </div> | |
33 | - </div> | |
34 | - <div class="card-news"> | |
35 | - <div class="card-news__top"><img src="images/card/card-img-6.jpg" alt="Превью к новости" loading="lazy"> | |
36 | - <div class="card-news__date"><span>23</span><span>Октября 2022</span></div> | |
37 | - </div> | |
38 | - <div class="card-news__cnt"> | |
39 | - <p class="card-news__descr">Про надежность торговых арендаторов</p><a class="card-news__link" href="#">Подробнее | |
40 | - <svg width="17" height="12"> | |
41 | - <use xlink:href="images/sprite.svg#card-news-link-arrow"></use> | |
42 | - </svg></a> | |
43 | - </div> | |
44 | - </div> | |
45 | - <div class="card-news"> | |
46 | - <div class="card-news__top"><img src="images/card/card-img-7.jpg" alt="Превью к новости" loading="lazy"> | |
47 | - <div class="card-news__date"><span>19</span><span>Ноября 2022</span></div> | |
48 | - </div> | |
49 | - <div class="card-news__cnt"> | |
50 | - <p class="card-news__descr">Кто развивается быстрее всех из арендаторов</p><a class="card-news__link" href="#">Подробнее | |
51 | - <svg width="17" height="12"> | |
52 | - <use xlink:href="images/sprite.svg#card-news-link-arrow"></use> | |
53 | - </svg></a> | |
54 | - </div> | |
55 | - </div> | |
56 | - <div class="card-news"> | |
57 | - <div class="card-news__top"><img src="images/card/card-img-8.jpg" alt="Превью к новости" loading="lazy"> | |
58 | - <div class="card-news__date"><span>31</span><span>Декабря 2022</span></div> | |
59 | - </div> | |
60 | - <div class="card-news__cnt"> | |
61 | - <p class="card-news__descr">Помещение с окупаемостью 6-7 лет, насколько реально купить?</p><a class="card-news__link" href="#">Подробнее | |
62 | - <svg width="17" height="12"> | |
63 | - <use xlink:href="images/sprite.svg#card-news-link-arrow"></use> | |
64 | - </svg></a> | |
65 | - </div> | |
66 | - </div> | |
67 | - <div class="card-news"> | |
68 | - <div class="card-news__top"><img src="images/card/card-img-5.jpg" alt="Превью к новости" loading="lazy"> | |
69 | - <div class="card-news__date"><span>15</span><span>Декабря 2022</span></div> | |
70 | - </div> | |
71 | - <div class="card-news__cnt"> | |
72 | - <p class="card-news__descr">Компания Renttorg продолжает активно сотрудничать с площадкой Сбера Portal DA</p><a class="card-news__link" href="#">Подробнее | |
73 | - <svg width="17" height="12"> | |
74 | - <use xlink:href="images/sprite.svg#card-news-link-arrow"></use> | |
75 | - </svg></a> | |
76 | - </div> | |
77 | - </div> | |
78 | - <div class="card-news"> | |
79 | - <div class="card-news__top"><img src="images/card/card-img-6.jpg" alt="Превью к новости" loading="lazy"> | |
80 | - <div class="card-news__date"><span>23</span><span>Октября 2022</span></div> | |
81 | - </div> | |
82 | - <div class="card-news__cnt"> | |
83 | - <p class="card-news__descr">Про надежность торговых арендаторов</p><a class="card-news__link" href="#">Подробнее | |
84 | - <svg width="17" height="12"> | |
85 | - <use xlink:href="images/sprite.svg#card-news-link-arrow"></use> | |
86 | - </svg></a> | |
87 | - </div> | |
88 | - </div> | |
89 | - <div class="card-news"> | |
90 | - <div class="card-news__top"><img src="images/card/card-img-7.jpg" alt="Превью к новости" loading="lazy"> | |
91 | - <div class="card-news__date"><span>19</span><span>Ноября 2022</span></div> | |
92 | - </div> | |
93 | - <div class="card-news__cnt"> | |
94 | - <p class="card-news__descr">Кто развивается быстрее всех из арендаторов</p><a class="card-news__link" href="#">Подробнее | |
95 | - <svg width="17" height="12"> | |
96 | - <use xlink:href="images/sprite.svg#card-news-link-arrow"></use> | |
97 | - </svg></a> | |
98 | - </div> | |
99 | - </div> | |
100 | - <div class="card-news"> | |
101 | - <div class="card-news__top"><img src="images/card/card-img-8.jpg" alt="Превью к новости" loading="lazy"> | |
102 | - <div class="card-news__date"><span>31</span><span>Декабря 2022</span></div> | |
103 | - </div> | |
104 | - <div class="card-news__cnt"> | |
105 | - <p class="card-news__descr">Помещение с окупаемостью 6-7 лет, насколько реально купить?</p><a class="card-news__link" href="#">Подробнее | |
106 | - <svg width="17" height="12"> | |
107 | - <use xlink:href="images/sprite.svg#card-news-link-arrow"></use> | |
108 | - </svg></a> | |
109 | - </div> | |
110 | - </div> | |
111 | - <div class="card-news"> | |
112 | - <div class="card-news__top"><img src="images/card/card-img-5.jpg" alt="Превью к новости" loading="lazy"> | |
113 | - <div class="card-news__date"><span>15</span><span>Декабря 2022</span></div> | |
114 | - </div> | |
115 | - <div class="card-news__cnt"> | |
116 | - <p class="card-news__descr">Компания Renttorg продолжает активно сотрудничать с площадкой Сбера Portal DA</p><a class="card-news__link" href="#">Подробнее | |
117 | - <svg width="17" height="12"> | |
118 | - <use xlink:href="images/sprite.svg#card-news-link-arrow"></use> | |
119 | - </svg></a> | |
120 | - </div> | |
121 | - </div> | |
122 | - <div class="card-news"> | |
123 | - <div class="card-news__top"><img src="images/card/card-img-6.jpg" alt="Превью к новости" loading="lazy"> | |
124 | - <div class="card-news__date"><span>23</span><span>Октября 2022</span></div> | |
125 | - </div> | |
126 | - <div class="card-news__cnt"> | |
127 | - <p class="card-news__descr">Про надежность торговых арендаторов</p><a class="card-news__link" href="#">Подробнее | |
128 | - <svg width="17" height="12"> | |
129 | - <use xlink:href="images/sprite.svg#card-news-link-arrow"></use> | |
130 | - </svg></a> | |
131 | - </div> | |
132 | - </div> | |
133 | - <div class="card-news"> | |
134 | - <div class="card-news__top"><img src="images/card/card-img-7.jpg" alt="Превью к новости" loading="lazy"> | |
135 | - <div class="card-news__date"><span>19</span><span>Ноября 2022</span></div> | |
136 | - </div> | |
137 | - <div class="card-news__cnt"> | |
138 | - <p class="card-news__descr">Кто развивается быстрее всех из арендаторов</p><a class="card-news__link" href="#">Подробнее | |
139 | - <svg width="17" height="12"> | |
140 | - <use xlink:href="images/sprite.svg#card-news-link-arrow"></use> | |
141 | - </svg></a> | |
142 | - </div> | |
143 | - </div> | |
144 | - <div class="card-news"> | |
145 | - <div class="card-news__top"><img src="images/card/card-img-8.jpg" alt="Превью к новости" loading="lazy"> | |
146 | - <div class="card-news__date"><span>31</span><span>Декабря 2022</span></div> | |
147 | - </div> | |
148 | - <div class="card-news__cnt"> | |
149 | - <p class="card-news__descr">Помещение с окупаемостью 6-7 лет, насколько реально купить?</p><a class="card-news__link" href="#">Подробнее | |
150 | - <svg width="17" height="12"> | |
151 | - <use xlink:href="images/sprite.svg#card-news-link-arrow"></use> | |
152 | - </svg></a> | |
153 | - </div> | |
154 | - </div> | |
155 | - </div> | |
156 | - <div class="pagination"> | |
157 | - <div class="pagination__inner"><a class="pagination__btn pagination__btn-prev disabled" href="#"> | |
158 | - <svg width="10" height="17"> | |
159 | - <use xlink:href="images/sprite.svg#slider-arrow"></use> | |
160 | - </svg></a> | |
161 | - <ul class="pagination__list"> | |
162 | - <li class="pagination__item"><a class="pagination__link active" href="#">1</a></li> | |
163 | - <li class="pagination__item"><a class="pagination__link" href="#">2</a></li> | |
164 | - <li class="pagination__item"><a class="pagination__link" href="#">3</a></li> | |
165 | - <li class="pagination__item"><a class="pagination__link more" href="#">...</a></li> | |
166 | - <li class="pagination__item"><a class="pagination__link" href="#">8</a></li> | |
167 | - </ul><a class="pagination__btn pagination__btn-next" href="#"> | |
168 | - <svg width="10" height="17"> | |
169 | - <use xlink:href="images/sprite.svg#slider-arrow"></use> | |
170 | - </svg></a> | |
171 | - </div> | |
23 | + @if ($news_->count()) | |
24 | + | |
25 | + @foreach($news_ as $new) | |
26 | + @include('catalogs.new', ['new' => $new]) | |
27 | + @endforeach | |
28 | + @else | |
29 | + <h3>Пока здесь нет новостей!</h3> | |
30 | + @endif | |
172 | 31 | </div> |
32 | + {{$news_->onEachSide(1)->links('catalogs.paginate')}} | |
33 | + | |
173 | 34 | </div> |
174 | 35 | </section> |
175 | 36 | @endsection |