Commit 5fc27fa4abd33284123a24afbfa17f182be43ed8
1 parent
4ab406cc8c
Exists in
master
Отправка писем на почту, баг с картинками, удаление кнопки удаление
Showing 10 changed files with 188 additions and 21 deletions Inline Diff
- app/Http/Controllers/MainController.php
- app/Http/Requests/AreasRequest.php
- app/Http/Requests/FooterFeedbackRequest.php
- app/Mail/SendMail.php
- resources/views/admin/area/form.blade.php
- resources/views/admin/houses/form.blade.php
- resources/views/complex.blade.php
- resources/views/emails/main.blade.php
- resources/views/mapsobj.blade.php
- routes/web.php
app/Http/Controllers/MainController.php
1 | <?php | 1 | <?php |
2 | 2 | ||
3 | namespace App\Http\Controllers; | 3 | namespace App\Http\Controllers; |
4 | 4 | ||
5 | use App\Classes\SortData; | 5 | use App\Classes\SortData; |
6 | use App\Http\Requests\EmailRequest; | 6 | use App\Http\Requests\EmailRequest; |
7 | use App\Http\Requests\FooterFeedbackRequest; | 7 | use App\Http\Requests\FooterFeedbackRequest; |
8 | use App\Mail\SendMail; | ||
8 | use App\Models\Area; | 9 | use App\Models\Area; |
9 | use App\Models\Contact; | 10 | use App\Models\Contact; |
10 | use App\Models\format_area; | 11 | use App\Models\format_area; |
11 | use App\Models\House; | 12 | use App\Models\House; |
12 | use App\Models\ModelMailFeedback; | 13 | use App\Models\ModelMailFeedback; |
13 | use App\Models\News; | 14 | use App\Models\News; |
14 | use App\Models\Page; | 15 | use App\Models\Page; |
15 | use App\Models\Partners; | 16 | use App\Models\Partners; |
16 | use App\Models\type_area; | 17 | use App\Models\type_area; |
17 | use Illuminate\Database\Eloquent\Model; | 18 | use Illuminate\Database\Eloquent\Model; |
18 | use Illuminate\Http\Request; | 19 | use Illuminate\Http\Request; |
19 | use App\Classes\RusDate; | 20 | use App\Classes\RusDate; |
20 | use Illuminate\Support\Facades\DB; | 21 | use Illuminate\Support\Facades\DB; |
21 | use Illuminate\Support\Facades\Mail; | 22 | use Illuminate\Support\Facades\Mail; |
22 | use PhpParser\Node\Stmt\Switch_; | 23 | use PhpParser\Node\Stmt\Switch_; |
23 | use Illuminate\Support\Facades\Response; | 24 | use Illuminate\Support\Facades\Response; |
24 | use App\Classes\FilterData; | 25 | use App\Classes\FilterData; |
26 | //use App\Mail\SendMail; | ||
25 | 27 | ||
26 | class MainController extends Controller | 28 | class MainController extends Controller |
27 | { | 29 | { |
28 | /* | 30 | /* |
29 | * Главная страница проекта | 31 | * Главная страница проекта |
30 | */ | 32 | */ |
31 | public function index() { | 33 | public function index() { |
32 | $houses = House::with('areas')->orderByDesc('created_at')->limit(8)->get(); | 34 | $houses = House::with('areas')->orderByDesc('created_at')->limit(8)->get(); |
33 | $news = News::query()->orderByDesc('created_at')->limit(8)->get(); | 35 | $news = News::query()->orderByDesc('created_at')->limit(8)->get(); |
34 | $partners = Partners::query()->limit(18)->get(); | 36 | $partners = Partners::query()->limit(18)->get(); |
35 | return view('index', compact('houses', 'news', 'partners')); | 37 | return view('index', compact('houses', 'news', 'partners')); |
36 | } | 38 | } |
37 | 39 | ||
38 | /* | 40 | /* |
39 | * Фильтр ajax в каталоге | 41 | * Фильтр ajax в каталоге |
40 | */ | 42 | */ |
41 | public function catalog_ajax_filter(Request $request) { | 43 | public function catalog_ajax_filter(Request $request) { |
42 | $Res = Array(); | 44 | $Res = Array(); |
43 | if (!empty($request->area)) { | 45 | if (!empty($request->area)) { |
44 | $area_table = Area::where('id', '=', $request->area)->get(); | 46 | $area_table = Area::where('id', '=', $request->area)->get(); |
45 | $Res[] = $area_table[0]->name_area; | 47 | $Res[] = $area_table[0]->name_area; |
46 | } else { | 48 | } else { |
47 | $Res[] = "Все объекты"; | 49 | $Res[] = "Все объекты"; |
48 | } | 50 | } |
49 | 51 | ||
50 | if (!empty($request->type_area)) { | 52 | if (!empty($request->type_area)) { |
51 | $type_area_table = type_area::where('id', '=', $request->type_area)->get(); | 53 | $type_area_table = type_area::where('id', '=', $request->type_area)->get(); |
52 | $Res[] = $type_area_table[0]->name_type; | 54 | $Res[] = $type_area_table[0]->name_type; |
53 | } else { | 55 | } else { |
54 | $Res[] = "Тип недвижимости"; | 56 | $Res[] = "Тип недвижимости"; |
55 | } | 57 | } |
56 | 58 | ||
57 | if (!empty($request->format_area)) { | 59 | if (!empty($request->format_area)) { |
58 | $format_area_table = format_area::where('id', '=', $request->format_area)->get(); | 60 | $format_area_table = format_area::where('id', '=', $request->format_area)->get(); |
59 | $Res[] = $format_area_table[0]->name_format; | 61 | $Res[] = $format_area_table[0]->name_format; |
60 | } else { | 62 | } else { |
61 | $Res[] = "Формат недвижимости"; | 63 | $Res[] = "Формат недвижимости"; |
62 | } | 64 | } |
63 | 65 | ||
64 | return json_encode($Res); | 66 | return json_encode($Res); |
65 | } | 67 | } |
66 | 68 | ||
67 | /* | 69 | /* |
68 | * Страница ЖК | 70 | * Страница ЖК |
69 | */ | 71 | */ |
70 | public function Complex(Area $area, Request $request) { | 72 | public function Complex(Area $area, Request $request) { |
71 | //////////раздел аренда | 73 | //////////раздел аренда |
72 | $house_arenda = House::with('areas')-> | 74 | $house_arenda = House::with('areas')-> |
73 | where('area_id', '=', $area->id)-> | 75 | where('area_id', '=', $area->id)-> |
74 | where('format_house', '=', 'Аренда'); | 76 | where('format_house', '=', 'Аренда'); |
75 | 77 | ||
76 | if ($request->view == 'arenda') { | 78 | if ($request->view == 'arenda') { |
77 | $house_arenda = (new SortData($house_arenda, $request))->apply()->get(); | 79 | $house_arenda = (new SortData($house_arenda, $request))->apply()->get(); |
78 | 80 | ||
79 | } else { | 81 | } else { |
80 | $house_arenda = $house_arenda->orderBy('price')-> | 82 | $house_arenda = $house_arenda->orderBy('price')-> |
81 | orderByDesc('created_at')-> | 83 | orderByDesc('created_at')-> |
82 | orderByDesc('area')->get(); | 84 | orderByDesc('area')->get(); |
83 | } | 85 | } |
84 | 86 | ||
85 | ////////раздел продажа | 87 | ////////раздел продажа |
86 | $house_prodaja = House::with('areas')-> | 88 | $house_prodaja = House::with('areas')-> |
87 | where('area_id', '=', $area->id)-> | 89 | where('area_id', '=', $area->id)-> |
88 | where('format_house', '=', 'Продажа'); | 90 | where('format_house', '=', 'Продажа'); |
89 | 91 | ||
90 | if ($request->view == 'prodaja') { | 92 | if ($request->view == 'prodaja') { |
91 | $house_prodaja = (new SortData($house_prodaja, $request))->apply()->get(); | 93 | $house_prodaja = (new SortData($house_prodaja, $request))->apply()->get(); |
92 | 94 | ||
93 | } else { | 95 | } else { |
94 | $house_prodaja = $house_prodaja->orderBy('price')-> | 96 | $house_prodaja = $house_prodaja->orderBy('price')-> |
95 | orderByDesc('created_at')-> | 97 | orderByDesc('created_at')-> |
96 | orderByDesc('area')->get(); | 98 | orderByDesc('area')->get(); |
97 | } | 99 | } |
98 | 100 | ||
99 | //////////////// Раздел бизнеса | 101 | //////////////// Раздел бизнеса |
100 | $house_bissnes = House::with('areas')-> | 102 | $house_bissnes = House::with('areas')-> |
101 | where('area_id', '=', $area->id)-> | 103 | where('area_id', '=', $area->id)-> |
102 | where('format_house', '=', 'Бизнес'); | 104 | where('format_house', '=', 'Бизнес'); |
103 | //orderByDesc('created_at')->get(); | 105 | //orderByDesc('created_at')->get(); |
104 | 106 | ||
105 | if ($request->view == 'bissnes') { | 107 | if ($request->view == 'bissnes') { |
106 | $house_bissnes = (new SortData($house_bissnes, $request))->apply()->get(); | 108 | $house_bissnes = (new SortData($house_bissnes, $request))->apply()->get(); |
107 | 109 | ||
108 | } else { | 110 | } else { |
109 | $house_bissnes = $house_bissnes->orderBy('price')-> | 111 | $house_bissnes = $house_bissnes->orderBy('price')-> |
110 | orderByDesc('created_at')-> | 112 | orderByDesc('created_at')-> |
111 | orderByDesc('area')->get(); | 113 | orderByDesc('area')->get(); |
112 | } | 114 | } |
113 | 115 | ||
114 | //////////раздел арендованные | 116 | //////////раздел арендованные |
115 | $house_arendovannie = House::with('areas')-> | 117 | $house_arendovannie = House::with('areas')-> |
116 | where('area_id', '=', $area->id)-> | 118 | where('area_id', '=', $area->id)-> |
117 | where('format_house', '=', 'Арендованные'); | 119 | where('format_house', '=', 'Арендованные'); |
118 | //orderByDesc('created_at')->get(); | 120 | //orderByDesc('created_at')->get(); |
119 | 121 | ||
120 | if ($request->view == 'arendovannie') { | 122 | if ($request->view == 'arendovannie') { |
121 | $house_arendovannie = (new SortData($house_arendovannie, $request))->apply()->get(); | 123 | $house_arendovannie = (new SortData($house_arendovannie, $request))->apply()->get(); |
122 | 124 | ||
123 | } else { | 125 | } else { |
124 | $house_arendovannie = $house_arendovannie->orderBy('price')-> | 126 | $house_arendovannie = $house_arendovannie->orderBy('price')-> |
125 | orderByDesc('created_at')-> | 127 | orderByDesc('created_at')-> |
126 | orderByDesc('area')->get(); | 128 | orderByDesc('area')->get(); |
127 | } | 129 | } |
128 | 130 | ||
129 | if ($request->ajax()) { | 131 | if ($request->ajax()) { |
130 | switch($request->view) { | 132 | switch($request->view) { |
131 | case 'arenda': return view('ajax.complex.arenda', compact('house_arenda')); break; | 133 | case 'arenda': return view('ajax.complex.arenda', compact('house_arenda')); break; |
132 | case 'prodaja': return view('ajax.complex.prodaja', compact('house_prodaja'));break; | 134 | case 'prodaja': return view('ajax.complex.prodaja', compact('house_prodaja'));break; |
133 | case 'bissnes': return view('ajax.complex.bissnes', compact('house_bissnes')); break; | 135 | case 'bissnes': return view('ajax.complex.bissnes', compact('house_bissnes')); break; |
134 | case 'arendovannie': return view('ajax.complex.arendovannie', compact('house_arendovannie')); break; | 136 | case 'arendovannie': return view('ajax.complex.arendovannie', compact('house_arendovannie')); break; |
135 | } | 137 | } |
136 | } | 138 | } |
137 | 139 | ||
138 | return view('complex', compact('area', | 140 | return view('complex', compact('area', |
139 | 'house_arenda', | 141 | 'house_arenda', |
140 | 'house_prodaja', | 142 | 'house_prodaja', |
141 | 'house_bissnes', | 143 | 'house_bissnes', |
142 | 'house_arendovannie')); | 144 | 'house_arendovannie')); |
143 | 145 | ||
144 | } | 146 | } |
145 | 147 | ||
146 | /* | 148 | /* |
147 | * О компании | 149 | * О компании |
148 | */ | 150 | */ |
149 | public function About(): \Illuminate\Contracts\View\Factory|\Illuminate\Contracts\View\View|\Illuminate\Contracts\Foundation\Application | 151 | public function About(): \Illuminate\Contracts\View\Factory|\Illuminate\Contracts\View\View|\Illuminate\Contracts\Foundation\Application |
150 | { | 152 | { |
151 | $news = News::query()->orderByDesc('created_at')->limit(8)->get(); | 153 | $news = News::query()->orderByDesc('created_at')->limit(8)->get(); |
152 | $partners = Partners::query()->limit(18)->get(); | 154 | $partners = Partners::query()->limit(18)->get(); |
153 | return view('about', compact('news', 'partners')); | 155 | return view('about', compact('news', 'partners')); |
154 | } | 156 | } |
155 | 157 | ||
158 | public function send_mail() { | ||
159 | $toEmail = "integralal@mail.ru";//$RentTorg[0]->email; | ||
160 | $message = "Тест сообщения, проверка связи!"; | ||
161 | $mm = new SendMail($message); | ||
162 | $d = Mail::to($toEmail)->send(new SendMail($message)); | ||
163 | dd($d); | ||
164 | } | ||
165 | |||
156 | /* | 166 | /* |
157 | * Форма обратной связи внизу сайта | 167 | * Форма обратной связи внизу сайта |
158 | */ | 168 | */ |
159 | public function main_form(FooterFeedbackRequest $request) { | 169 | public function main_form(FooterFeedbackRequest $request) { |
160 | $RentTorg = Contact::query()->limit(1)->get(); | 170 | $RentTorg = Contact::query()->limit(1)->get(); |
161 | $MailBD = new ModelMailFeedback(); | 171 | $MailBD = new ModelMailFeedback(); |
162 | $MailBD->to = 'Администрации сайта'; | 172 | $MailBD->to = 'Администрации сайта'; |
163 | $MailBD->from = $request->TelephoneUser; | 173 | $MailBD->from = $request->TelephoneUser; |
164 | $MailBD->subject = "Пользователь <".$request->NameUser.">"; | 174 | $MailBD->subject = "Пользователь <".$request->NameUser.">"; |
165 | $MailBD->form = 'Форма в футере'; | 175 | $MailBD->form = 'Форма в футере'; |
166 | $MailBD->text = "От пользователя: ".$request->NameUser.". Заявка на лучшие предложения. Сообщение: ".$request->TextUser; | 176 | $message = "От пользователя: ".$request->NameUser.". Телефон: ".$request->TelephoneUser.". Заявка на лучшие предложения. Сообщение: ".$request->TextUser; |
177 | $MailBD->text = $message; | ||
167 | $MailBD->save(); | 178 | $MailBD->save(); |
168 | 179 | ||
180 | $toEmail = $RentTorg[0]->email; | ||
181 | $mm = new SendMail($message); | ||
182 | $d = Mail::to($toEmail)->send(new SendMail($message)); | ||
183 | |||
184 | //$toEmail = "integralal@mail.ru";//$RentTorg[0]->email; | ||
185 | /*$email = $RentTorg[0]->email; | ||
186 | $sender = "alarionov@nologostudio.ru"; | ||
187 | |||
188 | $headers = "From: $sender" . "\r\n" . | ||
189 | "Reply-To: $sender" . "\r\n" . | ||
190 | "X-Mailer: PHP/" . phpversion(); | ||
191 | mail($email, "От сайта Рентторг", $message, $headers); | ||
192 | */ | ||
193 | //$mm = new SendMail($message); | ||
194 | //Mail::to($toEmail)->send($mm); | ||
195 | |||
169 | //return true; | 196 | //return true; |
170 | /* | 197 | /* |
171 | Mail::send('emails.feedback', ['user' => $user], | 198 | Mail::send('emails.feedback', ['user' => $user], |
172 | function ($message) use ($user) { | 199 | function ($message) use ($user) { |
173 | $message->from('sender@gmail.com', 'Sender'); | 200 | $message->from('sender@gmail.com', 'Sender'); |
174 | $message->to($user->email, $user->name)->subject('Test message'); | 201 | $message->to($user->email, $user->name)->subject('Test message'); |
175 | }); | 202 | }); |
176 | */ | 203 | */ |
204 | |||
205 | |||
177 | } | 206 | } |
178 | 207 | ||
179 | /* | 208 | /* |
180 | * Форма обратной связе в хедере | 209 | * Форма обратной связе в хедере |
181 | */ | 210 | */ |
182 | public function header_form(FooterFeedbackRequest $request) { | 211 | public function header_form(FooterFeedbackRequest $request) { |
183 | $RentTorg = Contact::query()->limit(1)->get(); | 212 | $RentTorg = Contact::query()->limit(1)->get(); |
184 | $MailBD = new ModelMailFeedback(); | 213 | $MailBD = new ModelMailFeedback(); |
185 | $MailBD->to = 'Администрации сайта'; | 214 | $MailBD->to = 'Администрации сайта'; |
186 | $MailBD->from = $request->TelephoneUser; | 215 | $MailBD->from = $request->TelephoneUser; |
187 | $MailBD->subject = "Пользователь <".$request->NameUser.">"; | 216 | $MailBD->subject = "Пользователь <".$request->NameUser.">"; |
188 | $MailBD->form = 'Форма в заголовке сайта'; | 217 | $MailBD->form = 'Форма в заголовке сайта'; |
189 | $MailBD->text = "От пользователя: ".$request->NameUser." Сообщение: Заказываю обратный звонок"; | 218 | $message = "От пользователя: ".$request->NameUser.". Телефон: ".$request->TelephoneUser.". Сообщение: Заказываю обратный звонок"; |
219 | $MailBD->text = $message; | ||
190 | $MailBD->save(); | 220 | $MailBD->save(); |
221 | |||
222 | $toEmail = $RentTorg[0]->email; | ||
223 | $mm = new SendMail($message); | ||
224 | $d = Mail::to($toEmail)->send(new SendMail($message)); | ||
225 | |||
226 | /*$email = $RentTorg[0]->email; | ||
227 | $sender = "alarionov@nologostudio.ru"; | ||
228 | |||
229 | $headers = "From: $sender" . "\r\n" . | ||
230 | "Reply-To: $sender" . "\r\n" . | ||
231 | "X-Mailer: PHP/" . phpversion(); | ||
232 | mail($email, "От сайта Рентторг", $message, $headers); | ||
233 | */ | ||
191 | } | 234 | } |
192 | 235 | ||
193 | /* | 236 | /* |
194 | * Форма записаться на просмотр | 237 | * Форма записаться на просмотр |
195 | */ | 238 | */ |
196 | public function rec_view_form(FooterFeedbackRequest $request) { | 239 | public function rec_view_form(FooterFeedbackRequest $request) { |
197 | $RentTorg = Contact::query()->limit(1)->get(); | 240 | $RentTorg = Contact::query()->limit(1)->get(); |
198 | $MailBD = new ModelMailFeedback(); | 241 | $MailBD = new ModelMailFeedback(); |
199 | $MailBD->to = 'Администрации сайта'; | 242 | $MailBD->to = 'Администрации сайта'; |
200 | $MailBD->from = $request->TelephoneUser; | 243 | $MailBD->from = $request->TelephoneUser; |
201 | $MailBD->subject = "Пользователь <".$request->NameUser.">"; | 244 | $MailBD->subject = "Пользователь <".$request->NameUser.">"; |
202 | $MailBD->form = 'Форма записи на просмотр'; | 245 | $MailBD->form = 'Форма записи на просмотр'; |
203 | $MailBD->text = "От пользователя: ".$request->NameUser." Сообщение: Заказываю просмотр офиса"; | 246 | $message = "От пользователя: ".$request->NameUser.". Телефон: ".$request->TelephoneUser.". Сообщение: Заказываю просмотр офиса"; |
204 | $MailBD->text .= "Адрес офиса-объекта: ".url()->previous()." "; | 247 | $message.= "Адрес офиса-объекта: ".url()->previous()." "; |
248 | $MailBD->text = $message; | ||
205 | $MailBD->save(); | 249 | $MailBD->save(); |
250 | |||
251 | $toEmail = $RentTorg[0]->email; | ||
252 | $d = Mail::to($toEmail)->send(new SendMail($message)); | ||
253 | |||
254 | /*$email = $RentTorg[0]->email; | ||
255 | $sender = "alarionov@nologostudio.ru"; | ||
256 | |||
257 | $headers = "From: $sender" . "\r\n" . | ||
258 | "Reply-To: $sender" . "\r\n" . | ||
259 | "X-Mailer: PHP/" . phpversion(); | ||
260 | mail($email, "От сайта Рентторг", $message, $headers);*/ | ||
206 | } | 261 | } |
207 | 262 | ||
208 | /* | 263 | /* |
209 | * Форма обратной связи на странице "Контакты" | 264 | * Форма обратной связи на странице "Контакты" |
210 | */ | 265 | */ |
211 | public function page_contact_form(FooterFeedbackRequest $request) { | 266 | public function page_contact_form(FooterFeedbackRequest $request) { |
212 | $RentTorg = Contact::query()->limit(1)->get(); | 267 | $RentTorg = Contact::query()->limit(1)->get(); |
213 | $MailBD = new ModelMailFeedback(); | 268 | $MailBD = new ModelMailFeedback(); |
214 | $MailBD->to = 'Администрации сайта'; | 269 | $MailBD->to = 'Администрации сайта'; |
215 | $MailBD->from = $request->TelephoneUser; | 270 | $MailBD->from = $request->TelephoneUser; |
216 | $MailBD->subject = "Пользователь <".$request->NameUser."> Компания <".$request->NameCompany.">"; | 271 | $MailBD->subject = "Пользователь <".$request->NameUser."> Компания <".$request->NameCompany.">"; |
217 | $MailBD->form = 'Форма на странице "Контакты"'; | 272 | $MailBD->form = 'Форма на странице "Контакты"'; |
218 | $MailBD->text = "От пользователя: ".$request->NameUser."Телефон: ".$request->TelephoneUser." Почта: <".$request->EmailUser."> Сообщение:".$request->TextUser; | 273 | $message = "От пользователя: ".$request->NameUser.". Компания <".$request->NameCompany.">. Телефон: ".$request->TelephoneUser." Почта: <".$request->EmailUser."> Сообщение:".$request->TextUser; |
274 | $MailBD->text = $message; | ||
219 | $MailBD->save(); | 275 | $MailBD->save(); |
276 | |||
277 | $toEmail = $RentTorg[0]->email; | ||
278 | $d = Mail::to($toEmail)->send(new SendMail($message)); | ||
279 | |||
280 | /* | ||
281 | $email = $RentTorg[0]->email; | ||
282 | $sender = "alarionov@nologostudio.ru"; | ||
283 | |||
284 | $headers = "From: $sender" . "\r\n" . | ||
285 | "Reply-To: $sender" . "\r\n" . | ||
286 | "X-Mailer: PHP/" . phpversion(); | ||
287 | mail($email, "От сайта Рентторг", $message, $headers); | ||
288 | */ | ||
220 | } | 289 | } |
221 | /* | 290 | /* |
222 | * Форма обратной связи по емайлу | 291 | * Форма обратной связи по емайлу |
223 | */ | 292 | */ |
224 | public function email_form(EmailRequest $request) { | 293 | public function email_form(EmailRequest $request) { |
225 | $RentTorg = Contact::query()->limit(1)->get(); | 294 | $RentTorg = Contact::query()->limit(1)->get(); |
226 | $MailBD = new ModelMailFeedback(); | 295 | $MailBD = new ModelMailFeedback(); |
227 | $MailBD->to = 'Администрации сайта'; | 296 | $MailBD->to = 'Администрации сайта'; |
228 | $MailBD->from = $request->EmailUser; | 297 | $MailBD->from = $request->EmailUser; |
229 | $MailBD->subject = "Пользователь <".$request->EmailUser.">"; | 298 | $MailBD->subject = "Пользователь <".$request->EmailUser.">"; |
230 | $MailBD->form = 'Форма обратной связи по Email'; | 299 | $MailBD->form = 'Форма обратной связи по Email'; |
231 | $MailBD->text = "От почты: ".$request->EmailUser." Сообщение: Отправить на данную почту предложения RentTorg"; | 300 | $message = "От почты: ".$request->EmailUser.". Сообщение: Отправить на данную почту предложения RentTorg"; |
301 | $MailBD->text = $message; | ||
232 | $MailBD->save(); | 302 | $MailBD->save(); |
303 | |||
304 | $toEmail = $RentTorg[0]->email; | ||
305 | $d = Mail::to($toEmail)->send(new SendMail($message)); | ||
306 | |||
307 | /* | ||
308 | $email = $RentTorg[0]->email; | ||
309 | $sender = "alarionov@nologostudio.ru"; | ||
310 | |||
311 | $headers = "From: $sender" . "\r\n" . | ||
312 | "Reply-To: $sender" . "\r\n" . | ||
313 | "X-Mailer: PHP/" . phpversion(); | ||
314 | mail($email, "От сайта Рентторг", $message, $headers); | ||
315 | */ | ||
233 | //dd('Email form'); | 316 | //dd('Email form'); |
234 | return redirect()->route('index'); | 317 | return redirect()->route('index'); |
235 | } | 318 | } |
236 | 319 | ||
237 | /* | 320 | /* |
238 | * Избранное | 321 | * Избранное |
239 | */ | 322 | */ |
240 | public function Favorite(Request $request) { | 323 | public function Favorite(Request $request) { |
241 | if (empty($_COOKIE['favorite_house'])) { | 324 | if (empty($_COOKIE['favorite_house'])) { |
242 | $Arr = Array(); | 325 | $Arr = Array(); |
243 | } else { | 326 | } else { |
244 | $Arr = json_decode($_COOKIE['favorite_house'], true); | 327 | $Arr = json_decode($_COOKIE['favorite_house'], true); |
245 | } | 328 | } |
246 | if (!empty($Arr) && is_array($Arr)) { | 329 | if (!empty($Arr) && is_array($Arr)) { |
247 | $houses = House::with('areas')->whereIn('id', $Arr); | 330 | $houses = House::with('areas')->whereIn('id', $Arr); |
248 | 331 | ||
249 | if (isset($request->sort_price)) { | 332 | if (isset($request->sort_price)) { |
250 | $houses = (new SortData($houses, $request))->apply(); | 333 | $houses = (new SortData($houses, $request))->apply(); |
251 | 334 | ||
252 | 335 | ||
253 | } else { | 336 | } else { |
254 | $houses = $houses->orderBy('price')-> | 337 | $houses = $houses->orderBy('price')-> |
255 | orderByDesc('created_at')-> | 338 | orderByDesc('created_at')-> |
256 | orderByDesc('area'); | 339 | orderByDesc('area'); |
257 | } | 340 | } |
258 | 341 | ||
259 | $houses = $houses->paginate(4); | 342 | $houses = $houses->paginate(4); |
260 | 343 | ||
261 | if ($request->ajax()) { | 344 | if ($request->ajax()) { |
262 | return view('ajax.complex.favorite', compact('houses')); | 345 | return view('ajax.complex.favorite', compact('houses')); |
263 | } | 346 | } |
264 | 347 | ||
265 | return view('favorite_data', compact('houses')); | 348 | return view('favorite_data', compact('houses')); |
266 | } else { | 349 | } else { |
267 | return view('favorite', compact('Arr')); | 350 | return view('favorite', compact('Arr')); |
268 | } | 351 | } |
269 | 352 | ||
270 | 353 | ||
271 | } | 354 | } |
272 | 355 | ||
273 | /* | 356 | /* |
274 | * Категории каталога Аренда/Продажа/Бизнес/Арендованные | 357 | * Категории каталога Аренда/Продажа/Бизнес/Арендованные |
275 | */ | 358 | */ |
276 | public function Category($cat, Request $request) { | 359 | public function Category($cat, Request $request) { |
277 | switch ($cat) { | 360 | switch ($cat) { |
278 | case 'arenda': | 361 | case 'arenda': |
279 | $title = "Аренда торговых помещениий"; | 362 | $title = "Аренда торговых помещениий"; |
280 | $format_house = 'Аренда'; | 363 | $format_house = 'Аренда'; |
281 | break; | 364 | break; |
282 | case 'sale': | 365 | case 'sale': |
283 | $title = "Продажа торговых помещений"; | 366 | $title = "Продажа торговых помещений"; |
284 | $format_house = 'Продажа'; | 367 | $format_house = 'Продажа'; |
285 | break; | 368 | break; |
286 | case 'bussiness': | 369 | case 'bussiness': |
287 | $title = "Арендый бизнес"; | 370 | $title = "Арендый бизнес"; |
288 | $format_house = 'Бизнес'; | 371 | $format_house = 'Бизнес'; |
289 | break; | 372 | break; |
290 | case 'arendovannie': | 373 | case 'arendovannie': |
291 | $title = "Арендованные"; | 374 | $title = "Арендованные"; |
292 | $format_house = 'Арендованные'; | 375 | $format_house = 'Арендованные'; |
293 | break; | 376 | break; |
294 | default: | 377 | default: |
295 | $title = "Аренда торговых помещениий"; | 378 | $title = "Аренда торговых помещениий"; |
296 | $format_house = 'Аренда'; | 379 | $format_house = 'Аренда'; |
297 | break; | 380 | break; |
298 | } | 381 | } |
299 | 382 | ||
300 | $houses = House::with('areas')-> | 383 | $houses = House::with('areas')-> |
301 | where('format_house', '=', $format_house); | 384 | where('format_house', '=', $format_house); |
302 | //->appends(request()->query()); | 385 | //->appends(request()->query()); |
303 | 386 | ||
304 | $houses = (new FilterData($houses, $request))->apply(); | 387 | $houses = (new FilterData($houses, $request))->apply(); |
305 | 388 | ||
306 | if (isset($request->sort_price)) { | 389 | if (isset($request->sort_price)) { |
307 | $houses = (new SortData($houses, $request))->apply(); | 390 | $houses = (new SortData($houses, $request))->apply(); |
308 | 391 | ||
309 | 392 | ||
310 | } else { | 393 | } else { |
311 | $houses = $houses->orderBy('price')-> | 394 | $houses = $houses->orderBy('price')-> |
312 | orderByDesc('created_at')-> | 395 | orderByDesc('created_at')-> |
313 | orderByDesc('area'); | 396 | orderByDesc('area'); |
314 | } | 397 | } |
315 | 398 | ||
316 | $houses = $houses->paginate(4); | 399 | $houses = $houses->paginate(4); |
317 | 400 | ||
318 | if ($request->ajax()) { | 401 | if ($request->ajax()) { |
319 | return view('ajax.complex.category', compact('houses')); | 402 | return view('ajax.complex.category', compact('houses')); |
320 | } | 403 | } |
321 | 404 | ||
322 | return view('category_catalog', compact('title', 'cat', 'houses')); | 405 | return view('category_catalog', compact('title', 'cat', 'houses')); |
323 | } | 406 | } |
324 | 407 | ||
325 | public function Test(Request $request) { | 408 | public function Test(Request $request) { |
326 | $house_arenda = House::with('areas')-> | 409 | $house_arenda = House::with('areas')-> |
327 | where('format_house', '=', 'Аренда'); | 410 | where('format_house', '=', 'Аренда'); |
328 | 411 | ||
329 | $house_arenda = $house_arenda->orderByDesc('price')-> | 412 | $house_arenda = $house_arenda->orderByDesc('price')-> |
330 | orderByDesc('created_at')-> | 413 | orderByDesc('created_at')-> |
331 | orderByDesc('area')->get(); | 414 | orderByDesc('area')->get(); |
332 | 415 | ||
333 | 416 | ||
334 | return view('ajax.complex.arenda', compact('house_arenda')); | 417 | return view('ajax.complex.arenda', compact('house_arenda')); |
335 | 418 | ||
336 | } | 419 | } |
337 | 420 | ||
338 | 421 | ||
339 | /* | 422 | /* |
340 | * Каталог | 423 | * Каталог |
341 | */ | 424 | */ |
342 | public function Catalog(Request $request) { | 425 | public function Catalog(Request $request) { |
343 | 426 | ||
344 | //////////раздел аренда///////////////////////////////////////////////////////////////// | 427 | //////////раздел аренда///////////////////////////////////////////////////////////////// |
345 | $house_arenda = House::with('areas')-> | 428 | $house_arenda = House::with('areas')-> |
346 | where('format_house', '=', 'Аренда'); | 429 | where('format_house', '=', 'Аренда'); |
347 | // условия поиска по объектам комплексов | 430 | // условия поиска по объектам комплексов |
348 | 431 | ||
349 | $house_arenda = (new FilterData($house_arenda, $request))->apply(); | 432 | $house_arenda = (new FilterData($house_arenda, $request))->apply(); |
350 | 433 | ||
351 | if ($request->view == 'arenda') { | 434 | if ($request->view == 'arenda') { |
352 | $house_arenda = (new SortData($house_arenda, $request))->apply()->get(); | 435 | $house_arenda = (new SortData($house_arenda, $request))->apply()->get(); |
353 | } else { | 436 | } else { |
354 | $house_arenda = $house_arenda->orderBy('price')-> | 437 | $house_arenda = $house_arenda->orderBy('price')-> |
355 | orderByDesc('created_at')-> | 438 | orderByDesc('created_at')-> |
356 | orderByDesc('area')->get(); | 439 | orderByDesc('area')->get(); |
357 | } | 440 | } |
358 | 441 | ||
359 | ////////раздел продажа////////////////////////////////////////////////////////////////// | 442 | ////////раздел продажа////////////////////////////////////////////////////////////////// |
360 | $house_prodaja = House::with('areas')-> | 443 | $house_prodaja = House::with('areas')-> |
361 | where('format_house', '=', 'Продажа'); | 444 | where('format_house', '=', 'Продажа'); |
362 | 445 | ||
363 | $house_prodaja = (new FilterData($house_prodaja, $request))->apply(); | 446 | $house_prodaja = (new FilterData($house_prodaja, $request))->apply(); |
364 | 447 | ||
365 | if ($request->view == 'prodaja') { | 448 | if ($request->view == 'prodaja') { |
366 | $house_prodaja = (new SortData($house_prodaja, $request))->apply()->get(); | 449 | $house_prodaja = (new SortData($house_prodaja, $request))->apply()->get(); |
367 | 450 | ||
368 | } else { | 451 | } else { |
369 | $house_prodaja = $house_prodaja->orderBy('price')-> | 452 | $house_prodaja = $house_prodaja->orderBy('price')-> |
370 | orderByDesc('created_at')-> | 453 | orderByDesc('created_at')-> |
371 | orderByDesc('area')->get(); | 454 | orderByDesc('area')->get(); |
372 | } | 455 | } |
373 | 456 | ||
374 | //////////////// Раздел бизнеса///////////////////////////////////////////////////////// | 457 | //////////////// Раздел бизнеса///////////////////////////////////////////////////////// |
375 | $house_bissnes = House::with('areas')-> | 458 | $house_bissnes = House::with('areas')-> |
376 | where('format_house', '=', 'Бизнес'); | 459 | where('format_house', '=', 'Бизнес'); |
377 | //orderByDesc('created_at')->get(); | 460 | //orderByDesc('created_at')->get(); |
378 | 461 | ||
379 | $house_bissnes = (new FilterData($house_bissnes, $request))->apply(); | 462 | $house_bissnes = (new FilterData($house_bissnes, $request))->apply(); |
380 | 463 | ||
381 | if ($request->view == 'bissnes') { | 464 | if ($request->view == 'bissnes') { |
382 | $house_bissnes = (new SortData($house_bissnes, $request))->apply()->get(); | 465 | $house_bissnes = (new SortData($house_bissnes, $request))->apply()->get(); |
383 | 466 | ||
384 | } else { | 467 | } else { |
385 | $house_bissnes = $house_bissnes->orderBy('price')-> | 468 | $house_bissnes = $house_bissnes->orderBy('price')-> |
386 | orderByDesc('created_at')-> | 469 | orderByDesc('created_at')-> |
387 | orderByDesc('area')->get(); | 470 | orderByDesc('area')->get(); |
388 | } | 471 | } |
389 | 472 | ||
390 | //////////раздел арендованные////////////////////////////////////////////////////////// | 473 | //////////раздел арендованные////////////////////////////////////////////////////////// |
391 | $house_arendovannie = House::with('areas')-> | 474 | $house_arendovannie = House::with('areas')-> |
392 | where('format_house', '=', 'Арендованные'); | 475 | where('format_house', '=', 'Арендованные'); |
393 | //orderByDesc('created_at')->get(); | 476 | //orderByDesc('created_at')->get(); |
394 | 477 | ||
395 | $house_arendovannie = (new FilterData($house_arendovannie, $request))->apply(); | 478 | $house_arendovannie = (new FilterData($house_arendovannie, $request))->apply(); |
396 | 479 | ||
397 | if ($request->view == 'arendovannie') { | 480 | if ($request->view == 'arendovannie') { |
398 | $house_arendovannie = (new SortData($house_arendovannie, $request))->apply()->get(); | 481 | $house_arendovannie = (new SortData($house_arendovannie, $request))->apply()->get(); |
399 | 482 | ||
400 | } else { | 483 | } else { |
401 | $house_arendovannie = $house_arendovannie->orderBy('price')-> | 484 | $house_arendovannie = $house_arendovannie->orderBy('price')-> |
402 | orderByDesc('created_at')-> | 485 | orderByDesc('created_at')-> |
403 | orderByDesc('area')->get(); | 486 | orderByDesc('area')->get(); |
404 | } | 487 | } |
405 | 488 | ||
406 | if ($request->ajax()) { | 489 | if ($request->ajax()) { |
407 | switch($request->view) { | 490 | switch($request->view) { |
408 | case 'arenda': return view('ajax.complex.arenda', compact('house_arenda')); break; | 491 | case 'arenda': return view('ajax.complex.arenda', compact('house_arenda')); break; |
409 | case 'prodaja': return view('ajax.complex.prodaja', compact('house_prodaja'));break; | 492 | case 'prodaja': return view('ajax.complex.prodaja', compact('house_prodaja'));break; |
410 | case 'bissnes': return view('ajax.complex.bissnes', compact('house_bissnes')); break; | 493 | case 'bissnes': return view('ajax.complex.bissnes', compact('house_bissnes')); break; |
411 | case 'arendovannie': return view('ajax.complex.arendovannie', compact('house_arendovannie')); break; | 494 | case 'arendovannie': return view('ajax.complex.arendovannie', compact('house_arendovannie')); break; |
412 | } | 495 | } |
413 | } | 496 | } |
414 | if (session('message') == 'Искать') { | 497 | if (session('message') == 'Искать') { |
415 | session()->flash('message', 'Сброс'); | 498 | session()->flash('message', 'Сброс'); |
416 | } else { | 499 | } else { |
417 | session()->flash('message', 'Искать'); | 500 | session()->flash('message', 'Искать'); |
418 | } | 501 | } |
419 | 502 | ||
420 | if (empty($request)) { | 503 | if (empty($request)) { |
421 | session()->flash('message', 'Искать'); | 504 | session()->flash('message', 'Искать'); |
422 | } | 505 | } |
423 | 506 | ||
424 | return view('catalog', compact( | 507 | return view('catalog', compact( |
425 | 'house_arenda', | 508 | 'house_arenda', |
426 | 'house_prodaja', | 509 | 'house_prodaja', |
427 | 'house_bissnes', | 510 | 'house_bissnes', |
428 | 'house_arendovannie' | 511 | 'house_arendovannie' |
429 | )); | 512 | )); |
430 | 513 | ||
431 | 514 | ||
432 | } | 515 | } |
433 | 516 | ||
434 | /* | 517 | /* |
435 | * Новости | 518 | * Новости |
436 | */ | 519 | */ |
437 | public function News() { | 520 | public function News() { |
438 | //$news = News::orderByDesc('created_at')->limit(1)->paginate(); | 521 | //$news = News::orderByDesc('created_at')->limit(1)->paginate(); |
439 | $news_ = News::query()->orderByDesc('created_at')->paginate(4); | 522 | $news_ = News::query()->orderByDesc('created_at')->paginate(4); |
440 | return view('news', compact('news_')); | 523 | return view('news', compact('news_')); |
441 | } | 524 | } |
442 | 525 | ||
443 | /* | 526 | /* |
444 | * Контакты | 527 | * Контакты |
445 | */ | 528 | */ |
446 | public function Contact() { | 529 | public function Contact() { |
447 | return view('contact'); | 530 | return view('contact'); |
448 | } | 531 | } |
449 | 532 | ||
450 | /* | 533 | /* |
451 | * Карта объектов | 534 | * Карта объектов |
452 | */ | 535 | */ |
453 | public function MapsObj(Request $request) { | 536 | public function MapsObj(Request $request) { |
454 | //$houses = House::with('areas'); | 537 | //$houses = House::with('areas'); |
455 | //$houses = $houses->orderBy('id')->get(); | 538 | //$houses = $houses->orderBy('id')->get(); |
456 | $input = $request->all(); | 539 | $input = $request->all(); |
457 | 540 | ||
458 | $houses = House::with('areas'); | 541 | $houses = House::with('areas'); |
459 | if (empty($input)) { | 542 | if (empty($input)) { |
460 | 543 | ||
461 | } else { | 544 | } else { |
462 | $houses = (new FilterData($houses, $request))->apply(); | 545 | $houses = (new FilterData($houses, $request))->apply(); |
463 | } | 546 | } |
464 | 547 | ||
465 | $houses = $houses->orderByDesc('id')->get(); | 548 | $houses = $houses->orderByDesc('id')->get(); |
466 | 549 | ||
467 | $areas = Area::query()->orderBy('id')->get(); | 550 | $areas = Area::query()->orderBy('id')->get(); |
468 | 551 | ||
469 | return view('mapsobj', compact('areas', 'input', 'houses')); | 552 | return view('mapsobj', compact('areas', 'input', 'houses')); |
470 | } | 553 | } |
471 | 554 | ||
472 | /* | 555 | /* |
473 | * Посмотр конктретного предложение офиса | 556 | * Посмотр конктретного предложение офиса |
474 | */ | 557 | */ |
475 | public function Offer(House $house, Request $request) { | 558 | public function Offer(House $house, Request $request) { |
476 | $houses = House::with('areas'); | 559 | $houses = House::with('areas'); |
477 | $houses = $houses->where('type_area_id', '=', $house->typearea->id); | 560 | $houses = $houses->where('type_area_id', '=', $house->typearea->id); |
478 | $houses = $houses->where('format_house', '=', $house->format_house); | 561 | $houses = $houses->where('format_house', '=', $house->format_house); |
479 | $houses = $houses->orderByDesc('created_at')->limit(8)->get(); | 562 | $houses = $houses->orderByDesc('created_at')->limit(8)->get(); |
480 | 563 | ||
481 | //получение адреса страницы | 564 | //получение адреса страницы |
482 | $url = $request->url(); | 565 | $url = $request->url(); |
483 | // получение ip-адреса клиента | 566 | // получение ip-адреса клиента |
484 | $ip = RusDate::ip_addr_client(); | 567 | $ip = RusDate::ip_addr_client(); |
485 | 568 | ||
486 | //получение выборки данных из базы данных по данной странице | 569 | //получение выборки данных из базы данных по данной странице |
487 | $page_ = Page::query()->where('url', '=', "$url")-> | 570 | $page_ = Page::query()->where('url', '=', "$url")-> |
488 | orderBy('created_at')->limit(1)->get(); | 571 | orderBy('created_at')->limit(1)->get(); |
489 | 572 | ||
490 | //если интервал времени больше суток, то обнуляем счетчик | 573 | //если интервал времени больше суток, то обнуляем счетчик |
491 | if ($page_->count()) { | 574 | if ($page_->count()) { |
492 | $result = RusDate::interval_day($page_[0]->created_at); | 575 | $result = RusDate::interval_day($page_[0]->created_at); |
493 | if ($result) { | 576 | if ($result) { |
494 | DB::table('pages')->where('url', '=', "$url")->delete(); | 577 | DB::table('pages')->where('url', '=', "$url")->delete(); |
495 | } | 578 | } |
496 | } | 579 | } |
497 | // проверяем если в базе данных данный ip-адрес | 580 | // проверяем если в базе данных данный ip-адрес |
498 | $count_user = DB::table('pages')->where('ipaddress', '=', "$ip")-> | 581 | $count_user = DB::table('pages')->where('ipaddress', '=', "$ip")-> |
499 | where('url', '=', "$url")->get(); | 582 | where('url', '=', "$url")->get(); |
500 | // если есть, то обновляем дату просмотра | 583 | // если есть, то обновляем дату просмотра |
501 | if ($count_user->count() > 0) { | 584 | if ($count_user->count() > 0) { |
502 | DB::table('pages')->where('ipaddress', '=', "$ip")-> | 585 | DB::table('pages')->where('ipaddress', '=', "$ip")-> |
503 | where('url', '=', "$url")->update(['created_at' => date('Y-m-d H:i')]); | 586 | where('url', '=', "$url")->update(['created_at' => date('Y-m-d H:i')]); |
504 | } else { | 587 | } else { |
505 | // в противном случае добавляем новый ip В бд | 588 | // в противном случае добавляем новый ip В бд |
506 | $page = new Page(); | 589 | $page = new Page(); |
507 | $page->ipaddress = $ip; | 590 | $page->ipaddress = $ip; |
508 | $page->url = $url; | 591 | $page->url = $url; |
509 | $page->save(); | 592 | $page->save(); |
510 | } | 593 | } |
511 | 594 | ||
512 | // выводим количество пользователей гостей данной страницы | 595 | // выводим количество пользователей гостей данной страницы |
513 | $count_user = DB::table('pages')->where('url', '=', "$url")->get(); | 596 | $count_user = DB::table('pages')->where('url', '=', "$url")->get(); |
514 | return view('house.post', compact('house', 'houses', 'count_user')); | 597 | return view('house.post', compact('house', 'houses', 'count_user')); |
515 | } | 598 | } |
516 | 599 | ||
517 | /* | 600 | /* |
518 | * Просмотр детально конкретной новости | 601 | * Просмотр детально конкретной новости |
519 | */ | 602 | */ |
520 | public function DetailNew(News $news) { | 603 | public function DetailNew(News $news) { |
521 | $news_list = News::query()->orderByDesc('created_at')->limit(8)->get(); | 604 | $news_list = News::query()->orderByDesc('created_at')->limit(8)->get(); |
522 | return view('new.post', compact('news', 'news_list')); | 605 | return view('new.post', compact('news', 'news_list')); |
523 | } | 606 | } |
524 | } | 607 | } |
525 | 608 |
app/Http/Requests/AreasRequest.php
1 | <?php | 1 | <?php |
2 | 2 | ||
3 | namespace App\Http\Requests; | 3 | namespace App\Http\Requests; |
4 | 4 | ||
5 | use Illuminate\Foundation\Http\FormRequest; | 5 | use Illuminate\Foundation\Http\FormRequest; |
6 | 6 | ||
7 | class AreasRequest extends FormRequest | 7 | class AreasRequest extends FormRequest |
8 | { | 8 | { |
9 | /** | 9 | /** |
10 | * Determine if the user is authorized to make this request. | 10 | * Determine if the user is authorized to make this request. |
11 | * | 11 | * |
12 | * @return bool | 12 | * @return bool |
13 | */ | 13 | */ |
14 | public function authorize() | 14 | public function authorize() |
15 | { | 15 | { |
16 | return true; | 16 | return true; |
17 | } | 17 | } |
18 | 18 | ||
19 | /** | 19 | /** |
20 | * Get the validation rules that apply to the request. | 20 | * Get the validation rules that apply to the request. |
21 | * | 21 | * |
22 | * @return array<string, mixed> | 22 | * @return array<string, mixed> |
23 | */ | 23 | */ |
24 | public function rules() | 24 | public function rules() |
25 | { | 25 | { |
26 | return [ | 26 | return [ |
27 | 'name_area' => 'required|min:3|max:255', | 27 | 'name_area' => 'required|min:3|max:255', |
28 | 'description' => 'required|min:5', | 28 | 'description' => 'required|min:5', |
29 | 'foto_main' => [ | ||
30 | 'mimes:jpeg,jpg,png', | ||
31 | 'max:10000' | ||
32 | ], | ||
29 | ]; | 33 | ]; |
30 | } | 34 | } |
31 | 35 | ||
32 | public function messages() { | 36 | public function messages() { |
33 | return [ | 37 | return [ |
34 | 'required' => 'Поле :attribute обязательно для ввода', | 38 | 'required' => 'Поле :attribute обязательно для ввода', |
35 | 'min' => 'Поле :attribute должно иметь минимум :min символов', | 39 | 'min' => [ |
36 | 'max' => 'Поле :attribute должно содержать не более :max символов' | 40 | 'string' => 'Поле «:attribute» должно быть не меньше :min символов', |
41 | 'file' => 'Файл «:attribute» должен быть не меньше :min Кбайт' | ||
42 | ], | ||
43 | 'max' => [ | ||
44 | 'string' => 'Поле «:attribute» должно быть не больше :max символов', | ||
45 | 'file' => 'Файл «:attribute» должен быть не больше :max Кбайт' | ||
46 | ], | ||
47 | |||
37 | ]; | 48 | ]; |
38 | } | 49 | } |
39 | 50 | ||
40 | } | 51 | } |
41 | 52 |
app/Http/Requests/FooterFeedbackRequest.php
1 | <?php | 1 | <?php |
2 | 2 | ||
3 | namespace App\Http\Requests; | 3 | namespace App\Http\Requests; |
4 | 4 | ||
5 | use Illuminate\Foundation\Http\FormRequest; | 5 | use Illuminate\Foundation\Http\FormRequest; |
6 | 6 | ||
7 | class FooterFeedbackRequest extends FormRequest | 7 | class FooterFeedbackRequest extends FormRequest |
8 | { | 8 | { |
9 | /** | 9 | /** |
10 | * Determine if the user is authorized to make this request. | 10 | * Determine if the user is authorized to make this request. |
11 | * | 11 | * |
12 | * @return bool | 12 | * @return bool |
13 | */ | 13 | */ |
14 | public function authorize() | 14 | public function authorize() |
15 | { | 15 | { |
16 | return true; | 16 | return true; |
17 | } | 17 | } |
18 | 18 | ||
19 | /** | 19 | /** |
20 | * Get the validation rules that apply to the request. | 20 | * Get the validation rules that apply to the request. |
21 | * | 21 | * |
22 | * @return array<string, mixed> | 22 | * @return array<string, mixed> |
23 | */ | 23 | */ |
24 | public function rules() | 24 | public function rules() |
25 | { | 25 | { |
26 | return [ | 26 | return [ |
27 | 'TelephoneUser' => [ | 27 | 'TelephoneUser' => [ |
28 | 'required', | 28 | 'required', |
29 | 'min:6', | 29 | 'min:6', |
30 | 'max:12', | 30 | 'max:15', |
31 | ], | 31 | ], |
32 | ]; | 32 | ]; |
33 | } | 33 | } |
34 | 34 | ||
35 | /** | 35 | /** |
36 | * Возвращает массив сообщений об ошибках для заданных правил | 36 | * Возвращает массив сообщений об ошибках для заданных правил |
37 | * | 37 | * |
38 | * @return array | 38 | * @return array |
39 | */ | 39 | */ |
40 | public function messages() { | 40 | public function messages() { |
41 | return [ | 41 | return [ |
42 | 'required' => 'Поле «:attribute» обязательно для заполнения', | 42 | 'required' => 'Поле «:attribute» обязательно для заполнения', |
43 | 'unique' => 'Такое значение поля «:attribute» уже используется', | 43 | 'unique' => 'Такое значение поля «:attribute» уже используется', |
44 | 'min' => [ | 44 | 'min' => [ |
45 | 'string' => 'Поле «:attribute» должно быть не меньше :min символов', | 45 | 'string' => 'Поле «:attribute» должно быть не меньше :min символов', |
46 | 'file' => 'Файл «:attribute» должен быть не меньше :min Кбайт' | 46 | 'file' => 'Файл «:attribute» должен быть не меньше :min Кбайт' |
47 | ], | 47 | ], |
48 | 'max' => [ | 48 | 'max' => [ |
49 | 'string' => 'Поле «:attribute» должно быть не больше :max символов', | 49 | 'string' => 'Поле «:attribute» должно быть не больше :max символов', |
50 | 'file' => 'Файл «:attribute» должен быть не больше :max Кбайт' | 50 | 'file' => 'Файл «:attribute» должен быть не больше :max Кбайт' |
51 | ], | 51 | ], |
52 | 'mimes' => 'Файл «:attribute» должен иметь формат :values', | 52 | 'mimes' => 'Файл «:attribute» должен иметь формат :values', |
53 | ]; | 53 | ]; |
54 | } | 54 | } |
55 | } | 55 | } |
56 | 56 |
app/Mail/SendMail.php
File was created | 1 | <?php | |
2 | |||
3 | namespace App\Mail; | ||
4 | |||
5 | use Illuminate\Bus\Queueable; | ||
6 | use Illuminate\Contracts\Queue\ShouldQueue; | ||
7 | use Illuminate\Mail\Mailable; | ||
8 | use Illuminate\Mail\Mailables\Content; | ||
9 | use Illuminate\Mail\Mailables\Envelope; | ||
10 | use Illuminate\Queue\SerializesModels; | ||
11 | |||
12 | class SendMail extends Mailable | ||
13 | { | ||
14 | use Queueable, SerializesModels; | ||
15 | |||
16 | public $mess; | ||
17 | |||
18 | /** | ||
19 | * Create a new message instance. | ||
20 | * | ||
21 | * @return void | ||
22 | */ | ||
23 | public function __construct($mess) | ||
24 | { | ||
25 | $this->mess = $mess; | ||
26 | } | ||
27 | |||
28 | /** | ||
29 | * Get the message envelope. | ||
30 | * | ||
31 | * @return \Illuminate\Mail\Mailables\Envelope | ||
32 | */ | ||
33 | public function envelope() | ||
34 | { | ||
35 | return new Envelope( | ||
36 | subject: 'Send Mail', | ||
37 | ); | ||
38 | } | ||
39 | |||
40 | /** | ||
41 | * Get the message content definition. | ||
42 | * | ||
43 | * @return \Illuminate\Mail\Mailables\Content | ||
44 | */ | ||
45 | public function content() | ||
46 | { | ||
47 | return new Content( | ||
48 | view: 'emails.main', | ||
49 | ); | ||
50 | } | ||
51 | |||
52 | /** | ||
53 | * Get the attachments for the message. | ||
54 | * | ||
55 | * @return array | ||
56 | */ | ||
57 | public function attachments() | ||
58 | { | ||
59 | return []; | ||
60 | } | ||
61 | |||
62 | public function build() { | ||
63 | return $this->view('emails.main', ['mess' => $this->mess]); | ||
64 | } | ||
65 | } | ||
66 |
resources/views/admin/area/form.blade.php
1 | @csrf | 1 | @csrf |
2 | 2 | ||
3 | @isset($area) | 3 | @isset($area) |
4 | @method('PUT') | 4 | @method('PUT') |
5 | @endisset | 5 | @endisset |
6 | 6 | ||
7 | <label for="name_area">Название объекта: <span class="req">*</span></label> | 7 | <label for="name_area">Название объекта: <span class="req">*</span></label> |
8 | @error('name_area') | 8 | @error('name_area') |
9 | <div class="alert alert-danger">{{ $message }}</div> | 9 | <div class="alert alert-danger">{{ $message }}</div> |
10 | @enderror | 10 | @enderror |
11 | <input type="text" class="form-control_ txt" name="name_area" placeholder="Название объекта" | 11 | <input type="text" class="form-control_ txt" name="name_area" placeholder="Название объекта" |
12 | required maxlength="100" style="width: 80%" value="{{ old('name_area') ?? $area->name_area ?? '' }}"><br> | 12 | required maxlength="100" style="width: 80%" value="{{ old('name_area') ?? $area->name_area ?? '' }}"><br> |
13 | 13 | ||
14 | <label for="description">Описание объекта: <span class="req">*</span></label> | 14 | <label for="description">Описание объекта: <span class="req">*</span></label> |
15 | @error('description') | 15 | @error('description') |
16 | <div class="alert alert-danger">{{ $message }}</div> | 16 | <div class="alert alert-danger">{{ $message }}</div> |
17 | @enderror | 17 | @enderror |
18 | <textarea class="form-control_ txtarea ckeditor" name="description" placeholder="Описание" required | 18 | <textarea class="form-control_ txtarea ckeditor" name="description" placeholder="Описание" required |
19 | rows="10" style="width: 80%">{{ old('description') ?? $area->description ?? '' }}</textarea><br> | 19 | rows="10" style="width: 80%">{{ old('description') ?? $area->description ?? '' }}</textarea><br> |
20 | 20 | ||
21 | <label for="coord_x">Коорд. X: </label> | 21 | <label for="coord_x">Коорд. X: </label> |
22 | <input type="text" class="form-control_ txt" name="coord_x" placeholder="Координаты X" | 22 | <input type="text" class="form-control_ txt" name="coord_x" placeholder="Координаты X" |
23 | required maxlength="100" value="{{ old('coord_x') ?? $area->coord_x ?? '' }}"><br> | 23 | required maxlength="100" value="{{ old('coord_x') ?? $area->coord_x ?? '' }}"><br> |
24 | 24 | ||
25 | <label for="coord_y">Коорд. Y: </label> | 25 | <label for="coord_y">Коорд. Y: </label> |
26 | <input type="text" class="form-control_ txt" name="coord_y" placeholder="Координаты Y" | 26 | <input type="text" class="form-control_ txt" name="coord_y" placeholder="Координаты Y" |
27 | required maxlength="100" value="{{ old('coord_y') ?? $area->coord_y ?? '' }}"><br> | 27 | required maxlength="100" value="{{ old('coord_y') ?? $area->coord_y ?? '' }}"><br> |
28 | 28 | ||
29 | 29 | ||
30 | <label for="foto_main">Файл-картинка:</label> | 30 | <label for="foto_main">Файл-картинка:</label> |
31 | <input type="file" class="form-control-file txt" name="foto_main" id="foto_main" accept="image/png, image/jpeg"> | 31 | <input type="file" class="form-control-file txt" name="foto_main" id="foto_main" accept="image/png, image/jpeg"> |
32 | 32 | ||
33 | @isset($area->foto_main) | 33 | @isset($area->foto_main) |
34 | <div class="form-group form-check"> | 34 | <div class="form-group form-check"> |
35 | <img src="/storage/app/public/<?=$area->foto_main;//=asset(Storage::url($area->foto_main))?>" width="100px"/> | 35 | <img src="/storage/app/public/<?=$area->foto_main;//=asset(Storage::url($area->foto_main))?>" width="100px"/> |
36 | <input type="checkbox" class="form-check-input" name="remove" id="remove"> | 36 | <!--<input type="checkbox" class="form-check-input" name="remove" id="remove"> |
37 | <label class="form-check-label" for="remove"> | 37 | <label class="form-check-label" for="remove"> |
38 | Удалить загруженное изображение | 38 | Удалить загруженное изображение |
39 | </label> | 39 | </label>--> |
40 | </div> | 40 | </div> |
41 | @endisset | 41 | @endisset |
42 | <br><br> | 42 | <br><br> |
43 | <button type="submit" class="btn hero-search__btn btn--main">Сохранить</button> | 43 | <button type="submit" class="btn hero-search__btn btn--main">Сохранить</button> |
44 | 44 | ||
45 | 45 | ||
46 | 46 |
resources/views/admin/houses/form.blade.php
1 | @csrf | 1 | @csrf |
2 | 2 | ||
3 | @isset($house) | 3 | @isset($house) |
4 | @method('PUT') | 4 | @method('PUT') |
5 | @endisset | 5 | @endisset |
6 | 6 | ||
7 | <label for="title">Заголовок офиса: <span class="req">*</span></label><br> | 7 | <label for="title">Заголовок офиса: <span class="req">*</span></label><br> |
8 | @error('title') | 8 | @error('title') |
9 | <div class="alert alert-danger">{{ $message }}</div> | 9 | <div class="alert alert-danger">{{ $message }}</div> |
10 | @enderror | 10 | @enderror |
11 | <input type="text" class="form-control_ txt" name="title" placeholder="Название офиса" | 11 | <input type="text" class="form-control_ txt" name="title" placeholder="Название офиса" |
12 | required maxlength="100" style="width: 80%" value="{{ old('title') ?? $house->title ?? '' }}"><br><br> | 12 | required maxlength="100" style="width: 80%" value="{{ old('title') ?? $house->title ?? '' }}"><br><br> |
13 | 13 | ||
14 | <label for="best">Лучшее предложение: </label><br> | 14 | <label for="best">Лучшее предложение: </label><br> |
15 | @error('best') | 15 | @error('best') |
16 | <div class="alert alert-danger">{{ $message }}</div> | 16 | <div class="alert alert-danger">{{ $message }}</div> |
17 | @enderror | 17 | @enderror |
18 | <select name="best" id="best" class="form-control"> | 18 | <select name="best" id="best" class="form-control"> |
19 | <option value="1" | 19 | <option value="1" |
20 | @isset($house) | 20 | @isset($house) |
21 | @if($house->best == '1') | 21 | @if($house->best == '1') |
22 | selected | 22 | selected |
23 | @endif | 23 | @endif |
24 | @endisset | 24 | @endisset |
25 | >Да</option> | 25 | >Да</option> |
26 | <option value="0" | 26 | <option value="0" |
27 | @isset($house) | 27 | @isset($house) |
28 | @if($house->best == '0') | 28 | @if($house->best == '0') |
29 | selected | 29 | selected |
30 | @endif | 30 | @endif |
31 | @endisset | 31 | @endisset |
32 | >Нет</option> | 32 | >Нет</option> |
33 | </select><br><br> | 33 | </select><br><br> |
34 | 34 | ||
35 | <label for="area_id">Объект недвижимости (ЖК): <span class="req">*</span></label><br> | 35 | <label for="area_id">Объект недвижимости (ЖК): <span class="req">*</span></label><br> |
36 | @error('area_id') | 36 | @error('area_id') |
37 | <div class="alert alert-danger">{{ $message }}</div> | 37 | <div class="alert alert-danger">{{ $message }}</div> |
38 | @enderror | 38 | @enderror |
39 | <select name="area_id" id="area_id" class="form-control"> | 39 | <select name="area_id" id="area_id" class="form-control"> |
40 | @foreach($areas as $area) | 40 | @foreach($areas as $area) |
41 | <option value="{{ $area->id }}" | 41 | <option value="{{ $area->id }}" |
42 | @isset($house) | 42 | @isset($house) |
43 | @if($house->area_id == $area->id) | 43 | @if($house->area_id == $area->id) |
44 | selected | 44 | selected |
45 | @endif | 45 | @endif |
46 | @endisset | 46 | @endisset |
47 | >{{ $area->name_area }}</option> | 47 | >{{ $area->name_area }}</option> |
48 | @endforeach | 48 | @endforeach |
49 | </select><br><br> | 49 | </select><br><br> |
50 | 50 | ||
51 | <label for="type_area_id">Тип недвижимости: <span class="req">*</span></label><br> | 51 | <label for="type_area_id">Тип недвижимости: <span class="req">*</span></label><br> |
52 | @error('type_area_id') | 52 | @error('type_area_id') |
53 | <div class="alert alert-danger">{{ $message }}</div> | 53 | <div class="alert alert-danger">{{ $message }}</div> |
54 | @enderror | 54 | @enderror |
55 | <select name="type_area_id" id="type_area_id" class="form-control"> | 55 | <select name="type_area_id" id="type_area_id" class="form-control"> |
56 | @foreach($type_areas as $tarea) | 56 | @foreach($type_areas as $tarea) |
57 | <option value="{{ $tarea->id }}" | 57 | <option value="{{ $tarea->id }}" |
58 | @isset($house) | 58 | @isset($house) |
59 | @if($house->type_area_id == $tarea->id) | 59 | @if($house->type_area_id == $tarea->id) |
60 | selected | 60 | selected |
61 | @endif | 61 | @endif |
62 | @endisset | 62 | @endisset |
63 | >{{ $tarea->name_type }}</option> | 63 | >{{ $tarea->name_type }}</option> |
64 | @endforeach | 64 | @endforeach |
65 | </select><br><br> | 65 | </select><br><br> |
66 | 66 | ||
67 | <label for="format_area_id">Формат недвижимости: <span class="req">*</span></label><br> | 67 | <label for="format_area_id">Формат недвижимости: <span class="req">*</span></label><br> |
68 | @error('format_area_id') | 68 | @error('format_area_id') |
69 | <div class="alert alert-danger">{{ $message }}</div> | 69 | <div class="alert alert-danger">{{ $message }}</div> |
70 | @enderror | 70 | @enderror |
71 | <select name="format_area_id" id="format_area_id" class="form-control"> | 71 | <select name="format_area_id" id="format_area_id" class="form-control"> |
72 | @foreach($format_areas as $farea) | 72 | @foreach($format_areas as $farea) |
73 | <option value="{{ $farea->id }}" | 73 | <option value="{{ $farea->id }}" |
74 | @isset($house) | 74 | @isset($house) |
75 | @if($house->format_area_id == $farea->id) | 75 | @if($house->format_area_id == $farea->id) |
76 | selected | 76 | selected |
77 | @endif | 77 | @endif |
78 | @endisset | 78 | @endisset |
79 | >{{ $farea->name_format }}</option> | 79 | >{{ $farea->name_format }}</option> |
80 | @endforeach | 80 | @endforeach |
81 | </select><br><br> | 81 | </select><br><br> |
82 | 82 | ||
83 | <label for="metro">Метро: <span class="req">*</span></label><br> | 83 | <label for="metro">Метро: <span class="req">*</span></label><br> |
84 | @error('metro') | 84 | @error('metro') |
85 | <div class="alert alert-danger">{{ $message }}</div> | 85 | <div class="alert alert-danger">{{ $message }}</div> |
86 | @enderror | 86 | @enderror |
87 | <input type="text" class="form-control_ txt" name="metro" placeholder="Название метро" | 87 | <input type="text" class="form-control_ txt" name="metro" placeholder="Название метро" |
88 | required maxlength="100" style="width: 80%" value="{{ old('metro') ?? $house->metro ?? '' }}"><br><br> | 88 | required maxlength="100" style="width: 80%" value="{{ old('metro') ?? $house->metro ?? '' }}"><br><br> |
89 | 89 | ||
90 | <label for="description_metro">Удаленность метро: </label><br> | 90 | <label for="description_metro">Удаленность метро: </label><br> |
91 | @error('description_metro') | 91 | @error('description_metro') |
92 | <div class="alert alert-danger">{{ $message }}</div> | 92 | <div class="alert alert-danger">{{ $message }}</div> |
93 | @enderror | 93 | @enderror |
94 | <input type="text" class="form-control_ txt" name="description_metro" placeholder="Удаленность метро" | 94 | <input type="text" class="form-control_ txt" name="description_metro" placeholder="Удаленность метро" |
95 | required maxlength="100" style="width: 80%" value="{{ old('description_metro') ?? $house->description_metro ?? '' }}"><br><br> | 95 | required maxlength="100" style="width: 80%" value="{{ old('description_metro') ?? $house->description_metro ?? '' }}"><br><br> |
96 | 96 | ||
97 | <label for="address">Адрес: <span class="req">*</span></label><br> | 97 | <label for="address">Адрес: <span class="req">*</span></label><br> |
98 | @error('address') | 98 | @error('address') |
99 | <div class="alert alert-danger">{{ $message }}</div> | 99 | <div class="alert alert-danger">{{ $message }}</div> |
100 | @enderror | 100 | @enderror |
101 | <input type="text" class="form-control_ txt" name="address" placeholder="Адрес" | 101 | <input type="text" class="form-control_ txt" name="address" placeholder="Адрес" |
102 | required maxlength="100" style="width: 80%" value="{{ old('address') ?? $house->address ?? '' }}"><br><br> | 102 | required maxlength="100" style="width: 80%" value="{{ old('address') ?? $house->address ?? '' }}"><br><br> |
103 | 103 | ||
104 | <label for="okrug">Округ: <span class="req">*</span></label><br> | 104 | <label for="okrug">Округ: <span class="req">*</span></label><br> |
105 | @error('okrug') | 105 | @error('okrug') |
106 | <div class="alert alert-danger">{{ $message }}</div> | 106 | <div class="alert alert-danger">{{ $message }}</div> |
107 | @enderror | 107 | @enderror |
108 | <input type="text" class="form-control_ txt" name="okrug" placeholder="Округ" | 108 | <input type="text" class="form-control_ txt" name="okrug" placeholder="Округ" |
109 | required maxlength="100" style="width: 80%" value="{{ old('okrug') ?? $house->okrug ?? '' }}"><br><br> | 109 | required maxlength="100" style="width: 80%" value="{{ old('okrug') ?? $house->okrug ?? '' }}"><br><br> |
110 | 110 | ||
111 | <label for="foto_main">Файл-картинка:</label><br> | 111 | <label for="foto_main">Файл-картинка:</label><br> |
112 | <input type="file" class="form-control-file txt" name="foto_main" id="foto_main" accept="image/png, image/jpeg"><br> | 112 | <input type="file" class="form-control-file txt" name="foto_main" id="foto_main" accept="image/png, image/jpeg"><br> |
113 | 113 | ||
114 | @isset($house->foto_main) | 114 | @isset($house->foto_main) |
115 | <div class="form-group form-check"> | 115 | <div class="form-group form-check"> |
116 | <img src="/storage/app/public/<?=$house->foto_main;//=asset(Storage::url($house->foto_main))?>" width="100px"/> | 116 | <img src="/storage/app/public/<?=$house->foto_main;//=asset(Storage::url($house->foto_main))?>" width="100px"/> |
117 | <input type="checkbox" class="form-check-input" name="remove" id="remove"> | 117 | <!--<input type="checkbox" class="form-check-input" name="remove" id="remove"> |
118 | <label class="form-check-label" for="remove"> | 118 | <label class="form-check-label" for="remove"> |
119 | Удалить загруженное изображение | 119 | Удалить загруженное изображение |
120 | </label> | 120 | </label>--> |
121 | </div> | 121 | </div> |
122 | @endisset | 122 | @endisset |
123 | <br> | 123 | <br> |
124 | 124 | ||
125 | <label for="articul_area">Артикул помещения: </label><br> | 125 | <label for="articul_area">Артикул помещения: </label><br> |
126 | @error('articul_area') | 126 | @error('articul_area') |
127 | <div class="alert alert-danger">{{ $message }}</div> | 127 | <div class="alert alert-danger">{{ $message }}</div> |
128 | @enderror | 128 | @enderror |
129 | <input type="text" class="form-control_ txt" name="articul_area" placeholder="Артикул помещения" | 129 | <input type="text" class="form-control_ txt" name="articul_area" placeholder="Артикул помещения" |
130 | required maxlength="100" style="width: 80%" value="{{ old('articul_area') ?? $house->articul_area ?? '' }}"><br><br> | 130 | required maxlength="100" style="width: 80%" value="{{ old('articul_area') ?? $house->articul_area ?? '' }}"><br><br> |
131 | 131 | ||
132 | <label for="format_house">Формат помещения: <span class="req">*</span></label><br> | 132 | <label for="format_house">Формат помещения: <span class="req">*</span></label><br> |
133 | @error('format_house') | 133 | @error('format_house') |
134 | <div class="alert alert-danger">{{ $message }}</div> | 134 | <div class="alert alert-danger">{{ $message }}</div> |
135 | @enderror | 135 | @enderror |
136 | <select name="format_house" id="format_house" class="form-control"> | 136 | <select name="format_house" id="format_house" class="form-control"> |
137 | <option value="Аренда" | 137 | <option value="Аренда" |
138 | @isset($house) | 138 | @isset($house) |
139 | @if($house->format_house == 'Аренда') | 139 | @if($house->format_house == 'Аренда') |
140 | selected | 140 | selected |
141 | @endif | 141 | @endif |
142 | @endisset | 142 | @endisset |
143 | >Аренда</option> | 143 | >Аренда</option> |
144 | <option value="Продажа" | 144 | <option value="Продажа" |
145 | @isset($house) | 145 | @isset($house) |
146 | @if($house->format_house == 'Продажа') | 146 | @if($house->format_house == 'Продажа') |
147 | selected | 147 | selected |
148 | @endif | 148 | @endif |
149 | @endisset | 149 | @endisset |
150 | >Продажа</option> | 150 | >Продажа</option> |
151 | <option value="Бизнес" | 151 | <option value="Бизнес" |
152 | @isset($house) | 152 | @isset($house) |
153 | @if($house->format_house == 'Бизнес') | 153 | @if($house->format_house == 'Бизнес') |
154 | selected | 154 | selected |
155 | @endif | 155 | @endif |
156 | @endisset | 156 | @endisset |
157 | >Бизнес</option> | 157 | >Бизнес</option> |
158 | <option value="Арендованные" | 158 | <option value="Арендованные" |
159 | @isset($house) | 159 | @isset($house) |
160 | @if($house->format_house == 'Арендованные') | 160 | @if($house->format_house == 'Арендованные') |
161 | selected | 161 | selected |
162 | @endif | 162 | @endif |
163 | @endisset | 163 | @endisset |
164 | >Арендованные</option> | 164 | >Арендованные</option> |
165 | </select><br><br> | 165 | </select><br><br> |
166 | 166 | ||
167 | <label for="area">Площадь помещения: <span class="req">*</span></label><br> | 167 | <label for="area">Площадь помещения: <span class="req">*</span></label><br> |
168 | @error('area') | 168 | @error('area') |
169 | <div class="alert alert-danger">{{ $message }}</div> | 169 | <div class="alert alert-danger">{{ $message }}</div> |
170 | @enderror | 170 | @enderror |
171 | <input type="text" class="form-control_ txt" name="area" placeholder="Площадь помещения" | 171 | <input type="text" class="form-control_ txt" name="area" placeholder="Площадь помещения" |
172 | required maxlength="100" style="width: 80%" value="{{ old('area') ?? $house->area ?? '' }}"><br><br> | 172 | required maxlength="100" style="width: 80%" value="{{ old('area') ?? $house->area ?? '' }}"><br><br> |
173 | 173 | ||
174 | <label for="floor">Этаж: </label><br> | 174 | <label for="floor">Этаж: </label><br> |
175 | @error('floor') | 175 | @error('floor') |
176 | <div class="alert alert-danger">{{ $message }}</div> | 176 | <div class="alert alert-danger">{{ $message }}</div> |
177 | @enderror | 177 | @enderror |
178 | <input type="text" class="form-control_ txt" name="floor" placeholder="Этаж" | 178 | <input type="text" class="form-control_ txt" name="floor" placeholder="Этаж" |
179 | required maxlength="100" style="width: 80%" value="{{ old('floor') ?? $house->floor ?? '' }}"><br><br> | 179 | required maxlength="100" style="width: 80%" value="{{ old('floor') ?? $house->floor ?? '' }}"><br><br> |
180 | 180 | ||
181 | <label for="floor_bild">Этажность здания: </label><br> | 181 | <label for="floor_bild">Этажность здания: </label><br> |
182 | @error('floor_bild') | 182 | @error('floor_bild') |
183 | <div class="alert alert-danger">{{ $message }}</div> | 183 | <div class="alert alert-danger">{{ $message }}</div> |
184 | @enderror | 184 | @enderror |
185 | <input type="text" class="form-control_ txt" name="floor_bild" placeholder="Этажность здания" | 185 | <input type="text" class="form-control_ txt" name="floor_bild" placeholder="Этажность здания" |
186 | required maxlength="100" style="width: 80%" value="{{ old('floor_bild') ?? $house->floor_bild ?? '' }}"><br><br> | 186 | required maxlength="100" style="width: 80%" value="{{ old('floor_bild') ?? $house->floor_bild ?? '' }}"><br><br> |
187 | 187 | ||
188 | <label for="renter">Арендатор (поле только для аренды и арендованные): </label><br> | 188 | <label for="renter">Арендатор (поле только для аренды и арендованные): </label><br> |
189 | @error('renter') | 189 | @error('renter') |
190 | <div class="alert alert-danger">{{ $message }}</div> | 190 | <div class="alert alert-danger">{{ $message }}</div> |
191 | @enderror | 191 | @enderror |
192 | <input type="text" class="form-control_ txt" name="renter" placeholder="Арендатор" | 192 | <input type="text" class="form-control_ txt" name="renter" placeholder="Арендатор" |
193 | required maxlength="100" style="width: 80%" value="{{ old('renter') ?? $house->renter ?? '' }}"><br><br> | 193 | required maxlength="100" style="width: 80%" value="{{ old('renter') ?? $house->renter ?? '' }}"><br><br> |
194 | 194 | ||
195 | <label for="price">Цена (или аренда за месяц): </label><br> | 195 | <label for="price">Цена (или аренда за месяц): </label><br> |
196 | @error('price') | 196 | @error('price') |
197 | <div class="alert alert-danger">{{ $message }}</div> | 197 | <div class="alert alert-danger">{{ $message }}</div> |
198 | @enderror | 198 | @enderror |
199 | <input type="text" class="form-control_ txt" name="price" placeholder="Цена" | 199 | <input type="text" class="form-control_ txt" name="price" placeholder="Цена" |
200 | required maxlength="100" style="width: 80%" value="{{ old('price') ?? $house->price ?? '' }}"><br><br> | 200 | required maxlength="100" style="width: 80%" value="{{ old('price') ?? $house->price ?? '' }}"><br><br> |
201 | 201 | ||
202 | <label for="price_m2">Цена за метр2: </label><br> | 202 | <label for="price_m2">Цена за метр2: </label><br> |
203 | @error('price_m2') | 203 | @error('price_m2') |
204 | <div class="alert alert-danger">{{ $message }}</div> | 204 | <div class="alert alert-danger">{{ $message }}</div> |
205 | @enderror | 205 | @enderror |
206 | <input type="text" class="form-control_ txt" name="price_m2" placeholder="Цена за метр2" | 206 | <input type="text" class="form-control_ txt" name="price_m2" placeholder="Цена за метр2" |
207 | required maxlength="100" style="width: 80%" value="{{ old('price_m2') ?? $house->price_m2 ?? '' }}"><br><br> | 207 | required maxlength="100" style="width: 80%" value="{{ old('price_m2') ?? $house->price_m2 ?? '' }}"><br><br> |
208 | 208 | ||
209 | <label for="rent_in_year">Аренда в год (поле только для аренды и арендованные): </label><br> | 209 | <label for="rent_in_year">Аренда в год (поле только для аренды и арендованные): </label><br> |
210 | @error('rent_in_year') | 210 | @error('rent_in_year') |
211 | <div class="alert alert-danger">{{ $message }}</div> | 211 | <div class="alert alert-danger">{{ $message }}</div> |
212 | @enderror | 212 | @enderror |
213 | <input type="text" class="form-control_ txt" name="rent_in_year" placeholder="Аренда в год" | 213 | <input type="text" class="form-control_ txt" name="rent_in_year" placeholder="Аренда в год" |
214 | required maxlength="100" style="width: 80%" value="{{ old('rent_in_year') ?? $house->rent_in_year ?? '' }}"><br><br> | 214 | required maxlength="100" style="width: 80%" value="{{ old('rent_in_year') ?? $house->rent_in_year ?? '' }}"><br><br> |
215 | 215 | ||
216 | <label for="description_house">Описание офиса: </label><br> | 216 | <label for="description_house">Описание офиса: </label><br> |
217 | @error('description_house') | 217 | @error('description_house') |
218 | <div class="alert alert-danger">{{ $message }}</div> | 218 | <div class="alert alert-danger">{{ $message }}</div> |
219 | @enderror | 219 | @enderror |
220 | <textarea class="form-control_ txtarea ckeditor" name="description_house" placeholder="Описание офиса" required | 220 | <textarea class="form-control_ txtarea ckeditor" name="description_house" placeholder="Описание офиса" required |
221 | rows="10" style="width: 80%">{{ old('description_house') ?? $house->description_house ?? '' }}</textarea><br><br> | 221 | rows="10" style="width: 80%">{{ old('description_house') ?? $house->description_house ?? '' }}</textarea><br><br> |
222 | 222 | ||
223 | <label for="object_plan">План-объекта (картинка):</label><br> | 223 | <label for="object_plan">План-объекта (картинка):</label><br> |
224 | <input type="file" class="form-control-file txt" name="object_plan" id="object_plan" accept="image/png, image/jpeg"> | 224 | <input type="file" class="form-control-file txt" name="object_plan" id="object_plan" accept="image/png, image/jpeg"> |
225 | 225 | ||
226 | @isset($house->object_plan) | 226 | @isset($house->object_plan) |
227 | <div class="form-group form-check"> | 227 | <div class="form-group form-check"> |
228 | <img src="/storage/app/public/<?=$house->object_plan;//=asset(Storage::url($house->object_plan))?>" width="100px"/> | 228 | <img src="/storage/app/public/<?=$house->object_plan;//=asset(Storage::url($house->object_plan))?>" width="100px"/> |
229 | </div> | 229 | </div> |
230 | @endisset | 230 | @endisset |
231 | <br><br> | 231 | <br><br> |
232 | 232 | ||
233 | <label for="floor_plan">План-этажа (картинка):</label><br> | 233 | <label for="floor_plan">План-этажа (картинка):</label><br> |
234 | <input type="file" class="form-control-file txt" name="floor_plan" id="floor_plan" accept="image/png, image/jpeg"> | 234 | <input type="file" class="form-control-file txt" name="floor_plan" id="floor_plan" accept="image/png, image/jpeg"> |
235 | 235 | ||
236 | @isset($house->floor_plan) | 236 | @isset($house->floor_plan) |
237 | <div class="form-group form-check"> | 237 | <div class="form-group form-check"> |
238 | <img src="/storage/app/public/<?=$house->floor_plan;//=asset(Storage::url($house->floor_plan))?>" width="100px"/> | 238 | <img src="/storage/app/public/<?=$house->floor_plan;//=asset(Storage::url($house->floor_plan))?>" width="100px"/> |
239 | </div> | 239 | </div> |
240 | @endisset | 240 | @endisset |
241 | <br><br> | 241 | <br><br> |
242 | 242 | ||
243 | <label for="present">Презентация:</label><br> | 243 | <label for="present">Презентация:</label><br> |
244 | <input type="file" class="form-control-file txt" name="present" id="present"> | 244 | <input type="file" class="form-control-file txt" name="present" id="present"> |
245 | 245 | ||
246 | @isset($house->present) | 246 | @isset($house->present) |
247 | <div class="form-group form-check"> | 247 | <div class="form-group form-check"> |
248 | <a href="<?=asset(Storage::url($house->floor_plan))?>">Презентация</a> | 248 | <a href="/storage/app/public/<?=$house->present//asset(Storage::url($house->floor_plan))?>">Презентация</a> |
249 | </div> | 249 | </div> |
250 | @endisset | 250 | @endisset |
251 | <br><br> | 251 | <br><br> |
252 | 252 | ||
253 | <label for="unloading_area">Зона разгрузки: </label><br> | 253 | <label for="unloading_area">Зона разгрузки: </label><br> |
254 | @error('unloading_area') | 254 | @error('unloading_area') |
255 | <div class="alert alert-danger">{{ $message }}</div> | 255 | <div class="alert alert-danger">{{ $message }}</div> |
256 | @enderror | 256 | @enderror |
257 | <select name="unloading_area" id="unloading_area" class="form-control"> | 257 | <select name="unloading_area" id="unloading_area" class="form-control"> |
258 | <option value="1" | 258 | <option value="1" |
259 | @isset($house) | 259 | @isset($house) |
260 | @if($house->unloading_area == '1') | 260 | @if($house->unloading_area == '1') |
261 | selected | 261 | selected |
262 | @endif | 262 | @endif |
263 | @endisset | 263 | @endisset |
264 | >Есть</option> | 264 | >Есть</option> |
265 | <option value="0" | 265 | <option value="0" |
266 | @isset($house) | 266 | @isset($house) |
267 | @if($house->unloading_area == '0') | 267 | @if($house->unloading_area == '0') |
268 | selected | 268 | selected |
269 | @endif | 269 | @endif |
270 | @endisset | 270 | @endisset |
271 | >Нет</option> | 271 | >Нет</option> |
272 | </select><br><br> | 272 | </select><br><br> |
273 | 273 | ||
274 | <label for="electric_power">Электрическая мощность: </label><br> | 274 | <label for="electric_power">Электрическая мощность: </label><br> |
275 | @error('electric_power') | 275 | @error('electric_power') |
276 | <div class="alert alert-danger">{{ $message }}</div> | 276 | <div class="alert alert-danger">{{ $message }}</div> |
277 | @enderror | 277 | @enderror |
278 | <input type="text" class="form-control_ txt" name="electric_power" placeholder="Электрическая мощность" | 278 | <input type="text" class="form-control_ txt" name="electric_power" placeholder="Электрическая мощность" |
279 | required maxlength="100" style="width: 80%" value="{{ old('electric_power') ?? $house->electric_power ?? '' }}"><br><br> | 279 | required maxlength="100" style="width: 80%" value="{{ old('electric_power') ?? $house->electric_power ?? '' }}"><br><br> |
280 | 280 | ||
281 | <label for="travel_card">Проездное место: </label><br> | 281 | <label for="travel_card">Проездное место: </label><br> |
282 | @error('travel_card') | 282 | @error('travel_card') |
283 | <div class="alert alert-danger">{{ $message }}</div> | 283 | <div class="alert alert-danger">{{ $message }}</div> |
284 | @enderror | 284 | @enderror |
285 | <select name="travel_card" id="travel_card" class="form-control"> | 285 | <select name="travel_card" id="travel_card" class="form-control"> |
286 | <option value="1" | 286 | <option value="1" |
287 | @isset($house) | 287 | @isset($house) |
288 | @if($house->travel_card == '1') | 288 | @if($house->travel_card == '1') |
289 | selected | 289 | selected |
290 | @endif | 290 | @endif |
291 | @endisset | 291 | @endisset |
292 | >Да</option> | 292 | >Да</option> |
293 | <option value="0" | 293 | <option value="0" |
294 | @isset($house) | 294 | @isset($house) |
295 | @if($house->travel_card == '0') | 295 | @if($house->travel_card == '0') |
296 | selected | 296 | selected |
297 | @endif | 297 | @endif |
298 | @endisset | 298 | @endisset |
299 | >Нет</option> | 299 | >Нет</option> |
300 | </select><br><br> | 300 | </select><br><br> |
301 | 301 | ||
302 | <label for="passing_place">Проходное место: </label><br> | 302 | <label for="passing_place">Проходное место: </label><br> |
303 | @error('passing_place') | 303 | @error('passing_place') |
304 | <div class="alert alert-danger">{{ $message }}</div> | 304 | <div class="alert alert-danger">{{ $message }}</div> |
305 | @enderror | 305 | @enderror |
306 | <select name="passing_place" id="passing_place" class="form-control"> | 306 | <select name="passing_place" id="passing_place" class="form-control"> |
307 | <option value="1" | 307 | <option value="1" |
308 | @isset($house) | 308 | @isset($house) |
309 | @if($house->passing_place == '1') | 309 | @if($house->passing_place == '1') |
310 | selected | 310 | selected |
311 | @endif | 311 | @endif |
312 | @endisset | 312 | @endisset |
313 | >Да</option> | 313 | >Да</option> |
314 | <option value="0" | 314 | <option value="0" |
315 | @isset($house) | 315 | @isset($house) |
316 | @if($house->passing_place == '0') | 316 | @if($house->passing_place == '0') |
317 | selected | 317 | selected |
318 | @endif | 318 | @endif |
319 | @endisset | 319 | @endisset |
320 | >Нет</option> | 320 | >Нет</option> |
321 | </select><br><br> | 321 | </select><br><br> |
322 | 322 | ||
323 | <label for="separate_input">Отдельный вход: </label><br> | 323 | <label for="separate_input">Отдельный вход: </label><br> |
324 | @error('separate_input') | 324 | @error('separate_input') |
325 | <div class="alert alert-danger">{{ $message }}</div> | 325 | <div class="alert alert-danger">{{ $message }}</div> |
326 | @enderror | 326 | @enderror |
327 | <select name="separate_input" id="separate_input" class="form-control"> | 327 | <select name="separate_input" id="separate_input" class="form-control"> |
328 | <option value="1" | 328 | <option value="1" |
329 | @isset($house) | 329 | @isset($house) |
330 | @if($house->separate_input == '1') | 330 | @if($house->separate_input == '1') |
331 | selected | 331 | selected |
332 | @endif | 332 | @endif |
333 | @endisset | 333 | @endisset |
334 | >Да</option> | 334 | >Да</option> |
335 | <option value="0" | 335 | <option value="0" |
336 | @isset($house) | 336 | @isset($house) |
337 | @if($house->separate_input == '0') | 337 | @if($house->separate_input == '0') |
338 | selected | 338 | selected |
339 | @endif | 339 | @endif |
340 | @endisset | 340 | @endisset |
341 | >Нет</option> | 341 | >Нет</option> |
342 | </select><br><br> | 342 | </select><br><br> |
343 | 343 | ||
344 | <label for="shop_windows">Витрины: </label><br> | 344 | <label for="shop_windows">Витрины: </label><br> |
345 | @error('shop_windows') | 345 | @error('shop_windows') |
346 | <div class="alert alert-danger">{{ $message }}</div> | 346 | <div class="alert alert-danger">{{ $message }}</div> |
347 | @enderror | 347 | @enderror |
348 | <select name="shop_windows" id="shop_windows" class="form-control"> | 348 | <select name="shop_windows" id="shop_windows" class="form-control"> |
349 | <option value="1" | 349 | <option value="1" |
350 | @isset($house) | 350 | @isset($house) |
351 | @if($house->shop_windows == '1') | 351 | @if($house->shop_windows == '1') |
352 | selected | 352 | selected |
353 | @endif | 353 | @endif |
354 | @endisset | 354 | @endisset |
355 | >Да</option> | 355 | >Да</option> |
356 | <option value="0" | 356 | <option value="0" |
357 | @isset($house) | 357 | @isset($house) |
358 | @if($house->shop_windows == '0') | 358 | @if($house->shop_windows == '0') |
359 | selected | 359 | selected |
360 | @endif | 360 | @endif |
361 | @endisset | 361 | @endisset |
362 | >Нет</option> | 362 | >Нет</option> |
363 | </select><br><br> | 363 | </select><br><br> |
364 | 364 | ||
365 | <label for="place_advertising">Место для рекламы: </label><br> | 365 | <label for="place_advertising">Место для рекламы: </label><br> |
366 | @error('place_advertising') | 366 | @error('place_advertising') |
367 | <div class="alert alert-danger">{{ $message }}</div> | 367 | <div class="alert alert-danger">{{ $message }}</div> |
368 | @enderror | 368 | @enderror |
369 | <select name="place_advertising" id="place_advertising" class="form-control"> | 369 | <select name="place_advertising" id="place_advertising" class="form-control"> |
370 | <option value="1" | 370 | <option value="1" |
371 | @isset($house) | 371 | @isset($house) |
372 | @if($house->place_advertising == '1') | 372 | @if($house->place_advertising == '1') |
373 | selected | 373 | selected |
374 | @endif | 374 | @endif |
375 | @endisset | 375 | @endisset |
376 | >Да</option> | 376 | >Да</option> |
377 | <option value="0" | 377 | <option value="0" |
378 | @isset($house) | 378 | @isset($house) |
379 | @if($house->place_advertising == '0') | 379 | @if($house->place_advertising == '0') |
380 | selected | 380 | selected |
381 | @endif | 381 | @endif |
382 | @endisset | 382 | @endisset |
383 | >Нет</option> | 383 | >Нет</option> |
384 | </select><br><br> | 384 | </select><br><br> |
385 | 385 | ||
386 | <label for="windows">Окна: </label><br> | 386 | <label for="windows">Окна: </label><br> |
387 | @error('windows') | 387 | @error('windows') |
388 | <div class="alert alert-danger">{{ $message }}</div> | 388 | <div class="alert alert-danger">{{ $message }}</div> |
389 | @enderror | 389 | @enderror |
390 | <input type="text" class="form-control_ txt" name="windows" placeholder="Окна" | 390 | <input type="text" class="form-control_ txt" name="windows" placeholder="Окна" |
391 | required maxlength="100" style="width: 80%" value="{{ old('windows') ?? $house->windows ?? '' }}"><br><br> | 391 | required maxlength="100" style="width: 80%" value="{{ old('windows') ?? $house->windows ?? '' }}"><br><br> |
392 | 392 | ||
393 | <label for="hood">Вытяжка: </label><br> | 393 | <label for="hood">Вытяжка: </label><br> |
394 | @error('hood') | 394 | @error('hood') |
395 | <div class="alert alert-danger">{{ $message }}</div> | 395 | <div class="alert alert-danger">{{ $message }}</div> |
396 | @enderror | 396 | @enderror |
397 | <select name="hood" id="hood" class="form-control"> | 397 | <select name="hood" id="hood" class="form-control"> |
398 | <option value="1" | 398 | <option value="1" |
399 | @isset($house) | 399 | @isset($house) |
400 | @if($house->hood == '1') | 400 | @if($house->hood == '1') |
401 | selected | 401 | selected |
402 | @endif | 402 | @endif |
403 | @endisset | 403 | @endisset |
404 | >Да</option> | 404 | >Да</option> |
405 | <option value="0" | 405 | <option value="0" |
406 | @isset($house) | 406 | @isset($house) |
407 | @if($house->hood == '0') | 407 | @if($house->hood == '0') |
408 | selected | 408 | selected |
409 | @endif | 409 | @endif |
410 | @endisset | 410 | @endisset |
411 | >Нет</option> | 411 | >Нет</option> |
412 | </select><br><br> | 412 | </select><br><br> |
413 | 413 | ||
414 | <label for="central_heating">Центральное отопление: </label><br> | 414 | <label for="central_heating">Центральное отопление: </label><br> |
415 | @error('central_heating') | 415 | @error('central_heating') |
416 | <div class="alert alert-danger">{{ $message }}</div> | 416 | <div class="alert alert-danger">{{ $message }}</div> |
417 | @enderror | 417 | @enderror |
418 | <select name="central_heating" id="central_heating" class="form-control"> | 418 | <select name="central_heating" id="central_heating" class="form-control"> |
419 | <option value="1" | 419 | <option value="1" |
420 | @isset($house) | 420 | @isset($house) |
421 | @if($house->central_heating == '1') | 421 | @if($house->central_heating == '1') |
422 | selected | 422 | selected |
423 | @endif | 423 | @endif |
424 | @endisset | 424 | @endisset |
425 | >Да</option> | 425 | >Да</option> |
426 | <option value="0" | 426 | <option value="0" |
427 | @isset($house) | 427 | @isset($house) |
428 | @if($house->central_heating == '0') | 428 | @if($house->central_heating == '0') |
429 | selected | 429 | selected |
430 | @endif | 430 | @endif |
431 | @endisset | 431 | @endisset |
432 | >Нет</option> | 432 | >Нет</option> |
433 | </select><br><br> | 433 | </select><br><br> |
434 | 434 | ||
435 | <label for="opening_hours">Возможные часы работы: </label><br> | 435 | <label for="opening_hours">Возможные часы работы: </label><br> |
436 | @error('opening_hours') | 436 | @error('opening_hours') |
437 | <div class="alert alert-danger">{{ $message }}</div> | 437 | <div class="alert alert-danger">{{ $message }}</div> |
438 | @enderror | 438 | @enderror |
439 | <input type="text" class="form-control_ txt" name="opening_hours" placeholder="Возможные часы работы" | 439 | <input type="text" class="form-control_ txt" name="opening_hours" placeholder="Возможные часы работы" |
440 | required maxlength="100" style="width: 80%" value="{{ old('opening_hours') ?? $house->opening_hours ?? '' }}"><br><br> | 440 | required maxlength="100" style="width: 80%" value="{{ old('opening_hours') ?? $house->opening_hours ?? '' }}"><br><br> |
441 | 441 | ||
442 | <label for="finishing">Отделка: </label><br> | 442 | <label for="finishing">Отделка: </label><br> |
443 | @error('finishing') | 443 | @error('finishing') |
444 | <div class="alert alert-danger">{{ $message }}</div> | 444 | <div class="alert alert-danger">{{ $message }}</div> |
445 | @enderror | 445 | @enderror |
446 | <select name="finishing" id="finishing" class="form-control"> | 446 | <select name="finishing" id="finishing" class="form-control"> |
447 | <option value="1" | 447 | <option value="1" |
448 | @isset($house) | 448 | @isset($house) |
449 | @if($house->finishing == '1') | 449 | @if($house->finishing == '1') |
450 | selected | 450 | selected |
451 | @endif | 451 | @endif |
452 | @endisset | 452 | @endisset |
453 | >Да</option> | 453 | >Да</option> |
454 | <option value="0" | 454 | <option value="0" |
455 | @isset($house) | 455 | @isset($house) |
456 | @if($house->finishing == '0') | 456 | @if($house->finishing == '0') |
457 | selected | 457 | selected |
458 | @endif | 458 | @endif |
459 | @endisset | 459 | @endisset |
460 | >Нет</option> | 460 | >Нет</option> |
461 | </select><br><br> | 461 | </select><br><br> |
462 | 462 | ||
463 | <label for="parking">Парковка (кол-во мест): </label><br> | 463 | <label for="parking">Парковка (кол-во мест): </label><br> |
464 | @error('parking') | 464 | @error('parking') |
465 | <div class="alert alert-danger">{{ $message }}</div> | 465 | <div class="alert alert-danger">{{ $message }}</div> |
466 | @enderror | 466 | @enderror |
467 | <input type="text" class="form-control_ txt" name="parking" placeholder="Парковка" | 467 | <input type="text" class="form-control_ txt" name="parking" placeholder="Парковка" |
468 | required maxlength="100" style="width: 80%" value="{{ old('parking') ?? $house->parking ?? '' }}"><br><br> | 468 | required maxlength="100" style="width: 80%" value="{{ old('parking') ?? $house->parking ?? '' }}"><br><br> |
469 | 469 | ||
470 | <label for="scheme_deal">Схема сделки: </label><br> | 470 | <label for="scheme_deal">Схема сделки: </label><br> |
471 | @error('scheme_deal') | 471 | @error('scheme_deal') |
472 | <div class="alert alert-danger">{{ $message }}</div> | 472 | <div class="alert alert-danger">{{ $message }}</div> |
473 | @enderror | 473 | @enderror |
474 | <input type="text" class="form-control_ txt" name="scheme_deal" placeholder="Схема сделки" | 474 | <input type="text" class="form-control_ txt" name="scheme_deal" placeholder="Схема сделки" |
475 | required maxlength="100" style="width: 80%" value="{{ old('scheme_deal') ?? $house->scheme_deal ?? '' }}"><br><br> | 475 | required maxlength="100" style="width: 80%" value="{{ old('scheme_deal') ?? $house->scheme_deal ?? '' }}"><br><br> |
476 | 476 | ||
477 | <label for="coord_x">Координаты дома X: </label><br> | 477 | <label for="coord_x">Координаты дома X: </label><br> |
478 | <input type="text" class="form-control_ txt" name="coord_x" placeholder="Координаты дома X" | 478 | <input type="text" class="form-control_ txt" name="coord_x" placeholder="Координаты дома X" |
479 | required maxlength="100" value="{{ old('coord_x') ?? $house->coord_x ?? '0' }}"><br><br> | 479 | required maxlength="100" value="{{ old('coord_x') ?? $house->coord_x ?? '0' }}"><br><br> |
480 | 480 | ||
481 | <label for="coord_y">Координаты дома Y: </label><br> | 481 | <label for="coord_y">Координаты дома Y: </label><br> |
482 | <input type="text" class="form-control_ txt" name="coord_y" placeholder="Координаты дома Y" | 482 | <input type="text" class="form-control_ txt" name="coord_y" placeholder="Координаты дома Y" |
483 | required maxlength="100" value="{{ old('coord_y') ?? $house->coord_y ?? '0' }}"><br><br> | 483 | required maxlength="100" value="{{ old('coord_y') ?? $house->coord_y ?? '0' }}"><br><br> |
484 | 484 | ||
485 | <label for="sos_obj">Состояние объекта: </label><br> | 485 | <label for="sos_obj">Состояние объекта: </label><br> |
486 | @error('sos_obj') | 486 | @error('sos_obj') |
487 | <div class="alert alert-danger">{{ $message }}</div> | 487 | <div class="alert alert-danger">{{ $message }}</div> |
488 | @enderror | 488 | @enderror |
489 | <select name="sos_obj" id="sos_obj" class="form-control"> | 489 | <select name="sos_obj" id="sos_obj" class="form-control"> |
490 | <option value="Рабочее" | 490 | <option value="Рабочее" |
491 | @isset($house) | 491 | @isset($house) |
492 | @if($house->sos_obj == 'Рабочее') | 492 | @if($house->sos_obj == 'Рабочее') |
493 | selected | 493 | selected |
494 | @endif | 494 | @endif |
495 | @endisset | 495 | @endisset |
496 | >Рабочее</option> | 496 | >Рабочее</option> |
497 | <option value="Не рабочее" | 497 | <option value="Не рабочее" |
498 | @isset($house) | 498 | @isset($house) |
499 | @if($house->sos_obj == 'Не рабочее') | 499 | @if($house->sos_obj == 'Не рабочее') |
500 | selected | 500 | selected |
501 | @endif | 501 | @endif |
502 | @endisset | 502 | @endisset |
503 | >Не рабочее</option> | 503 | >Не рабочее</option> |
504 | </select><br><br> | 504 | </select><br><br> |
505 | 505 | ||
506 | <label for="type_plan">Тип планировки: </label><br> | 506 | <label for="type_plan">Тип планировки: </label><br> |
507 | @error('type_plan') | 507 | @error('type_plan') |
508 | <div class="alert alert-danger">{{ $message }}</div> | 508 | <div class="alert alert-danger">{{ $message }}</div> |
509 | @enderror | 509 | @enderror |
510 | <select name="type_plan" id="type_plan" class="form-control"> | 510 | <select name="type_plan" id="type_plan" class="form-control"> |
511 | <option value="Открытая" | 511 | <option value="Открытая" |
512 | @isset($house) | 512 | @isset($house) |
513 | @if($house->type_plan == 'Открытая') | 513 | @if($house->type_plan == 'Открытая') |
514 | selected | 514 | selected |
515 | @endif | 515 | @endif |
516 | @endisset | 516 | @endisset |
517 | >Открытая</option> | 517 | >Открытая</option> |
518 | <option value="Закрытая" | 518 | <option value="Закрытая" |
519 | @isset($house) | 519 | @isset($house) |
520 | @if($house->type_plan == 'Закрытая') | 520 | @if($house->type_plan == 'Закрытая') |
521 | selected | 521 | selected |
522 | @endif | 522 | @endif |
523 | @endisset | 523 | @endisset |
524 | >Закрытая</option> | 524 | >Закрытая</option> |
525 | </select><br><br> | 525 | </select><br><br> |
526 | 526 | ||
527 | <label for="description_2">Описание офиса дополнительно: </label><br> | 527 | <label for="description_2">Описание офиса дополнительно: </label><br> |
528 | @error('description_2') | 528 | @error('description_2') |
529 | <div class="alert alert-danger">{{ $message }}</div> | 529 | <div class="alert alert-danger">{{ $message }}</div> |
530 | @enderror | 530 | @enderror |
531 | <textarea class="form-control_ txtarea ckeditor" name="description_2" placeholder="Описание офиса дополнительно" required | 531 | <textarea class="form-control_ txtarea ckeditor" name="description_2" placeholder="Описание офиса дополнительно" required |
532 | rows="10" style="width: 80%">{{ old('description_2') ?? $house->description_2 ?? '' }}</textarea><br><br> | 532 | rows="10" style="width: 80%">{{ old('description_2') ?? $house->description_2 ?? '' }}</textarea><br><br> |
533 | 533 | ||
534 | <br> | 534 | <br> |
535 | <button type="submit" class="btn hero-search__btn btn--main">Сохранить</button> | 535 | <button type="submit" class="btn hero-search__btn btn--main">Сохранить</button> |
536 | 536 | ||
537 | 537 | ||
538 | 538 |
resources/views/complex.blade.php
1 | @extends('layout.site', ['title' => $area->name_area]) | 1 | @extends('layout.site', ['title' => $area->name_area]) |
2 | 2 | ||
3 | @section('custom_js') | 3 | @section('custom_js') |
4 | @include('js.maps_js') | 4 | @include('js.maps_js') |
5 | <script> | 5 | <script> |
6 | $(document).on('click', '.js_sort_group_item', function() { | 6 | $(document).on('click', '.js_sort_group_item', function() { |
7 | var val = $(this).data('val'); | 7 | var val = $(this).data('val'); |
8 | var sort_price_val = ''; | 8 | var sort_price_val = ''; |
9 | var sort_area_val = ''; | 9 | var sort_area_val = ''; |
10 | var sort_new_val = ''; | 10 | var sort_new_val = ''; |
11 | 11 | ||
12 | $('.sort-price').each(function() { | 12 | $('.sort-price').each(function() { |
13 | var this_ = $(this); | 13 | var this_ = $(this); |
14 | var v = $(this).data('val'); | 14 | var v = $(this).data('val'); |
15 | if (this_.hasClass('active')) | 15 | if (this_.hasClass('active')) |
16 | sort_price_val = v; | 16 | sort_price_val = v; |
17 | }); | 17 | }); |
18 | 18 | ||
19 | $('.sort-new').each(function() { | 19 | $('.sort-new').each(function() { |
20 | var v = $(this).data('val'); | 20 | var v = $(this).data('val'); |
21 | var this_ = $(this); | 21 | var this_ = $(this); |
22 | if (this_.hasClass('active')) | 22 | if (this_.hasClass('active')) |
23 | sort_new_val = v; | 23 | sort_new_val = v; |
24 | }); | 24 | }); |
25 | 25 | ||
26 | $('.sort-area').each(function() { | 26 | $('.sort-area').each(function() { |
27 | var v = $(this).data('val'); | 27 | var v = $(this).data('val'); |
28 | var this_ = $(this); | 28 | var this_ = $(this); |
29 | if (this_.hasClass('active')) | 29 | if (this_.hasClass('active')) |
30 | sort_area_val = v; | 30 | sort_area_val = v; |
31 | 31 | ||
32 | }); | 32 | }); |
33 | 33 | ||
34 | console.log('-------------------'); | 34 | console.log('-------------------'); |
35 | $.ajax({ | 35 | $.ajax({ |
36 | type: "GET", | 36 | type: "GET", |
37 | url: "{{ route('complex', ['area' => $area->id]) }}", | 37 | url: "{{ route('complex', ['area' => $area->id]) }}", |
38 | data: "view=arenda&sort_price="+sort_price_val+"&sort_new="+sort_new_val+"&sort_area="+sort_area_val+"", | 38 | data: "view=arenda&sort_price="+sort_price_val+"&sort_new="+sort_new_val+"&sort_area="+sort_area_val+"", |
39 | success: function(data) { | 39 | success: function(data) { |
40 | console.log('Успешно обновлены данные АРЕНДА таблиц '+data); | 40 | console.log('Успешно обновлены данные АРЕНДА таблиц '+data); |
41 | $('#arenda_block').html(data); | 41 | $('#arenda_block').html(data); |
42 | }, | 42 | }, |
43 | headers: { | 43 | headers: { |
44 | 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') | 44 | 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') |
45 | }, | 45 | }, |
46 | error: function(data) { | 46 | error: function(data) { |
47 | console.log('Error: '+ data); | 47 | console.log('Error: '+ data); |
48 | } | 48 | } |
49 | }); | 49 | }); |
50 | 50 | ||
51 | $.ajax({ | 51 | $.ajax({ |
52 | type: "GET", | 52 | type: "GET", |
53 | url: "{{ route('complex', ['area' => $area->id]) }}", | 53 | url: "{{ route('complex', ['area' => $area->id]) }}", |
54 | data: "view=prodaja&sort_price="+sort_price_val+"&sort_new="+sort_new_val+"&sort_area="+sort_area_val+"", | 54 | data: "view=prodaja&sort_price="+sort_price_val+"&sort_new="+sort_new_val+"&sort_area="+sort_area_val+"", |
55 | success: function(data) { | 55 | success: function(data) { |
56 | console.log('Успешно обновлены данные ПРОДАЖА таблиц '+data); | 56 | console.log('Успешно обновлены данные ПРОДАЖА таблиц '+data); |
57 | $('#prodaja_block').html(data); | 57 | $('#prodaja_block').html(data); |
58 | }, | 58 | }, |
59 | headers: { | 59 | headers: { |
60 | 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') | 60 | 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') |
61 | }, | 61 | }, |
62 | error: function(data) { | 62 | error: function(data) { |
63 | console.log('Error: '+ data); | 63 | console.log('Error: '+ data); |
64 | } | 64 | } |
65 | }); | 65 | }); |
66 | 66 | ||
67 | $.ajax({ | 67 | $.ajax({ |
68 | type: "GET", | 68 | type: "GET", |
69 | url: "{{ route('complex', ['area' => $area->id]) }}", | 69 | url: "{{ route('complex', ['area' => $area->id]) }}", |
70 | data: "view=bissnes&sort_price="+sort_price_val+"&sort_new="+sort_new_val+"&sort_area="+sort_area_val+"", | 70 | data: "view=bissnes&sort_price="+sort_price_val+"&sort_new="+sort_new_val+"&sort_area="+sort_area_val+"", |
71 | success: function(data) { | 71 | success: function(data) { |
72 | console.log('Успешно обновлены данные БИЗНЕС таблиц '+data); | 72 | console.log('Успешно обновлены данные БИЗНЕС таблиц '+data); |
73 | $('#bissnes_block').html(data); | 73 | $('#bissnes_block').html(data); |
74 | }, | 74 | }, |
75 | headers: { | 75 | headers: { |
76 | 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') | 76 | 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') |
77 | }, | 77 | }, |
78 | error: function(data) { | 78 | error: function(data) { |
79 | console.log('Error: '+ data); | 79 | console.log('Error: '+ data); |
80 | } | 80 | } |
81 | }); | 81 | }); |
82 | 82 | ||
83 | $.ajax({ | 83 | $.ajax({ |
84 | type: "GET", | 84 | type: "GET", |
85 | url: "{{ route('complex', ['area' => $area->id]) }}", | 85 | url: "{{ route('complex', ['area' => $area->id]) }}", |
86 | data: "view=arendovannie&sort_price="+sort_price_val+"&sort_new="+sort_new_val+"&sort_area="+sort_area_val+"", | 86 | data: "view=arendovannie&sort_price="+sort_price_val+"&sort_new="+sort_new_val+"&sort_area="+sort_area_val+"", |
87 | success: function(data) { | 87 | success: function(data) { |
88 | console.log('Успешно обновлены данные таблиц '+data); | 88 | console.log('Успешно обновлены данные таблиц '+data); |
89 | $('#arendovannie_block').html(data); | 89 | $('#arendovannie_block').html(data); |
90 | //.append(data); | 90 | //.append(data); |
91 | }, | 91 | }, |
92 | headers: { | 92 | headers: { |
93 | 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') | 93 | 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') |
94 | }, | 94 | }, |
95 | error: function(data) { | 95 | error: function(data) { |
96 | console.log('Error: '+ data); | 96 | console.log('Error: '+ data); |
97 | } | 97 | } |
98 | }); | 98 | }); |
99 | 99 | ||
100 | } | 100 | } |
101 | ); | 101 | ); |
102 | 102 | ||
103 | setComplexMap('complex-map', [{{ $area->coord_x }}, {{ $area->coord_y }}], "{{ $area->name_area }}"); | 103 | setComplexMap('complex-map', [{{ $area->coord_x }}, {{ $area->coord_y }}], "{{ $area->name_area }}"); |
104 | </script> | 104 | </script> |
105 | @endsection | 105 | @endsection |
106 | 106 | ||
107 | @section('content') | 107 | @section('content') |
108 | <section class="intro" style="background-image:url({{ asset('images/intro-bg-1.jpg') }})"> | 108 | <section class="intro" style="background-image:url({{ asset('images/intro-bg-1.jpg') }})"> |
109 | <div class="container"> | 109 | <div class="container"> |
110 | <div class="intro__wrap"> | 110 | <div class="intro__wrap"> |
111 | <div class="breadcrumbs"> | 111 | <div class="breadcrumbs"> |
112 | <ul class="breadcrumbs__list"> | 112 | <ul class="breadcrumbs__list"> |
113 | <li class="breadcrumbs__item"><a class="breadcrumbs__link" href="{{ route('index') }}">Главная</a></li> | 113 | <li class="breadcrumbs__item"><a class="breadcrumbs__link" href="{{ route('index') }}">Главная</a></li> |
114 | <li class="breadcrumbs__item"><a class="breadcrumbs__link" href="{{ route('catalog') }}">Каталог</a></li> | 114 | <li class="breadcrumbs__item"><a class="breadcrumbs__link" href="{{ route('catalog') }}">Каталог</a></li> |
115 | <li class="breadcrumbs__item"><span class="breadcrumbs__link">{{$area->name_area }}</span></li> | 115 | <li class="breadcrumbs__item"><span class="breadcrumbs__link">{{$area->name_area }}</span></li> |
116 | </ul> | 116 | </ul> |
117 | </div> | 117 | </div> |
118 | <div class="intro__inner"> | 118 | <div class="intro__inner"> |
119 | <div class="intro__cnt"> | 119 | <div class="intro__cnt"> |
120 | <h1 class="intro__title title-main">{{ $area->name_area }}</h1> | 120 | <h1 class="intro__title title-main">{{ $area->name_area }}</h1> |
121 | <p class="intro__descr">{{ $area->description }}</p> | 121 | <p class="intro__descr">{{ $area->description }}</p> |
122 | </div> | 122 | </div> |
123 | <div class="intro__swiper swiper"> | 123 | <div class="intro__swiper swiper"> |
124 | <div class="swiper-wrapper"> | 124 | <div class="swiper-wrapper"> |
125 | <? if (!empty($area->foto_main)) {?> | 125 | <? if (!empty($area->foto_main)) {?> |
126 | <div class="swiper-slide"> | 126 | <div class="swiper-slide"> |
127 | <div class="intro-item"> | 127 | <div class="intro-item"> |
128 | <div class="intro-item__img"><img src="{{ asset(Storage::url($area->foto_main)) }}" alt=""></div> | 128 | <div class="intro-item__img"><img src="/storage/app/public/<?=$area->foto_main; //asset(Storage::url($area->foto_main)) ?>" alt=""></div> |
129 | <a class="intro-item__btn js_intro_item_btn" href="{{ asset(Storage::url($area->foto_main)) }}" data-caption="{{ $area->name_area }}"> | 129 | <a class="intro-item__btn js_intro_item_btn" href="/storage/app/public/<?=$area->foto_main; //asset(Storage::url($area->foto_main)) ?>" data-caption="{{ $area->name_area }}"> |
130 | <svg width="16" height="16"> | 130 | <svg width="16" height="16"> |
131 | <use xlink:href="{{ asset('images/sprite.svg#intro-item-btn') }}"></use> | 131 | <use xlink:href="{{ asset('images/sprite.svg#intro-item-btn') }}"></use> |
132 | </svg></a> | 132 | </svg></a> |
133 | </div> | 133 | </div> |
134 | </div> | 134 | </div> |
135 | <? } ?> | 135 | <? } ?> |
136 | <? $i = 1 ?> | 136 | <? $i = 1 ?> |
137 | @if ($area->fotos->count()) | 137 | @if ($area->fotos->count()) |
138 | @foreach($area->fotos as $img) | 138 | @foreach($area->fotos as $img) |
139 | <div class="swiper-slide"> | 139 | <div class="swiper-slide"> |
140 | <div class="intro-item"> | 140 | <div class="intro-item"> |
141 | <div class="intro-item__img"><img src="{{ asset(Storage::url($img->foto)) }}" alt=""></div> | 141 | <div class="intro-item__img"><img src="/storage/app/public/<?=$img->foto; //asset(Storage::url($img->foto)) ?>" alt=""></div> |
142 | <a class="intro-item__btn js_intro_item_btn" href="{{ asset(Storage::url($img->foto)) }}" data-caption="Фото {{ $i }}"> | 142 | <a class="intro-item__btn js_intro_item_btn" href="/storage/app/public/<?=$img->foto; //asset(Storage::url($img->foto)) ?>" data-caption="Фото {{ $i }}"> |
143 | <svg width="16" height="16"> | 143 | <svg width="16" height="16"> |
144 | <use xlink:href="{{ asset('images/sprite.svg#intro-item-btn') }}"></use> | 144 | <use xlink:href="{{ asset('images/sprite.svg#intro-item-btn') }}"></use> |
145 | </svg></a> | 145 | </svg></a> |
146 | </div> | 146 | </div> |
147 | </div> | 147 | </div> |
148 | <? $i++?> | 148 | <? $i++?> |
149 | @endforeach | 149 | @endforeach |
150 | @endif | 150 | @endif |
151 | <!--<div class="swiper-slide"> | 151 | <!--<div class="swiper-slide"> |
152 | <div class="intro-item"> | 152 | <div class="intro-item"> |
153 | <div class="intro-item__img"><img src="images/about-bg.jpg" alt=""></div><a class="intro-item__btn js_intro_item_btn" href="images/about-bg.jpg" data-caption="Фото 2"> | 153 | <div class="intro-item__img"><img src="images/about-bg.jpg" alt=""></div><a class="intro-item__btn js_intro_item_btn" href="images/about-bg.jpg" data-caption="Фото 2"> |
154 | <svg width="16" height="16"> | 154 | <svg width="16" height="16"> |
155 | <use xlink:href="images/sprite.svg#intro-item-btn"></use> | 155 | <use xlink:href="images/sprite.svg#intro-item-btn"></use> |
156 | </svg></a> | 156 | </svg></a> |
157 | </div> | 157 | </div> |
158 | </div> | 158 | </div> |
159 | <div class="swiper-slide"> | 159 | <div class="swiper-slide"> |
160 | <div class="intro-item"> | 160 | <div class="intro-item"> |
161 | <div class="intro-item__img"><img src="images/catalog-bg.jpg" alt=""></div><a class="intro-item__btn js_intro_item_btn" href="images/catalog-bg.jpg" data-caption="Фото 3"> | 161 | <div class="intro-item__img"><img src="images/catalog-bg.jpg" alt=""></div><a class="intro-item__btn js_intro_item_btn" href="images/catalog-bg.jpg" data-caption="Фото 3"> |
162 | <svg width="16" height="16"> | 162 | <svg width="16" height="16"> |
163 | <use xlink:href="images/sprite.svg#intro-item-btn"></use> | 163 | <use xlink:href="images/sprite.svg#intro-item-btn"></use> |
164 | </svg></a> | 164 | </svg></a> |
165 | </div> | 165 | </div> |
166 | </div> | 166 | </div> |
167 | <div class="swiper-slide"> | 167 | <div class="swiper-slide"> |
168 | <div class="intro-item"> | 168 | <div class="intro-item"> |
169 | <div class="intro-item__img"><img src="images/intro-bg-2.jpg" alt=""></div><a class="intro-item__btn js_intro_item_btn" href="images/intro-bg-2.jpg" data-caption="Фото 4"> | 169 | <div class="intro-item__img"><img src="images/intro-bg-2.jpg" alt=""></div><a class="intro-item__btn js_intro_item_btn" href="images/intro-bg-2.jpg" data-caption="Фото 4"> |
170 | <svg width="16" height="16"> | 170 | <svg width="16" height="16"> |
171 | <use xlink:href="images/sprite.svg#intro-item-btn"></use> | 171 | <use xlink:href="images/sprite.svg#intro-item-btn"></use> |
172 | </svg></a> | 172 | </svg></a> |
173 | </div> | 173 | </div> |
174 | </div> | 174 | </div> |
175 | <div class="swiper-slide"> | 175 | <div class="swiper-slide"> |
176 | <div class="intro-item"> | 176 | <div class="intro-item"> |
177 | <div class="intro-item__img"><img src="images/news-one-bg.jpg" alt=""></div><a class="intro-item__btn js_intro_item_btn" href="images/news-one-bg.jpg" data-caption="Фото 5"> | 177 | <div class="intro-item__img"><img src="images/news-one-bg.jpg" alt=""></div><a class="intro-item__btn js_intro_item_btn" href="images/news-one-bg.jpg" data-caption="Фото 5"> |
178 | <svg width="16" height="16"> | 178 | <svg width="16" height="16"> |
179 | <use xlink:href="images/sprite.svg#intro-item-btn"></use> | 179 | <use xlink:href="images/sprite.svg#intro-item-btn"></use> |
180 | </svg></a> | 180 | </svg></a> |
181 | </div> | 181 | </div> |
182 | </div>--> | 182 | </div>--> |
183 | </div> | 183 | </div> |
184 | <div class="swiper-pagination"></div> | 184 | <div class="swiper-pagination"></div> |
185 | <div class="swiper-button-prev"> | 185 | <div class="swiper-button-prev"> |
186 | <svg width="10" height="17"> | 186 | <svg width="10" height="17"> |
187 | <use xlink:href="{{ asset('images/sprite.svg#slider-arrow') }}"></use> | 187 | <use xlink:href="{{ asset('images/sprite.svg#slider-arrow') }}"></use> |
188 | </svg> | 188 | </svg> |
189 | </div> | 189 | </div> |
190 | <div class="swiper-button-next"> | 190 | <div class="swiper-button-next"> |
191 | <svg width="10" height="17"> | 191 | <svg width="10" height="17"> |
192 | <use xlink:href="{{ asset('images/sprite.svg#slider-arrow') }}"></use> | 192 | <use xlink:href="{{ asset('images/sprite.svg#slider-arrow') }}"></use> |
193 | </svg> | 193 | </svg> |
194 | </div> | 194 | </div> |
195 | </div> | 195 | </div> |
196 | </div> | 196 | </div> |
197 | </div> | 197 | </div> |
198 | </div> | 198 | </div> |
199 | </section> | 199 | </section> |
200 | <!-- СТРАНИЦА ЖК--> | 200 | <!-- СТРАНИЦА ЖК--> |
201 | <section class="complex"> | 201 | <section class="complex"> |
202 | <div class="container"> | 202 | <div class="container"> |
203 | <div class="complex__top top-catalog"> | 203 | <div class="complex__top top-catalog"> |
204 | <div class="top-catalog__inner"> | 204 | <div class="top-catalog__inner"> |
205 | <h2 class="top-catalog__title title">{{ $area->name_area }}</h2> | 205 | <h2 class="top-catalog__title title">{{ $area->name_area }}</h2> |
206 | <div class="top-catalog__result">Найдено объектов по Вашему запросу: <span><?=$house_arenda->count()+$house_prodaja->count()+$house_bissnes->count()+$house_arendovannie->count(); ?></span></div> | 206 | <div class="top-catalog__result">Найдено объектов по Вашему запросу: <span><?=$house_arenda->count()+$house_prodaja->count()+$house_bissnes->count()+$house_arendovannie->count(); ?></span></div> |
207 | </div> | 207 | </div> |
208 | <form class="top-catalog__sorts"> | 208 | <form class="top-catalog__sorts"> |
209 | <div class="top-catalog__sort-group sort-group js_sort_group"> | 209 | <div class="top-catalog__sort-group sort-group js_sort_group"> |
210 | <input class="js_sort_group_input" type="hidden"> | 210 | <input class="js_sort_group_input" type="hidden"> |
211 | <div class="sort-group__current js_sort_group_current">Сначала дешевле</div> | 211 | <div class="sort-group__current js_sort_group_current">Сначала дешевле</div> |
212 | <ul class="sort-group__list js_sort_group_list"> | 212 | <ul class="sort-group__list js_sort_group_list"> |
213 | <li class="sort-price sort-group__item js_sort_group_item active" data-val="1">Сначала дешевле</li> | 213 | <li class="sort-price sort-group__item js_sort_group_item active" data-val="1">Сначала дешевле</li> |
214 | <li class="sort-price sort-group__item js_sort_group_item" data-val="2">Сначала дороже</li> | 214 | <li class="sort-price sort-group__item js_sort_group_item" data-val="2">Сначала дороже</li> |
215 | </ul> | 215 | </ul> |
216 | </div> | 216 | </div> |
217 | <div class="top-catalog__sort-group sort-group js_sort_group"> | 217 | <div class="top-catalog__sort-group sort-group js_sort_group"> |
218 | <input class="js_sort_group_input" type="hidden"> | 218 | <input class="js_sort_group_input" type="hidden"> |
219 | <div class="sort-group__current js_sort_group_current">Сначала новые</div> | 219 | <div class="sort-group__current js_sort_group_current">Сначала новые</div> |
220 | <ul class="sort-group__list js_sort_group_list"> | 220 | <ul class="sort-group__list js_sort_group_list"> |
221 | <li class="sort-new sort-group__item js_sort_group_item active" data-val="1">Сначала новые</li> | 221 | <li class="sort-new sort-group__item js_sort_group_item active" data-val="1">Сначала новые</li> |
222 | <li class="sort-new sort-group__item js_sort_group_item" data-val="2">Сначала старые</li> | 222 | <li class="sort-new sort-group__item js_sort_group_item" data-val="2">Сначала старые</li> |
223 | </ul> | 223 | </ul> |
224 | </div> | 224 | </div> |
225 | <div class="top-catalog__sort-group sort-group sort-group--wide js_sort_group"> | 225 | <div class="top-catalog__sort-group sort-group sort-group--wide js_sort_group"> |
226 | <input class="js_sort_group_input" type="hidden"> | 226 | <input class="js_sort_group_input" type="hidden"> |
227 | <div class="sort-group__current js_sort_group_current">Сначала с большей площадью</div> | 227 | <div class="sort-group__current js_sort_group_current">Сначала с большей площадью</div> |
228 | <ul class="sort-group__list js_sort_group_list"> | 228 | <ul class="sort-group__list js_sort_group_list"> |
229 | <li class="sort-area sort-group__item js_sort_group_item active" data-val="1">Сначала с большей площадью</li> | 229 | <li class="sort-area sort-group__item js_sort_group_item active" data-val="1">Сначала с большей площадью</li> |
230 | <li class="sort-area sort-group__item js_sort_group_item" data-val="2">Сначала с меньшей площадью</li> | 230 | <li class="sort-area sort-group__item js_sort_group_item" data-val="2">Сначала с меньшей площадью</li> |
231 | </ul> | 231 | </ul> |
232 | </div> | 232 | </div> |
233 | </form> | 233 | </form> |
234 | </div> | 234 | </div> |
235 | </div> | 235 | </div> |
236 | <div class="complex__sliders"> | 236 | <div class="complex__sliders"> |
237 | <section class="slider"> | 237 | <section class="slider"> |
238 | <div class="container"> | 238 | <div class="container"> |
239 | <div class="slider__wrap"> | 239 | <div class="slider__wrap"> |
240 | <div class="slider__top"> | 240 | <div class="slider__top"> |
241 | <h2 class="slider__title title">Аренда торговых помещений</h2><a class="slider__more" href="#">Показать все объекты</a> | 241 | <h2 class="slider__title title">Аренда торговых помещений</h2><a class="slider__more" href="#">Показать все объекты</a> |
242 | <div class="slider__control"> | 242 | <div class="slider__control"> |
243 | <div class="swiper-button-prev"> | 243 | <div class="swiper-button-prev"> |
244 | <svg width="10" height="17"> | 244 | <svg width="10" height="17"> |
245 | <use xlink:href="{{ asset('images/sprite.svg#slider-arrow') }}"></use> | 245 | <use xlink:href="{{ asset('images/sprite.svg#slider-arrow') }}"></use> |
246 | </svg> | 246 | </svg> |
247 | </div> | 247 | </div> |
248 | <div class="swiper-button-next"> | 248 | <div class="swiper-button-next"> |
249 | <svg width="10" height="17"> | 249 | <svg width="10" height="17"> |
250 | <use xlink:href="{{ asset('images/sprite.svg#slider-arrow') }}"></use> | 250 | <use xlink:href="{{ asset('images/sprite.svg#slider-arrow') }}"></use> |
251 | </svg> | 251 | </svg> |
252 | </div> | 252 | </div> |
253 | </div> | 253 | </div> |
254 | </div> | 254 | </div> |
255 | <div class="slider__swiper swiper"> | 255 | <div class="slider__swiper swiper"> |
256 | <div class="swiper-wrapper" id="arenda_block"> | 256 | <div class="swiper-wrapper" id="arenda_block"> |
257 | @if ($house_arenda->count()) | 257 | @if ($house_arenda->count()) |
258 | @foreach ($house_arenda as $house1) | 258 | @foreach ($house_arenda as $house1) |
259 | @include('catalogs.elemhouse', ['house' => $house1]) | 259 | @include('catalogs.elemhouse', ['house' => $house1]) |
260 | @endforeach | 260 | @endforeach |
261 | @else | 261 | @else |
262 | <h3>Здесь пока что нет предложений</h3> | 262 | <h3>Здесь пока что нет предложений</h3> |
263 | @endif | 263 | @endif |
264 | <!--<div class="swiper-slide"> | 264 | <!--<div class="swiper-slide"> |
265 | <div class="card"> | 265 | <div class="card"> |
266 | <div class="card__top"><img src="images/card/card-img-1.jpg" alt="Фото недвижимости" loading="lazy"> | 266 | <div class="card__top"><img src="images/card/card-img-1.jpg" alt="Фото недвижимости" loading="lazy"> |
267 | <h3 class="card__title">Салон красоты</h3> | 267 | <h3 class="card__title">Салон красоты</h3> |
268 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> | 268 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> |
269 | <svg width="18" height="18"> | 269 | <svg width="18" height="18"> |
270 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> | 270 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> |
271 | </svg> | 271 | </svg> |
272 | <svg width="18" height="18"> | 272 | <svg width="18" height="18"> |
273 | <use xlink:href="images/sprite.svg#card-favorites"></use> | 273 | <use xlink:href="images/sprite.svg#card-favorites"></use> |
274 | </svg></span><a class="card__label card__label-messenger" href="#"> | 274 | </svg></span><a class="card__label card__label-messenger" href="#"> |
275 | <svg width="25" height="25"> | 275 | <svg width="25" height="25"> |
276 | <use xlink:href="images/sprite.svg#card-messenger"></use> | 276 | <use xlink:href="images/sprite.svg#card-messenger"></use> |
277 | </svg></a></div> | 277 | </svg></a></div> |
278 | </div> | 278 | </div> |
279 | <div class="card__cnt"> | 279 | <div class="card__cnt"> |
280 | <div class="card__info"> | 280 | <div class="card__info"> |
281 | <address class="card__line card__line-complex">ЖК “Новинки 1”</address> | 281 | <address class="card__line card__line-complex">ЖК “Новинки 1”</address> |
282 | <address class="card__line">Фрунзенская (10 мин., пешком)<span style="background-color: #FFC955;"></span></address> | 282 | <address class="card__line">Фрунзенская (10 мин., пешком)<span style="background-color: #FFC955;"></span></address> |
283 | <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address> | 283 | <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address> |
284 | <div class="card__line">Площадь: <b>556 м2</b></div> | 284 | <div class="card__line">Площадь: <b>556 м2</b></div> |
285 | <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div> | 285 | <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div> |
286 | </div> | 286 | </div> |
287 | <div class="card__price"><span>1 000 000 ₽</span> | 287 | <div class="card__price"><span>1 000 000 ₽</span> |
288 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее</a> | 288 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее</a> |
289 | </div> | 289 | </div> |
290 | </div> | 290 | </div> |
291 | </div> | 291 | </div> |
292 | <div class="swiper-slide"> | 292 | <div class="swiper-slide"> |
293 | <div class="card"> | 293 | <div class="card"> |
294 | <div class="card__top"><img src="images/card/card-img-2.jpg" alt="Фото недвижимости" loading="lazy"> | 294 | <div class="card__top"><img src="images/card/card-img-2.jpg" alt="Фото недвижимости" loading="lazy"> |
295 | <h3 class="card__title">Барбер-шоп</h3> | 295 | <h3 class="card__title">Барбер-шоп</h3> |
296 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> | 296 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> |
297 | <svg width="18" height="18"> | 297 | <svg width="18" height="18"> |
298 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> | 298 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> |
299 | </svg> | 299 | </svg> |
300 | <svg width="18" height="18"> | 300 | <svg width="18" height="18"> |
301 | <use xlink:href="images/sprite.svg#card-favorites"></use> | 301 | <use xlink:href="images/sprite.svg#card-favorites"></use> |
302 | </svg></span><a class="card__label card__label-messenger" href="#"> | 302 | </svg></span><a class="card__label card__label-messenger" href="#"> |
303 | <svg width="25" height="25"> | 303 | <svg width="25" height="25"> |
304 | <use xlink:href="images/sprite.svg#card-messenger"></use> | 304 | <use xlink:href="images/sprite.svg#card-messenger"></use> |
305 | </svg></a></div> | 305 | </svg></a></div> |
306 | </div> | 306 | </div> |
307 | <div class="card__cnt"> | 307 | <div class="card__cnt"> |
308 | <div class="card__info"> | 308 | <div class="card__info"> |
309 | <address class="card__line card__line-complex">ЖК “Новоарбатский”</address> | 309 | <address class="card__line card__line-complex">ЖК “Новоарбатский”</address> |
310 | <address class="card__line">Арбатская (8 мин., пешком)<span style="background-color: #0000A0;"></span></address> | 310 | <address class="card__line">Арбатская (8 мин., пешком)<span style="background-color: #0000A0;"></span></address> |
311 | <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address> | 311 | <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address> |
312 | <div class="card__line">Площадь: <b>6 556 м2</b></div> | 312 | <div class="card__line">Площадь: <b>6 556 м2</b></div> |
313 | <div class="card__line">Цена за м<sup>2</sup>: <b>5 225 256 ₽</b></div> | 313 | <div class="card__line">Цена за м<sup>2</sup>: <b>5 225 256 ₽</b></div> |
314 | </div> | 314 | </div> |
315 | <div class="card__price"><span>15 520 900 ₽</span><span>в месяц</span> | 315 | <div class="card__price"><span>15 520 900 ₽</span><span>в месяц</span> |
316 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a> | 316 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a> |
317 | </div> | 317 | </div> |
318 | </div> | 318 | </div> |
319 | </div> | 319 | </div> |
320 | <div class="swiper-slide"> | 320 | <div class="swiper-slide"> |
321 | <div class="card"> | 321 | <div class="card"> |
322 | <div class="card__top"><img src="images/card/card-img-3.jpg" alt="Фото недвижимости" loading="lazy"> | 322 | <div class="card__top"><img src="images/card/card-img-3.jpg" alt="Фото недвижимости" loading="lazy"> |
323 | <h3 class="card__title">Аптека</h3> | 323 | <h3 class="card__title">Аптека</h3> |
324 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> | 324 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> |
325 | <svg width="18" height="18"> | 325 | <svg width="18" height="18"> |
326 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> | 326 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> |
327 | </svg> | 327 | </svg> |
328 | <svg width="18" height="18"> | 328 | <svg width="18" height="18"> |
329 | <use xlink:href="images/sprite.svg#card-favorites"></use> | 329 | <use xlink:href="images/sprite.svg#card-favorites"></use> |
330 | </svg></span><a class="card__label card__label-messenger" href="#"> | 330 | </svg></span><a class="card__label card__label-messenger" href="#"> |
331 | <svg width="25" height="25"> | 331 | <svg width="25" height="25"> |
332 | <use xlink:href="images/sprite.svg#card-messenger"></use> | 332 | <use xlink:href="images/sprite.svg#card-messenger"></use> |
333 | </svg></a></div> | 333 | </svg></a></div> |
334 | </div> | 334 | </div> |
335 | <div class="card__cnt"> | 335 | <div class="card__cnt"> |
336 | <div class="card__info"> | 336 | <div class="card__info"> |
337 | <address class="card__line card__line-complex">ЖК “Садовые кварталы”</address> | 337 | <address class="card__line card__line-complex">ЖК “Садовые кварталы”</address> |
338 | <address class="card__line">Коломенская (2 мин., пешком)<span style="background-color: #029B55;"></span></address> | 338 | <address class="card__line">Коломенская (2 мин., пешком)<span style="background-color: #029B55;"></span></address> |
339 | <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address> | 339 | <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address> |
340 | <div class="card__line">Площадь: <b>8 626 м2</b></div> | 340 | <div class="card__line">Площадь: <b>8 626 м2</b></div> |
341 | <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div> | 341 | <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div> |
342 | </div> | 342 | </div> |
343 | <div class="card__price"><span>5 280 000 ₽</span> | 343 | <div class="card__price"><span>5 280 000 ₽</span> |
344 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее о продаже</a> | 344 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее о продаже</a> |
345 | </div> | 345 | </div> |
346 | </div> | 346 | </div> |
347 | </div> | 347 | </div> |
348 | <div class="swiper-slide"> | 348 | <div class="swiper-slide"> |
349 | <div class="card"> | 349 | <div class="card"> |
350 | <div class="card__top"><img src="images/card/card-img-4.jpg" alt="Фото недвижимости" loading="lazy"> | 350 | <div class="card__top"><img src="images/card/card-img-4.jpg" alt="Фото недвижимости" loading="lazy"> |
351 | <h3 class="card__title">Витрина</h3> | 351 | <h3 class="card__title">Витрина</h3> |
352 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> | 352 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> |
353 | <svg width="18" height="18"> | 353 | <svg width="18" height="18"> |
354 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> | 354 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> |
355 | </svg> | 355 | </svg> |
356 | <svg width="18" height="18"> | 356 | <svg width="18" height="18"> |
357 | <use xlink:href="images/sprite.svg#card-favorites"></use> | 357 | <use xlink:href="images/sprite.svg#card-favorites"></use> |
358 | </svg></span><a class="card__label card__label-messenger" href="#"> | 358 | </svg></span><a class="card__label card__label-messenger" href="#"> |
359 | <svg width="25" height="25"> | 359 | <svg width="25" height="25"> |
360 | <use xlink:href="images/sprite.svg#card-messenger"></use> | 360 | <use xlink:href="images/sprite.svg#card-messenger"></use> |
361 | </svg></a></div> | 361 | </svg></a></div> |
362 | </div> | 362 | </div> |
363 | <div class="card__cnt"> | 363 | <div class="card__cnt"> |
364 | <div class="card__info"> | 364 | <div class="card__info"> |
365 | <address class="card__line card__line-complex">ЖК “Нахимовский проспект, 46”</address> | 365 | <address class="card__line card__line-complex">ЖК “Нахимовский проспект, 46”</address> |
366 | <address class="card__line">Парк Победы (5 мин., пешком)<span style="background-color: #222964;"></span></address> | 366 | <address class="card__line">Парк Победы (5 мин., пешком)<span style="background-color: #222964;"></span></address> |
367 | <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address> | 367 | <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address> |
368 | <div class="card__line">Площадь: <b>6 856 м2</b></div> | 368 | <div class="card__line">Площадь: <b>6 856 м2</b></div> |
369 | <div class="card__line">Цена за м<sup>2</sup>: <b>25 256 ₽</b></div> | 369 | <div class="card__line">Цена за м<sup>2</sup>: <b>25 256 ₽</b></div> |
370 | </div> | 370 | </div> |
371 | <div class="card__price"><span>2 625 520 ₽</span><span>в месяц</span> | 371 | <div class="card__price"><span>2 625 520 ₽</span><span>в месяц</span> |
372 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a> | 372 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a> |
373 | </div> | 373 | </div> |
374 | </div> | 374 | </div> |
375 | </div> | 375 | </div> |
376 | <div class="swiper-slide"> | 376 | <div class="swiper-slide"> |
377 | <div class="card"> | 377 | <div class="card"> |
378 | <div class="card__top"><img src="images/card/card-img-1.jpg" alt="Фото недвижимости" loading="lazy"> | 378 | <div class="card__top"><img src="images/card/card-img-1.jpg" alt="Фото недвижимости" loading="lazy"> |
379 | <h3 class="card__title">Салон красоты</h3> | 379 | <h3 class="card__title">Салон красоты</h3> |
380 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> | 380 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> |
381 | <svg width="18" height="18"> | 381 | <svg width="18" height="18"> |
382 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> | 382 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> |
383 | </svg> | 383 | </svg> |
384 | <svg width="18" height="18"> | 384 | <svg width="18" height="18"> |
385 | <use xlink:href="images/sprite.svg#card-favorites"></use> | 385 | <use xlink:href="images/sprite.svg#card-favorites"></use> |
386 | </svg></span><a class="card__label card__label-messenger" href="#"> | 386 | </svg></span><a class="card__label card__label-messenger" href="#"> |
387 | <svg width="25" height="25"> | 387 | <svg width="25" height="25"> |
388 | <use xlink:href="images/sprite.svg#card-messenger"></use> | 388 | <use xlink:href="images/sprite.svg#card-messenger"></use> |
389 | </svg></a></div> | 389 | </svg></a></div> |
390 | </div> | 390 | </div> |
391 | <div class="card__cnt"> | 391 | <div class="card__cnt"> |
392 | <div class="card__info"> | 392 | <div class="card__info"> |
393 | <address class="card__line card__line-complex">ЖК “Новинки 1”</address> | 393 | <address class="card__line card__line-complex">ЖК “Новинки 1”</address> |
394 | <address class="card__line">Фрунзенская (10 мин., пешком)<span style="background-color: #FFC955;"></span></address> | 394 | <address class="card__line">Фрунзенская (10 мин., пешком)<span style="background-color: #FFC955;"></span></address> |
395 | <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address> | 395 | <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address> |
396 | <div class="card__line">Площадь: <b>556 м2</b></div> | 396 | <div class="card__line">Площадь: <b>556 м2</b></div> |
397 | <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div> | 397 | <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div> |
398 | </div> | 398 | </div> |
399 | <div class="card__price"><span>1 000 000 ₽</span> | 399 | <div class="card__price"><span>1 000 000 ₽</span> |
400 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее</a> | 400 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее</a> |
401 | </div> | 401 | </div> |
402 | </div> | 402 | </div> |
403 | </div> | 403 | </div> |
404 | <div class="swiper-slide"> | 404 | <div class="swiper-slide"> |
405 | <div class="card"> | 405 | <div class="card"> |
406 | <div class="card__top"><img src="images/card/card-img-2.jpg" alt="Фото недвижимости" loading="lazy"> | 406 | <div class="card__top"><img src="images/card/card-img-2.jpg" alt="Фото недвижимости" loading="lazy"> |
407 | <h3 class="card__title">Барбер-шоп</h3> | 407 | <h3 class="card__title">Барбер-шоп</h3> |
408 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> | 408 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> |
409 | <svg width="18" height="18"> | 409 | <svg width="18" height="18"> |
410 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> | 410 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> |
411 | </svg> | 411 | </svg> |
412 | <svg width="18" height="18"> | 412 | <svg width="18" height="18"> |
413 | <use xlink:href="images/sprite.svg#card-favorites"></use> | 413 | <use xlink:href="images/sprite.svg#card-favorites"></use> |
414 | </svg></span><a class="card__label card__label-messenger" href="#"> | 414 | </svg></span><a class="card__label card__label-messenger" href="#"> |
415 | <svg width="25" height="25"> | 415 | <svg width="25" height="25"> |
416 | <use xlink:href="images/sprite.svg#card-messenger"></use> | 416 | <use xlink:href="images/sprite.svg#card-messenger"></use> |
417 | </svg></a></div> | 417 | </svg></a></div> |
418 | </div> | 418 | </div> |
419 | <div class="card__cnt"> | 419 | <div class="card__cnt"> |
420 | <div class="card__info"> | 420 | <div class="card__info"> |
421 | <address class="card__line card__line-complex">ЖК “Новоарбатский”</address> | 421 | <address class="card__line card__line-complex">ЖК “Новоарбатский”</address> |
422 | <address class="card__line">Арбатская (8 мин., пешком)<span style="background-color: #0000A0;"></span></address> | 422 | <address class="card__line">Арбатская (8 мин., пешком)<span style="background-color: #0000A0;"></span></address> |
423 | <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address> | 423 | <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address> |
424 | <div class="card__line">Площадь: <b>6 556 м2</b></div> | 424 | <div class="card__line">Площадь: <b>6 556 м2</b></div> |
425 | <div class="card__line">Цена за м<sup>2</sup>: <b>5 225 256 ₽</b></div> | 425 | <div class="card__line">Цена за м<sup>2</sup>: <b>5 225 256 ₽</b></div> |
426 | </div> | 426 | </div> |
427 | <div class="card__price"><span>15 520 900 ₽</span><span>в месяц</span> | 427 | <div class="card__price"><span>15 520 900 ₽</span><span>в месяц</span> |
428 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a> | 428 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a> |
429 | </div> | 429 | </div> |
430 | </div> | 430 | </div> |
431 | </div> | 431 | </div> |
432 | <div class="swiper-slide"> | 432 | <div class="swiper-slide"> |
433 | <div class="card"> | 433 | <div class="card"> |
434 | <div class="card__top"><img src="images/card/card-img-3.jpg" alt="Фото недвижимости" loading="lazy"> | 434 | <div class="card__top"><img src="images/card/card-img-3.jpg" alt="Фото недвижимости" loading="lazy"> |
435 | <h3 class="card__title">Аптека</h3> | 435 | <h3 class="card__title">Аптека</h3> |
436 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> | 436 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> |
437 | <svg width="18" height="18"> | 437 | <svg width="18" height="18"> |
438 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> | 438 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> |
439 | </svg> | 439 | </svg> |
440 | <svg width="18" height="18"> | 440 | <svg width="18" height="18"> |
441 | <use xlink:href="images/sprite.svg#card-favorites"></use> | 441 | <use xlink:href="images/sprite.svg#card-favorites"></use> |
442 | </svg></span><a class="card__label card__label-messenger" href="#"> | 442 | </svg></span><a class="card__label card__label-messenger" href="#"> |
443 | <svg width="25" height="25"> | 443 | <svg width="25" height="25"> |
444 | <use xlink:href="images/sprite.svg#card-messenger"></use> | 444 | <use xlink:href="images/sprite.svg#card-messenger"></use> |
445 | </svg></a></div> | 445 | </svg></a></div> |
446 | </div> | 446 | </div> |
447 | <div class="card__cnt"> | 447 | <div class="card__cnt"> |
448 | <div class="card__info"> | 448 | <div class="card__info"> |
449 | <address class="card__line card__line-complex">ЖК “Садовые кварталы”</address> | 449 | <address class="card__line card__line-complex">ЖК “Садовые кварталы”</address> |
450 | <address class="card__line">Коломенская (2 мин., пешком)<span style="background-color: #029B55;"></span></address> | 450 | <address class="card__line">Коломенская (2 мин., пешком)<span style="background-color: #029B55;"></span></address> |
451 | <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address> | 451 | <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address> |
452 | <div class="card__line">Площадь: <b>8 626 м2</b></div> | 452 | <div class="card__line">Площадь: <b>8 626 м2</b></div> |
453 | <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div> | 453 | <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div> |
454 | </div> | 454 | </div> |
455 | <div class="card__price"><span>5 280 000 ₽</span> | 455 | <div class="card__price"><span>5 280 000 ₽</span> |
456 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее о продаже</a> | 456 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее о продаже</a> |
457 | </div> | 457 | </div> |
458 | </div> | 458 | </div> |
459 | </div> | 459 | </div> |
460 | <div class="swiper-slide"> | 460 | <div class="swiper-slide"> |
461 | <div class="card"> | 461 | <div class="card"> |
462 | <div class="card__top"><img src="images/card/card-img-4.jpg" alt="Фото недвижимости" loading="lazy"> | 462 | <div class="card__top"><img src="images/card/card-img-4.jpg" alt="Фото недвижимости" loading="lazy"> |
463 | <h3 class="card__title">Витрина</h3> | 463 | <h3 class="card__title">Витрина</h3> |
464 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> | 464 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> |
465 | <svg width="18" height="18"> | 465 | <svg width="18" height="18"> |
466 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> | 466 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> |
467 | </svg> | 467 | </svg> |
468 | <svg width="18" height="18"> | 468 | <svg width="18" height="18"> |
469 | <use xlink:href="images/sprite.svg#card-favorites"></use> | 469 | <use xlink:href="images/sprite.svg#card-favorites"></use> |
470 | </svg></span><a class="card__label card__label-messenger" href="#"> | 470 | </svg></span><a class="card__label card__label-messenger" href="#"> |
471 | <svg width="25" height="25"> | 471 | <svg width="25" height="25"> |
472 | <use xlink:href="images/sprite.svg#card-messenger"></use> | 472 | <use xlink:href="images/sprite.svg#card-messenger"></use> |
473 | </svg></a></div> | 473 | </svg></a></div> |
474 | </div> | 474 | </div> |
475 | <div class="card__cnt"> | 475 | <div class="card__cnt"> |
476 | <div class="card__info"> | 476 | <div class="card__info"> |
477 | <address class="card__line card__line-complex">ЖК “Нахимовский проспект, 46”</address> | 477 | <address class="card__line card__line-complex">ЖК “Нахимовский проспект, 46”</address> |
478 | <address class="card__line">Парк Победы (5 мин., пешком)<span style="background-color: #222964;"></span></address> | 478 | <address class="card__line">Парк Победы (5 мин., пешком)<span style="background-color: #222964;"></span></address> |
479 | <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address> | 479 | <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address> |
480 | <div class="card__line">Площадь: <b>6 856 м2</b></div> | 480 | <div class="card__line">Площадь: <b>6 856 м2</b></div> |
481 | <div class="card__line">Цена за м<sup>2</sup>: <b>25 256 ₽</b></div> | 481 | <div class="card__line">Цена за м<sup>2</sup>: <b>25 256 ₽</b></div> |
482 | </div> | 482 | </div> |
483 | <div class="card__price"><span>2 625 520 ₽</span><span>в месяц</span> | 483 | <div class="card__price"><span>2 625 520 ₽</span><span>в месяц</span> |
484 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a> | 484 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a> |
485 | </div> | 485 | </div> |
486 | </div> | 486 | </div> |
487 | </div>--> | 487 | </div>--> |
488 | </div> | 488 | </div> |
489 | </div> | 489 | </div> |
490 | <div class="swiper-pagination"></div> | 490 | <div class="swiper-pagination"></div> |
491 | </div> | 491 | </div> |
492 | </div> | 492 | </div> |
493 | </section> | 493 | </section> |
494 | <section class="slider"> | 494 | <section class="slider"> |
495 | <div class="container"> | 495 | <div class="container"> |
496 | <div class="slider__wrap"> | 496 | <div class="slider__wrap"> |
497 | <div class="slider__top"> | 497 | <div class="slider__top"> |
498 | <h2 class="slider__title title">Продажа торговых помещений</h2><a class="slider__more" href="#">Показать все объекты</a> | 498 | <h2 class="slider__title title">Продажа торговых помещений</h2><a class="slider__more" href="#">Показать все объекты</a> |
499 | <div class="slider__control"> | 499 | <div class="slider__control"> |
500 | <div class="swiper-button-prev"> | 500 | <div class="swiper-button-prev"> |
501 | <svg width="10" height="17"> | 501 | <svg width="10" height="17"> |
502 | <use xlink:href="{{ asset('images/sprite.svg#slider-arrow') }}"></use> | 502 | <use xlink:href="{{ asset('images/sprite.svg#slider-arrow') }}"></use> |
503 | </svg> | 503 | </svg> |
504 | </div> | 504 | </div> |
505 | <div class="swiper-button-next"> | 505 | <div class="swiper-button-next"> |
506 | <svg width="10" height="17"> | 506 | <svg width="10" height="17"> |
507 | <use xlink:href="{{ asset('images/sprite.svg#slider-arrow') }}"></use> | 507 | <use xlink:href="{{ asset('images/sprite.svg#slider-arrow') }}"></use> |
508 | </svg> | 508 | </svg> |
509 | </div> | 509 | </div> |
510 | </div> | 510 | </div> |
511 | </div> | 511 | </div> |
512 | <div class="slider__swiper swiper"> | 512 | <div class="slider__swiper swiper"> |
513 | <div class="swiper-wrapper" id="prodaja_block"> | 513 | <div class="swiper-wrapper" id="prodaja_block"> |
514 | @if ($house_prodaja->count()) | 514 | @if ($house_prodaja->count()) |
515 | @foreach ($house_prodaja as $house2) | 515 | @foreach ($house_prodaja as $house2) |
516 | @include('catalogs.elemhouse', ['house' => $house2]) | 516 | @include('catalogs.elemhouse', ['house' => $house2]) |
517 | @endforeach | 517 | @endforeach |
518 | @else | 518 | @else |
519 | <h3>Здесь пока что нет предложений</h3> | 519 | <h3>Здесь пока что нет предложений</h3> |
520 | @endif | 520 | @endif |
521 | 521 | ||
522 | 522 | ||
523 | <!--<div class="swiper-slide"> | 523 | <!--<div class="swiper-slide"> |
524 | <div class="card"> | 524 | <div class="card"> |
525 | <div class="card__top"><img src="images/card/card-img-1.jpg" alt="Фото недвижимости" loading="lazy"> | 525 | <div class="card__top"><img src="images/card/card-img-1.jpg" alt="Фото недвижимости" loading="lazy"> |
526 | <h3 class="card__title">Салон красоты</h3> | 526 | <h3 class="card__title">Салон красоты</h3> |
527 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> | 527 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> |
528 | <svg width="18" height="18"> | 528 | <svg width="18" height="18"> |
529 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> | 529 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> |
530 | </svg> | 530 | </svg> |
531 | <svg width="18" height="18"> | 531 | <svg width="18" height="18"> |
532 | <use xlink:href="images/sprite.svg#card-favorites"></use> | 532 | <use xlink:href="images/sprite.svg#card-favorites"></use> |
533 | </svg></span><a class="card__label card__label-messenger" href="#"> | 533 | </svg></span><a class="card__label card__label-messenger" href="#"> |
534 | <svg width="25" height="25"> | 534 | <svg width="25" height="25"> |
535 | <use xlink:href="images/sprite.svg#card-messenger"></use> | 535 | <use xlink:href="images/sprite.svg#card-messenger"></use> |
536 | </svg></a></div> | 536 | </svg></a></div> |
537 | </div> | 537 | </div> |
538 | <div class="card__cnt"> | 538 | <div class="card__cnt"> |
539 | <div class="card__info"> | 539 | <div class="card__info"> |
540 | <address class="card__line card__line-complex">ЖК “Новинки 1”</address> | 540 | <address class="card__line card__line-complex">ЖК “Новинки 1”</address> |
541 | <address class="card__line">Фрунзенская (10 мин., пешком)<span style="background-color: #FFC955;"></span></address> | 541 | <address class="card__line">Фрунзенская (10 мин., пешком)<span style="background-color: #FFC955;"></span></address> |
542 | <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address> | 542 | <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address> |
543 | <div class="card__line">Площадь: <b>556 м2</b></div> | 543 | <div class="card__line">Площадь: <b>556 м2</b></div> |
544 | <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div> | 544 | <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div> |
545 | </div> | 545 | </div> |
546 | <div class="card__price"><span>1 000 000 ₽</span> | 546 | <div class="card__price"><span>1 000 000 ₽</span> |
547 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее</a> | 547 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее</a> |
548 | </div> | 548 | </div> |
549 | </div> | 549 | </div> |
550 | </div> | 550 | </div> |
551 | <div class="swiper-slide"> | 551 | <div class="swiper-slide"> |
552 | <div class="card"> | 552 | <div class="card"> |
553 | <div class="card__top"><img src="images/card/card-img-2.jpg" alt="Фото недвижимости" loading="lazy"> | 553 | <div class="card__top"><img src="images/card/card-img-2.jpg" alt="Фото недвижимости" loading="lazy"> |
554 | <h3 class="card__title">Барбер-шоп</h3> | 554 | <h3 class="card__title">Барбер-шоп</h3> |
555 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> | 555 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> |
556 | <svg width="18" height="18"> | 556 | <svg width="18" height="18"> |
557 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> | 557 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> |
558 | </svg> | 558 | </svg> |
559 | <svg width="18" height="18"> | 559 | <svg width="18" height="18"> |
560 | <use xlink:href="images/sprite.svg#card-favorites"></use> | 560 | <use xlink:href="images/sprite.svg#card-favorites"></use> |
561 | </svg></span><a class="card__label card__label-messenger" href="#"> | 561 | </svg></span><a class="card__label card__label-messenger" href="#"> |
562 | <svg width="25" height="25"> | 562 | <svg width="25" height="25"> |
563 | <use xlink:href="images/sprite.svg#card-messenger"></use> | 563 | <use xlink:href="images/sprite.svg#card-messenger"></use> |
564 | </svg></a></div> | 564 | </svg></a></div> |
565 | </div> | 565 | </div> |
566 | <div class="card__cnt"> | 566 | <div class="card__cnt"> |
567 | <div class="card__info"> | 567 | <div class="card__info"> |
568 | <address class="card__line card__line-complex">ЖК “Новоарбатский”</address> | 568 | <address class="card__line card__line-complex">ЖК “Новоарбатский”</address> |
569 | <address class="card__line">Арбатская (8 мин., пешком)<span style="background-color: #0000A0;"></span></address> | 569 | <address class="card__line">Арбатская (8 мин., пешком)<span style="background-color: #0000A0;"></span></address> |
570 | <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address> | 570 | <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address> |
571 | <div class="card__line">Площадь: <b>6 556 м2</b></div> | 571 | <div class="card__line">Площадь: <b>6 556 м2</b></div> |
572 | <div class="card__line">Цена за м<sup>2</sup>: <b>5 225 256 ₽</b></div> | 572 | <div class="card__line">Цена за м<sup>2</sup>: <b>5 225 256 ₽</b></div> |
573 | </div> | 573 | </div> |
574 | <div class="card__price"><span>15 520 900 ₽</span><span>в месяц</span> | 574 | <div class="card__price"><span>15 520 900 ₽</span><span>в месяц</span> |
575 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a> | 575 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a> |
576 | </div> | 576 | </div> |
577 | </div> | 577 | </div> |
578 | </div> | 578 | </div> |
579 | <div class="swiper-slide"> | 579 | <div class="swiper-slide"> |
580 | <div class="card"> | 580 | <div class="card"> |
581 | <div class="card__top"><img src="images/card/card-img-3.jpg" alt="Фото недвижимости" loading="lazy"> | 581 | <div class="card__top"><img src="images/card/card-img-3.jpg" alt="Фото недвижимости" loading="lazy"> |
582 | <h3 class="card__title">Аптека</h3> | 582 | <h3 class="card__title">Аптека</h3> |
583 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> | 583 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> |
584 | <svg width="18" height="18"> | 584 | <svg width="18" height="18"> |
585 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> | 585 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> |
586 | </svg> | 586 | </svg> |
587 | <svg width="18" height="18"> | 587 | <svg width="18" height="18"> |
588 | <use xlink:href="images/sprite.svg#card-favorites"></use> | 588 | <use xlink:href="images/sprite.svg#card-favorites"></use> |
589 | </svg></span><a class="card__label card__label-messenger" href="#"> | 589 | </svg></span><a class="card__label card__label-messenger" href="#"> |
590 | <svg width="25" height="25"> | 590 | <svg width="25" height="25"> |
591 | <use xlink:href="images/sprite.svg#card-messenger"></use> | 591 | <use xlink:href="images/sprite.svg#card-messenger"></use> |
592 | </svg></a></div> | 592 | </svg></a></div> |
593 | </div> | 593 | </div> |
594 | <div class="card__cnt"> | 594 | <div class="card__cnt"> |
595 | <div class="card__info"> | 595 | <div class="card__info"> |
596 | <address class="card__line card__line-complex">ЖК “Садовые кварталы”</address> | 596 | <address class="card__line card__line-complex">ЖК “Садовые кварталы”</address> |
597 | <address class="card__line">Коломенская (2 мин., пешком)<span style="background-color: #029B55;"></span></address> | 597 | <address class="card__line">Коломенская (2 мин., пешком)<span style="background-color: #029B55;"></span></address> |
598 | <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address> | 598 | <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address> |
599 | <div class="card__line">Площадь: <b>8 626 м2</b></div> | 599 | <div class="card__line">Площадь: <b>8 626 м2</b></div> |
600 | <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div> | 600 | <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div> |
601 | </div> | 601 | </div> |
602 | <div class="card__price"><span>5 280 000 ₽</span> | 602 | <div class="card__price"><span>5 280 000 ₽</span> |
603 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее о продаже</a> | 603 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее о продаже</a> |
604 | </div> | 604 | </div> |
605 | </div> | 605 | </div> |
606 | </div> | 606 | </div> |
607 | <div class="swiper-slide"> | 607 | <div class="swiper-slide"> |
608 | <div class="card"> | 608 | <div class="card"> |
609 | <div class="card__top"><img src="images/card/card-img-4.jpg" alt="Фото недвижимости" loading="lazy"> | 609 | <div class="card__top"><img src="images/card/card-img-4.jpg" alt="Фото недвижимости" loading="lazy"> |
610 | <h3 class="card__title">Витрина</h3> | 610 | <h3 class="card__title">Витрина</h3> |
611 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> | 611 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> |
612 | <svg width="18" height="18"> | 612 | <svg width="18" height="18"> |
613 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> | 613 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> |
614 | </svg> | 614 | </svg> |
615 | <svg width="18" height="18"> | 615 | <svg width="18" height="18"> |
616 | <use xlink:href="images/sprite.svg#card-favorites"></use> | 616 | <use xlink:href="images/sprite.svg#card-favorites"></use> |
617 | </svg></span><a class="card__label card__label-messenger" href="#"> | 617 | </svg></span><a class="card__label card__label-messenger" href="#"> |
618 | <svg width="25" height="25"> | 618 | <svg width="25" height="25"> |
619 | <use xlink:href="images/sprite.svg#card-messenger"></use> | 619 | <use xlink:href="images/sprite.svg#card-messenger"></use> |
620 | </svg></a></div> | 620 | </svg></a></div> |
621 | </div> | 621 | </div> |
622 | <div class="card__cnt"> | 622 | <div class="card__cnt"> |
623 | <div class="card__info"> | 623 | <div class="card__info"> |
624 | <address class="card__line card__line-complex">ЖК “Нахимовский проспект, 46”</address> | 624 | <address class="card__line card__line-complex">ЖК “Нахимовский проспект, 46”</address> |
625 | <address class="card__line">Парк Победы (5 мин., пешком)<span style="background-color: #222964;"></span></address> | 625 | <address class="card__line">Парк Победы (5 мин., пешком)<span style="background-color: #222964;"></span></address> |
626 | <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address> | 626 | <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address> |
627 | <div class="card__line">Площадь: <b>6 856 м2</b></div> | 627 | <div class="card__line">Площадь: <b>6 856 м2</b></div> |
628 | <div class="card__line">Цена за м<sup>2</sup>: <b>25 256 ₽</b></div> | 628 | <div class="card__line">Цена за м<sup>2</sup>: <b>25 256 ₽</b></div> |
629 | </div> | 629 | </div> |
630 | <div class="card__price"><span>2 625 520 ₽</span><span>в месяц</span> | 630 | <div class="card__price"><span>2 625 520 ₽</span><span>в месяц</span> |
631 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a> | 631 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a> |
632 | </div> | 632 | </div> |
633 | </div> | 633 | </div> |
634 | </div> | 634 | </div> |
635 | <div class="swiper-slide"> | 635 | <div class="swiper-slide"> |
636 | <div class="card"> | 636 | <div class="card"> |
637 | <div class="card__top"><img src="images/card/card-img-1.jpg" alt="Фото недвижимости" loading="lazy"> | 637 | <div class="card__top"><img src="images/card/card-img-1.jpg" alt="Фото недвижимости" loading="lazy"> |
638 | <h3 class="card__title">Салон красоты</h3> | 638 | <h3 class="card__title">Салон красоты</h3> |
639 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> | 639 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> |
640 | <svg width="18" height="18"> | 640 | <svg width="18" height="18"> |
641 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> | 641 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> |
642 | </svg> | 642 | </svg> |
643 | <svg width="18" height="18"> | 643 | <svg width="18" height="18"> |
644 | <use xlink:href="images/sprite.svg#card-favorites"></use> | 644 | <use xlink:href="images/sprite.svg#card-favorites"></use> |
645 | </svg></span><a class="card__label card__label-messenger" href="#"> | 645 | </svg></span><a class="card__label card__label-messenger" href="#"> |
646 | <svg width="25" height="25"> | 646 | <svg width="25" height="25"> |
647 | <use xlink:href="images/sprite.svg#card-messenger"></use> | 647 | <use xlink:href="images/sprite.svg#card-messenger"></use> |
648 | </svg></a></div> | 648 | </svg></a></div> |
649 | </div> | 649 | </div> |
650 | <div class="card__cnt"> | 650 | <div class="card__cnt"> |
651 | <div class="card__info"> | 651 | <div class="card__info"> |
652 | <address class="card__line card__line-complex">ЖК “Новинки 1”</address> | 652 | <address class="card__line card__line-complex">ЖК “Новинки 1”</address> |
653 | <address class="card__line">Фрунзенская (10 мин., пешком)<span style="background-color: #FFC955;"></span></address> | 653 | <address class="card__line">Фрунзенская (10 мин., пешком)<span style="background-color: #FFC955;"></span></address> |
654 | <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address> | 654 | <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address> |
655 | <div class="card__line">Площадь: <b>556 м2</b></div> | 655 | <div class="card__line">Площадь: <b>556 м2</b></div> |
656 | <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div> | 656 | <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div> |
657 | </div> | 657 | </div> |
658 | <div class="card__price"><span>1 000 000 ₽</span> | 658 | <div class="card__price"><span>1 000 000 ₽</span> |
659 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее</a> | 659 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее</a> |
660 | </div> | 660 | </div> |
661 | </div> | 661 | </div> |
662 | </div> | 662 | </div> |
663 | <div class="swiper-slide"> | 663 | <div class="swiper-slide"> |
664 | <div class="card"> | 664 | <div class="card"> |
665 | <div class="card__top"><img src="images/card/card-img-2.jpg" alt="Фото недвижимости" loading="lazy"> | 665 | <div class="card__top"><img src="images/card/card-img-2.jpg" alt="Фото недвижимости" loading="lazy"> |
666 | <h3 class="card__title">Барбер-шоп</h3> | 666 | <h3 class="card__title">Барбер-шоп</h3> |
667 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> | 667 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> |
668 | <svg width="18" height="18"> | 668 | <svg width="18" height="18"> |
669 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> | 669 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> |
670 | </svg> | 670 | </svg> |
671 | <svg width="18" height="18"> | 671 | <svg width="18" height="18"> |
672 | <use xlink:href="images/sprite.svg#card-favorites"></use> | 672 | <use xlink:href="images/sprite.svg#card-favorites"></use> |
673 | </svg></span><a class="card__label card__label-messenger" href="#"> | 673 | </svg></span><a class="card__label card__label-messenger" href="#"> |
674 | <svg width="25" height="25"> | 674 | <svg width="25" height="25"> |
675 | <use xlink:href="images/sprite.svg#card-messenger"></use> | 675 | <use xlink:href="images/sprite.svg#card-messenger"></use> |
676 | </svg></a></div> | 676 | </svg></a></div> |
677 | </div> | 677 | </div> |
678 | <div class="card__cnt"> | 678 | <div class="card__cnt"> |
679 | <div class="card__info"> | 679 | <div class="card__info"> |
680 | <address class="card__line card__line-complex">ЖК “Новоарбатский”</address> | 680 | <address class="card__line card__line-complex">ЖК “Новоарбатский”</address> |
681 | <address class="card__line">Арбатская (8 мин., пешком)<span style="background-color: #0000A0;"></span></address> | 681 | <address class="card__line">Арбатская (8 мин., пешком)<span style="background-color: #0000A0;"></span></address> |
682 | <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address> | 682 | <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address> |
683 | <div class="card__line">Площадь: <b>6 556 м2</b></div> | 683 | <div class="card__line">Площадь: <b>6 556 м2</b></div> |
684 | <div class="card__line">Цена за м<sup>2</sup>: <b>5 225 256 ₽</b></div> | 684 | <div class="card__line">Цена за м<sup>2</sup>: <b>5 225 256 ₽</b></div> |
685 | </div> | 685 | </div> |
686 | <div class="card__price"><span>15 520 900 ₽</span><span>в месяц</span> | 686 | <div class="card__price"><span>15 520 900 ₽</span><span>в месяц</span> |
687 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a> | 687 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a> |
688 | </div> | 688 | </div> |
689 | </div> | 689 | </div> |
690 | </div> | 690 | </div> |
691 | <div class="swiper-slide"> | 691 | <div class="swiper-slide"> |
692 | <div class="card"> | 692 | <div class="card"> |
693 | <div class="card__top"><img src="images/card/card-img-3.jpg" alt="Фото недвижимости" loading="lazy"> | 693 | <div class="card__top"><img src="images/card/card-img-3.jpg" alt="Фото недвижимости" loading="lazy"> |
694 | <h3 class="card__title">Аптека</h3> | 694 | <h3 class="card__title">Аптека</h3> |
695 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> | 695 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> |
696 | <svg width="18" height="18"> | 696 | <svg width="18" height="18"> |
697 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> | 697 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> |
698 | </svg> | 698 | </svg> |
699 | <svg width="18" height="18"> | 699 | <svg width="18" height="18"> |
700 | <use xlink:href="images/sprite.svg#card-favorites"></use> | 700 | <use xlink:href="images/sprite.svg#card-favorites"></use> |
701 | </svg></span><a class="card__label card__label-messenger" href="#"> | 701 | </svg></span><a class="card__label card__label-messenger" href="#"> |
702 | <svg width="25" height="25"> | 702 | <svg width="25" height="25"> |
703 | <use xlink:href="images/sprite.svg#card-messenger"></use> | 703 | <use xlink:href="images/sprite.svg#card-messenger"></use> |
704 | </svg></a></div> | 704 | </svg></a></div> |
705 | </div> | 705 | </div> |
706 | <div class="card__cnt"> | 706 | <div class="card__cnt"> |
707 | <div class="card__info"> | 707 | <div class="card__info"> |
708 | <address class="card__line card__line-complex">ЖК “Садовые кварталы”</address> | 708 | <address class="card__line card__line-complex">ЖК “Садовые кварталы”</address> |
709 | <address class="card__line">Коломенская (2 мин., пешком)<span style="background-color: #029B55;"></span></address> | 709 | <address class="card__line">Коломенская (2 мин., пешком)<span style="background-color: #029B55;"></span></address> |
710 | <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address> | 710 | <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address> |
711 | <div class="card__line">Площадь: <b>8 626 м2</b></div> | 711 | <div class="card__line">Площадь: <b>8 626 м2</b></div> |
712 | <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div> | 712 | <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div> |
713 | </div> | 713 | </div> |
714 | <div class="card__price"><span>5 280 000 ₽</span> | 714 | <div class="card__price"><span>5 280 000 ₽</span> |
715 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее о продаже</a> | 715 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее о продаже</a> |
716 | </div> | 716 | </div> |
717 | </div> | 717 | </div> |
718 | </div> | 718 | </div> |
719 | <div class="swiper-slide"> | 719 | <div class="swiper-slide"> |
720 | <div class="card"> | 720 | <div class="card"> |
721 | <div class="card__top"><img src="images/card/card-img-4.jpg" alt="Фото недвижимости" loading="lazy"> | 721 | <div class="card__top"><img src="images/card/card-img-4.jpg" alt="Фото недвижимости" loading="lazy"> |
722 | <h3 class="card__title">Витрина</h3> | 722 | <h3 class="card__title">Витрина</h3> |
723 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> | 723 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> |
724 | <svg width="18" height="18"> | 724 | <svg width="18" height="18"> |
725 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> | 725 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> |
726 | </svg> | 726 | </svg> |
727 | <svg width="18" height="18"> | 727 | <svg width="18" height="18"> |
728 | <use xlink:href="images/sprite.svg#card-favorites"></use> | 728 | <use xlink:href="images/sprite.svg#card-favorites"></use> |
729 | </svg></span><a class="card__label card__label-messenger" href="#"> | 729 | </svg></span><a class="card__label card__label-messenger" href="#"> |
730 | <svg width="25" height="25"> | 730 | <svg width="25" height="25"> |
731 | <use xlink:href="images/sprite.svg#card-messenger"></use> | 731 | <use xlink:href="images/sprite.svg#card-messenger"></use> |
732 | </svg></a></div> | 732 | </svg></a></div> |
733 | </div> | 733 | </div> |
734 | <div class="card__cnt"> | 734 | <div class="card__cnt"> |
735 | <div class="card__info"> | 735 | <div class="card__info"> |
736 | <address class="card__line card__line-complex">ЖК “Нахимовский проспект, 46”</address> | 736 | <address class="card__line card__line-complex">ЖК “Нахимовский проспект, 46”</address> |
737 | <address class="card__line">Парк Победы (5 мин., пешком)<span style="background-color: #222964;"></span></address> | 737 | <address class="card__line">Парк Победы (5 мин., пешком)<span style="background-color: #222964;"></span></address> |
738 | <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address> | 738 | <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address> |
739 | <div class="card__line">Площадь: <b>6 856 м2</b></div> | 739 | <div class="card__line">Площадь: <b>6 856 м2</b></div> |
740 | <div class="card__line">Цена за м<sup>2</sup>: <b>25 256 ₽</b></div> | 740 | <div class="card__line">Цена за м<sup>2</sup>: <b>25 256 ₽</b></div> |
741 | </div> | 741 | </div> |
742 | <div class="card__price"><span>2 625 520 ₽</span><span>в месяц</span> | 742 | <div class="card__price"><span>2 625 520 ₽</span><span>в месяц</span> |
743 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a> | 743 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a> |
744 | </div> | 744 | </div> |
745 | </div> | 745 | </div> |
746 | </div>--> | 746 | </div>--> |
747 | </div> | 747 | </div> |
748 | </div> | 748 | </div> |
749 | <div class="swiper-pagination"></div> | 749 | <div class="swiper-pagination"></div> |
750 | </div> | 750 | </div> |
751 | </div> | 751 | </div> |
752 | </section> | 752 | </section> |
753 | <section class="slider"> | 753 | <section class="slider"> |
754 | <div class="container"> | 754 | <div class="container"> |
755 | <div class="slider__wrap"> | 755 | <div class="slider__wrap"> |
756 | <div class="slider__top"> | 756 | <div class="slider__top"> |
757 | <h2 class="slider__title title">Арендный бизнес</h2><a class="slider__more" href="#">Показать все объекты</a> | 757 | <h2 class="slider__title title">Арендный бизнес</h2><a class="slider__more" href="#">Показать все объекты</a> |
758 | <div class="slider__control"> | 758 | <div class="slider__control"> |
759 | <div class="swiper-button-prev"> | 759 | <div class="swiper-button-prev"> |
760 | <svg width="10" height="17"> | 760 | <svg width="10" height="17"> |
761 | <use xlink:href="{{ asset('images/sprite.svg#slider-arrow') }}"></use> | 761 | <use xlink:href="{{ asset('images/sprite.svg#slider-arrow') }}"></use> |
762 | </svg> | 762 | </svg> |
763 | </div> | 763 | </div> |
764 | <div class="swiper-button-next"> | 764 | <div class="swiper-button-next"> |
765 | <svg width="10" height="17"> | 765 | <svg width="10" height="17"> |
766 | <use xlink:href="{{ asset('images/sprite.svg#slider-arrow') }}"></use> | 766 | <use xlink:href="{{ asset('images/sprite.svg#slider-arrow') }}"></use> |
767 | </svg> | 767 | </svg> |
768 | </div> | 768 | </div> |
769 | </div> | 769 | </div> |
770 | </div> | 770 | </div> |
771 | <div class="slider__swiper swiper"> | 771 | <div class="slider__swiper swiper"> |
772 | <div class="swiper-wrapper" id="bissnes_block"> | 772 | <div class="swiper-wrapper" id="bissnes_block"> |
773 | @if ($house_bissnes->count()) | 773 | @if ($house_bissnes->count()) |
774 | @foreach ($house_bissnes as $house3) | 774 | @foreach ($house_bissnes as $house3) |
775 | @include('catalogs.elemhouse', ['house' => $house3]) | 775 | @include('catalogs.elemhouse', ['house' => $house3]) |
776 | @endforeach | 776 | @endforeach |
777 | @else | 777 | @else |
778 | <h3>Здесь пока что нет предложений</h3> | 778 | <h3>Здесь пока что нет предложений</h3> |
779 | @endif | 779 | @endif |
780 | <!--<div class="swiper-slide"> | 780 | <!--<div class="swiper-slide"> |
781 | <div class="card"> | 781 | <div class="card"> |
782 | <div class="card__top"><img src="images/card/card-img-1.jpg" alt="Фото недвижимости" loading="lazy"> | 782 | <div class="card__top"><img src="images/card/card-img-1.jpg" alt="Фото недвижимости" loading="lazy"> |
783 | <h3 class="card__title">Салон красоты</h3> | 783 | <h3 class="card__title">Салон красоты</h3> |
784 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> | 784 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> |
785 | <svg width="18" height="18"> | 785 | <svg width="18" height="18"> |
786 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> | 786 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> |
787 | </svg> | 787 | </svg> |
788 | <svg width="18" height="18"> | 788 | <svg width="18" height="18"> |
789 | <use xlink:href="images/sprite.svg#card-favorites"></use> | 789 | <use xlink:href="images/sprite.svg#card-favorites"></use> |
790 | </svg></span><a class="card__label card__label-messenger" href="#"> | 790 | </svg></span><a class="card__label card__label-messenger" href="#"> |
791 | <svg width="25" height="25"> | 791 | <svg width="25" height="25"> |
792 | <use xlink:href="images/sprite.svg#card-messenger"></use> | 792 | <use xlink:href="images/sprite.svg#card-messenger"></use> |
793 | </svg></a></div> | 793 | </svg></a></div> |
794 | </div> | 794 | </div> |
795 | <div class="card__cnt"> | 795 | <div class="card__cnt"> |
796 | <div class="card__info"> | 796 | <div class="card__info"> |
797 | <address class="card__line card__line-complex">ЖК “Новинки 1”</address> | 797 | <address class="card__line card__line-complex">ЖК “Новинки 1”</address> |
798 | <address class="card__line">Фрунзенская (10 мин., пешком)<span style="background-color: #FFC955;"></span></address> | 798 | <address class="card__line">Фрунзенская (10 мин., пешком)<span style="background-color: #FFC955;"></span></address> |
799 | <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address> | 799 | <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address> |
800 | <div class="card__line">Площадь: <b>556 м2</b></div> | 800 | <div class="card__line">Площадь: <b>556 м2</b></div> |
801 | <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div> | 801 | <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div> |
802 | </div> | 802 | </div> |
803 | <div class="card__price"><span>1 000 000 ₽</span> | 803 | <div class="card__price"><span>1 000 000 ₽</span> |
804 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее</a> | 804 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее</a> |
805 | </div> | 805 | </div> |
806 | </div> | 806 | </div> |
807 | </div> | 807 | </div> |
808 | <div class="swiper-slide"> | 808 | <div class="swiper-slide"> |
809 | <div class="card"> | 809 | <div class="card"> |
810 | <div class="card__top"><img src="images/card/card-img-2.jpg" alt="Фото недвижимости" loading="lazy"> | 810 | <div class="card__top"><img src="images/card/card-img-2.jpg" alt="Фото недвижимости" loading="lazy"> |
811 | <h3 class="card__title">Барбер-шоп</h3> | 811 | <h3 class="card__title">Барбер-шоп</h3> |
812 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> | 812 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> |
813 | <svg width="18" height="18"> | 813 | <svg width="18" height="18"> |
814 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> | 814 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> |
815 | </svg> | 815 | </svg> |
816 | <svg width="18" height="18"> | 816 | <svg width="18" height="18"> |
817 | <use xlink:href="images/sprite.svg#card-favorites"></use> | 817 | <use xlink:href="images/sprite.svg#card-favorites"></use> |
818 | </svg></span><a class="card__label card__label-messenger" href="#"> | 818 | </svg></span><a class="card__label card__label-messenger" href="#"> |
819 | <svg width="25" height="25"> | 819 | <svg width="25" height="25"> |
820 | <use xlink:href="images/sprite.svg#card-messenger"></use> | 820 | <use xlink:href="images/sprite.svg#card-messenger"></use> |
821 | </svg></a></div> | 821 | </svg></a></div> |
822 | </div> | 822 | </div> |
823 | <div class="card__cnt"> | 823 | <div class="card__cnt"> |
824 | <div class="card__info"> | 824 | <div class="card__info"> |
825 | <address class="card__line card__line-complex">ЖК “Новоарбатский”</address> | 825 | <address class="card__line card__line-complex">ЖК “Новоарбатский”</address> |
826 | <address class="card__line">Арбатская (8 мин., пешком)<span style="background-color: #0000A0;"></span></address> | 826 | <address class="card__line">Арбатская (8 мин., пешком)<span style="background-color: #0000A0;"></span></address> |
827 | <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address> | 827 | <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address> |
828 | <div class="card__line">Площадь: <b>6 556 м2</b></div> | 828 | <div class="card__line">Площадь: <b>6 556 м2</b></div> |
829 | <div class="card__line">Цена за м<sup>2</sup>: <b>5 225 256 ₽</b></div> | 829 | <div class="card__line">Цена за м<sup>2</sup>: <b>5 225 256 ₽</b></div> |
830 | </div> | 830 | </div> |
831 | <div class="card__price"><span>15 520 900 ₽</span><span>в месяц</span> | 831 | <div class="card__price"><span>15 520 900 ₽</span><span>в месяц</span> |
832 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a> | 832 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a> |
833 | </div> | 833 | </div> |
834 | </div> | 834 | </div> |
835 | </div> | 835 | </div> |
836 | <div class="swiper-slide"> | 836 | <div class="swiper-slide"> |
837 | <div class="card"> | 837 | <div class="card"> |
838 | <div class="card__top"><img src="images/card/card-img-3.jpg" alt="Фото недвижимости" loading="lazy"> | 838 | <div class="card__top"><img src="images/card/card-img-3.jpg" alt="Фото недвижимости" loading="lazy"> |
839 | <h3 class="card__title">Аптека</h3> | 839 | <h3 class="card__title">Аптека</h3> |
840 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> | 840 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> |
841 | <svg width="18" height="18"> | 841 | <svg width="18" height="18"> |
842 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> | 842 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> |
843 | </svg> | 843 | </svg> |
844 | <svg width="18" height="18"> | 844 | <svg width="18" height="18"> |
845 | <use xlink:href="images/sprite.svg#card-favorites"></use> | 845 | <use xlink:href="images/sprite.svg#card-favorites"></use> |
846 | </svg></span><a class="card__label card__label-messenger" href="#"> | 846 | </svg></span><a class="card__label card__label-messenger" href="#"> |
847 | <svg width="25" height="25"> | 847 | <svg width="25" height="25"> |
848 | <use xlink:href="images/sprite.svg#card-messenger"></use> | 848 | <use xlink:href="images/sprite.svg#card-messenger"></use> |
849 | </svg></a></div> | 849 | </svg></a></div> |
850 | </div> | 850 | </div> |
851 | <div class="card__cnt"> | 851 | <div class="card__cnt"> |
852 | <div class="card__info"> | 852 | <div class="card__info"> |
853 | <address class="card__line card__line-complex">ЖК “Садовые кварталы”</address> | 853 | <address class="card__line card__line-complex">ЖК “Садовые кварталы”</address> |
854 | <address class="card__line">Коломенская (2 мин., пешком)<span style="background-color: #029B55;"></span></address> | 854 | <address class="card__line">Коломенская (2 мин., пешком)<span style="background-color: #029B55;"></span></address> |
855 | <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address> | 855 | <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address> |
856 | <div class="card__line">Площадь: <b>8 626 м2</b></div> | 856 | <div class="card__line">Площадь: <b>8 626 м2</b></div> |
857 | <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div> | 857 | <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div> |
858 | </div> | 858 | </div> |
859 | <div class="card__price"><span>5 280 000 ₽</span> | 859 | <div class="card__price"><span>5 280 000 ₽</span> |
860 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее о продаже</a> | 860 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее о продаже</a> |
861 | </div> | 861 | </div> |
862 | </div> | 862 | </div> |
863 | </div> | 863 | </div> |
864 | <div class="swiper-slide"> | 864 | <div class="swiper-slide"> |
865 | <div class="card"> | 865 | <div class="card"> |
866 | <div class="card__top"><img src="images/card/card-img-4.jpg" alt="Фото недвижимости" loading="lazy"> | 866 | <div class="card__top"><img src="images/card/card-img-4.jpg" alt="Фото недвижимости" loading="lazy"> |
867 | <h3 class="card__title">Витрина</h3> | 867 | <h3 class="card__title">Витрина</h3> |
868 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> | 868 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> |
869 | <svg width="18" height="18"> | 869 | <svg width="18" height="18"> |
870 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> | 870 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> |
871 | </svg> | 871 | </svg> |
872 | <svg width="18" height="18"> | 872 | <svg width="18" height="18"> |
873 | <use xlink:href="images/sprite.svg#card-favorites"></use> | 873 | <use xlink:href="images/sprite.svg#card-favorites"></use> |
874 | </svg></span><a class="card__label card__label-messenger" href="#"> | 874 | </svg></span><a class="card__label card__label-messenger" href="#"> |
875 | <svg width="25" height="25"> | 875 | <svg width="25" height="25"> |
876 | <use xlink:href="images/sprite.svg#card-messenger"></use> | 876 | <use xlink:href="images/sprite.svg#card-messenger"></use> |
877 | </svg></a></div> | 877 | </svg></a></div> |
878 | </div> | 878 | </div> |
879 | <div class="card__cnt"> | 879 | <div class="card__cnt"> |
880 | <div class="card__info"> | 880 | <div class="card__info"> |
881 | <address class="card__line card__line-complex">ЖК “Нахимовский проспект, 46”</address> | 881 | <address class="card__line card__line-complex">ЖК “Нахимовский проспект, 46”</address> |
882 | <address class="card__line">Парк Победы (5 мин., пешком)<span style="background-color: #222964;"></span></address> | 882 | <address class="card__line">Парк Победы (5 мин., пешком)<span style="background-color: #222964;"></span></address> |
883 | <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address> | 883 | <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address> |
884 | <div class="card__line">Площадь: <b>6 856 м2</b></div> | 884 | <div class="card__line">Площадь: <b>6 856 м2</b></div> |
885 | <div class="card__line">Цена за м<sup>2</sup>: <b>25 256 ₽</b></div> | 885 | <div class="card__line">Цена за м<sup>2</sup>: <b>25 256 ₽</b></div> |
886 | </div> | 886 | </div> |
887 | <div class="card__price"><span>2 625 520 ₽</span><span>в месяц</span> | 887 | <div class="card__price"><span>2 625 520 ₽</span><span>в месяц</span> |
888 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a> | 888 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a> |
889 | </div> | 889 | </div> |
890 | </div> | 890 | </div> |
891 | </div> | 891 | </div> |
892 | <div class="swiper-slide"> | 892 | <div class="swiper-slide"> |
893 | <div class="card"> | 893 | <div class="card"> |
894 | <div class="card__top"><img src="images/card/card-img-1.jpg" alt="Фото недвижимости" loading="lazy"> | 894 | <div class="card__top"><img src="images/card/card-img-1.jpg" alt="Фото недвижимости" loading="lazy"> |
895 | <h3 class="card__title">Салон красоты</h3> | 895 | <h3 class="card__title">Салон красоты</h3> |
896 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> | 896 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> |
897 | <svg width="18" height="18"> | 897 | <svg width="18" height="18"> |
898 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> | 898 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> |
899 | </svg> | 899 | </svg> |
900 | <svg width="18" height="18"> | 900 | <svg width="18" height="18"> |
901 | <use xlink:href="images/sprite.svg#card-favorites"></use> | 901 | <use xlink:href="images/sprite.svg#card-favorites"></use> |
902 | </svg></span><a class="card__label card__label-messenger" href="#"> | 902 | </svg></span><a class="card__label card__label-messenger" href="#"> |
903 | <svg width="25" height="25"> | 903 | <svg width="25" height="25"> |
904 | <use xlink:href="images/sprite.svg#card-messenger"></use> | 904 | <use xlink:href="images/sprite.svg#card-messenger"></use> |
905 | </svg></a></div> | 905 | </svg></a></div> |
906 | </div> | 906 | </div> |
907 | <div class="card__cnt"> | 907 | <div class="card__cnt"> |
908 | <div class="card__info"> | 908 | <div class="card__info"> |
909 | <address class="card__line card__line-complex">ЖК “Новинки 1”</address> | 909 | <address class="card__line card__line-complex">ЖК “Новинки 1”</address> |
910 | <address class="card__line">Фрунзенская (10 мин., пешком)<span style="background-color: #FFC955;"></span></address> | 910 | <address class="card__line">Фрунзенская (10 мин., пешком)<span style="background-color: #FFC955;"></span></address> |
911 | <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address> | 911 | <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address> |
912 | <div class="card__line">Площадь: <b>556 м2</b></div> | 912 | <div class="card__line">Площадь: <b>556 м2</b></div> |
913 | <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div> | 913 | <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div> |
914 | </div> | 914 | </div> |
915 | <div class="card__price"><span>1 000 000 ₽</span> | 915 | <div class="card__price"><span>1 000 000 ₽</span> |
916 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее</a> | 916 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее</a> |
917 | </div> | 917 | </div> |
918 | </div> | 918 | </div> |
919 | </div> | 919 | </div> |
920 | <div class="swiper-slide"> | 920 | <div class="swiper-slide"> |
921 | <div class="card"> | 921 | <div class="card"> |
922 | <div class="card__top"><img src="images/card/card-img-2.jpg" alt="Фото недвижимости" loading="lazy"> | 922 | <div class="card__top"><img src="images/card/card-img-2.jpg" alt="Фото недвижимости" loading="lazy"> |
923 | <h3 class="card__title">Барбер-шоп</h3> | 923 | <h3 class="card__title">Барбер-шоп</h3> |
924 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> | 924 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> |
925 | <svg width="18" height="18"> | 925 | <svg width="18" height="18"> |
926 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> | 926 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> |
927 | </svg> | 927 | </svg> |
928 | <svg width="18" height="18"> | 928 | <svg width="18" height="18"> |
929 | <use xlink:href="images/sprite.svg#card-favorites"></use> | 929 | <use xlink:href="images/sprite.svg#card-favorites"></use> |
930 | </svg></span><a class="card__label card__label-messenger" href="#"> | 930 | </svg></span><a class="card__label card__label-messenger" href="#"> |
931 | <svg width="25" height="25"> | 931 | <svg width="25" height="25"> |
932 | <use xlink:href="images/sprite.svg#card-messenger"></use> | 932 | <use xlink:href="images/sprite.svg#card-messenger"></use> |
933 | </svg></a></div> | 933 | </svg></a></div> |
934 | </div> | 934 | </div> |
935 | <div class="card__cnt"> | 935 | <div class="card__cnt"> |
936 | <div class="card__info"> | 936 | <div class="card__info"> |
937 | <address class="card__line card__line-complex">ЖК “Новоарбатский”</address> | 937 | <address class="card__line card__line-complex">ЖК “Новоарбатский”</address> |
938 | <address class="card__line">Арбатская (8 мин., пешком)<span style="background-color: #0000A0;"></span></address> | 938 | <address class="card__line">Арбатская (8 мин., пешком)<span style="background-color: #0000A0;"></span></address> |
939 | <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address> | 939 | <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address> |
940 | <div class="card__line">Площадь: <b>6 556 м2</b></div> | 940 | <div class="card__line">Площадь: <b>6 556 м2</b></div> |
941 | <div class="card__line">Цена за м<sup>2</sup>: <b>5 225 256 ₽</b></div> | 941 | <div class="card__line">Цена за м<sup>2</sup>: <b>5 225 256 ₽</b></div> |
942 | </div> | 942 | </div> |
943 | <div class="card__price"><span>15 520 900 ₽</span><span>в месяц</span> | 943 | <div class="card__price"><span>15 520 900 ₽</span><span>в месяц</span> |
944 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a> | 944 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a> |
945 | </div> | 945 | </div> |
946 | </div> | 946 | </div> |
947 | </div> | 947 | </div> |
948 | <div class="swiper-slide"> | 948 | <div class="swiper-slide"> |
949 | <div class="card"> | 949 | <div class="card"> |
950 | <div class="card__top"><img src="images/card/card-img-3.jpg" alt="Фото недвижимости" loading="lazy"> | 950 | <div class="card__top"><img src="images/card/card-img-3.jpg" alt="Фото недвижимости" loading="lazy"> |
951 | <h3 class="card__title">Аптека</h3> | 951 | <h3 class="card__title">Аптека</h3> |
952 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> | 952 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> |
953 | <svg width="18" height="18"> | 953 | <svg width="18" height="18"> |
954 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> | 954 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> |
955 | </svg> | 955 | </svg> |
956 | <svg width="18" height="18"> | 956 | <svg width="18" height="18"> |
957 | <use xlink:href="images/sprite.svg#card-favorites"></use> | 957 | <use xlink:href="images/sprite.svg#card-favorites"></use> |
958 | </svg></span><a class="card__label card__label-messenger" href="#"> | 958 | </svg></span><a class="card__label card__label-messenger" href="#"> |
959 | <svg width="25" height="25"> | 959 | <svg width="25" height="25"> |
960 | <use xlink:href="images/sprite.svg#card-messenger"></use> | 960 | <use xlink:href="images/sprite.svg#card-messenger"></use> |
961 | </svg></a></div> | 961 | </svg></a></div> |
962 | </div> | 962 | </div> |
963 | <div class="card__cnt"> | 963 | <div class="card__cnt"> |
964 | <div class="card__info"> | 964 | <div class="card__info"> |
965 | <address class="card__line card__line-complex">ЖК “Садовые кварталы”</address> | 965 | <address class="card__line card__line-complex">ЖК “Садовые кварталы”</address> |
966 | <address class="card__line">Коломенская (2 мин., пешком)<span style="background-color: #029B55;"></span></address> | 966 | <address class="card__line">Коломенская (2 мин., пешком)<span style="background-color: #029B55;"></span></address> |
967 | <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address> | 967 | <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address> |
968 | <div class="card__line">Площадь: <b>8 626 м2</b></div> | 968 | <div class="card__line">Площадь: <b>8 626 м2</b></div> |
969 | <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div> | 969 | <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div> |
970 | </div> | 970 | </div> |
971 | <div class="card__price"><span>5 280 000 ₽</span> | 971 | <div class="card__price"><span>5 280 000 ₽</span> |
972 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее о продаже</a> | 972 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее о продаже</a> |
973 | </div> | 973 | </div> |
974 | </div> | 974 | </div> |
975 | </div> | 975 | </div> |
976 | <div class="swiper-slide"> | 976 | <div class="swiper-slide"> |
977 | <div class="card"> | 977 | <div class="card"> |
978 | <div class="card__top"><img src="images/card/card-img-4.jpg" alt="Фото недвижимости" loading="lazy"> | 978 | <div class="card__top"><img src="images/card/card-img-4.jpg" alt="Фото недвижимости" loading="lazy"> |
979 | <h3 class="card__title">Витрина</h3> | 979 | <h3 class="card__title">Витрина</h3> |
980 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> | 980 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> |
981 | <svg width="18" height="18"> | 981 | <svg width="18" height="18"> |
982 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> | 982 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> |
983 | </svg> | 983 | </svg> |
984 | <svg width="18" height="18"> | 984 | <svg width="18" height="18"> |
985 | <use xlink:href="images/sprite.svg#card-favorites"></use> | 985 | <use xlink:href="images/sprite.svg#card-favorites"></use> |
986 | </svg></span><a class="card__label card__label-messenger" href="#"> | 986 | </svg></span><a class="card__label card__label-messenger" href="#"> |
987 | <svg width="25" height="25"> | 987 | <svg width="25" height="25"> |
988 | <use xlink:href="images/sprite.svg#card-messenger"></use> | 988 | <use xlink:href="images/sprite.svg#card-messenger"></use> |
989 | </svg></a></div> | 989 | </svg></a></div> |
990 | </div> | 990 | </div> |
991 | <div class="card__cnt"> | 991 | <div class="card__cnt"> |
992 | <div class="card__info"> | 992 | <div class="card__info"> |
993 | <address class="card__line card__line-complex">ЖК “Нахимовский проспект, 46”</address> | 993 | <address class="card__line card__line-complex">ЖК “Нахимовский проспект, 46”</address> |
994 | <address class="card__line">Парк Победы (5 мин., пешком)<span style="background-color: #222964;"></span></address> | 994 | <address class="card__line">Парк Победы (5 мин., пешком)<span style="background-color: #222964;"></span></address> |
995 | <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address> | 995 | <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address> |
996 | <div class="card__line">Площадь: <b>6 856 м2</b></div> | 996 | <div class="card__line">Площадь: <b>6 856 м2</b></div> |
997 | <div class="card__line">Цена за м<sup>2</sup>: <b>25 256 ₽</b></div> | 997 | <div class="card__line">Цена за м<sup>2</sup>: <b>25 256 ₽</b></div> |
998 | </div> | 998 | </div> |
999 | <div class="card__price"><span>2 625 520 ₽</span><span>в месяц</span> | 999 | <div class="card__price"><span>2 625 520 ₽</span><span>в месяц</span> |
1000 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a> | 1000 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a> |
1001 | </div> | 1001 | </div> |
1002 | </div> | 1002 | </div> |
1003 | </div>--> | 1003 | </div>--> |
1004 | </div> | 1004 | </div> |
1005 | </div> | 1005 | </div> |
1006 | <div class="swiper-pagination"></div> | 1006 | <div class="swiper-pagination"></div> |
1007 | </div> | 1007 | </div> |
1008 | </div> | 1008 | </div> |
1009 | </section> | 1009 | </section> |
1010 | <section class="slider"> | 1010 | <section class="slider"> |
1011 | <div class="container"> | 1011 | <div class="container"> |
1012 | <div class="slider__wrap"> | 1012 | <div class="slider__wrap"> |
1013 | <div class="slider__top"> | 1013 | <div class="slider__top"> |
1014 | <h2 class="slider__title title">Арендованные</h2><a class="slider__more" href="#">Показать все объекты</a> | 1014 | <h2 class="slider__title title">Арендованные</h2><a class="slider__more" href="#">Показать все объекты</a> |
1015 | <div class="slider__control"> | 1015 | <div class="slider__control"> |
1016 | <div class="swiper-button-prev"> | 1016 | <div class="swiper-button-prev"> |
1017 | <svg width="10" height="17"> | 1017 | <svg width="10" height="17"> |
1018 | <use xlink:href="{{ asset('images/sprite.svg#slider-arrow') }}"></use> | 1018 | <use xlink:href="{{ asset('images/sprite.svg#slider-arrow') }}"></use> |
1019 | </svg> | 1019 | </svg> |
1020 | </div> | 1020 | </div> |
1021 | <div class="swiper-button-next"> | 1021 | <div class="swiper-button-next"> |
1022 | <svg width="10" height="17"> | 1022 | <svg width="10" height="17"> |
1023 | <use xlink:href="{{ asset('images/sprite.svg#slider-arrow') }}"></use> | 1023 | <use xlink:href="{{ asset('images/sprite.svg#slider-arrow') }}"></use> |
1024 | </svg> | 1024 | </svg> |
1025 | </div> | 1025 | </div> |
1026 | </div> | 1026 | </div> |
1027 | </div> | 1027 | </div> |
1028 | <div class="slider__swiper swiper"> | 1028 | <div class="slider__swiper swiper"> |
1029 | <div class="swiper-wrapper" id="arendovannie_block"> | 1029 | <div class="swiper-wrapper" id="arendovannie_block"> |
1030 | @if ($house_arendovannie->count()) | 1030 | @if ($house_arendovannie->count()) |
1031 | @foreach ($house_arendovannie as $house1) | 1031 | @foreach ($house_arendovannie as $house1) |
1032 | @include('catalogs.elemhouse', ['house' => $house1]) | 1032 | @include('catalogs.elemhouse', ['house' => $house1]) |
1033 | @endforeach | 1033 | @endforeach |
1034 | @else | 1034 | @else |
1035 | <h3>Здесь пока что нет предложений</h3> | 1035 | <h3>Здесь пока что нет предложений</h3> |
1036 | @endif | 1036 | @endif |
1037 | <!--<div class="swiper-slide"> | 1037 | <!--<div class="swiper-slide"> |
1038 | <div class="card"> | 1038 | <div class="card"> |
1039 | <div class="card__top"><img src="images/card/card-img-1.jpg" alt="Фото недвижимости" loading="lazy"> | 1039 | <div class="card__top"><img src="images/card/card-img-1.jpg" alt="Фото недвижимости" loading="lazy"> |
1040 | <h3 class="card__title">Салон красоты</h3> | 1040 | <h3 class="card__title">Салон красоты</h3> |
1041 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> | 1041 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> |
1042 | <svg width="18" height="18"> | 1042 | <svg width="18" height="18"> |
1043 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> | 1043 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> |
1044 | </svg> | 1044 | </svg> |
1045 | <svg width="18" height="18"> | 1045 | <svg width="18" height="18"> |
1046 | <use xlink:href="images/sprite.svg#card-favorites"></use> | 1046 | <use xlink:href="images/sprite.svg#card-favorites"></use> |
1047 | </svg></span><a class="card__label card__label-messenger" href="#"> | 1047 | </svg></span><a class="card__label card__label-messenger" href="#"> |
1048 | <svg width="25" height="25"> | 1048 | <svg width="25" height="25"> |
1049 | <use xlink:href="images/sprite.svg#card-messenger"></use> | 1049 | <use xlink:href="images/sprite.svg#card-messenger"></use> |
1050 | </svg></a></div> | 1050 | </svg></a></div> |
1051 | </div> | 1051 | </div> |
1052 | <div class="card__cnt"> | 1052 | <div class="card__cnt"> |
1053 | <div class="card__info"> | 1053 | <div class="card__info"> |
1054 | <address class="card__line card__line-complex">ЖК “Новинки 1”</address> | 1054 | <address class="card__line card__line-complex">ЖК “Новинки 1”</address> |
1055 | <address class="card__line">Фрунзенская (10 мин., пешком)<span style="background-color: #FFC955;"></span></address> | 1055 | <address class="card__line">Фрунзенская (10 мин., пешком)<span style="background-color: #FFC955;"></span></address> |
1056 | <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address> | 1056 | <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address> |
1057 | <div class="card__line">Площадь: <b>556 м2</b></div> | 1057 | <div class="card__line">Площадь: <b>556 м2</b></div> |
1058 | <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div> | 1058 | <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div> |
1059 | </div> | 1059 | </div> |
1060 | <div class="card__price"><span>1 000 000 ₽</span> | 1060 | <div class="card__price"><span>1 000 000 ₽</span> |
1061 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее</a> | 1061 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее</a> |
1062 | </div> | 1062 | </div> |
1063 | </div> | 1063 | </div> |
1064 | </div> | 1064 | </div> |
1065 | <div class="swiper-slide"> | 1065 | <div class="swiper-slide"> |
1066 | <div class="card"> | 1066 | <div class="card"> |
1067 | <div class="card__top"><img src="images/card/card-img-2.jpg" alt="Фото недвижимости" loading="lazy"> | 1067 | <div class="card__top"><img src="images/card/card-img-2.jpg" alt="Фото недвижимости" loading="lazy"> |
1068 | <h3 class="card__title">Барбер-шоп</h3> | 1068 | <h3 class="card__title">Барбер-шоп</h3> |
1069 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> | 1069 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> |
1070 | <svg width="18" height="18"> | 1070 | <svg width="18" height="18"> |
1071 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> | 1071 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> |
1072 | </svg> | 1072 | </svg> |
1073 | <svg width="18" height="18"> | 1073 | <svg width="18" height="18"> |
1074 | <use xlink:href="images/sprite.svg#card-favorites"></use> | 1074 | <use xlink:href="images/sprite.svg#card-favorites"></use> |
1075 | </svg></span><a class="card__label card__label-messenger" href="#"> | 1075 | </svg></span><a class="card__label card__label-messenger" href="#"> |
1076 | <svg width="25" height="25"> | 1076 | <svg width="25" height="25"> |
1077 | <use xlink:href="images/sprite.svg#card-messenger"></use> | 1077 | <use xlink:href="images/sprite.svg#card-messenger"></use> |
1078 | </svg></a></div> | 1078 | </svg></a></div> |
1079 | </div> | 1079 | </div> |
1080 | <div class="card__cnt"> | 1080 | <div class="card__cnt"> |
1081 | <div class="card__info"> | 1081 | <div class="card__info"> |
1082 | <address class="card__line card__line-complex">ЖК “Новоарбатский”</address> | 1082 | <address class="card__line card__line-complex">ЖК “Новоарбатский”</address> |
1083 | <address class="card__line">Арбатская (8 мин., пешком)<span style="background-color: #0000A0;"></span></address> | 1083 | <address class="card__line">Арбатская (8 мин., пешком)<span style="background-color: #0000A0;"></span></address> |
1084 | <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address> | 1084 | <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address> |
1085 | <div class="card__line">Площадь: <b>6 556 м2</b></div> | 1085 | <div class="card__line">Площадь: <b>6 556 м2</b></div> |
1086 | <div class="card__line">Цена за м<sup>2</sup>: <b>5 225 256 ₽</b></div> | 1086 | <div class="card__line">Цена за м<sup>2</sup>: <b>5 225 256 ₽</b></div> |
1087 | </div> | 1087 | </div> |
1088 | <div class="card__price"><span>15 520 900 ₽</span><span>в месяц</span> | 1088 | <div class="card__price"><span>15 520 900 ₽</span><span>в месяц</span> |
1089 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a> | 1089 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a> |
1090 | </div> | 1090 | </div> |
1091 | </div> | 1091 | </div> |
1092 | </div> | 1092 | </div> |
1093 | <div class="swiper-slide"> | 1093 | <div class="swiper-slide"> |
1094 | <div class="card"> | 1094 | <div class="card"> |
1095 | <div class="card__top"><img src="images/card/card-img-3.jpg" alt="Фото недвижимости" loading="lazy"> | 1095 | <div class="card__top"><img src="images/card/card-img-3.jpg" alt="Фото недвижимости" loading="lazy"> |
1096 | <h3 class="card__title">Аптека</h3> | 1096 | <h3 class="card__title">Аптека</h3> |
1097 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> | 1097 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> |
1098 | <svg width="18" height="18"> | 1098 | <svg width="18" height="18"> |
1099 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> | 1099 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> |
1100 | </svg> | 1100 | </svg> |
1101 | <svg width="18" height="18"> | 1101 | <svg width="18" height="18"> |
1102 | <use xlink:href="images/sprite.svg#card-favorites"></use> | 1102 | <use xlink:href="images/sprite.svg#card-favorites"></use> |
1103 | </svg></span><a class="card__label card__label-messenger" href="#"> | 1103 | </svg></span><a class="card__label card__label-messenger" href="#"> |
1104 | <svg width="25" height="25"> | 1104 | <svg width="25" height="25"> |
1105 | <use xlink:href="images/sprite.svg#card-messenger"></use> | 1105 | <use xlink:href="images/sprite.svg#card-messenger"></use> |
1106 | </svg></a></div> | 1106 | </svg></a></div> |
1107 | </div> | 1107 | </div> |
1108 | <div class="card__cnt"> | 1108 | <div class="card__cnt"> |
1109 | <div class="card__info"> | 1109 | <div class="card__info"> |
1110 | <address class="card__line card__line-complex">ЖК “Садовые кварталы”</address> | 1110 | <address class="card__line card__line-complex">ЖК “Садовые кварталы”</address> |
1111 | <address class="card__line">Коломенская (2 мин., пешком)<span style="background-color: #029B55;"></span></address> | 1111 | <address class="card__line">Коломенская (2 мин., пешком)<span style="background-color: #029B55;"></span></address> |
1112 | <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address> | 1112 | <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address> |
1113 | <div class="card__line">Площадь: <b>8 626 м2</b></div> | 1113 | <div class="card__line">Площадь: <b>8 626 м2</b></div> |
1114 | <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div> | 1114 | <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div> |
1115 | </div> | 1115 | </div> |
1116 | <div class="card__price"><span>5 280 000 ₽</span> | 1116 | <div class="card__price"><span>5 280 000 ₽</span> |
1117 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее о продаже</a> | 1117 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее о продаже</a> |
1118 | </div> | 1118 | </div> |
1119 | </div> | 1119 | </div> |
1120 | </div> | 1120 | </div> |
1121 | <div class="swiper-slide"> | 1121 | <div class="swiper-slide"> |
1122 | <div class="card"> | 1122 | <div class="card"> |
1123 | <div class="card__top"><img src="images/card/card-img-4.jpg" alt="Фото недвижимости" loading="lazy"> | 1123 | <div class="card__top"><img src="images/card/card-img-4.jpg" alt="Фото недвижимости" loading="lazy"> |
1124 | <h3 class="card__title">Витрина</h3> | 1124 | <h3 class="card__title">Витрина</h3> |
1125 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> | 1125 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> |
1126 | <svg width="18" height="18"> | 1126 | <svg width="18" height="18"> |
1127 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> | 1127 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> |
1128 | </svg> | 1128 | </svg> |
1129 | <svg width="18" height="18"> | 1129 | <svg width="18" height="18"> |
1130 | <use xlink:href="images/sprite.svg#card-favorites"></use> | 1130 | <use xlink:href="images/sprite.svg#card-favorites"></use> |
1131 | </svg></span><a class="card__label card__label-messenger" href="#"> | 1131 | </svg></span><a class="card__label card__label-messenger" href="#"> |
1132 | <svg width="25" height="25"> | 1132 | <svg width="25" height="25"> |
1133 | <use xlink:href="images/sprite.svg#card-messenger"></use> | 1133 | <use xlink:href="images/sprite.svg#card-messenger"></use> |
1134 | </svg></a></div> | 1134 | </svg></a></div> |
1135 | </div> | 1135 | </div> |
1136 | <div class="card__cnt"> | 1136 | <div class="card__cnt"> |
1137 | <div class="card__info"> | 1137 | <div class="card__info"> |
1138 | <address class="card__line card__line-complex">ЖК “Нахимовский проспект, 46”</address> | 1138 | <address class="card__line card__line-complex">ЖК “Нахимовский проспект, 46”</address> |
1139 | <address class="card__line">Парк Победы (5 мин., пешком)<span style="background-color: #222964;"></span></address> | 1139 | <address class="card__line">Парк Победы (5 мин., пешком)<span style="background-color: #222964;"></span></address> |
1140 | <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address> | 1140 | <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address> |
1141 | <div class="card__line">Площадь: <b>6 856 м2</b></div> | 1141 | <div class="card__line">Площадь: <b>6 856 м2</b></div> |
1142 | <div class="card__line">Цена за м<sup>2</sup>: <b>25 256 ₽</b></div> | 1142 | <div class="card__line">Цена за м<sup>2</sup>: <b>25 256 ₽</b></div> |
1143 | </div> | 1143 | </div> |
1144 | <div class="card__price"><span>2 625 520 ₽</span><span>в месяц</span> | 1144 | <div class="card__price"><span>2 625 520 ₽</span><span>в месяц</span> |
1145 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a> | 1145 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a> |
1146 | </div> | 1146 | </div> |
1147 | </div> | 1147 | </div> |
1148 | </div> | 1148 | </div> |
1149 | <div class="swiper-slide"> | 1149 | <div class="swiper-slide"> |
1150 | <div class="card"> | 1150 | <div class="card"> |
1151 | <div class="card__top"><img src="images/card/card-img-1.jpg" alt="Фото недвижимости" loading="lazy"> | 1151 | <div class="card__top"><img src="images/card/card-img-1.jpg" alt="Фото недвижимости" loading="lazy"> |
1152 | <h3 class="card__title">Салон красоты</h3> | 1152 | <h3 class="card__title">Салон красоты</h3> |
1153 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> | 1153 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> |
1154 | <svg width="18" height="18"> | 1154 | <svg width="18" height="18"> |
1155 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> | 1155 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> |
1156 | </svg> | 1156 | </svg> |
1157 | <svg width="18" height="18"> | 1157 | <svg width="18" height="18"> |
1158 | <use xlink:href="images/sprite.svg#card-favorites"></use> | 1158 | <use xlink:href="images/sprite.svg#card-favorites"></use> |
1159 | </svg></span><a class="card__label card__label-messenger" href="#"> | 1159 | </svg></span><a class="card__label card__label-messenger" href="#"> |
1160 | <svg width="25" height="25"> | 1160 | <svg width="25" height="25"> |
1161 | <use xlink:href="images/sprite.svg#card-messenger"></use> | 1161 | <use xlink:href="images/sprite.svg#card-messenger"></use> |
1162 | </svg></a></div> | 1162 | </svg></a></div> |
1163 | </div> | 1163 | </div> |
1164 | <div class="card__cnt"> | 1164 | <div class="card__cnt"> |
1165 | <div class="card__info"> | 1165 | <div class="card__info"> |
1166 | <address class="card__line card__line-complex">ЖК “Новинки 1”</address> | 1166 | <address class="card__line card__line-complex">ЖК “Новинки 1”</address> |
1167 | <address class="card__line">Фрунзенская (10 мин., пешком)<span style="background-color: #FFC955;"></span></address> | 1167 | <address class="card__line">Фрунзенская (10 мин., пешком)<span style="background-color: #FFC955;"></span></address> |
1168 | <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address> | 1168 | <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address> |
1169 | <div class="card__line">Площадь: <b>556 м2</b></div> | 1169 | <div class="card__line">Площадь: <b>556 м2</b></div> |
1170 | <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div> | 1170 | <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div> |
1171 | </div> | 1171 | </div> |
1172 | <div class="card__price"><span>1 000 000 ₽</span> | 1172 | <div class="card__price"><span>1 000 000 ₽</span> |
1173 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее</a> | 1173 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее</a> |
1174 | </div> | 1174 | </div> |
1175 | </div> | 1175 | </div> |
1176 | </div> | 1176 | </div> |
1177 | <div class="swiper-slide"> | 1177 | <div class="swiper-slide"> |
1178 | <div class="card"> | 1178 | <div class="card"> |
1179 | <div class="card__top"><img src="images/card/card-img-2.jpg" alt="Фото недвижимости" loading="lazy"> | 1179 | <div class="card__top"><img src="images/card/card-img-2.jpg" alt="Фото недвижимости" loading="lazy"> |
1180 | <h3 class="card__title">Барбер-шоп</h3> | 1180 | <h3 class="card__title">Барбер-шоп</h3> |
1181 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> | 1181 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> |
1182 | <svg width="18" height="18"> | 1182 | <svg width="18" height="18"> |
1183 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> | 1183 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> |
1184 | </svg> | 1184 | </svg> |
1185 | <svg width="18" height="18"> | 1185 | <svg width="18" height="18"> |
1186 | <use xlink:href="images/sprite.svg#card-favorites"></use> | 1186 | <use xlink:href="images/sprite.svg#card-favorites"></use> |
1187 | </svg></span><a class="card__label card__label-messenger" href="#"> | 1187 | </svg></span><a class="card__label card__label-messenger" href="#"> |
1188 | <svg width="25" height="25"> | 1188 | <svg width="25" height="25"> |
1189 | <use xlink:href="images/sprite.svg#card-messenger"></use> | 1189 | <use xlink:href="images/sprite.svg#card-messenger"></use> |
1190 | </svg></a></div> | 1190 | </svg></a></div> |
1191 | </div> | 1191 | </div> |
1192 | <div class="card__cnt"> | 1192 | <div class="card__cnt"> |
1193 | <div class="card__info"> | 1193 | <div class="card__info"> |
1194 | <address class="card__line card__line-complex">ЖК “Новоарбатский”</address> | 1194 | <address class="card__line card__line-complex">ЖК “Новоарбатский”</address> |
1195 | <address class="card__line">Арбатская (8 мин., пешком)<span style="background-color: #0000A0;"></span></address> | 1195 | <address class="card__line">Арбатская (8 мин., пешком)<span style="background-color: #0000A0;"></span></address> |
1196 | <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address> | 1196 | <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address> |
1197 | <div class="card__line">Площадь: <b>6 556 м2</b></div> | 1197 | <div class="card__line">Площадь: <b>6 556 м2</b></div> |
1198 | <div class="card__line">Цена за м<sup>2</sup>: <b>5 225 256 ₽</b></div> | 1198 | <div class="card__line">Цена за м<sup>2</sup>: <b>5 225 256 ₽</b></div> |
1199 | </div> | 1199 | </div> |
1200 | <div class="card__price"><span>15 520 900 ₽</span><span>в месяц</span> | 1200 | <div class="card__price"><span>15 520 900 ₽</span><span>в месяц</span> |
1201 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a> | 1201 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a> |
1202 | </div> | 1202 | </div> |
1203 | </div> | 1203 | </div> |
1204 | </div> | 1204 | </div> |
1205 | <div class="swiper-slide"> | 1205 | <div class="swiper-slide"> |
1206 | <div class="card"> | 1206 | <div class="card"> |
1207 | <div class="card__top"><img src="images/card/card-img-3.jpg" alt="Фото недвижимости" loading="lazy"> | 1207 | <div class="card__top"><img src="images/card/card-img-3.jpg" alt="Фото недвижимости" loading="lazy"> |
1208 | <h3 class="card__title">Аптека</h3> | 1208 | <h3 class="card__title">Аптека</h3> |
1209 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> | 1209 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> |
1210 | <svg width="18" height="18"> | 1210 | <svg width="18" height="18"> |
1211 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> | 1211 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> |
1212 | </svg> | 1212 | </svg> |
1213 | <svg width="18" height="18"> | 1213 | <svg width="18" height="18"> |
1214 | <use xlink:href="images/sprite.svg#card-favorites"></use> | 1214 | <use xlink:href="images/sprite.svg#card-favorites"></use> |
1215 | </svg></span><a class="card__label card__label-messenger" href="#"> | 1215 | </svg></span><a class="card__label card__label-messenger" href="#"> |
1216 | <svg width="25" height="25"> | 1216 | <svg width="25" height="25"> |
1217 | <use xlink:href="images/sprite.svg#card-messenger"></use> | 1217 | <use xlink:href="images/sprite.svg#card-messenger"></use> |
1218 | </svg></a></div> | 1218 | </svg></a></div> |
1219 | </div> | 1219 | </div> |
1220 | <div class="card__cnt"> | 1220 | <div class="card__cnt"> |
1221 | <div class="card__info"> | 1221 | <div class="card__info"> |
1222 | <address class="card__line card__line-complex">ЖК “Садовые кварталы”</address> | 1222 | <address class="card__line card__line-complex">ЖК “Садовые кварталы”</address> |
1223 | <address class="card__line">Коломенская (2 мин., пешком)<span style="background-color: #029B55;"></span></address> | 1223 | <address class="card__line">Коломенская (2 мин., пешком)<span style="background-color: #029B55;"></span></address> |
1224 | <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address> | 1224 | <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address> |
1225 | <div class="card__line">Площадь: <b>8 626 м2</b></div> | 1225 | <div class="card__line">Площадь: <b>8 626 м2</b></div> |
1226 | <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div> | 1226 | <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div> |
1227 | </div> | 1227 | </div> |
1228 | <div class="card__price"><span>5 280 000 ₽</span> | 1228 | <div class="card__price"><span>5 280 000 ₽</span> |
1229 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее о продаже</a> | 1229 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее о продаже</a> |
1230 | </div> | 1230 | </div> |
1231 | </div> | 1231 | </div> |
1232 | </div> | 1232 | </div> |
1233 | <div class="swiper-slide"> | 1233 | <div class="swiper-slide"> |
1234 | <div class="card"> | 1234 | <div class="card"> |
1235 | <div class="card__top"><img src="images/card/card-img-4.jpg" alt="Фото недвижимости" loading="lazy"> | 1235 | <div class="card__top"><img src="images/card/card-img-4.jpg" alt="Фото недвижимости" loading="lazy"> |
1236 | <h3 class="card__title">Витрина</h3> | 1236 | <h3 class="card__title">Витрина</h3> |
1237 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> | 1237 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> |
1238 | <svg width="18" height="18"> | 1238 | <svg width="18" height="18"> |
1239 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> | 1239 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> |
1240 | </svg> | 1240 | </svg> |
1241 | <svg width="18" height="18"> | 1241 | <svg width="18" height="18"> |
1242 | <use xlink:href="images/sprite.svg#card-favorites"></use> | 1242 | <use xlink:href="images/sprite.svg#card-favorites"></use> |
1243 | </svg></span><a class="card__label card__label-messenger" href="#"> | 1243 | </svg></span><a class="card__label card__label-messenger" href="#"> |
1244 | <svg width="25" height="25"> | 1244 | <svg width="25" height="25"> |
1245 | <use xlink:href="images/sprite.svg#card-messenger"></use> | 1245 | <use xlink:href="images/sprite.svg#card-messenger"></use> |
1246 | </svg></a></div> | 1246 | </svg></a></div> |
1247 | </div> | 1247 | </div> |
1248 | <div class="card__cnt"> | 1248 | <div class="card__cnt"> |
1249 | <div class="card__info"> | 1249 | <div class="card__info"> |
1250 | <address class="card__line card__line-complex">ЖК “Нахимовский проспект, 46”</address> | 1250 | <address class="card__line card__line-complex">ЖК “Нахимовский проспект, 46”</address> |
1251 | <address class="card__line">Парк Победы (5 мин., пешком)<span style="background-color: #222964;"></span></address> | 1251 | <address class="card__line">Парк Победы (5 мин., пешком)<span style="background-color: #222964;"></span></address> |
1252 | <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address> | 1252 | <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address> |
1253 | <div class="card__line">Площадь: <b>6 856 м2</b></div> | 1253 | <div class="card__line">Площадь: <b>6 856 м2</b></div> |
1254 | <div class="card__line">Цена за м<sup>2</sup>: <b>25 256 ₽</b></div> | 1254 | <div class="card__line">Цена за м<sup>2</sup>: <b>25 256 ₽</b></div> |
1255 | </div> | 1255 | </div> |
1256 | <div class="card__price"><span>2 625 520 ₽</span><span>в месяц</span> | 1256 | <div class="card__price"><span>2 625 520 ₽</span><span>в месяц</span> |
1257 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a> | 1257 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a> |
1258 | </div> | 1258 | </div> |
1259 | </div> | 1259 | </div> |
1260 | </div>--> | 1260 | </div>--> |
1261 | </div> | 1261 | </div> |
1262 | </div> | 1262 | </div> |
1263 | <div class="swiper-pagination"></div> | 1263 | <div class="swiper-pagination"></div> |
1264 | </div> | 1264 | </div> |
1265 | </div> | 1265 | </div> |
1266 | </section> | 1266 | </section> |
1267 | </div> | 1267 | </div> |
1268 | <div class="complex__map map" id="complex-map"></div> | 1268 | <div class="complex__map map" id="complex-map"></div> |
1269 | </section> | 1269 | </section> |
1270 | @endsection | 1270 | @endsection |
1271 | 1271 | ||
1272 | @section('form_feedback') | 1272 | @section('form_feedback') |
1273 | <!-- Форма обратной связи --> | 1273 | <!-- Форма обратной связи --> |
1274 | @include('form.form_feedback') | 1274 | @include('form.form_feedback') |
1275 | @endsection | 1275 | @endsection |
1276 | 1276 | ||
1277 | 1277 |
resources/views/emails/main.blade.php
File was created | 1 | <div class="well col-sm-8"> | |
2 | {{ $mess }} | ||
3 | </div> | ||
4 |
resources/views/mapsobj.blade.php
1 | @extends('layout.site', ['title' => 'Объекты на карте RentTorg']) | 1 | @extends('layout.site', ['title' => 'Объекты на карте RentTorg']) |
2 | 2 | ||
3 | @section('filter') | 3 | @section('filter') |
4 | @include('part.filter.mapsobj') | 4 | @include('part.filter.mapsobj') |
5 | @endsection | 5 | @endsection |
6 | 6 | ||
7 | @section('custom_js') | 7 | @section('custom_js') |
8 | @include('js.filter_value') | 8 | @include('js.filter_value') |
9 | <script> | 9 | <script> |
10 | function setGeneralMap() { | 10 | function setGeneralMap() { |
11 | 11 | ||
12 | if (document.querySelector('#general-map')) { | 12 | if (document.querySelector('#general-map')) { |
13 | 13 | ||
14 | ymaps.ready(init); // Дождёмся загрузки API и готовности DOM; | 14 | ymaps.ready(init); // Дождёмся загрузки API и готовности DOM; |
15 | 15 | ||
16 | function init() { | 16 | function init() { |
17 | 17 | ||
18 | const myMap = new ymaps.Map('general-map', { // Создание экземпляра карты и его привязка к контейнеру с заданным id; | 18 | const myMap = new ymaps.Map('general-map', { // Создание экземпляра карты и его привязка к контейнеру с заданным id; |
19 | center: [55.752933963675126, 37.52233749962665], // При инициализации карты обязательно нужно указать её центр и коэффициент масштабирования; | 19 | center: [55.752933963675126, 37.52233749962665], // При инициализации карты обязательно нужно указать её центр и коэффициент масштабирования; |
20 | zoom: 10, | 20 | zoom: 10, |
21 | controls: [] // Скрываем элементы управления на карте; | 21 | controls: [] // Скрываем элементы управления на карте; |
22 | }); | 22 | }); |
23 | 23 | ||
24 | // Создаём макет содержимого. | 24 | // Создаём макет содержимого. |
25 | const MyIconContentLayout = ymaps.templateLayoutFactory.createClass( | 25 | const MyIconContentLayout = ymaps.templateLayoutFactory.createClass( |
26 | '<div style="color: #FFFFFF; font-weight: bold;">$[properties.iconContent]</div>' | 26 | '<div style="color: #FFFFFF; font-weight: bold;">$[properties.iconContent]</div>' |
27 | ); | 27 | ); |
28 | 28 | ||
29 | let collection = new ymaps.GeoObjectCollection(null, { // Создаём коллекцию, в которую будемпомещать метки (что-то типа массива); | 29 | let collection = new ymaps.GeoObjectCollection(null, { // Создаём коллекцию, в которую будемпомещать метки (что-то типа массива); |
30 | // preset: 'islands#yellowIcon' | 30 | // preset: 'islands#yellowIcon' |
31 | }); | 31 | }); |
32 | 32 | ||
33 | let collectionCoords = [ // Создаём массив с координатами (координаты должны располагаться в том же порядке, что и адреса в списке на сайте); | 33 | let collectionCoords = [ // Создаём массив с координатами (координаты должны располагаться в том же порядке, что и адреса в списке на сайте); |
34 | @if (!empty($input)) | 34 | @if (!empty($input)) |
35 | @if ($houses->count()) | 35 | @if ($houses->count()) |
36 | @foreach ($houses as $house) | 36 | @foreach ($houses as $house) |
37 | [{{ $house->coord_x }}, {{$house->coord_y}}], | 37 | [{{ $house->coord_x }}, {{$house->coord_y}}], |
38 | @endforeach | 38 | @endforeach |
39 | @endif | 39 | @endif |
40 | @else | 40 | @else |
41 | @if ($areas->count()) | 41 | @if ($areas->count()) |
42 | @foreach ($areas as $area) | 42 | @foreach ($areas as $area) |
43 | [{{ $area->coord_x }}, {{$area->coord_y}}], | 43 | [{{ $area->coord_x }}, {{$area->coord_y}}], |
44 | @endforeach | 44 | @endforeach |
45 | @endif | 45 | @endif |
46 | @endif | 46 | @endif |
47 | // [55.867783219108354, 37.392867499999916], | 47 | // [55.867783219108354, 37.392867499999916], |
48 | // [55.728043075486504, 37.73937949999994], | 48 | // [55.728043075486504, 37.73937949999994], |
49 | // [55.72624100423305, 37.476078499999964], | 49 | // [55.72624100423305, 37.476078499999964], |
50 | // [55.80751105044832, 37.449622999999974], | 50 | // [55.80751105044832, 37.449622999999974], |
51 | // [55.601783098948836, 37.36700499999998], | 51 | // [55.601783098948836, 37.36700499999998], |
52 | // [55.86086502152225, 37.540348999999964], | 52 | // [55.86086502152225, 37.540348999999964], |
53 | // [55.784961528728715, 37.56188599999996], | 53 | // [55.784961528728715, 37.56188599999996], |
54 | // [55.63910010399773, 37.319407999999996], | 54 | // [55.63910010399773, 37.319407999999996], |
55 | // [55.55819256767507, 37.55711549999994], | 55 | // [55.55819256767507, 37.55711549999994], |
56 | // [55.79829252928473, 37.52063549999999], | 56 | // [55.79829252928473, 37.52063549999999], |
57 | ]; | 57 | ]; |
58 | 58 | ||
59 | for (let i = 0, l = collectionCoords.length; i < l; i++) { // C помощью цикла добавляем все метки в коллекцию; | 59 | for (let i = 0, l = collectionCoords.length; i < l; i++) { // C помощью цикла добавляем все метки в коллекцию; |
60 | collection.add(new ymaps.Placemark(collectionCoords[i])); | 60 | collection.add(new ymaps.Placemark(collectionCoords[i])); |
61 | collection.get(i).properties.set('iconContent', `${i + 1}`); // Добавляем каждой метке порядковый номер, записываем его в свойство 'iconContent'; | 61 | collection.get(i).properties.set('iconContent', `${i + 1}`); // Добавляем каждой метке порядковый номер, записываем его в свойство 'iconContent'; |
62 | } | 62 | } |
63 | 63 | ||
64 | myMap.geoObjects.add(collection); // Добавляем коллекцию с метками на карту; | 64 | myMap.geoObjects.add(collection); // Добавляем коллекцию с метками на карту; |
65 | 65 | ||
66 | collection.options.set('iconLayout', 'default#imageWithContent'); // Необходимо указать данный тип макета; | 66 | collection.options.set('iconLayout', 'default#imageWithContent'); // Необходимо указать данный тип макета; |
67 | collection.options.set('iconImageHref', 'images/mark-complex.svg'); // Своё изображение иконки метки; | 67 | collection.options.set('iconImageHref', 'images/mark-complex.svg'); // Своё изображение иконки метки; |
68 | collection.options.set('iconImageSize', [52, 67]); // Размеры метки; | 68 | collection.options.set('iconImageSize', [52, 67]); // Размеры метки; |
69 | collection.options.set('iconImageOffset', [-26, -67]); // Смещение левого верхнего угла иконки относительно её "ножки" (точки привязки); | 69 | collection.options.set('iconImageOffset', [-26, -67]); // Смещение левого верхнего угла иконки относительно её "ножки" (точки привязки); |
70 | collection.options.set('iconContentOffset', [0, 17]); | 70 | collection.options.set('iconContentOffset', [0, 17]); |
71 | collection.options.set('iconContentLayout', MyIconContentLayout); // Смещение левого верхнего угла иконки относительно её "ножки" (точки привязки); | 71 | collection.options.set('iconContentLayout', MyIconContentLayout); // Смещение левого верхнего угла иконки относительно её "ножки" (точки привязки); |
72 | 72 | ||
73 | const pageMapBar = document.querySelector('.js_page_map_bar'); | 73 | const pageMapBar = document.querySelector('.js_page_map_bar'); |
74 | const pageMapBarBtn = pageMapBar.querySelector('.js_page_map_bar_btn'); | 74 | const pageMapBarBtn = pageMapBar.querySelector('.js_page_map_bar_btn'); |
75 | const pageMapBarList = pageMapBar.querySelector('.js_page_map_bar_list'); | 75 | const pageMapBarList = pageMapBar.querySelector('.js_page_map_bar_list'); |
76 | const pageMapBarCards = pageMapBar.querySelectorAll('.card-news'); | 76 | const pageMapBarCards = pageMapBar.querySelectorAll('.card-news'); |
77 | 77 | ||
78 | const showCard = (i) => { | 78 | const showCard = (i) => { |
79 | 79 | ||
80 | pageMapBarCards.forEach((card, k) => { | 80 | pageMapBarCards.forEach((card, k) => { |
81 | 81 | ||
82 | card.classList.remove('active'); | 82 | card.classList.remove('active'); |
83 | 83 | ||
84 | if (i == k) { | 84 | if (i == k) { |
85 | card.classList.add('active'); | 85 | card.classList.add('active'); |
86 | } | 86 | } |
87 | 87 | ||
88 | }); | 88 | }); |
89 | 89 | ||
90 | }; | 90 | }; |
91 | 91 | ||
92 | const hidecard = () => { | 92 | const hidecard = () => { |
93 | 93 | ||
94 | pageMapBarCards.forEach(card => { | 94 | pageMapBarCards.forEach(card => { |
95 | card.classList.remove('active'); | 95 | card.classList.remove('active'); |
96 | }); | 96 | }); |
97 | 97 | ||
98 | } | 98 | } |
99 | 99 | ||
100 | let pageMapBarItems; | 100 | let pageMapBarItems; |
101 | 101 | ||
102 | pageMapBarBtn.addEventListener('click', () => { | 102 | pageMapBarBtn.addEventListener('click', () => { |
103 | pageMapBar.classList.toggle('active'); | 103 | pageMapBar.classList.toggle('active'); |
104 | }); | 104 | }); |
105 | 105 | ||
106 | pageMapBarList.addEventListener('click', (e) => { | 106 | pageMapBarList.addEventListener('click', (e) => { |
107 | 107 | ||
108 | if (e.target.closest('.page-map-bar__item')) { | 108 | if (e.target.closest('.page-map-bar__item')) { |
109 | 109 | ||
110 | pageMapBarItems = pageMapBarList.querySelectorAll('.page-map-bar__item'); | 110 | pageMapBarItems = pageMapBarList.querySelectorAll('.page-map-bar__item'); |
111 | 111 | ||
112 | pageMapBarItems.forEach((item, i) => { | 112 | pageMapBarItems.forEach((item, i) => { |
113 | 113 | ||
114 | if (e.target == item && e.target.classList.contains('active')) { | 114 | if (e.target == item && e.target.classList.contains('active')) { |
115 | 115 | ||
116 | item.classList.remove('active'); | 116 | item.classList.remove('active'); |
117 | 117 | ||
118 | hidecard(); | 118 | hidecard(); |
119 | 119 | ||
120 | } else if (e.target == item) { | 120 | } else if (e.target == item) { |
121 | 121 | ||
122 | pageMapBarItems.forEach(item => { | 122 | pageMapBarItems.forEach(item => { |
123 | item.classList.remove('active'); | 123 | item.classList.remove('active'); |
124 | }); | 124 | }); |
125 | 125 | ||
126 | item.classList.add('active'); | 126 | item.classList.add('active'); |
127 | 127 | ||
128 | let offsetCoords = collection.get(i).geometry.getCoordinates(); | 128 | let offsetCoords = collection.get(i).geometry.getCoordinates(); |
129 | 129 | ||
130 | offsetCoords = [ | 130 | offsetCoords = [ |
131 | offsetCoords[0] - 0.0025, | 131 | offsetCoords[0] - 0.0025, |
132 | offsetCoords[1] | 132 | offsetCoords[1] |
133 | ]; | 133 | ]; |
134 | 134 | ||
135 | myMap.setZoom(16); | 135 | myMap.setZoom(16); |
136 | // myMap.setCenter(collection.get(i).geometry.getCoordinates()); | 136 | // myMap.setCenter(collection.get(i).geometry.getCoordinates()); |
137 | myMap.setCenter(offsetCoords); | 137 | myMap.setCenter(offsetCoords); |
138 | 138 | ||
139 | showCard(i); | 139 | showCard(i); |
140 | 140 | ||
141 | } | 141 | } |
142 | 142 | ||
143 | }); | 143 | }); |
144 | } | 144 | } |
145 | 145 | ||
146 | }); | 146 | }); |
147 | 147 | ||
148 | collection.events.add('click', function (e) { | 148 | collection.events.add('click', function (e) { |
149 | 149 | ||
150 | for (let i = 0, l = collection.getLength(); i < l; i++) { | 150 | for (let i = 0, l = collection.getLength(); i < l; i++) { |
151 | 151 | ||
152 | if (e.get('target') == collection.get(i)) { | 152 | if (e.get('target') == collection.get(i)) { |
153 | 153 | ||
154 | pageMapBarItems = pageMapBarList.querySelectorAll('.page-map-bar__item'); | 154 | pageMapBarItems = pageMapBarList.querySelectorAll('.page-map-bar__item'); |
155 | 155 | ||
156 | pageMapBarItems.forEach((item) => { | 156 | pageMapBarItems.forEach((item) => { |
157 | pageMapBar.classList.add('active'); | 157 | pageMapBar.classList.add('active'); |
158 | item.classList.remove('active'); | 158 | item.classList.remove('active'); |
159 | }); | 159 | }); |
160 | 160 | ||
161 | pageMapBarItems[i].classList.add('active'); | 161 | pageMapBarItems[i].classList.add('active'); |
162 | 162 | ||
163 | showCard(i); | 163 | showCard(i); |
164 | 164 | ||
165 | } | 165 | } |
166 | 166 | ||
167 | } | 167 | } |
168 | 168 | ||
169 | }); | 169 | }); |
170 | 170 | ||
171 | } | 171 | } |
172 | 172 | ||
173 | } | 173 | } |
174 | 174 | ||
175 | } | 175 | } |
176 | 176 | ||
177 | setGeneralMap(); | 177 | setGeneralMap(); |
178 | </script> | 178 | </script> |
179 | @endsection | 179 | @endsection |
180 | 180 | ||
181 | @section('content') | 181 | @section('content') |
182 | <section class="page-map"> | 182 | <section class="page-map"> |
183 | <div class="page-map__wrap"> | 183 | <div class="page-map__wrap"> |
184 | <h2 class="visually-hidden">Карта</h2> | 184 | <h2 class="visually-hidden">Карта</h2> |
185 | <div class="page-map__map" id="general-map"></div> | 185 | <div class="page-map__map" id="general-map"></div> |
186 | <div class="container"> | 186 | <div class="container"> |
187 | <div class="page-map__inner"> | 187 | <div class="page-map__inner"> |
188 | <div class="page-map-bar js_page_map_bar active"> | 188 | <div class="page-map-bar js_page_map_bar active"> |
189 | <div class="page-map-bar__top">Все объекты | 189 | <div class="page-map-bar__top">Все объекты |
190 | <button class="page-map-bar__close js_page_map_bar_btn" type="button"> | 190 | <button class="page-map-bar__close js_page_map_bar_btn" type="button"> |
191 | <svg width="20" height="20"> | 191 | <svg width="20" height="20"> |
192 | <use xlink:href="images/sprite.svg#popup-close"></use> | 192 | <use xlink:href="images/sprite.svg#popup-close"></use> |
193 | </svg> | 193 | </svg> |
194 | </button> | 194 | </button> |
195 | </div> | 195 | </div> |
196 | 196 | ||
197 | @if (!empty($input)) | 197 | @if (!empty($input)) |
198 | <ul class="page-map-bar__list js_page_map_bar_list"> | 198 | <ul class="page-map-bar__list js_page_map_bar_list"> |
199 | @if ($houses->count()) | 199 | @if ($houses->count()) |
200 | @foreach ($houses as $house) | 200 | @foreach ($houses as $house) |
201 | <li class="page-map-bar__item">{{ $house->title }}</li> | 201 | <li class="page-map-bar__item">{{ $house->title }}</li> |
202 | @endforeach | 202 | @endforeach |
203 | @endif | 203 | @endif |
204 | </ul> | 204 | </ul> |
205 | @if ($houses->count()) | 205 | @if ($houses->count()) |
206 | @foreach ($houses as $house) | 206 | @foreach ($houses as $house) |
207 | <div class="card-news"> | 207 | <div class="card-news"> |
208 | <div class="card-news__top"><img src="{{ asset(Storage::url($house->foto_main)) }}" alt="Превью по {{$house->title}}" loading="lazy"> | 208 | <div class="card-news__top"> |
209 | <img src="/storage/app/public/<?=$house->foto_main;//=asset(Storage::url($house->foto_main)) ?>" alt="Превью по {{$house->title}}" loading="lazy"> | ||
210 | |||
209 | <div class="card-news__date"><span>{{ $house->title }}</span><span></span></div> | 211 | <div class="card-news__date"><span>{{ $house->title }}</span><span></span></div> |
210 | </div> | 212 | </div> |
211 | <div class="card-news__cnt"> | 213 | <div class="card-news__cnt"> |
212 | <p class="card-news__descr">{{ $house->description_house }}</p> | 214 | <p class="card-news__descr">{{ $house->description_house }}</p> |
213 | <a class="card-news__link" href="{{ route('offer', ['house' => $house->id]) }}">Подробнее | 215 | <a class="card-news__link" href="{{ route('offer', ['house' => $house->id]) }}">Подробнее |
214 | <svg width="17" height="12"> | 216 | <svg width="17" height="12"> |
215 | <use xlink:href="{{ asset('images/sprite.svg#card-news-link-arrow') }}"></use> | 217 | <use xlink:href="{{ asset('images/sprite.svg#card-news-link-arrow') }}"></use> |
216 | </svg> | 218 | </svg> |
217 | </a> | 219 | </a> |
218 | </div> | 220 | </div> |
219 | </div> | 221 | </div> |
220 | @endforeach | 222 | @endforeach |
221 | @endif | 223 | @endif |
222 | @else | 224 | @else |
223 | <ul class="page-map-bar__list js_page_map_bar_list"> | 225 | <ul class="page-map-bar__list js_page_map_bar_list"> |
224 | @if ($areas->count()) | 226 | @if ($areas->count()) |
225 | @foreach ($areas as $area) | 227 | @foreach ($areas as $area) |
226 | <li class="page-map-bar__item">{{ $area->name_area }}</li> | 228 | <li class="page-map-bar__item">{{ $area->name_area }}</li> |
227 | @endforeach | 229 | @endforeach |
228 | @endif | 230 | @endif |
229 | <!--<li class="page-map-bar__item">ЖК Большое Путилково</li> | 231 | <!--<li class="page-map-bar__item">ЖК Большое Путилково</li> |
230 | <li class="page-map-bar__item">ЖК Среда</li> | 232 | <li class="page-map-bar__item">ЖК Среда</li> |
231 | <li class="page-map-bar__item">ЖК Квартал Триумфальный</li> | 233 | <li class="page-map-bar__item">ЖК Квартал Триумфальный</li> |
232 | <li class="page-map-bar__item">ЖК Алые Паруса</li> | 234 | <li class="page-map-bar__item">ЖК Алые Паруса</li> |
233 | <li class="page-map-bar__item">ЖК Первый Московский</li> | 235 | <li class="page-map-bar__item">ЖК Первый Московский</li> |
234 | <li class="page-map-bar__item">ЖК Ильменский 17</li> | 236 | <li class="page-map-bar__item">ЖК Ильменский 17</li> |
235 | <li class="page-map-bar__item">ЖК Царская Площадь</li> | 237 | <li class="page-map-bar__item">ЖК Царская Площадь</li> |
236 | <li class="page-map-bar__item">ЖК Переделкино Ближнее</li> | 238 | <li class="page-map-bar__item">ЖК Переделкино Ближнее</li> |
237 | <li class="page-map-bar__item">ЖК Этолон Cити</li> | 239 | <li class="page-map-bar__item">ЖК Этолон Cити</li> |
238 | <li class="page-map-bar__item">ЖК Триумф Палас</li>--> | 240 | <li class="page-map-bar__item">ЖК Триумф Палас</li>--> |
239 | </ul> | 241 | </ul> |
240 | @if ($areas->count()) | 242 | @if ($areas->count()) |
241 | @foreach ($areas as $area) | 243 | @foreach ($areas as $area) |
242 | <div class="card-news"> | 244 | <div class="card-news"> |
243 | <div class="card-news__top"><img src="{{ asset(Storage::url($area->foto_main)) }}" alt="Превью по {{$area->name_area}}" loading="lazy"> | 245 | <div class="card-news__top"><img src="/storage/app/public/<?=$area->foto_main; //asset(Storage::url($area->foto_main))?>" alt="Превью по {{$area->name_area}}" loading="lazy"> |
244 | <div class="card-news__date"><span>{{ $area->name_area }}</span><span></span></div> | 246 | <div class="card-news__date"><span>{{ $area->name_area }}</span><span></span></div> |
245 | </div> | 247 | </div> |
246 | <div class="card-news__cnt"> | 248 | <div class="card-news__cnt"> |
247 | <p class="card-news__descr">{{ $area->description }}</p> | 249 | <p class="card-news__descr">{{ $area->description }}</p> |
248 | <a class="card-news__link" href="{{ route('complex', ['area' => $area->id]) }}">Подробнее | 250 | <a class="card-news__link" href="{{ route('complex', ['area' => $area->id]) }}">Подробнее |
249 | <svg width="17" height="12"> | 251 | <svg width="17" height="12"> |
250 | <use xlink:href="{{ asset('images/sprite.svg#card-news-link-arrow') }}"></use> | 252 | <use xlink:href="{{ asset('images/sprite.svg#card-news-link-arrow') }}"></use> |
251 | </svg> | 253 | </svg> |
252 | </a> | 254 | </a> |
253 | </div> | 255 | </div> |
254 | </div> | 256 | </div> |
255 | @endforeach | 257 | @endforeach |
256 | @endif | 258 | @endif |
257 | @endif | 259 | @endif |
258 | <!--<div class="card-news"> | 260 | <!--<div class="card-news"> |
259 | <div class="card-news__top"><img src="images/card/card-img-5.jpg" alt="Превью к новости" loading="lazy"> | 261 | <div class="card-news__top"><img src="images/card/card-img-5.jpg" alt="Превью к новости" loading="lazy"> |
260 | <div class="card-news__date"><span>ЖК Большое Путилково</span><span></span></div> | 262 | <div class="card-news__date"><span>ЖК Большое Путилково</span><span></span></div> |
261 | </div> | 263 | </div> |
262 | <div class="card-news__cnt"> | 264 | <div class="card-news__cnt"> |
263 | <p class="card-news__descr">Помещение расположено на первой фасадной линии Лесной улицы. В нескольких минутах пешком от метро «Белорусская», Бизнес центра класса «А» «Белая площадь», напротив гостиницы «Holiday Inn» и рядом с фудмоллом</p><a class="card-news__link" href="#">Подробнее | 265 | <p class="card-news__descr">Помещение расположено на первой фасадной линии Лесной улицы. В нескольких минутах пешком от метро «Белорусская», Бизнес центра класса «А» «Белая площадь», напротив гостиницы «Holiday Inn» и рядом с фудмоллом</p><a class="card-news__link" href="#">Подробнее |
264 | <svg width="17" height="12"> | 266 | <svg width="17" height="12"> |
265 | <use xlink:href="images/sprite.svg#card-news-link-arrow"></use> | 267 | <use xlink:href="images/sprite.svg#card-news-link-arrow"></use> |
266 | </svg></a> | 268 | </svg></a> |
267 | </div> | 269 | </div> |
268 | </div> | 270 | </div> |
269 | <div class="card-news"> | 271 | <div class="card-news"> |
270 | <div class="card-news__top"><img src="images/card/card-img-6.jpg" alt="Превью к новости" loading="lazy"> | 272 | <div class="card-news__top"><img src="images/card/card-img-6.jpg" alt="Превью к новости" loading="lazy"> |
271 | <div class="card-news__date"><span>ЖК Среда</span><span></span></div> | 273 | <div class="card-news__date"><span>ЖК Среда</span><span></span></div> |
272 | </div> | 274 | </div> |
273 | <div class="card-news__cnt"> | 275 | <div class="card-news__cnt"> |
274 | <p class="card-news__descr">Помещение расположено на первой фасадной линии Лесной улицы. В нескольких минутах пешком от метро «Белорусская», Бизнес центра класса «А» «Белая площадь», напротив гостиницы «Holiday Inn» и рядом с фудмоллом</p><a class="card-news__link" href="#">Подробнее | 276 | <p class="card-news__descr">Помещение расположено на первой фасадной линии Лесной улицы. В нескольких минутах пешком от метро «Белорусская», Бизнес центра класса «А» «Белая площадь», напротив гостиницы «Holiday Inn» и рядом с фудмоллом</p><a class="card-news__link" href="#">Подробнее |
275 | <svg width="17" height="12"> | 277 | <svg width="17" height="12"> |
276 | <use xlink:href="images/sprite.svg#card-news-link-arrow"></use> | 278 | <use xlink:href="images/sprite.svg#card-news-link-arrow"></use> |
277 | </svg></a> | 279 | </svg></a> |
278 | </div> | 280 | </div> |
279 | </div> | 281 | </div> |
280 | <div class="card-news"> | 282 | <div class="card-news"> |
281 | <div class="card-news__top"><img src="images/card/card-img-7.jpg" alt="Превью к новости" loading="lazy"> | 283 | <div class="card-news__top"><img src="images/card/card-img-7.jpg" alt="Превью к новости" loading="lazy"> |
282 | <div class="card-news__date"><span>ЖК Квартал Триумфальный</span><span></span></div> | 284 | <div class="card-news__date"><span>ЖК Квартал Триумфальный</span><span></span></div> |
283 | </div> | 285 | </div> |
284 | <div class="card-news__cnt"> | 286 | <div class="card-news__cnt"> |
285 | <p class="card-news__descr">Помещение расположено на первой фасадной линии Лесной улицы. В нескольких минутах пешком от метро «Белорусская», Бизнес центра класса «А» «Белая площадь», напротив гостиницы «Holiday Inn» и рядом с фудмоллом</p><a class="card-news__link" href="#">Подробнее | 287 | <p class="card-news__descr">Помещение расположено на первой фасадной линии Лесной улицы. В нескольких минутах пешком от метро «Белорусская», Бизнес центра класса «А» «Белая площадь», напротив гостиницы «Holiday Inn» и рядом с фудмоллом</p><a class="card-news__link" href="#">Подробнее |
286 | <svg width="17" height="12"> | 288 | <svg width="17" height="12"> |
287 | <use xlink:href="images/sprite.svg#card-news-link-arrow"></use> | 289 | <use xlink:href="images/sprite.svg#card-news-link-arrow"></use> |
288 | </svg></a> | 290 | </svg></a> |
289 | </div> | 291 | </div> |
290 | </div> | 292 | </div> |
291 | <div class="card-news"> | 293 | <div class="card-news"> |
292 | <div class="card-news__top"><img src="images/card/card-img-8.jpg" alt="Превью к новости" loading="lazy"> | 294 | <div class="card-news__top"><img src="images/card/card-img-8.jpg" alt="Превью к новости" loading="lazy"> |
293 | <div class="card-news__date"><span>ЖК Алые Паруса</span><span></span></div> | 295 | <div class="card-news__date"><span>ЖК Алые Паруса</span><span></span></div> |
294 | </div> | 296 | </div> |
295 | <div class="card-news__cnt"> | 297 | <div class="card-news__cnt"> |
296 | <p class="card-news__descr">Помещение расположено на первой фасадной линии Лесной улицы. В нескольких минутах пешком от метро «Белорусская», Бизнес центра класса «А» «Белая площадь», напротив гостиницы «Holiday Inn» и рядом с фудмоллом</p><a class="card-news__link" href="#">Подробнее | 298 | <p class="card-news__descr">Помещение расположено на первой фасадной линии Лесной улицы. В нескольких минутах пешком от метро «Белорусская», Бизнес центра класса «А» «Белая площадь», напротив гостиницы «Holiday Inn» и рядом с фудмоллом</p><a class="card-news__link" href="#">Подробнее |
297 | <svg width="17" height="12"> | 299 | <svg width="17" height="12"> |
298 | <use xlink:href="images/sprite.svg#card-news-link-arrow"></use> | 300 | <use xlink:href="images/sprite.svg#card-news-link-arrow"></use> |
299 | </svg></a> | 301 | </svg></a> |
300 | </div> | 302 | </div> |
301 | </div> | 303 | </div> |
302 | <div class="card-news"> | 304 | <div class="card-news"> |
303 | <div class="card-news__top"><img src="images/card/card-img-5.jpg" alt="Превью к новости" loading="lazy"> | 305 | <div class="card-news__top"><img src="images/card/card-img-5.jpg" alt="Превью к новости" loading="lazy"> |
304 | <div class="card-news__date"><span>ЖК Первый Московский</span><span></span></div> | 306 | <div class="card-news__date"><span>ЖК Первый Московский</span><span></span></div> |
305 | </div> | 307 | </div> |
306 | <div class="card-news__cnt"> | 308 | <div class="card-news__cnt"> |
307 | <p class="card-news__descr">Помещение расположено на первой фасадной линии Лесной улицы. В нескольких минутах пешком от метро «Белорусская», Бизнес центра класса «А» «Белая площадь», напротив гостиницы «Holiday Inn» и рядом с фудмоллом</p><a class="card-news__link" href="#">Подробнее | 309 | <p class="card-news__descr">Помещение расположено на первой фасадной линии Лесной улицы. В нескольких минутах пешком от метро «Белорусская», Бизнес центра класса «А» «Белая площадь», напротив гостиницы «Holiday Inn» и рядом с фудмоллом</p><a class="card-news__link" href="#">Подробнее |
308 | <svg width="17" height="12"> | 310 | <svg width="17" height="12"> |
309 | <use xlink:href="images/sprite.svg#card-news-link-arrow"></use> | 311 | <use xlink:href="images/sprite.svg#card-news-link-arrow"></use> |
310 | </svg></a> | 312 | </svg></a> |
311 | </div> | 313 | </div> |
312 | </div> | 314 | </div> |
313 | <div class="card-news"> | 315 | <div class="card-news"> |
314 | <div class="card-news__top"><img src="images/card/card-img-6.jpg" alt="Превью к новости" loading="lazy"> | 316 | <div class="card-news__top"><img src="images/card/card-img-6.jpg" alt="Превью к новости" loading="lazy"> |
315 | <div class="card-news__date"><span>ЖК Ильменский 17</span><span></span></div> | 317 | <div class="card-news__date"><span>ЖК Ильменский 17</span><span></span></div> |
316 | </div> | 318 | </div> |
317 | <div class="card-news__cnt"> | 319 | <div class="card-news__cnt"> |
318 | <p class="card-news__descr">Помещение расположено на первой фасадной линии Лесной улицы. В нескольких минутах пешком от метро «Белорусская», Бизнес центра класса «А» «Белая площадь», напротив гостиницы «Holiday Inn» и рядом с фудмоллом</p><a class="card-news__link" href="#">Подробнее | 320 | <p class="card-news__descr">Помещение расположено на первой фасадной линии Лесной улицы. В нескольких минутах пешком от метро «Белорусская», Бизнес центра класса «А» «Белая площадь», напротив гостиницы «Holiday Inn» и рядом с фудмоллом</p><a class="card-news__link" href="#">Подробнее |
319 | <svg width="17" height="12"> | 321 | <svg width="17" height="12"> |
320 | <use xlink:href="images/sprite.svg#card-news-link-arrow"></use> | 322 | <use xlink:href="images/sprite.svg#card-news-link-arrow"></use> |
321 | </svg></a> | 323 | </svg></a> |
322 | </div> | 324 | </div> |
323 | </div> | 325 | </div> |
324 | <div class="card-news"> | 326 | <div class="card-news"> |
325 | <div class="card-news__top"><img src="images/card/card-img-7.jpg" alt="Превью к новости" loading="lazy"> | 327 | <div class="card-news__top"><img src="images/card/card-img-7.jpg" alt="Превью к новости" loading="lazy"> |
326 | <div class="card-news__date"><span>ЖК Царская Площадь</span><span></span></div> | 328 | <div class="card-news__date"><span>ЖК Царская Площадь</span><span></span></div> |
327 | </div> | 329 | </div> |
328 | <div class="card-news__cnt"> | 330 | <div class="card-news__cnt"> |
329 | <p class="card-news__descr">Помещение расположено на первой фасадной линии Лесной улицы. В нескольких минутах пешком от метро «Белорусская», Бизнес центра класса «А» «Белая площадь», напротив гостиницы «Holiday Inn» и рядом с фудмоллом</p><a class="card-news__link" href="#">Подробнее | 331 | <p class="card-news__descr">Помещение расположено на первой фасадной линии Лесной улицы. В нескольких минутах пешком от метро «Белорусская», Бизнес центра класса «А» «Белая площадь», напротив гостиницы «Holiday Inn» и рядом с фудмоллом</p><a class="card-news__link" href="#">Подробнее |
330 | <svg width="17" height="12"> | 332 | <svg width="17" height="12"> |
331 | <use xlink:href="images/sprite.svg#card-news-link-arrow"></use> | 333 | <use xlink:href="images/sprite.svg#card-news-link-arrow"></use> |
332 | </svg></a> | 334 | </svg></a> |
333 | </div> | 335 | </div> |
334 | </div> | 336 | </div> |
335 | <div class="card-news"> | 337 | <div class="card-news"> |
336 | <div class="card-news__top"><img src="images/card/card-img-8.jpg" alt="Превью к новости" loading="lazy"> | 338 | <div class="card-news__top"><img src="images/card/card-img-8.jpg" alt="Превью к новости" loading="lazy"> |
337 | <div class="card-news__date"><span>ЖК Переделкино Ближнее</span><span></span></div> | 339 | <div class="card-news__date"><span>ЖК Переделкино Ближнее</span><span></span></div> |
338 | </div> | 340 | </div> |
339 | <div class="card-news__cnt"> | 341 | <div class="card-news__cnt"> |
340 | <p class="card-news__descr">Помещение расположено на первой фасадной линии Лесной улицы. В нескольких минутах пешком от метро «Белорусская», Бизнес центра класса «А» «Белая площадь», напротив гостиницы «Holiday Inn» и рядом с фудмоллом</p><a class="card-news__link" href="#">Подробнее | 342 | <p class="card-news__descr">Помещение расположено на первой фасадной линии Лесной улицы. В нескольких минутах пешком от метро «Белорусская», Бизнес центра класса «А» «Белая площадь», напротив гостиницы «Holiday Inn» и рядом с фудмоллом</p><a class="card-news__link" href="#">Подробнее |
341 | <svg width="17" height="12"> | 343 | <svg width="17" height="12"> |
342 | <use xlink:href="images/sprite.svg#card-news-link-arrow"></use> | 344 | <use xlink:href="images/sprite.svg#card-news-link-arrow"></use> |
343 | </svg></a> | 345 | </svg></a> |
344 | </div> | 346 | </div> |
345 | </div> | 347 | </div> |
346 | <div class="card-news"> | 348 | <div class="card-news"> |
347 | <div class="card-news__top"><img src="images/card/card-img-5.jpg" alt="Превью к новости" loading="lazy"> | 349 | <div class="card-news__top"><img src="images/card/card-img-5.jpg" alt="Превью к новости" loading="lazy"> |
348 | <div class="card-news__date"><span>ЖК Этолон Cити</span><span></span></div> | 350 | <div class="card-news__date"><span>ЖК Этолон Cити</span><span></span></div> |
349 | </div> | 351 | </div> |
350 | <div class="card-news__cnt"> | 352 | <div class="card-news__cnt"> |
351 | <p class="card-news__descr">Помещение расположено на первой фасадной линии Лесной улицы. В нескольких минутах пешком от метро «Белорусская», Бизнес центра класса «А» «Белая площадь», напротив гостиницы «Holiday Inn» и рядом с фудмоллом</p><a class="card-news__link" href="#">Подробнее | 353 | <p class="card-news__descr">Помещение расположено на первой фасадной линии Лесной улицы. В нескольких минутах пешком от метро «Белорусская», Бизнес центра класса «А» «Белая площадь», напротив гостиницы «Holiday Inn» и рядом с фудмоллом</p><a class="card-news__link" href="#">Подробнее |
352 | <svg width="17" height="12"> | 354 | <svg width="17" height="12"> |
353 | <use xlink:href="images/sprite.svg#card-news-link-arrow"></use> | 355 | <use xlink:href="images/sprite.svg#card-news-link-arrow"></use> |
354 | </svg></a> | 356 | </svg></a> |
355 | </div> | 357 | </div> |
356 | </div> | 358 | </div> |
357 | <div class="card-news"> | 359 | <div class="card-news"> |
358 | <div class="card-news__top"><img src="images/card/card-img-6.jpg" alt="Превью к новости" loading="lazy"> | 360 | <div class="card-news__top"><img src="images/card/card-img-6.jpg" alt="Превью к новости" loading="lazy"> |
359 | <div class="card-news__date"><span>ЖК Триумф Палас</span><span></span></div> | 361 | <div class="card-news__date"><span>ЖК Триумф Палас</span><span></span></div> |
360 | </div> | 362 | </div> |
361 | <div class="card-news__cnt"> | 363 | <div class="card-news__cnt"> |
362 | <p class="card-news__descr">Помещение расположено на первой фасадной линии Лесной улицы. В нескольких минутах пешком от метро «Белорусская», Бизнес центра класса «А» «Белая площадь», напротив гостиницы «Holiday Inn» и рядом с фудмоллом</p><a class="card-news__link" href="#">Подробнее | 364 | <p class="card-news__descr">Помещение расположено на первой фасадной линии Лесной улицы. В нескольких минутах пешком от метро «Белорусская», Бизнес центра класса «А» «Белая площадь», напротив гостиницы «Holiday Inn» и рядом с фудмоллом</p><a class="card-news__link" href="#">Подробнее |
363 | <svg width="17" height="12"> | 365 | <svg width="17" height="12"> |
364 | <use xlink:href="images/sprite.svg#card-news-link-arrow"></use> | 366 | <use xlink:href="images/sprite.svg#card-news-link-arrow"></use> |
365 | </svg></a> | 367 | </svg></a> |
366 | </div> | 368 | </div> |
367 | </div>--> | 369 | </div>--> |
368 | </div> | 370 | </div> |
369 | </div> | 371 | </div> |
370 | </div> | 372 | </div> |
371 | </div> | 373 | </div> |
372 | </section> | 374 | </section> |
373 | @endsection | 375 | @endsection |
374 | 376 | ||
375 | @section('form_feedback') | 377 | @section('form_feedback') |
376 | <!-- Форма обратной связи --> | 378 | <!-- Форма обратной связи --> |
377 | @include('form.form_feedback') | 379 | @include('form.form_feedback') |
378 | @endsection | 380 | @endsection |
379 | 381 | ||
380 | 382 |
routes/web.php
1 | <?php | 1 | <?php |
2 | 2 | ||
3 | use Illuminate\Support\Facades\Auth; | 3 | use Illuminate\Support\Facades\Auth; |
4 | use Illuminate\Support\Facades\Route; | 4 | use Illuminate\Support\Facades\Route; |
5 | use App\Http\Controllers\MainController; | 5 | use App\Http\Controllers\MainController; |
6 | use App\Http\Controllers\RegisterController; | 6 | use App\Http\Controllers\RegisterController; |
7 | use App\Http\Controllers\LoginController; | 7 | use App\Http\Controllers\LoginController; |
8 | use App\Http\Controllers\AdminController; | 8 | use App\Http\Controllers\AdminController; |
9 | use App\Http\Controllers\Admin\AreaController; | 9 | use App\Http\Controllers\Admin\AreaController; |
10 | use App\Http\Controllers\Admin\NewsController; | 10 | use App\Http\Controllers\Admin\NewsController; |
11 | use App\Http\Controllers\Admin\CompanyAreaController; | 11 | use App\Http\Controllers\Admin\CompanyAreaController; |
12 | use App\Http\Controllers\Admin\FormatAreaController; | 12 | use App\Http\Controllers\Admin\FormatAreaController; |
13 | use App\Http\Controllers\Admin\TypeAreaController; | 13 | use App\Http\Controllers\Admin\TypeAreaController; |
14 | use App\Http\Controllers\Admin\HousesController; | 14 | use App\Http\Controllers\Admin\HousesController; |
15 | use App\Http\Controllers\Admin\MessageAreaController; | 15 | use App\Http\Controllers\Admin\MessageAreaController; |
16 | 16 | ||
17 | /* | 17 | /* |
18 | |-------------------------------------------------------------------------- | 18 | |-------------------------------------------------------------------------- |
19 | | Web Routes | 19 | | Web Routes |
20 | |-------------------------------------------------------------------------- | 20 | |-------------------------------------------------------------------------- |
21 | | | 21 | | |
22 | | Here is where you can register web routes for your application. These | 22 | | Here is where you can register web routes for your application. These |
23 | | routes are loaded by the RouteServiceProvider within a group which | 23 | | routes are loaded by the RouteServiceProvider within a group which |
24 | | contains the "web" middleware group. Now create something great! | 24 | | contains the "web" middleware group. Now create something great! |
25 | | | 25 | | |
26 | */ | 26 | */ |
27 | 27 | ||
28 | //тест отправка почты | ||
29 | Route::get('email', [MainController::class, 'send_mail'])->name('send.mail'); | ||
30 | |||
28 | //Главная страница | 31 | //Главная страница |
29 | Route::get('/',[MainController::class, 'index'])->name('index'); | 32 | Route::get('/',[MainController::class, 'index'])->name('index'); |
30 | 33 | ||
31 | //Страница Избранные | 34 | //Страница Избранные |
32 | Route::get('favorite',[MainController::class, 'favorite'])->name('favorite'); | 35 | Route::get('favorite',[MainController::class, 'favorite'])->name('favorite'); |
33 | 36 | ||
34 | //Страница контакты | 37 | //Страница контакты |
35 | Route::get('contact',[MainController::class, 'contact'])->name('contact'); | 38 | Route::get('contact',[MainController::class, 'contact'])->name('contact'); |
36 | 39 | ||
37 | //Страница каталог | 40 | //Страница каталог |
38 | Route::get('catalog',[MainController::class, 'catalog'])->name('catalog'); | 41 | Route::get('catalog',[MainController::class, 'catalog'])->name('catalog'); |
39 | 42 | ||
40 | Route::get('test', [MainController::class, 'test'])->name('test'); | 43 | Route::get('test', [MainController::class, 'test'])->name('test'); |
41 | 44 | ||
42 | //Страница новости | 45 | //Страница новости |
43 | Route::get('news',[MainController::class, 'news'])->name('news'); | 46 | Route::get('news',[MainController::class, 'news'])->name('news'); |
44 | 47 | ||
45 | //Страница о компании | 48 | //Страница о компании |
46 | Route::get('about',[MainController::class, 'about'])->name('about'); | 49 | Route::get('about',[MainController::class, 'about'])->name('about'); |
47 | 50 | ||
48 | //Страница объекты на карте | 51 | //Страница объекты на карте |
49 | Route::get('maps',[MainController::class, 'mapsobj'])->name('maps'); | 52 | Route::get('maps',[MainController::class, 'mapsobj'])->name('maps'); |
50 | 53 | ||
51 | // Политика конфедициальности | 54 | // Политика конфедициальности |
52 | Route::get('conf', function () { | 55 | Route::get('conf', function () { |
53 | return view('conf'); | 56 | return view('conf'); |
54 | })->name('conf'); | 57 | })->name('conf'); |
55 | 58 | ||
56 | //Детальная страница предложения недвижимости | 59 | //Детальная страница предложения недвижимости |
57 | Route::get('offer/{house:id}', [MainController::class, 'offer'])->name('offer'); | 60 | Route::get('offer/{house:id}', [MainController::class, 'offer'])->name('offer'); |
58 | 61 | ||
59 | //Детальная страница новостей | 62 | //Детальная страница новостей |
60 | Route::get('detail-new/{news:id}', [MainController::class, 'DetailNew'])->name('new'); | 63 | Route::get('detail-new/{news:id}', [MainController::class, 'DetailNew'])->name('new'); |
61 | 64 | ||
62 | //Страница ЖилойКомплекс | 65 | //Страница ЖилойКомплекс |
63 | Route::get('complex/{area:id}', [MainController::class, 'complex'])->name('complex'); | 66 | Route::get('complex/{area:id}', [MainController::class, 'complex'])->name('complex'); |
64 | 67 | ||
65 | // ajax-фильтры каталога | 68 | // ajax-фильтры каталога |
66 | Route::get('catalog_ajax_filter', [MainController::class, 'catalog_ajax_filter'])->name('catalog_ajax_filter'); | 69 | Route::get('catalog_ajax_filter', [MainController::class, 'catalog_ajax_filter'])->name('catalog_ajax_filter'); |
67 | 70 | ||
68 | //Категория | 71 | //Категория |
69 | Route::get('category/{cat}', [MainController::class, 'Category'])->name('category'); | 72 | Route::get('category/{cat}', [MainController::class, 'Category'])->name('category'); |
70 | 73 | ||
71 | //Категория ajax | 74 | //Категория ajax |
72 | Route::get('category_ajax/{cat}', [MainController::class, 'category_ajax'])->name('category_ajax'); | 75 | Route::get('category_ajax/{cat}', [MainController::class, 'category_ajax'])->name('category_ajax'); |
73 | 76 | ||
74 | //Страница куков | 77 | //Страница куков |
75 | Route::get('cookies', function () { | 78 | Route::get('cookies', function () { |
76 | return view('cookies'); | 79 | return view('cookies'); |
77 | })->name('cookies'); | 80 | })->name('cookies'); |
78 | 81 | ||
79 | //Форма обратной связи в футере | 82 | //Форма обратной связи в футере |
80 | Route::post('main_form', [MainController::class, 'main_form'])->name('main_form'); | 83 | Route::post('main_form', [MainController::class, 'main_form'])->name('main_form'); |
81 | 84 | ||
82 | //Форма обратной связи в хедере | 85 | //Форма обратной связи в хедере |
83 | Route::post('header_form', [MainController::class, 'header_form'])->name('header_form'); | 86 | Route::post('header_form', [MainController::class, 'header_form'])->name('header_form'); |
84 | 87 | ||
85 | //Форма записаться на просмотр в карточке офиса | 88 | //Форма записаться на просмотр в карточке офиса |
86 | Route::post('rec_view_form', [MainController::class, 'rec_view_form'])->name('rec_view_form'); | 89 | Route::post('rec_view_form', [MainController::class, 'rec_view_form'])->name('rec_view_form'); |
87 | 90 | ||
88 | //Форма обратной связи на странице контакты | 91 | //Форма обратной связи на странице контакты |
89 | Route::post('page_contact_form', [MainController::class, 'page_contact_form'])->name('page_contact_form'); | 92 | Route::post('page_contact_form', [MainController::class, 'page_contact_form'])->name('page_contact_form'); |
90 | 93 | ||
91 | //Форма обратной связи предложения по почте | 94 | //Форма обратной связи предложения по почте |
92 | Route::post('email_form', [MainController::class, 'email_form'])->name('email_form'); | 95 | Route::post('email_form', [MainController::class, 'email_form'])->name('email_form'); |
93 | 96 | ||
94 | Route::group([ | 97 | Route::group([ |
95 | 'as' => 'auth.', // имя маршрута, например auth.index | 98 | 'as' => 'auth.', // имя маршрута, например auth.index |
96 | 'prefix' => 'auth', // префикс маршрута, например auth/index | 99 | 'prefix' => 'auth', // префикс маршрута, например auth/index |
97 | ], function () { | 100 | ], function () { |
98 | // Форма регистрации | 101 | // Форма регистрации |
99 | Route::get('register', [RegisterController::class, 'register'])->name('register'); | 102 | Route::get('register', [RegisterController::class, 'register'])->name('register'); |
100 | 103 | ||
101 | // Создание пользователя | 104 | // Создание пользователя |
102 | Route::post('register', [RegisterController::class, 'create'])->name('create'); | 105 | Route::post('register', [RegisterController::class, 'create'])->name('create'); |
103 | //Форма входа | 106 | //Форма входа |
104 | Route::get('login', [LoginController::class, 'login'])->name('login'); | 107 | Route::get('login', [LoginController::class, 'login'])->name('login'); |
105 | 108 | ||
106 | // аутентификация | 109 | // аутентификация |
107 | Route::post('login', [LoginController::class, 'autenticate'])->name('auth'); | 110 | Route::post('login', [LoginController::class, 'autenticate'])->name('auth'); |
108 | 111 | ||
109 | // выход | 112 | // выход |
110 | Route::get('logout', [LoginController::class, 'logout'])->name('logout'); | 113 | Route::get('logout', [LoginController::class, 'logout'])->name('logout'); |
111 | 114 | ||
112 | //Страница неудачной авторизации | 115 | //Страница неудачной авторизации |
113 | Route::get('vefiry-message', function () { | 116 | Route::get('vefiry-message', function () { |
114 | return view('auth.vefiry-message'); | 117 | return view('auth.vefiry-message'); |
115 | })->name('vefiry-message'); | 118 | })->name('vefiry-message'); |
116 | 119 | ||
117 | }); | 120 | }); |
118 | 121 | ||
119 | /* | 122 | /* |
120 | * Личный кабинет пользователя | 123 | * Личный кабинет пользователя |
121 | */ | 124 | */ |
122 | Route::group([ | 125 | Route::group([ |
123 | 'as' => 'user.', // имя маршрута, например user.index | 126 | 'as' => 'user.', // имя маршрута, например user.index |
124 | 'prefix' => 'user', // префикс маршрута, например user/index | 127 | 'prefix' => 'user', // префикс маршрута, например user/index |
125 | //'namespace' => 'User', // пространство имен контроллеров | 128 | //'namespace' => 'User', // пространство имен контроллеров |
126 | 'middleware' => ['auth'] // один или несколько посредников | 129 | 'middleware' => ['auth'] // один или несколько посредников |
127 | ], function () { | 130 | ], function () { |
128 | // главная страница | 131 | // главная страница |
129 | Route::get('index', [AdminController::class, 'index'])->name('index'); | 132 | Route::get('index', [AdminController::class, 'index'])->name('index'); |
130 | }); | 133 | }); |
131 | 134 | ||
132 | /* | 135 | /* |
133 | * Панель управления: CRUD-операции над постами, категориями, тегами | 136 | * Панель управления: CRUD-операции над постами, категориями, тегами |
134 | */ | 137 | */ |
135 | Route::group([ | 138 | Route::group([ |
136 | 'as' => 'admin.', // имя маршрута, например admin.index | 139 | 'as' => 'admin.', // имя маршрута, например admin.index |
137 | 'prefix' => 'admin', // префикс маршрута, например admin/index | 140 | 'prefix' => 'admin', // префикс маршрута, например admin/index |
138 | //'namespace' => 'Admin', // пространство имен контроллеров | 141 | //'namespace' => 'Admin', // пространство имен контроллеров |
139 | 'middleware' => ['auth'] // один или несколько посредников | 142 | 'middleware' => ['auth'] // один или несколько посредников |
140 | ], function () { | 143 | ], function () { |
141 | /* | 144 | /* |
142 | * CRUD-операции над постами Жилых комплексов | 145 | * CRUD-операции над постами Жилых комплексов |
143 | */ | 146 | */ |
144 | Route::resource('area', AreaController::class, []); | 147 | Route::resource('area', AreaController::class, []); |
145 | 148 | ||
146 | //дополнительный маршрут для показа картинок объектов недвижимости | 149 | //дополнительный маршрут для показа картинок объектов недвижимости |
147 | Route::get('img/area/{area}', [AreaController::class, 'area_category']) | 150 | Route::get('img/area/{area}', [AreaController::class, 'area_category']) |
148 | ->name('img.area'); | 151 | ->name('img.area'); |
149 | 152 | ||
150 | //дополнительный маршрут для добавления картинок объектов недвижимости | 153 | //дополнительный маршрут для добавления картинок объектов недвижимости |
151 | Route::post('img/area/{area}', [AreaController::class, 'area_add_img']) | 154 | Route::post('img/area/{area}', [AreaController::class, 'area_add_img']) |
152 | ->name('img.add.area'); | 155 | ->name('img.add.area'); |
153 | 156 | ||
154 | //дополнительный маршрут для удаления картинок объектов недвжимости | 157 | //дополнительный маршрут для удаления картинок объектов недвжимости |
155 | Route::get('img/del/{id}/area/{area}', [AreaController::class, 'area_del_img']) | 158 | Route::get('img/del/{id}/area/{area}', [AreaController::class, 'area_del_img']) |
156 | ->name('img.del.area'); | 159 | ->name('img.del.area'); |
157 | 160 | ||
158 | /* | 161 | /* |
159 | * CRUD-операции над постами Новости | 162 | * CRUD-операции над постами Новости |
160 | */ | 163 | */ |
161 | Route::resource('news', NewsController::class, []); | 164 | Route::resource('news', NewsController::class, []); |
162 | 165 | ||
163 | /* | 166 | /* |
164 | * CRUD-операции над настройками Компании | 167 | * CRUD-операции над настройками Компании |
165 | */ | 168 | */ |
166 | Route::resource('company', CompanyAreaController::class, ['except' => ['create', 'store', 'destroy', 'index']]); | 169 | Route::resource('company', CompanyAreaController::class, ['except' => ['create', 'store', 'destroy', 'index']]); |
167 | 170 | ||
168 | //форма добавление партнера | 171 | //форма добавление партнера |
169 | Route::get('add/partner', [CompanyAreaController::class, 'add_partner'])->name('add.partner'); | 172 | Route::get('add/partner', [CompanyAreaController::class, 'add_partner'])->name('add.partner'); |
170 | 173 | ||
171 | //Добавление партнера | 174 | //Добавление партнера |
172 | Route::post('add/partner', [CompanyAreaController::class, 'add_partner_post'])->name('add.partner.post'); | 175 | Route::post('add/partner', [CompanyAreaController::class, 'add_partner_post'])->name('add.partner.post'); |
173 | 176 | ||
174 | //удаление партнера | 177 | //удаление партнера |
175 | Route::get('delete/partner/{partner}', [CompanyAreaController::class, 'delete_partner'])->name('delete.partner'); | 178 | Route::get('delete/partner/{partner}', [CompanyAreaController::class, 'delete_partner'])->name('delete.partner'); |
176 | 179 | ||
177 | 180 | ||
178 | /* | 181 | /* |
179 | * CRUD-операции над типами недвижимостью | 182 | * CRUD-операции над типами недвижимостью |
180 | */ | 183 | */ |
181 | Route::resource('typearea', TypeAreaController::class, ['except' => ['show']]); | 184 | Route::resource('typearea', TypeAreaController::class, ['except' => ['show']]); |
182 | 185 | ||
183 | /* | 186 | /* |
184 | * CRUD-операции над форматами недвижимостью | 187 | * CRUD-операции над форматами недвижимостью |
185 | */ | 188 | */ |
186 | Route::resource('formatarea', FormatAreaController::class, ['except' => ['show']]); | 189 | Route::resource('formatarea', FormatAreaController::class, ['except' => ['show']]); |
187 | 190 | ||
188 | /* | 191 | /* |
189 | * CRUD-операции над сообщениями сайта | 192 | * CRUD-операции над сообщениями сайта |
190 | */ | 193 | */ |
191 | Route::resource('message', MessageAreaController::class, ['except' => ['create', 'store', 'edit', 'update']]); | 194 | Route::resource('message', MessageAreaController::class, ['except' => ['create', 'store', 'edit', 'update']]); |
192 | 195 | ||
193 | /* | 196 | /* |
194 | * CRUD-операции над офисами | 197 | * CRUD-операции над офисами |
195 | */ | 198 | */ |
196 | Route::resource('houses', HousesController::class, ['except' => ['show']]); | 199 | Route::resource('houses', HousesController::class, ['except' => ['show']]); |
197 | 200 | ||
198 | // просмотр дополнительных картинок офиса | 201 | // просмотр дополнительных картинок офиса |
199 | Route::get('houses/{house}/images', [HousesController::class, 'view_images'])->name('view.images.houses'); | 202 | Route::get('houses/{house}/images', [HousesController::class, 'view_images'])->name('view.images.houses'); |
200 | 203 | ||
201 | // форма добавление дополнительной картинки офиса | 204 | // форма добавление дополнительной картинки офиса |
202 | Route::get('houses/{house}/add/images', [HousesController::class, 'add_images'])->name('add.images.houses'); | 205 | Route::get('houses/{house}/add/images', [HousesController::class, 'add_images'])->name('add.images.houses'); |
203 | 206 | ||
204 | // добавление дополнительной картинки офиса | 207 | // добавление дополнительной картинки офиса |
205 | Route::post('houses/{house}/add/images', [HousesController::class, 'add_images_store'])->name('add.image.post.houses'); | 208 | Route::post('houses/{house}/add/images', [HousesController::class, 'add_images_store'])->name('add.image.post.houses'); |
206 | 209 | ||
207 | // удаление дополнительной картинки офиса | 210 | // удаление дополнительной картинки офиса |
208 | Route::get('houses/{house}/del/{id}/images', [HousesController::class, 'del_images'])->name('del.images.houses'); | 211 | Route::get('houses/{house}/del/{id}/images', [HousesController::class, 'del_images'])->name('del.images.houses'); |
209 | 212 | ||
210 | //Форма смены пароля пользователя | 213 | //Форма смены пароля пользователя |
211 | Route::get('user/password', [AdminController::class, 'form_password'])->name('form_password'); | 214 | Route::get('user/password', [AdminController::class, 'form_password'])->name('form_password'); |
212 | 215 | ||
213 | //Смена пароля пользователя | 216 | //Смена пароля пользователя |
214 | Route::post('user/password', [AdminController::class, 'validate_password'])->name('validate_password'); | 217 | Route::post('user/password', [AdminController::class, 'validate_password'])->name('validate_password'); |
215 | }); | 218 | }); |
216 | 219 |