Commit d2e30108c8b0332f3949dfc16c69d53b19c70093
1 parent
65c2fc5f63
Exists in
master
Линки телефонов в карточках офисов
Showing 7 changed files with 33 additions and 19 deletions Inline Diff
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\Http\Requests\EmailRequest; | 5 | use App\Http\Requests\EmailRequest; |
6 | use App\Http\Requests\FooterFeedbackRequest; | 6 | use App\Http\Requests\FooterFeedbackRequest; |
7 | use App\Models\Area; | 7 | use App\Models\Area; |
8 | use App\Models\Contact; | 8 | use App\Models\Contact; |
9 | use App\Models\format_area; | 9 | use App\Models\format_area; |
10 | use App\Models\House; | 10 | use App\Models\House; |
11 | use App\Models\ModelMailFeedback; | 11 | use App\Models\ModelMailFeedback; |
12 | use App\Models\News; | 12 | use App\Models\News; |
13 | use App\Models\Page; | 13 | use App\Models\Page; |
14 | use App\Models\Partners; | 14 | use App\Models\Partners; |
15 | use App\Models\type_area; | 15 | use App\Models\type_area; |
16 | use Illuminate\Database\Eloquent\Model; | 16 | use Illuminate\Database\Eloquent\Model; |
17 | use Illuminate\Http\Request; | 17 | use Illuminate\Http\Request; |
18 | use App\Classes\RusDate; | 18 | use App\Classes\RusDate; |
19 | use Illuminate\Support\Facades\DB; | 19 | use Illuminate\Support\Facades\DB; |
20 | use Illuminate\Support\Facades\Mail; | 20 | use Illuminate\Support\Facades\Mail; |
21 | use PhpParser\Node\Stmt\Switch_; | 21 | use PhpParser\Node\Stmt\Switch_; |
22 | use Illuminate\Support\Facades\Response; | 22 | use Illuminate\Support\Facades\Response; |
23 | 23 | ||
24 | class MainController extends Controller | 24 | class MainController extends Controller |
25 | { | 25 | { |
26 | /* | 26 | /* |
27 | * Главная страница проекта | 27 | * Главная страница проекта |
28 | */ | 28 | */ |
29 | public function index() { | 29 | public function index() { |
30 | $houses = House::with('areas')->orderByDesc('created_at')->limit(8)->get(); | 30 | $houses = House::with('areas')->orderByDesc('created_at')->limit(8)->get(); |
31 | $news = News::query()->orderByDesc('created_at')->limit(8)->get(); | 31 | $news = News::query()->orderByDesc('created_at')->limit(8)->get(); |
32 | $partners = Partners::query()->limit(18)->get(); | 32 | $partners = Partners::query()->limit(18)->get(); |
33 | return view('index', compact('houses', 'news', 'partners')); | 33 | return view('index', compact('houses', 'news', 'partners')); |
34 | } | 34 | } |
35 | 35 | ||
36 | /* | 36 | /* |
37 | * Фильтр ajax в каталоге | 37 | * Фильтр ajax в каталоге |
38 | */ | 38 | */ |
39 | public function catalog_ajax_filter(Request $request) { | 39 | public function catalog_ajax_filter(Request $request) { |
40 | $Res = Array(); | 40 | $Res = Array(); |
41 | if (!empty($request->area)) { | 41 | if (!empty($request->area)) { |
42 | $area_table = Area::where('id', '=', $request->area)->get(); | 42 | $area_table = Area::where('id', '=', $request->area)->get(); |
43 | $Res[] = $area_table[0]->name_area; | 43 | $Res[] = $area_table[0]->name_area; |
44 | } else { | 44 | } else { |
45 | $Res[] = "Все объекты"; | 45 | $Res[] = "Все объекты"; |
46 | } | 46 | } |
47 | 47 | ||
48 | if (!empty($request->type_area)) { | 48 | if (!empty($request->type_area)) { |
49 | $type_area_table = type_area::where('id', '=', $request->type_area)->get(); | 49 | $type_area_table = type_area::where('id', '=', $request->type_area)->get(); |
50 | $Res[] = $type_area_table[0]->name_type; | 50 | $Res[] = $type_area_table[0]->name_type; |
51 | } else { | 51 | } else { |
52 | $Res[] = "Тип недвижимости"; | 52 | $Res[] = "Тип недвижимости"; |
53 | } | 53 | } |
54 | 54 | ||
55 | if (!empty($request->format_area)) { | 55 | if (!empty($request->format_area)) { |
56 | $format_area_table = format_area::where('id', '=', $request->format_area)->get(); | 56 | $format_area_table = format_area::where('id', '=', $request->format_area)->get(); |
57 | $Res[] = $format_area_table[0]->name_format; | 57 | $Res[] = $format_area_table[0]->name_format; |
58 | } else { | 58 | } else { |
59 | $Res[] = "Формат недвижимости"; | 59 | $Res[] = "Формат недвижимости"; |
60 | } | 60 | } |
61 | 61 | ||
62 | return json_encode($Res); | 62 | return json_encode($Res); |
63 | } | 63 | } |
64 | 64 | ||
65 | /* | 65 | /* |
66 | * Страница ЖК | 66 | * Страница ЖК |
67 | */ | 67 | */ |
68 | public function Complex(Area $area, Request $request) { | 68 | public function Complex(Area $area, Request $request) { |
69 | //////////раздел аренда | 69 | //////////раздел аренда |
70 | $house_arenda = House::with('areas')-> | 70 | $house_arenda = House::with('areas')-> |
71 | where('area_id', '=', $area->id)-> | 71 | where('area_id', '=', $area->id)-> |
72 | where('format_house', '=', 'Аренда'); | 72 | where('format_house', '=', 'Аренда'); |
73 | 73 | ||
74 | if ($request->view == 'arenda') { | 74 | if ($request->view == 'arenda') { |
75 | switch ($request->sort_price) { | 75 | switch ($request->sort_price) { |
76 | case 1: $house_arenda = $house_arenda->orderBy('price');break; | 76 | case 1: $house_arenda = $house_arenda->orderBy('price');break; |
77 | case 2: $house_arenda = $house_arenda->orderByDesc('price');break; | 77 | case 2: $house_arenda = $house_arenda->orderByDesc('price');break; |
78 | } | 78 | } |
79 | switch ($request->sort_new) { | 79 | switch ($request->sort_new) { |
80 | case 1: $house_arenda = $house_arenda->orderByDesc('created_at');break; | 80 | case 1: $house_arenda = $house_arenda->orderByDesc('created_at');break; |
81 | case 2: $house_arenda = $house_arenda->orderBy('created_at');break; | 81 | case 2: $house_arenda = $house_arenda->orderBy('created_at');break; |
82 | } | 82 | } |
83 | switch ($request->sort_area) { | 83 | switch ($request->sort_area) { |
84 | case 1: $house_arenda = $house_arenda->orderByDesc('area')->get();break; | 84 | case 1: $house_arenda = $house_arenda->orderByDesc('area')->get();break; |
85 | case 2: $house_arenda = $house_arenda->orderBy('area')->get();break; | 85 | case 2: $house_arenda = $house_arenda->orderBy('area')->get();break; |
86 | } | 86 | } |
87 | } else { | 87 | } else { |
88 | $house_arenda = $house_arenda->orderBy('price')-> | 88 | $house_arenda = $house_arenda->orderBy('price')-> |
89 | orderByDesc('created_at')-> | 89 | orderByDesc('created_at')-> |
90 | orderByDesc('area')->get(); | 90 | orderByDesc('area')->get(); |
91 | } | 91 | } |
92 | 92 | ||
93 | ////////раздел продажа | 93 | ////////раздел продажа |
94 | $house_prodaja = House::with('areas')-> | 94 | $house_prodaja = House::with('areas')-> |
95 | where('area_id', '=', $area->id)-> | 95 | where('area_id', '=', $area->id)-> |
96 | where('format_house', '=', 'Продажа'); | 96 | where('format_house', '=', 'Продажа'); |
97 | 97 | ||
98 | if ($request->view == 'prodaja') { | 98 | if ($request->view == 'prodaja') { |
99 | switch ($request->sort_price) { | 99 | switch ($request->sort_price) { |
100 | case 1: $house_prodaja = $house_prodaja->orderBy('price');break; | 100 | case 1: $house_prodaja = $house_prodaja->orderBy('price');break; |
101 | case 2: $house_prodaja = $house_prodaja->orderByDesc('price');break; | 101 | case 2: $house_prodaja = $house_prodaja->orderByDesc('price');break; |
102 | } | 102 | } |
103 | switch ($request->sort_new) { | 103 | switch ($request->sort_new) { |
104 | case 1: $house_prodaja = $house_prodaja->orderByDesc('created_at');break; | 104 | case 1: $house_prodaja = $house_prodaja->orderByDesc('created_at');break; |
105 | case 2: $house_prodaja = $house_prodaja->orderBy('created_at');break; | 105 | case 2: $house_prodaja = $house_prodaja->orderBy('created_at');break; |
106 | } | 106 | } |
107 | switch ($request->sort_area) { | 107 | switch ($request->sort_area) { |
108 | case 1: $house_prodaja = $house_prodaja->orderByDesc('area')->get();break; | 108 | case 1: $house_prodaja = $house_prodaja->orderByDesc('area')->get();break; |
109 | case 2: $house_prodaja = $house_prodaja->orderBy('area')->get();break; | 109 | case 2: $house_prodaja = $house_prodaja->orderBy('area')->get();break; |
110 | } | 110 | } |
111 | } else { | 111 | } else { |
112 | $house_prodaja = $house_prodaja->orderBy('price')-> | 112 | $house_prodaja = $house_prodaja->orderBy('price')-> |
113 | orderByDesc('created_at')-> | 113 | orderByDesc('created_at')-> |
114 | orderByDesc('area')->get(); | 114 | orderByDesc('area')->get(); |
115 | } | 115 | } |
116 | 116 | ||
117 | //////////////// Раздел бизнеса | 117 | //////////////// Раздел бизнеса |
118 | $house_bissnes = House::with('areas')-> | 118 | $house_bissnes = House::with('areas')-> |
119 | where('area_id', '=', $area->id)-> | 119 | where('area_id', '=', $area->id)-> |
120 | where('format_house', '=', 'Бизнес'); | 120 | where('format_house', '=', 'Бизнес'); |
121 | //orderByDesc('created_at')->get(); | 121 | //orderByDesc('created_at')->get(); |
122 | 122 | ||
123 | if ($request->view == 'bissnes') { | 123 | if ($request->view == 'bissnes') { |
124 | switch ($request->sort_price) { | 124 | switch ($request->sort_price) { |
125 | case 1: $house_bissnes = $house_bissnes->orderBy('price');break; | 125 | case 1: $house_bissnes = $house_bissnes->orderBy('price');break; |
126 | case 2: $house_bissnes = $house_bissnes->orderByDesc('price');break; | 126 | case 2: $house_bissnes = $house_bissnes->orderByDesc('price');break; |
127 | } | 127 | } |
128 | switch ($request->sort_new) { | 128 | switch ($request->sort_new) { |
129 | case 1: $house_bissnes = $house_bissnes->orderByDesc('created_at');break; | 129 | case 1: $house_bissnes = $house_bissnes->orderByDesc('created_at');break; |
130 | case 2: $house_bissnes = $house_bissnes->orderBy('created_at');break; | 130 | case 2: $house_bissnes = $house_bissnes->orderBy('created_at');break; |
131 | } | 131 | } |
132 | switch ($request->sort_area) { | 132 | switch ($request->sort_area) { |
133 | case 1: $house_bissnes = $house_bissnes->orderByDesc('area')->get();break; | 133 | case 1: $house_bissnes = $house_bissnes->orderByDesc('area')->get();break; |
134 | case 2: $house_bissnes = $house_bissnes->orderBy('area')->get();break; | 134 | case 2: $house_bissnes = $house_bissnes->orderBy('area')->get();break; |
135 | } | 135 | } |
136 | } else { | 136 | } else { |
137 | $house_bissnes = $house_bissnes->orderBy('price')-> | 137 | $house_bissnes = $house_bissnes->orderBy('price')-> |
138 | orderByDesc('created_at')-> | 138 | orderByDesc('created_at')-> |
139 | orderByDesc('area')->get(); | 139 | orderByDesc('area')->get(); |
140 | } | 140 | } |
141 | 141 | ||
142 | //////////раздел арендованные | 142 | //////////раздел арендованные |
143 | $house_arendovannie = House::with('areas')-> | 143 | $house_arendovannie = House::with('areas')-> |
144 | where('area_id', '=', $area->id)-> | 144 | where('area_id', '=', $area->id)-> |
145 | where('format_house', '=', 'Арендованные'); | 145 | where('format_house', '=', 'Арендованные'); |
146 | //orderByDesc('created_at')->get(); | 146 | //orderByDesc('created_at')->get(); |
147 | 147 | ||
148 | if ($request->view == 'arendovannie') { | 148 | if ($request->view == 'arendovannie') { |
149 | switch ($request->sort_price) { | 149 | switch ($request->sort_price) { |
150 | case 1: $house_arendovannie = $house_arendovannie->orderBy('price');break; | 150 | case 1: $house_arendovannie = $house_arendovannie->orderBy('price');break; |
151 | case 2: $house_arendovannie = $house_arendovannie->orderByDesc('price');break; | 151 | case 2: $house_arendovannie = $house_arendovannie->orderByDesc('price');break; |
152 | } | 152 | } |
153 | switch ($request->sort_new) { | 153 | switch ($request->sort_new) { |
154 | case 1: $house_arendovannie = $house_arendovannie->orderByDesc('created_at');break; | 154 | case 1: $house_arendovannie = $house_arendovannie->orderByDesc('created_at');break; |
155 | case 2: $house_arendovannie = $house_arendovannie->orderBy('created_at');break; | 155 | case 2: $house_arendovannie = $house_arendovannie->orderBy('created_at');break; |
156 | } | 156 | } |
157 | switch ($request->sort_area) { | 157 | switch ($request->sort_area) { |
158 | case 1: $house_arendovannie = $house_arendovannie->orderByDesc('area')->get();break; | 158 | case 1: $house_arendovannie = $house_arendovannie->orderByDesc('area')->get();break; |
159 | case 2: $house_arendovannie = $house_arendovannie->orderBy('area')->get();break; | 159 | case 2: $house_arendovannie = $house_arendovannie->orderBy('area')->get();break; |
160 | } | 160 | } |
161 | } else { | 161 | } else { |
162 | $house_arendovannie = $house_arendovannie->orderBy('price')-> | 162 | $house_arendovannie = $house_arendovannie->orderBy('price')-> |
163 | orderByDesc('created_at')-> | 163 | orderByDesc('created_at')-> |
164 | orderByDesc('area')->get(); | 164 | orderByDesc('area')->get(); |
165 | } | 165 | } |
166 | 166 | ||
167 | if ($request->ajax()) { | 167 | if ($request->ajax()) { |
168 | switch($request->view) { | 168 | switch($request->view) { |
169 | case 'arenda': return view('ajax.complex.arenda', compact('house_arenda')); break; | 169 | case 'arenda': return view('ajax.complex.arenda', compact('house_arenda')); break; |
170 | case 'prodaja': return view('ajax.complex.prodaja', compact('house_prodaja'));break; | 170 | case 'prodaja': return view('ajax.complex.prodaja', compact('house_prodaja'));break; |
171 | case 'bissnes': return view('ajax.complex.bissnes', compact('house_bissnes')); break; | 171 | case 'bissnes': return view('ajax.complex.bissnes', compact('house_bissnes')); break; |
172 | case 'arendovannie': return view('ajax.complex.arendovannie', compact('house_arendovannie')); break; | 172 | case 'arendovannie': return view('ajax.complex.arendovannie', compact('house_arendovannie')); break; |
173 | } | 173 | } |
174 | } | 174 | } |
175 | 175 | ||
176 | return view('complex', compact('area', | 176 | return view('complex', compact('area', |
177 | 'house_arenda', | 177 | 'house_arenda', |
178 | 'house_prodaja', | 178 | 'house_prodaja', |
179 | 'house_bissnes', | 179 | 'house_bissnes', |
180 | 'house_arendovannie')); | 180 | 'house_arendovannie')); |
181 | 181 | ||
182 | } | 182 | } |
183 | 183 | ||
184 | /* | 184 | /* |
185 | * О компании | 185 | * О компании |
186 | */ | 186 | */ |
187 | public function About(): \Illuminate\Contracts\View\Factory|\Illuminate\Contracts\View\View|\Illuminate\Contracts\Foundation\Application | 187 | public function About(): \Illuminate\Contracts\View\Factory|\Illuminate\Contracts\View\View|\Illuminate\Contracts\Foundation\Application |
188 | { | 188 | { |
189 | $news = News::query()->orderByDesc('created_at')->limit(8)->get(); | 189 | $news = News::query()->orderByDesc('created_at')->limit(8)->get(); |
190 | $partners = Partners::query()->limit(18)->get(); | 190 | $partners = Partners::query()->limit(18)->get(); |
191 | return view('about', compact('news', 'partners')); | 191 | return view('about', compact('news', 'partners')); |
192 | } | 192 | } |
193 | 193 | ||
194 | /* | 194 | /* |
195 | * Форма обратной связи внизу сайта | 195 | * Форма обратной связи внизу сайта |
196 | */ | 196 | */ |
197 | public function main_form(FooterFeedbackRequest $request) { | 197 | public function main_form(FooterFeedbackRequest $request) { |
198 | $RentTorg = Contact::query()->limit(1)->get(); | 198 | $RentTorg = Contact::query()->limit(1)->get(); |
199 | $MailBD = new ModelMailFeedback(); | 199 | $MailBD = new ModelMailFeedback(); |
200 | $MailBD->to = 'Администрации сайта'; | 200 | $MailBD->to = 'Администрации сайта'; |
201 | $MailBD->from = $request->TelephoneUser; | 201 | $MailBD->from = $request->TelephoneUser; |
202 | $MailBD->subject = "Пользователь <".$request->NameUser.">"; | 202 | $MailBD->subject = "Пользователь <".$request->NameUser.">"; |
203 | $MailBD->form = 'Форма в футере'; | 203 | $MailBD->form = 'Форма в футере'; |
204 | $MailBD->text = "От пользователя: ".$request->NameUser.". Заявка на лучшие предложения. Сообщение: ".$request->TextUser; | 204 | $MailBD->text = "От пользователя: ".$request->NameUser.". Заявка на лучшие предложения. Сообщение: ".$request->TextUser; |
205 | $MailBD->save(); | 205 | $MailBD->save(); |
206 | 206 | ||
207 | //return true; | 207 | //return true; |
208 | /* | 208 | /* |
209 | Mail::send('emails.feedback', ['user' => $user], | 209 | Mail::send('emails.feedback', ['user' => $user], |
210 | function ($message) use ($user) { | 210 | function ($message) use ($user) { |
211 | $message->from('sender@gmail.com', 'Sender'); | 211 | $message->from('sender@gmail.com', 'Sender'); |
212 | $message->to($user->email, $user->name)->subject('Test message'); | 212 | $message->to($user->email, $user->name)->subject('Test message'); |
213 | }); | 213 | }); |
214 | */ | 214 | */ |
215 | } | 215 | } |
216 | 216 | ||
217 | /* | 217 | /* |
218 | * Форма обратной связе в хедере | 218 | * Форма обратной связе в хедере |
219 | */ | 219 | */ |
220 | public function header_form(FooterFeedbackRequest $request) { | 220 | public function header_form(FooterFeedbackRequest $request) { |
221 | $RentTorg = Contact::query()->limit(1)->get(); | 221 | $RentTorg = Contact::query()->limit(1)->get(); |
222 | $MailBD = new ModelMailFeedback(); | 222 | $MailBD = new ModelMailFeedback(); |
223 | $MailBD->to = 'Администрации сайта'; | 223 | $MailBD->to = 'Администрации сайта'; |
224 | $MailBD->from = $request->TelephoneUser; | 224 | $MailBD->from = $request->TelephoneUser; |
225 | $MailBD->subject = "Пользователь <".$request->NameUser.">"; | 225 | $MailBD->subject = "Пользователь <".$request->NameUser.">"; |
226 | $MailBD->form = 'Форма в заголовке сайта'; | 226 | $MailBD->form = 'Форма в заголовке сайта'; |
227 | $MailBD->text = "От пользователя: ".$request->NameUser." Сообщение: Заказываю обратный звонок"; | 227 | $MailBD->text = "От пользователя: ".$request->NameUser." Сообщение: Заказываю обратный звонок"; |
228 | $MailBD->save(); | 228 | $MailBD->save(); |
229 | } | 229 | } |
230 | 230 | ||
231 | /* | ||
232 | * Форма записаться на просмотр | ||
233 | */ | ||
231 | public function rec_view_form(FooterFeedbackRequest $request) { | 234 | public function rec_view_form(FooterFeedbackRequest $request) { |
232 | $RentTorg = Contact::query()->limit(1)->get(); | 235 | $RentTorg = Contact::query()->limit(1)->get(); |
233 | $MailBD = new ModelMailFeedback(); | 236 | $MailBD = new ModelMailFeedback(); |
234 | $MailBD->to = 'Администрации сайта'; | 237 | $MailBD->to = 'Администрации сайта'; |
235 | $MailBD->from = $request->TelephoneUser; | 238 | $MailBD->from = $request->TelephoneUser; |
236 | $MailBD->subject = "Пользователь <".$request->NameUser.">"; | 239 | $MailBD->subject = "Пользователь <".$request->NameUser.">"; |
237 | $MailBD->form = 'Форма записи на просмотр'; | 240 | $MailBD->form = 'Форма записи на просмотр'; |
238 | $MailBD->text = "От пользователя: ".$request->NameUser." Сообщение: Заказываю просмотр офиса"; | 241 | $MailBD->text = "От пользователя: ".$request->NameUser." Сообщение: Заказываю просмотр офиса"; |
242 | $MailBD->text .= "Адрес офиса-объекта: ".url()->previous()." "; | ||
239 | $MailBD->save(); | 243 | $MailBD->save(); |
240 | } | 244 | } |
241 | 245 | ||
242 | /* | 246 | /* |
243 | * Форма обратной связи на странице "Контакты" | 247 | * Форма обратной связи на странице "Контакты" |
244 | */ | 248 | */ |
245 | public function page_contact_form(FooterFeedbackRequest $request) { | 249 | public function page_contact_form(FooterFeedbackRequest $request) { |
246 | $RentTorg = Contact::query()->limit(1)->get(); | 250 | $RentTorg = Contact::query()->limit(1)->get(); |
247 | $MailBD = new ModelMailFeedback(); | 251 | $MailBD = new ModelMailFeedback(); |
248 | $MailBD->to = 'Администрации сайта'; | 252 | $MailBD->to = 'Администрации сайта'; |
249 | $MailBD->from = $request->TelephoneUser; | 253 | $MailBD->from = $request->TelephoneUser; |
250 | $MailBD->subject = "Пользователь <".$request->NameUser."> Компания <".$request->NameCompany.">"; | 254 | $MailBD->subject = "Пользователь <".$request->NameUser."> Компания <".$request->NameCompany.">"; |
251 | $MailBD->form = 'Форма на странице "Контакты"'; | 255 | $MailBD->form = 'Форма на странице "Контакты"'; |
252 | $MailBD->text = "От пользователя: ".$request->NameUser."Телефон: ".$request->TelephoneUser." Почта: <".$request->EmailUser."> Сообщение:".$request->TextUser; | 256 | $MailBD->text = "От пользователя: ".$request->NameUser."Телефон: ".$request->TelephoneUser." Почта: <".$request->EmailUser."> Сообщение:".$request->TextUser; |
253 | $MailBD->save(); | 257 | $MailBD->save(); |
254 | } | 258 | } |
255 | /* | 259 | /* |
256 | * Форма обратной связи по емайлу | 260 | * Форма обратной связи по емайлу |
257 | */ | 261 | */ |
258 | public function email_form(EmailRequest $request) { | 262 | public function email_form(EmailRequest $request) { |
259 | $RentTorg = Contact::query()->limit(1)->get(); | 263 | $RentTorg = Contact::query()->limit(1)->get(); |
260 | $MailBD = new ModelMailFeedback(); | 264 | $MailBD = new ModelMailFeedback(); |
261 | $MailBD->to = 'Администрации сайта'; | 265 | $MailBD->to = 'Администрации сайта'; |
262 | $MailBD->from = $request->EmailUser; | 266 | $MailBD->from = $request->EmailUser; |
263 | $MailBD->subject = "Пользователь <".$request->EmailUser.">"; | 267 | $MailBD->subject = "Пользователь <".$request->EmailUser.">"; |
264 | $MailBD->form = 'Форма обратной связи по Email'; | 268 | $MailBD->form = 'Форма обратной связи по Email'; |
265 | $MailBD->text = "От почты: ".$request->EmailUser." Сообщение: Отправить на данную почту предложения RentTorg"; | 269 | $MailBD->text = "От почты: ".$request->EmailUser." Сообщение: Отправить на данную почту предложения RentTorg"; |
266 | $MailBD->save(); | 270 | $MailBD->save(); |
267 | //dd('Email form'); | 271 | //dd('Email form'); |
268 | return redirect()->route('index'); | 272 | return redirect()->route('index'); |
269 | } | 273 | } |
270 | 274 | ||
271 | /* | 275 | /* |
272 | * Избранное | 276 | * Избранное |
273 | */ | 277 | */ |
274 | public function Favorite(Request $request) { | 278 | public function Favorite(Request $request) { |
275 | if (empty($_COOKIE['favorite_house'])) { | 279 | if (empty($_COOKIE['favorite_house'])) { |
276 | $Arr = Array(); | 280 | $Arr = Array(); |
277 | } else { | 281 | } else { |
278 | $Arr = json_decode($_COOKIE['favorite_house'], true); | 282 | $Arr = json_decode($_COOKIE['favorite_house'], true); |
279 | } | 283 | } |
280 | if (!empty($Arr) && is_array($Arr)) { | 284 | if (!empty($Arr) && is_array($Arr)) { |
281 | $houses = House::with('areas')->whereIn('id', $Arr); | 285 | $houses = House::with('areas')->whereIn('id', $Arr); |
282 | 286 | ||
283 | if (isset($request->sort_price)) { | 287 | if (isset($request->sort_price)) { |
284 | switch ($request->sort_price) { | 288 | switch ($request->sort_price) { |
285 | case 1: $houses = $houses->orderBy('price');break; | 289 | case 1: $houses = $houses->orderBy('price');break; |
286 | case 2: $houses = $houses->orderByDesc('price');break; | 290 | case 2: $houses = $houses->orderByDesc('price');break; |
287 | } | 291 | } |
288 | switch ($request->sort_new) { | 292 | switch ($request->sort_new) { |
289 | case 1: $houses = $houses->orderByDesc('created_at');break; | 293 | case 1: $houses = $houses->orderByDesc('created_at');break; |
290 | case 2: $houses = $houses->orderBy('created_at');break; | 294 | case 2: $houses = $houses->orderBy('created_at');break; |
291 | } | 295 | } |
292 | switch ($request->sort_area) { | 296 | switch ($request->sort_area) { |
293 | case 1: $houses = $houses->orderByDesc('area');break; | 297 | case 1: $houses = $houses->orderByDesc('area');break; |
294 | case 2: $houses = $houses->orderBy('area');break; | 298 | case 2: $houses = $houses->orderBy('area');break; |
295 | } | 299 | } |
296 | 300 | ||
297 | } else { | 301 | } else { |
298 | $houses = $houses->orderBy('price')-> | 302 | $houses = $houses->orderBy('price')-> |
299 | orderByDesc('created_at')-> | 303 | orderByDesc('created_at')-> |
300 | orderByDesc('area'); | 304 | orderByDesc('area'); |
301 | } | 305 | } |
302 | 306 | ||
303 | $houses = $houses->paginate(4); | 307 | $houses = $houses->paginate(4); |
304 | 308 | ||
305 | if ($request->ajax()) { | 309 | if ($request->ajax()) { |
306 | return view('ajax.complex.favorite', compact('houses')); | 310 | return view('ajax.complex.favorite', compact('houses')); |
307 | } | 311 | } |
308 | 312 | ||
309 | return view('favorite_data', compact('houses')); | 313 | return view('favorite_data', compact('houses')); |
310 | } else { | 314 | } else { |
311 | return view('favorite', compact('Arr')); | 315 | return view('favorite', compact('Arr')); |
312 | } | 316 | } |
313 | 317 | ||
314 | 318 | ||
315 | } | 319 | } |
316 | 320 | ||
317 | /* | 321 | /* |
318 | * Категории каталога Аренда/Продажа/Бизнес | 322 | * Категории каталога Аренда/Продажа/Бизнес |
319 | */ | 323 | */ |
320 | public function Category($cat, Request $request) { | 324 | public function Category($cat, Request $request) { |
321 | switch ($cat) { | 325 | switch ($cat) { |
322 | case 'arenda': | 326 | case 'arenda': |
323 | $title = "Аренда торговых помещениий"; | 327 | $title = "Аренда торговых помещениий"; |
324 | $format_house = 'Аренда'; | 328 | $format_house = 'Аренда'; |
325 | break; | 329 | break; |
326 | case 'sale': | 330 | case 'sale': |
327 | $title = "Продажа торговых помещений"; | 331 | $title = "Продажа торговых помещений"; |
328 | $format_house = 'Продажа'; | 332 | $format_house = 'Продажа'; |
329 | break; | 333 | break; |
330 | case 'bussiness': | 334 | case 'bussiness': |
331 | $title = "Арендый бизнес"; | 335 | $title = "Арендый бизнес"; |
332 | $format_house = 'Бизнес'; | 336 | $format_house = 'Бизнес'; |
333 | break; | 337 | break; |
334 | default: | 338 | default: |
335 | $title = "Аренда торговых помещениий"; | 339 | $title = "Аренда торговых помещениий"; |
336 | $format_house = 'Аренда'; | 340 | $format_house = 'Аренда'; |
337 | break; | 341 | break; |
338 | } | 342 | } |
339 | 343 | ||
340 | $houses = House::with('areas')-> | 344 | $houses = House::with('areas')-> |
341 | where('format_house', '=', $format_house); | 345 | where('format_house', '=', $format_house); |
342 | //->appends(request()->query()); | 346 | //->appends(request()->query()); |
343 | 347 | ||
344 | if (!empty($request->area)) { | 348 | if (!empty($request->area)) { |
345 | $houses = $houses->where('area_id', '=', $request->area); | 349 | $houses = $houses->where('area_id', '=', $request->area); |
346 | } | 350 | } |
347 | // условия поиска по типу недвижимости | 351 | // условия поиска по типу недвижимости |
348 | if (!empty($request->type_area)) { | 352 | if (!empty($request->type_area)) { |
349 | $houses = $houses->where('type_area_id', '=', $request->type_area); | 353 | $houses = $houses->where('type_area_id', '=', $request->type_area); |
350 | } | 354 | } |
351 | // условия поиска по формату недвижимости | 355 | // условия поиска по формату недвижимости |
352 | if (!empty($request->format_area)) { | 356 | if (!empty($request->format_area)) { |
353 | $houses = $houses->where('format_area_id', '=', $request->format_area); | 357 | $houses = $houses->where('format_area_id', '=', $request->format_area); |
354 | } | 358 | } |
355 | // условия поиска по площади - минимальная площадь | 359 | // условия поиска по площади - минимальная площадь |
356 | if (!empty($request->area_m2_min)) { | 360 | if (!empty($request->area_m2_min)) { |
357 | $houses = $houses->where('area', '>', $request->area_m2_min); | 361 | $houses = $houses->where('area', '>', $request->area_m2_min); |
358 | } | 362 | } |
359 | // условия поиска по площади - максимальная площадь | 363 | // условия поиска по площади - максимальная площадь |
360 | if (!empty($request->area_m2_max)) { | 364 | if (!empty($request->area_m2_max)) { |
361 | $houses = $houses->where('area', '<', $request->area_m2_max); | 365 | $houses = $houses->where('area', '<', $request->area_m2_max); |
362 | } | 366 | } |
363 | // условия поиска по цене - минимальная цена | 367 | // условия поиска по цене - минимальная цена |
364 | if (!empty($request->price_min)) { | 368 | if (!empty($request->price_min)) { |
365 | $houses = $houses->where('price', '>', $request->price_min); | 369 | $houses = $houses->where('price', '>', $request->price_min); |
366 | } | 370 | } |
367 | // условия поиска по цене - максимальная цена | 371 | // условия поиска по цене - максимальная цена |
368 | if (!empty($request->price_max)) { | 372 | if (!empty($request->price_max)) { |
369 | $houses = $houses->where('price', '<', $request->price_max); | 373 | $houses = $houses->where('price', '<', $request->price_max); |
370 | } | 374 | } |
371 | // условия поиска по адресу | 375 | // условия поиска по адресу |
372 | if (!empty($request->address)) { | 376 | if (!empty($request->address)) { |
373 | $houses = $houses->where('address', 'LIKE', "%".$request->address."%"); | 377 | $houses = $houses->where('address', 'LIKE', "%".$request->address."%"); |
374 | } | 378 | } |
375 | 379 | ||
376 | if (isset($request->sort_price)) { | 380 | if (isset($request->sort_price)) { |
377 | switch ($request->sort_price) { | 381 | switch ($request->sort_price) { |
378 | case 1: $houses = $houses->orderBy('price');break; | 382 | case 1: $houses = $houses->orderBy('price');break; |
379 | case 2: $houses = $houses->orderByDesc('price');break; | 383 | case 2: $houses = $houses->orderByDesc('price');break; |
380 | } | 384 | } |
381 | switch ($request->sort_new) { | 385 | switch ($request->sort_new) { |
382 | case 1: $houses = $houses->orderByDesc('created_at');break; | 386 | case 1: $houses = $houses->orderByDesc('created_at');break; |
383 | case 2: $houses = $houses->orderBy('created_at');break; | 387 | case 2: $houses = $houses->orderBy('created_at');break; |
384 | } | 388 | } |
385 | switch ($request->sort_area) { | 389 | switch ($request->sort_area) { |
386 | case 1: $houses = $houses->orderByDesc('area');break; | 390 | case 1: $houses = $houses->orderByDesc('area');break; |
387 | case 2: $houses = $houses->orderBy('area');break; | 391 | case 2: $houses = $houses->orderBy('area');break; |
388 | } | 392 | } |
389 | 393 | ||
390 | } else { | 394 | } else { |
391 | $houses = $houses->orderBy('price')-> | 395 | $houses = $houses->orderBy('price')-> |
392 | orderByDesc('created_at')-> | 396 | orderByDesc('created_at')-> |
393 | orderByDesc('area'); | 397 | orderByDesc('area'); |
394 | } | 398 | } |
395 | 399 | ||
396 | $houses = $houses->paginate(4); | 400 | $houses = $houses->paginate(4); |
397 | 401 | ||
398 | if ($request->ajax()) { | 402 | if ($request->ajax()) { |
399 | return view('ajax.complex.category', compact('houses')); | 403 | return view('ajax.complex.category', compact('houses')); |
400 | } | 404 | } |
401 | 405 | ||
402 | return view('category_catalog', compact('title', 'cat', 'houses')); | 406 | return view('category_catalog', compact('title', 'cat', 'houses')); |
403 | } | 407 | } |
404 | 408 | ||
405 | 409 | ||
406 | /* | 410 | /* |
407 | * Каталог | 411 | * Каталог |
408 | */ | 412 | */ |
409 | public function Catalog(Request $request) { | 413 | public function Catalog(Request $request) { |
410 | 414 | ||
411 | //////////раздел аренда///////////////////////////////////////////////////////////////// | 415 | //////////раздел аренда///////////////////////////////////////////////////////////////// |
412 | $house_arenda = House::with('areas')-> | 416 | $house_arenda = House::with('areas')-> |
413 | where('format_house', '=', 'Аренда'); | 417 | where('format_house', '=', 'Аренда'); |
414 | // условия поиска по объектам комплексов | 418 | // условия поиска по объектам комплексов |
415 | if (!empty($request->area)) { | 419 | if (!empty($request->area)) { |
416 | $house_arenda = $house_arenda->where('area_id', '=', $request->area); | 420 | $house_arenda = $house_arenda->where('area_id', '=', $request->area); |
417 | } | 421 | } |
418 | // условия поиска по типу недвижимости | 422 | // условия поиска по типу недвижимости |
419 | if (!empty($request->type_area)) { | 423 | if (!empty($request->type_area)) { |
420 | $house_arenda = $house_arenda->where('type_area_id', '=', $request->type_area); | 424 | $house_arenda = $house_arenda->where('type_area_id', '=', $request->type_area); |
421 | } | 425 | } |
422 | // условия поиска по формату недвижимости | 426 | // условия поиска по формату недвижимости |
423 | if (!empty($request->format_area)) { | 427 | if (!empty($request->format_area)) { |
424 | $house_arenda = $house_arenda->where('format_area_id', '=', $request->format_area); | 428 | $house_arenda = $house_arenda->where('format_area_id', '=', $request->format_area); |
425 | } | 429 | } |
426 | // условия поиска по площади - минимальная площадь | 430 | // условия поиска по площади - минимальная площадь |
427 | if (!empty($request->area_m2_min)) { | 431 | if (!empty($request->area_m2_min)) { |
428 | $house_arenda = $house_arenda->where('area', '>', $request->area_m2_min); | 432 | $house_arenda = $house_arenda->where('area', '>', $request->area_m2_min); |
429 | } | 433 | } |
430 | // условия поиска по площади - максимальная площадь | 434 | // условия поиска по площади - максимальная площадь |
431 | if (!empty($request->area_m2_max)) { | 435 | if (!empty($request->area_m2_max)) { |
432 | $house_arenda = $house_arenda->where('area', '<', $request->area_m2_max); | 436 | $house_arenda = $house_arenda->where('area', '<', $request->area_m2_max); |
433 | } | 437 | } |
434 | // условия поиска по цене - минимальная цена | 438 | // условия поиска по цене - минимальная цена |
435 | if (!empty($request->price_min)) { | 439 | if (!empty($request->price_min)) { |
436 | $house_arenda = $house_arenda->where('price', '>', $request->price_min); | 440 | $house_arenda = $house_arenda->where('price', '>', $request->price_min); |
437 | } | 441 | } |
438 | // условия поиска по цене - максимальная цена | 442 | // условия поиска по цене - максимальная цена |
439 | if (!empty($request->price_max)) { | 443 | if (!empty($request->price_max)) { |
440 | $house_arenda = $house_arenda->where('price', '<', $request->price_max); | 444 | $house_arenda = $house_arenda->where('price', '<', $request->price_max); |
441 | } | 445 | } |
442 | // условия поиска по адресу | 446 | // условия поиска по адресу |
443 | if (!empty($request->address)) { | 447 | if (!empty($request->address)) { |
444 | $house_arenda = $house_arenda->where('address', 'LIKE', "%".$request->address."%"); | 448 | $house_arenda = $house_arenda->where('address', 'LIKE', "%".$request->address."%"); |
445 | } | 449 | } |
446 | 450 | ||
447 | if ($request->view == 'arenda') { | 451 | if ($request->view == 'arenda') { |
448 | switch ($request->sort_price) { | 452 | switch ($request->sort_price) { |
449 | case 1: $house_arenda = $house_arenda->orderBy('price');break; | 453 | case 1: $house_arenda = $house_arenda->orderBy('price');break; |
450 | case 2: $house_arenda = $house_arenda->orderByDesc('price');break; | 454 | case 2: $house_arenda = $house_arenda->orderByDesc('price');break; |
451 | } | 455 | } |
452 | switch ($request->sort_new) { | 456 | switch ($request->sort_new) { |
453 | case 1: $house_arenda = $house_arenda->orderByDesc('created_at');break; | 457 | case 1: $house_arenda = $house_arenda->orderByDesc('created_at');break; |
454 | case 2: $house_arenda = $house_arenda->orderBy('created_at');break; | 458 | case 2: $house_arenda = $house_arenda->orderBy('created_at');break; |
455 | } | 459 | } |
456 | switch ($request->sort_area) { | 460 | switch ($request->sort_area) { |
457 | case 1: $house_arenda = $house_arenda->orderByDesc('area')->get();break; | 461 | case 1: $house_arenda = $house_arenda->orderByDesc('area')->get();break; |
458 | case 2: $house_arenda = $house_arenda->orderBy('area')->get();break; | 462 | case 2: $house_arenda = $house_arenda->orderBy('area')->get();break; |
459 | } | 463 | } |
460 | } else { | 464 | } else { |
461 | $house_arenda = $house_arenda->orderBy('price')-> | 465 | $house_arenda = $house_arenda->orderBy('price')-> |
462 | orderByDesc('created_at')-> | 466 | orderByDesc('created_at')-> |
463 | orderByDesc('area')->get(); | 467 | orderByDesc('area')->get(); |
464 | } | 468 | } |
465 | 469 | ||
466 | ////////раздел продажа////////////////////////////////////////////////////////////////// | 470 | ////////раздел продажа////////////////////////////////////////////////////////////////// |
467 | $house_prodaja = House::with('areas')-> | 471 | $house_prodaja = House::with('areas')-> |
468 | where('format_house', '=', 'Продажа'); | 472 | where('format_house', '=', 'Продажа'); |
469 | 473 | ||
470 | // условия поиска по объектам комплексов | 474 | // условия поиска по объектам комплексов |
471 | if (!empty($request->area)) { | 475 | if (!empty($request->area)) { |
472 | $house_prodaja = $house_prodaja->where('area_id', '=', $request->area); | 476 | $house_prodaja = $house_prodaja->where('area_id', '=', $request->area); |
473 | } | 477 | } |
474 | // условия поиска по типу недвижимости | 478 | // условия поиска по типу недвижимости |
475 | if (!empty($request->type_area)) { | 479 | if (!empty($request->type_area)) { |
476 | $house_prodaja = $house_prodaja->where('type_area_id', '=', $request->type_area); | 480 | $house_prodaja = $house_prodaja->where('type_area_id', '=', $request->type_area); |
477 | } | 481 | } |
478 | // условия поиска по формату недвижимости | 482 | // условия поиска по формату недвижимости |
479 | if (!empty($request->format_area)) { | 483 | if (!empty($request->format_area)) { |
480 | $house_prodaja = $house_prodaja->where('format_area_id', '=', $request->format_area); | 484 | $house_prodaja = $house_prodaja->where('format_area_id', '=', $request->format_area); |
481 | } | 485 | } |
482 | // условия поиска по площади - минимальная площадь | 486 | // условия поиска по площади - минимальная площадь |
483 | if (!empty($request->area_m2_min)) { | 487 | if (!empty($request->area_m2_min)) { |
484 | $house_prodaja = $house_prodaja->where('area', '>', $request->area_m2_min); | 488 | $house_prodaja = $house_prodaja->where('area', '>', $request->area_m2_min); |
485 | } | 489 | } |
486 | // условия поиска по площади - максимальная площадь | 490 | // условия поиска по площади - максимальная площадь |
487 | if (!empty($request->area_m2_max)) { | 491 | if (!empty($request->area_m2_max)) { |
488 | $house_prodaja = $house_prodaja->where('area', '<', $request->area_m2_max); | 492 | $house_prodaja = $house_prodaja->where('area', '<', $request->area_m2_max); |
489 | } | 493 | } |
490 | // условия поиска по цене - минимальная цена | 494 | // условия поиска по цене - минимальная цена |
491 | if (!empty($request->price_min)) { | 495 | if (!empty($request->price_min)) { |
492 | $house_prodaja = $house_prodaja->where('price', '>', $request->price_min); | 496 | $house_prodaja = $house_prodaja->where('price', '>', $request->price_min); |
493 | } | 497 | } |
494 | // условия поиска по цене - максимальная цена | 498 | // условия поиска по цене - максимальная цена |
495 | if (!empty($request->price_max)) { | 499 | if (!empty($request->price_max)) { |
496 | $house_prodaja = $house_prodaja->where('price', '<', $request->price_max); | 500 | $house_prodaja = $house_prodaja->where('price', '<', $request->price_max); |
497 | } | 501 | } |
498 | // условия поиска по адресу | 502 | // условия поиска по адресу |
499 | if (!empty($request->address)) { | 503 | if (!empty($request->address)) { |
500 | $house_prodaja = $house_prodaja->where('address', 'LIKE', "%".$request->address."%"); | 504 | $house_prodaja = $house_prodaja->where('address', 'LIKE', "%".$request->address."%"); |
501 | } | 505 | } |
502 | 506 | ||
503 | if ($request->view == 'prodaja') { | 507 | if ($request->view == 'prodaja') { |
504 | switch ($request->sort_price) { | 508 | switch ($request->sort_price) { |
505 | case 1: $house_prodaja = $house_prodaja->orderBy('price');break; | 509 | case 1: $house_prodaja = $house_prodaja->orderBy('price');break; |
506 | case 2: $house_prodaja = $house_prodaja->orderByDesc('price');break; | 510 | case 2: $house_prodaja = $house_prodaja->orderByDesc('price');break; |
507 | } | 511 | } |
508 | switch ($request->sort_new) { | 512 | switch ($request->sort_new) { |
509 | case 1: $house_prodaja = $house_prodaja->orderByDesc('created_at');break; | 513 | case 1: $house_prodaja = $house_prodaja->orderByDesc('created_at');break; |
510 | case 2: $house_prodaja = $house_prodaja->orderBy('created_at');break; | 514 | case 2: $house_prodaja = $house_prodaja->orderBy('created_at');break; |
511 | } | 515 | } |
512 | switch ($request->sort_area) { | 516 | switch ($request->sort_area) { |
513 | case 1: $house_prodaja = $house_prodaja->orderByDesc('area')->get();break; | 517 | case 1: $house_prodaja = $house_prodaja->orderByDesc('area')->get();break; |
514 | case 2: $house_prodaja = $house_prodaja->orderBy('area')->get();break; | 518 | case 2: $house_prodaja = $house_prodaja->orderBy('area')->get();break; |
515 | } | 519 | } |
516 | } else { | 520 | } else { |
517 | $house_prodaja = $house_prodaja->orderBy('price')-> | 521 | $house_prodaja = $house_prodaja->orderBy('price')-> |
518 | orderByDesc('created_at')-> | 522 | orderByDesc('created_at')-> |
519 | orderByDesc('area')->get(); | 523 | orderByDesc('area')->get(); |
520 | } | 524 | } |
521 | 525 | ||
522 | //////////////// Раздел бизнеса///////////////////////////////////////////////////////// | 526 | //////////////// Раздел бизнеса///////////////////////////////////////////////////////// |
523 | $house_bissnes = House::with('areas')-> | 527 | $house_bissnes = House::with('areas')-> |
524 | where('format_house', '=', 'Бизнес'); | 528 | where('format_house', '=', 'Бизнес'); |
525 | //orderByDesc('created_at')->get(); | 529 | //orderByDesc('created_at')->get(); |
526 | 530 | ||
527 | // условия поиска по объектам комплексов | 531 | // условия поиска по объектам комплексов |
528 | if (!empty($request->area)) { | 532 | if (!empty($request->area)) { |
529 | $house_bissnes = $house_bissnes->where('area_id', '=', $request->area); | 533 | $house_bissnes = $house_bissnes->where('area_id', '=', $request->area); |
530 | } | 534 | } |
531 | // условия поиска по типу недвижимости | 535 | // условия поиска по типу недвижимости |
532 | if (!empty($request->type_area)) { | 536 | if (!empty($request->type_area)) { |
533 | $house_bissnes = $house_bissnes->where('type_area_id', '=', $request->type_area); | 537 | $house_bissnes = $house_bissnes->where('type_area_id', '=', $request->type_area); |
534 | } | 538 | } |
535 | // условия поиска по формату недвижимости | 539 | // условия поиска по формату недвижимости |
536 | if (!empty($request->format_area)) { | 540 | if (!empty($request->format_area)) { |
537 | $house_bissnes = $house_bissnes->where('format_area_id', '=', $request->format_area); | 541 | $house_bissnes = $house_bissnes->where('format_area_id', '=', $request->format_area); |
538 | } | 542 | } |
539 | // условия поиска по площади - минимальная площадь | 543 | // условия поиска по площади - минимальная площадь |
540 | if (!empty($request->area_m2_min)) { | 544 | if (!empty($request->area_m2_min)) { |
541 | $house_bissnes = $house_bissnes->where('area', '>', $request->area_m2_min); | 545 | $house_bissnes = $house_bissnes->where('area', '>', $request->area_m2_min); |
542 | } | 546 | } |
543 | // условия поиска по площади - максимальная площадь | 547 | // условия поиска по площади - максимальная площадь |
544 | if (!empty($request->area_m2_max)) { | 548 | if (!empty($request->area_m2_max)) { |
545 | $house_bissnes = $house_bissnes->where('area', '<', $request->area_m2_max); | 549 | $house_bissnes = $house_bissnes->where('area', '<', $request->area_m2_max); |
546 | } | 550 | } |
547 | // условия поиска по цене - минимальная цена | 551 | // условия поиска по цене - минимальная цена |
548 | if (!empty($request->price_min)) { | 552 | if (!empty($request->price_min)) { |
549 | $house_bissnes = $house_bissnes->where('price', '>', $request->price_min); | 553 | $house_bissnes = $house_bissnes->where('price', '>', $request->price_min); |
550 | } | 554 | } |
551 | // условия поиска по цене - максимальная цена | 555 | // условия поиска по цене - максимальная цена |
552 | if (!empty($request->price_max)) { | 556 | if (!empty($request->price_max)) { |
553 | $house_bissnes = $house_bissnes->where('price', '<', $request->price_max); | 557 | $house_bissnes = $house_bissnes->where('price', '<', $request->price_max); |
554 | } | 558 | } |
555 | // условия поиска по адресу | 559 | // условия поиска по адресу |
556 | if (!empty($request->address)) { | 560 | if (!empty($request->address)) { |
557 | $house_bissnes = $house_bissnes->where('address', 'LIKE', "%".$request->address."%"); | 561 | $house_bissnes = $house_bissnes->where('address', 'LIKE', "%".$request->address."%"); |
558 | } | 562 | } |
559 | 563 | ||
560 | if ($request->view == 'bissnes') { | 564 | if ($request->view == 'bissnes') { |
561 | switch ($request->sort_price) { | 565 | switch ($request->sort_price) { |
562 | case 1: $house_bissnes = $house_bissnes->orderBy('price');break; | 566 | case 1: $house_bissnes = $house_bissnes->orderBy('price');break; |
563 | case 2: $house_bissnes = $house_bissnes->orderByDesc('price');break; | 567 | case 2: $house_bissnes = $house_bissnes->orderByDesc('price');break; |
564 | } | 568 | } |
565 | switch ($request->sort_new) { | 569 | switch ($request->sort_new) { |
566 | case 1: $house_bissnes = $house_bissnes->orderByDesc('created_at');break; | 570 | case 1: $house_bissnes = $house_bissnes->orderByDesc('created_at');break; |
567 | case 2: $house_bissnes = $house_bissnes->orderBy('created_at');break; | 571 | case 2: $house_bissnes = $house_bissnes->orderBy('created_at');break; |
568 | } | 572 | } |
569 | switch ($request->sort_area) { | 573 | switch ($request->sort_area) { |
570 | case 1: $house_bissnes = $house_bissnes->orderByDesc('area')->get();break; | 574 | case 1: $house_bissnes = $house_bissnes->orderByDesc('area')->get();break; |
571 | case 2: $house_bissnes = $house_bissnes->orderBy('area')->get();break; | 575 | case 2: $house_bissnes = $house_bissnes->orderBy('area')->get();break; |
572 | } | 576 | } |
573 | } else { | 577 | } else { |
574 | $house_bissnes = $house_bissnes->orderBy('price')-> | 578 | $house_bissnes = $house_bissnes->orderBy('price')-> |
575 | orderByDesc('created_at')-> | 579 | orderByDesc('created_at')-> |
576 | orderByDesc('area')->get(); | 580 | orderByDesc('area')->get(); |
577 | } | 581 | } |
578 | 582 | ||
579 | //////////раздел арендованные////////////////////////////////////////////////////////// | 583 | //////////раздел арендованные////////////////////////////////////////////////////////// |
580 | $house_arendovannie = House::with('areas')-> | 584 | $house_arendovannie = House::with('areas')-> |
581 | where('format_house', '=', 'Арендованные'); | 585 | where('format_house', '=', 'Арендованные'); |
582 | //orderByDesc('created_at')->get(); | 586 | //orderByDesc('created_at')->get(); |
583 | 587 | ||
584 | // условия поиска по объектам комплексов | 588 | // условия поиска по объектам комплексов |
585 | if (!empty($request->area)) { | 589 | if (!empty($request->area)) { |
586 | $house_arendovannie = $house_arendovannie->where('area_id', '=', $request->area); | 590 | $house_arendovannie = $house_arendovannie->where('area_id', '=', $request->area); |
587 | } | 591 | } |
588 | // условия поиска по типу недвижимости | 592 | // условия поиска по типу недвижимости |
589 | if (!empty($request->type_area)) { | 593 | if (!empty($request->type_area)) { |
590 | $house_arendovannie = $house_arendovannie->where('type_area_id', '=', $request->type_area); | 594 | $house_arendovannie = $house_arendovannie->where('type_area_id', '=', $request->type_area); |
591 | } | 595 | } |
592 | // условия поиска по формату недвижимости | 596 | // условия поиска по формату недвижимости |
593 | if (!empty($request->format_area)) { | 597 | if (!empty($request->format_area)) { |
594 | $house_arendovannie = $house_arendovannie->where('format_area_id', '=', $request->format_area); | 598 | $house_arendovannie = $house_arendovannie->where('format_area_id', '=', $request->format_area); |
595 | } | 599 | } |
596 | // условия поиска по площади - минимальная площадь | 600 | // условия поиска по площади - минимальная площадь |
597 | if (!empty($request->area_m2_min)) { | 601 | if (!empty($request->area_m2_min)) { |
598 | $house_arendovannie = $house_arendovannie->where('area', '>', $request->area_m2_min); | 602 | $house_arendovannie = $house_arendovannie->where('area', '>', $request->area_m2_min); |
599 | } | 603 | } |
600 | // условия поиска по площади - максимальная площадь | 604 | // условия поиска по площади - максимальная площадь |
601 | if (!empty($request->area_m2_max)) { | 605 | if (!empty($request->area_m2_max)) { |
602 | $house_arendovannie = $house_arendovannie->where('area', '<', $request->area_m2_max); | 606 | $house_arendovannie = $house_arendovannie->where('area', '<', $request->area_m2_max); |
603 | } | 607 | } |
604 | // условия поиска по цене - минимальная цена | 608 | // условия поиска по цене - минимальная цена |
605 | if (!empty($request->price_min)) { | 609 | if (!empty($request->price_min)) { |
606 | $house_arendovannie = $house_arendovannie->where('price', '>', $request->price_min); | 610 | $house_arendovannie = $house_arendovannie->where('price', '>', $request->price_min); |
607 | } | 611 | } |
608 | // условия поиска по цене - максимальная цена | 612 | // условия поиска по цене - максимальная цена |
609 | if (!empty($request->price_max)) { | 613 | if (!empty($request->price_max)) { |
610 | $house_arendovannie = $house_arendovannie->where('price', '<', $request->price_max); | 614 | $house_arendovannie = $house_arendovannie->where('price', '<', $request->price_max); |
611 | } | 615 | } |
612 | // условия поиска по адресу | 616 | // условия поиска по адресу |
613 | if (!empty($request->address)) { | 617 | if (!empty($request->address)) { |
614 | $house_arendovannie = $house_arendovannie->where('address', 'LIKE', "%".$request->address."%"); | 618 | $house_arendovannie = $house_arendovannie->where('address', 'LIKE', "%".$request->address."%"); |
615 | } | 619 | } |
616 | 620 | ||
617 | if ($request->view == 'arendovannie') { | 621 | if ($request->view == 'arendovannie') { |
618 | switch ($request->sort_price) { | 622 | switch ($request->sort_price) { |
619 | case 1: $house_arendovannie = $house_arendovannie->orderBy('price');break; | 623 | case 1: $house_arendovannie = $house_arendovannie->orderBy('price');break; |
620 | case 2: $house_arendovannie = $house_arendovannie->orderByDesc('price');break; | 624 | case 2: $house_arendovannie = $house_arendovannie->orderByDesc('price');break; |
621 | } | 625 | } |
622 | switch ($request->sort_new) { | 626 | switch ($request->sort_new) { |
623 | case 1: $house_arendovannie = $house_arendovannie->orderByDesc('created_at');break; | 627 | case 1: $house_arendovannie = $house_arendovannie->orderByDesc('created_at');break; |
624 | case 2: $house_arendovannie = $house_arendovannie->orderBy('created_at');break; | 628 | case 2: $house_arendovannie = $house_arendovannie->orderBy('created_at');break; |
625 | } | 629 | } |
626 | switch ($request->sort_area) { | 630 | switch ($request->sort_area) { |
627 | case 1: $house_arendovannie = $house_arendovannie->orderByDesc('area')->get();break; | 631 | case 1: $house_arendovannie = $house_arendovannie->orderByDesc('area')->get();break; |
628 | case 2: $house_arendovannie = $house_arendovannie->orderBy('area')->get();break; | 632 | case 2: $house_arendovannie = $house_arendovannie->orderBy('area')->get();break; |
629 | } | 633 | } |
630 | } else { | 634 | } else { |
631 | $house_arendovannie = $house_arendovannie->orderBy('price')-> | 635 | $house_arendovannie = $house_arendovannie->orderBy('price')-> |
632 | orderByDesc('created_at')-> | 636 | orderByDesc('created_at')-> |
633 | orderByDesc('area')->get(); | 637 | orderByDesc('area')->get(); |
634 | } | 638 | } |
635 | 639 | ||
636 | if ($request->ajax()) { | 640 | if ($request->ajax()) { |
637 | switch($request->view) { | 641 | switch($request->view) { |
638 | case 'arenda': return view('ajax.complex.arenda', compact('house_arenda')); break; | 642 | case 'arenda': return view('ajax.complex.arenda', compact('house_arenda')); break; |
639 | case 'prodaja': return view('ajax.complex.prodaja', compact('house_prodaja'));break; | 643 | case 'prodaja': return view('ajax.complex.prodaja', compact('house_prodaja'));break; |
640 | case 'bissnes': return view('ajax.complex.bissnes', compact('house_bissnes')); break; | 644 | case 'bissnes': return view('ajax.complex.bissnes', compact('house_bissnes')); break; |
641 | case 'arendovannie': return view('ajax.complex.arendovannie', compact('house_arendovannie')); break; | 645 | case 'arendovannie': return view('ajax.complex.arendovannie', compact('house_arendovannie')); break; |
642 | } | 646 | } |
643 | } | 647 | } |
644 | if (session('message') == 'Искать') { | 648 | if (session('message') == 'Искать') { |
645 | session()->flash('message', 'Сброс'); | 649 | session()->flash('message', 'Сброс'); |
646 | } else { | 650 | } else { |
647 | session()->flash('message', 'Искать'); | 651 | session()->flash('message', 'Искать'); |
648 | } | 652 | } |
649 | 653 | ||
650 | if (empty($request)) { | 654 | if (empty($request)) { |
651 | session()->flash('message', 'Искать'); | 655 | session()->flash('message', 'Искать'); |
652 | } | 656 | } |
653 | 657 | ||
654 | return view('catalog', compact( | 658 | return view('catalog', compact( |
655 | 'house_arenda', | 659 | 'house_arenda', |
656 | 'house_prodaja', | 660 | 'house_prodaja', |
657 | 'house_bissnes', | 661 | 'house_bissnes', |
658 | 'house_arendovannie' | 662 | 'house_arendovannie' |
659 | )); | 663 | )); |
660 | 664 | ||
661 | 665 | ||
662 | } | 666 | } |
663 | 667 | ||
664 | /* | 668 | /* |
665 | * Новости | 669 | * Новости |
666 | */ | 670 | */ |
667 | public function News() { | 671 | public function News() { |
668 | //$news = News::orderByDesc('created_at')->limit(1)->paginate(); | 672 | //$news = News::orderByDesc('created_at')->limit(1)->paginate(); |
669 | $news_ = News::query()->orderByDesc('created_at')->paginate(4); | 673 | $news_ = News::query()->orderByDesc('created_at')->paginate(4); |
670 | return view('news', compact('news_')); | 674 | return view('news', compact('news_')); |
671 | } | 675 | } |
672 | 676 | ||
673 | /* | 677 | /* |
674 | * Контакты | 678 | * Контакты |
675 | */ | 679 | */ |
676 | public function Contact() { | 680 | public function Contact() { |
677 | return view('contact'); | 681 | return view('contact'); |
678 | } | 682 | } |
679 | 683 | ||
680 | /* | 684 | /* |
681 | * Карта объектов | 685 | * Карта объектов |
682 | */ | 686 | */ |
683 | public function MapsObj(Request $request) { | 687 | public function MapsObj(Request $request) { |
684 | //$houses = House::with('areas'); | 688 | //$houses = House::with('areas'); |
685 | //$houses = $houses->orderBy('id')->get(); | 689 | //$houses = $houses->orderBy('id')->get(); |
686 | $input = $request->all(); | 690 | $input = $request->all(); |
687 | 691 | ||
688 | $houses = House::with('areas'); | 692 | $houses = House::with('areas'); |
689 | if (empty($input)) { | 693 | if (empty($input)) { |
690 | 694 | ||
691 | } else { | 695 | } else { |
692 | 696 | ||
693 | // условия поиска по объектам комплексов | 697 | // условия поиска по объектам комплексов |
694 | if (!empty($request->area)) { | 698 | if (!empty($request->area)) { |
695 | $houses = $houses->where('area_id', '=', $request->area); | 699 | $houses = $houses->where('area_id', '=', $request->area); |
696 | } | 700 | } |
697 | // условия поиска по типу недвижимости | 701 | // условия поиска по типу недвижимости |
698 | if (!empty($request->type_area)) { | 702 | if (!empty($request->type_area)) { |
699 | $houses = $houses->where('type_area_id', '=', $request->type_area); | 703 | $houses = $houses->where('type_area_id', '=', $request->type_area); |
700 | } | 704 | } |
701 | // условия поиска по формату недвижимости | 705 | // условия поиска по формату недвижимости |
702 | if (!empty($request->format_area)) { | 706 | if (!empty($request->format_area)) { |
703 | $houses = $houses->where('format_area_id', '=', $request->format_area); | 707 | $houses = $houses->where('format_area_id', '=', $request->format_area); |
704 | } | 708 | } |
705 | // условия поиска по площади - минимальная площадь | 709 | // условия поиска по площади - минимальная площадь |
706 | if (!empty($request->area_m2_min)) { | 710 | if (!empty($request->area_m2_min)) { |
707 | $houses = $houses->where('area', '>', $request->area_m2_min); | 711 | $houses = $houses->where('area', '>', $request->area_m2_min); |
708 | } | 712 | } |
709 | // условия поиска по площади - максимальная площадь | 713 | // условия поиска по площади - максимальная площадь |
710 | if (!empty($request->area_m2_max)) { | 714 | if (!empty($request->area_m2_max)) { |
711 | $houses = $houses->where('area', '<', $request->area_m2_max); | 715 | $houses = $houses->where('area', '<', $request->area_m2_max); |
712 | } | 716 | } |
713 | // условия поиска по цене - минимальная цена | 717 | // условия поиска по цене - минимальная цена |
714 | if (!empty($request->price_min)) { | 718 | if (!empty($request->price_min)) { |
715 | $houses = $houses->where('price', '>', $request->price_min); | 719 | $houses = $houses->where('price', '>', $request->price_min); |
716 | } | 720 | } |
717 | // условия поиска по цене - максимальная цена | 721 | // условия поиска по цене - максимальная цена |
718 | if (!empty($request->price_max)) { | 722 | if (!empty($request->price_max)) { |
719 | $houses = $houses->where('price', '<', $request->price_max); | 723 | $houses = $houses->where('price', '<', $request->price_max); |
720 | } | 724 | } |
721 | // условия поиска по адресу | 725 | // условия поиска по адресу |
722 | if (!empty($request->address)) { | 726 | if (!empty($request->address)) { |
723 | $houses = $houses->where('address', 'LIKE', "%".$request->address."%"); | 727 | $houses = $houses->where('address', 'LIKE', "%".$request->address."%"); |
724 | } | 728 | } |
725 | } | 729 | } |
726 | 730 | ||
727 | $houses = $houses->orderByDesc('id')->get(); | 731 | $houses = $houses->orderByDesc('id')->get(); |
728 | 732 | ||
729 | $areas = Area::query()->orderBy('id')->get(); | 733 | $areas = Area::query()->orderBy('id')->get(); |
730 | 734 | ||
731 | return view('mapsobj', compact('areas', 'input', 'houses')); | 735 | return view('mapsobj', compact('areas', 'input', 'houses')); |
732 | } | 736 | } |
733 | 737 | ||
734 | /* | 738 | /* |
735 | * Посмотр конктретного предложение офиса | 739 | * Посмотр конктретного предложение офиса |
736 | */ | 740 | */ |
737 | public function Offer(House $house, Request $request) { | 741 | public function Offer(House $house, Request $request) { |
738 | $houses = House::with('areas'); | 742 | $houses = House::with('areas'); |
739 | $houses = $houses->where('type_area_id', '=', $house->typearea->id); | 743 | $houses = $houses->where('type_area_id', '=', $house->typearea->id); |
740 | $houses = $houses->where('format_house', '=', $house->format_house); | 744 | $houses = $houses->where('format_house', '=', $house->format_house); |
741 | $houses = $houses->orderByDesc('created_at')->limit(8)->get(); | 745 | $houses = $houses->orderByDesc('created_at')->limit(8)->get(); |
742 | 746 | ||
743 | //получение адреса страницы | 747 | //получение адреса страницы |
744 | $url = $request->url(); | 748 | $url = $request->url(); |
745 | // получение ip-адреса клиента | 749 | // получение ip-адреса клиента |
746 | $ip = RusDate::ip_addr_client(); | 750 | $ip = RusDate::ip_addr_client(); |
747 | 751 | ||
748 | //получение выборки данных из базы данных по данной странице | 752 | //получение выборки данных из базы данных по данной странице |
749 | $page_ = Page::query()->where('url', '=', "$url")-> | 753 | $page_ = Page::query()->where('url', '=', "$url")-> |
750 | orderBy('created_at')->limit(1)->get(); | 754 | orderBy('created_at')->limit(1)->get(); |
751 | 755 | ||
752 | //если интервал времени больше суток, то обнуляем счетчик | 756 | //если интервал времени больше суток, то обнуляем счетчик |
753 | if ($page_->count()) { | 757 | if ($page_->count()) { |
754 | $result = RusDate::interval_day($page_[0]->created_at); | 758 | $result = RusDate::interval_day($page_[0]->created_at); |
755 | if ($result) { | 759 | if ($result) { |
756 | DB::table('pages')->where('url', '=', "$url")->delete(); | 760 | DB::table('pages')->where('url', '=', "$url")->delete(); |
757 | } | 761 | } |
758 | } | 762 | } |
759 | // проверяем если в базе данных данный ip-адрес | 763 | // проверяем если в базе данных данный ip-адрес |
760 | $count_user = DB::table('pages')->where('ipaddress', '=', "$ip")-> | 764 | $count_user = DB::table('pages')->where('ipaddress', '=', "$ip")-> |
761 | where('url', '=', "$url")->get(); | 765 | where('url', '=', "$url")->get(); |
762 | // если есть, то обновляем дату просмотра | 766 | // если есть, то обновляем дату просмотра |
763 | if ($count_user->count() > 0) { | 767 | if ($count_user->count() > 0) { |
764 | DB::table('pages')->where('ipaddress', '=', "$ip")-> | 768 | DB::table('pages')->where('ipaddress', '=', "$ip")-> |
765 | where('url', '=', "$url")->update(['created_at' => date('Y-m-d H:i')]); | 769 | where('url', '=', "$url")->update(['created_at' => date('Y-m-d H:i')]); |
766 | } else { | 770 | } else { |
767 | // в противном случае добавляем новый ip В бд | 771 | // в противном случае добавляем новый ip В бд |
768 | $page = new Page(); | 772 | $page = new Page(); |
769 | $page->ipaddress = $ip; | 773 | $page->ipaddress = $ip; |
770 | $page->url = $url; | 774 | $page->url = $url; |
771 | $page->save(); | 775 | $page->save(); |
772 | } | 776 | } |
773 | 777 | ||
774 | // выводим количество пользователей гостей данной страницы | 778 | // выводим количество пользователей гостей данной страницы |
775 | $count_user = DB::table('pages')->where('url', '=', "$url")->get(); | 779 | $count_user = DB::table('pages')->where('url', '=', "$url")->get(); |
776 | return view('house.post', compact('house', 'houses', 'count_user')); | 780 | return view('house.post', compact('house', 'houses', 'count_user')); |
777 | } | 781 | } |
778 | 782 | ||
779 | /* | 783 | /* |
780 | * Просмотр детально конкретной новости | 784 | * Просмотр детально конкретной новости |
781 | */ | 785 | */ |
782 | public function DetailNew(News $news) { | 786 | public function DetailNew(News $news) { |
783 | $news_list = News::query()->orderByDesc('created_at')->limit(8)->get(); | 787 | $news_list = News::query()->orderByDesc('created_at')->limit(8)->get(); |
784 | return view('new.post', compact('news', 'news_list')); | 788 | return view('new.post', compact('news', 'news_list')); |
785 | } | 789 | } |
786 | } | 790 | } |
787 | 791 |
app/Providers/ComposerServiceProvider.php
1 | <?php | 1 | <?php |
2 | 2 | ||
3 | namespace App\Providers; | 3 | namespace App\Providers; |
4 | 4 | ||
5 | use App\Models\Area; | 5 | use App\Models\Area; |
6 | use App\Models\Contact; | 6 | use App\Models\Contact; |
7 | use App\Models\format_area; | 7 | use App\Models\format_area; |
8 | use App\Models\Tag; | 8 | use App\Models\Tag; |
9 | use App\Models\type_area; | 9 | use App\Models\type_area; |
10 | use Illuminate\Support\ServiceProvider; | 10 | use Illuminate\Support\ServiceProvider; |
11 | use Illuminate\Support\Facades\View; | 11 | use Illuminate\Support\Facades\View; |
12 | 12 | ||
13 | class ComposerServiceProvider extends ServiceProvider | 13 | class ComposerServiceProvider extends ServiceProvider |
14 | { | 14 | { |
15 | /** | 15 | /** |
16 | * Register services. | 16 | * Register services. |
17 | * | 17 | * |
18 | * @return void | 18 | * @return void |
19 | */ | 19 | */ |
20 | public function register() | 20 | public function register() |
21 | { | 21 | { |
22 | $views = ['part.filter.main','part.filter.catalog', 'part.filter.category', 'part.filter.mapsobj']; | 22 | $views = ['part.filter.main','part.filter.catalog', 'part.filter.category', 'part.filter.mapsobj']; |
23 | 23 | ||
24 | View::composer($views, | 24 | View::composer($views, |
25 | function($view) { | 25 | function($view) { |
26 | $items_type_area = type_area::all(); | 26 | $items_type_area = type_area::all(); |
27 | $items_format_area = format_area::all(); | 27 | $items_format_area = format_area::all(); |
28 | $items_area = Area::all(); | 28 | $items_area = Area::all(); |
29 | $view->with([ | 29 | $view->with([ |
30 | 'items_area' => $items_area, | 30 | 'items_area' => $items_area, |
31 | 'items_type_area' => $items_type_area, | 31 | 'items_type_area' => $items_type_area, |
32 | 'items_format_area' => $items_format_area, | 32 | 'items_format_area' => $items_format_area, |
33 | ]); | 33 | ]); |
34 | } | 34 | } |
35 | ); | 35 | ); |
36 | 36 | ||
37 | $views = ['layout.site', 'index', 'about']; | 37 | $views = ['layout.site', 'index', 'about', 'house.post', 'catalog', 'category_catalog']; |
38 | View::composer($views, function($view) { | 38 | View::composer($views, function($view) { |
39 | $view->with(['items_contact' => Contact::limit(1)->get()]); | 39 | $view->with(['items_contact' => Contact::limit(1)->get()]); |
40 | }); | 40 | }); |
41 | 41 | ||
42 | 42 | ||
43 | } | 43 | } |
44 | 44 | ||
45 | /** | 45 | /** |
46 | * Bootstrap services. | 46 | * Bootstrap services. |
47 | * | 47 | * |
48 | * @return void | 48 | * @return void |
49 | */ | 49 | */ |
50 | public function boot() | 50 | public function boot() |
51 | { | 51 | { |
52 | // | 52 | // |
53 | } | 53 | } |
54 | } | 54 | } |
55 | 55 |
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="<?=asset(Storage::url($house->foto_main))?>" width="100px"/> | 116 | <img src="<?=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="<?=asset(Storage::url($house->object_plan))?>" width="100px"/> | 228 | <img src="<?=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="<?=asset(Storage::url($house->floor_plan))?>" width="100px"/> | 238 | <img src="<?=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="<?=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/catalogs/elemhouse.blade.php
1 | <div class="swiper-slide"> | 1 | <div class="swiper-slide"> |
2 | <div class="card"> | 2 | <div class="card"> |
3 | <div class="card__top"> | 3 | <div class="card__top"> |
4 | @if (empty($house->foto_main)) | 4 | @if (empty($house->foto_main)) |
5 | 5 | ||
6 | @else | 6 | @else |
7 | <img src="{{ asset(Storage::url($house->foto_main)) }}" alt="{{ $house->title }}" loading="lazy"/> | 7 | <img src="{{ asset(Storage::url($house->foto_main)) }}" alt="{{ $house->title }}" loading="lazy"/> |
8 | @endif; | 8 | @endif; |
9 | 9 | ||
10 | <h3 class="card__title">{{$house->typearea->name_type }}</h3> | 10 | <h3 class="card__title">{{$house->typearea->name_type }}</h3> |
11 | <div class="card__labels"> | 11 | <div class="card__labels"> |
12 | <span class="card__label card__label-favorites js_card_favorites <?=\App\Classes\RusDate::selected_item($house->id);?>" data-val="{{$house->id}}" id="card_favorite{{$house->id}}" name="card_favorite{{$house->id}}"> | 12 | <span class="card__label card__label-favorites js_card_favorites <?=\App\Classes\RusDate::selected_item($house->id);?>" data-val="{{$house->id}}" id="card_favorite{{$house->id}}" name="card_favorite{{$house->id}}"> |
13 | <svg width="18" height="18"> | 13 | <svg width="18" height="18"> |
14 | <use xlink:href="{{ asset('images/sprite.svg#card-favorites-empty') }}"></use> | 14 | <use xlink:href="{{ asset('images/sprite.svg#card-favorites-empty') }}"></use> |
15 | </svg> | 15 | </svg> |
16 | <svg width="18" height="18"> | 16 | <svg width="18" height="18"> |
17 | <use xlink:href="{{ asset('images/sprite.svg#card-favorites') }}"></use> | 17 | <use xlink:href="{{ asset('images/sprite.svg#card-favorites') }}"></use> |
18 | </svg> | 18 | </svg> |
19 | </span> | 19 | </span> |
20 | <a class="card__label card__label-messenger" href="#"> | 20 | <a class="card__label card__label-messenger" href="tel:{{ $items_contact[0]->telephone }}"> |
21 | <svg width="25" height="25"> | 21 | <svg width="25" height="25"> |
22 | <use xlink:href="{{ asset('images/sprite.svg#card-messenger') }}"></use> | 22 | <use xlink:href="{{ asset('images/sprite.svg#card-messenger') }}"></use> |
23 | </svg></a></div> | 23 | </svg></a></div> |
24 | </div> | 24 | </div> |
25 | <div class="card__cnt"> | 25 | <div class="card__cnt"> |
26 | <div class="card__info"> | 26 | <div class="card__info"> |
27 | <address class="card__line card__line-complex">{{ $house->areas->name_area }}</address> | 27 | <address class="card__line card__line-complex">{{ $house->areas->name_area }}</address> |
28 | <address class="card__line">{{$house->metro}} ({{$house->description_metro }})<span style="background-color: #FFC955;"></span></address> | 28 | <address class="card__line">{{$house->metro}} ({{$house->description_metro }})<span style="background-color: #FFC955;"></span></address> |
29 | <address class="card__line">{{$house->address }}</address> | 29 | <address class="card__line">{{$house->address }}</address> |
30 | <div class="card__line">Площадь: <b>{{$house->area}} м2</b></div> | 30 | <div class="card__line">Площадь: <b>{{$house->area}} м2</b></div> |
31 | <div class="card__line">Цена за м<sup>2</sup>: <b>{{ $house->price_m2 }}₽</b></div> | 31 | <div class="card__line">Цена за м<sup>2</sup>: <b>{{ $house->price_m2 }}₽</b></div> |
32 | </div> | 32 | </div> |
33 | <? switch ($house->format_house) { | 33 | <? switch ($house->format_house) { |
34 | case 'Аренда': | 34 | case 'Аренда': |
35 | $comment = "<span>в месяц</span>"; | 35 | $comment = "<span>в месяц</span>"; |
36 | break; | 36 | break; |
37 | case 'Продажа': | 37 | case 'Продажа': |
38 | $comment = ""; | 38 | $comment = ""; |
39 | break; | 39 | break; |
40 | case 'Бизнес': | 40 | case 'Бизнес': |
41 | $comment= "<span>в месяц</span>"; | 41 | $comment= "<span>в месяц</span>"; |
42 | break; | 42 | break; |
43 | case 'Арендованные': | 43 | case 'Арендованные': |
44 | $comment = "<span>в месяц</span>"; | 44 | $comment = "<span>в месяц</span>"; |
45 | break; | 45 | break; |
46 | default: | ||
47 | $comment = "<span>в месяц</span>"; | ||
48 | break; | ||
46 | } | 49 | } |
47 | ?> | 50 | ?> |
48 | <div class="card__price"><span>{{ $house->price }} ₽ </span><? echo $comment; ?> | 51 | <div class="card__price"><span>{{ $house->price }} ₽ </span><? echo $comment; ?> |
49 | </div><a class="card__btn btn btn--bordered" href="{{ route('offer', ['house' => $house->id]) }}">Подробнее</a> | 52 | </div><a class="card__btn btn btn--bordered" href="{{ route('offer', ['house' => $house->id]) }}">Подробнее</a> |
50 | </div> | 53 | </div> |
51 | </div> | 54 | </div> |
52 | </div> | 55 | </div> |
53 | 56 |
resources/views/catalogs/house_mini.blade.php
1 | <div class="card"> | 1 | <div class="card"> |
2 | <div class="card__top"> | 2 | <div class="card__top"> |
3 | @if (empty($house->foto_main)) | 3 | @if (empty($house->foto_main)) |
4 | 4 | ||
5 | @else | 5 | @else |
6 | <img src="{{ asset(Storage::url($house->foto_main)) }}" alt="{{ $house->title }}" loading="lazy"/> | 6 | <img src="{{ asset(Storage::url($house->foto_main)) }}" alt="{{ $house->title }}" loading="lazy"/> |
7 | @endif; | 7 | @endif; |
8 | 8 | ||
9 | <h3 class="card__title">{{$house->typearea->name_type }}</h3> | 9 | <h3 class="card__title">{{$house->typearea->name_type }}</h3> |
10 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites <?=\App\Classes\RusDate::selected_item($house->id);?>" data-val="{{$house->id}}" id="card_favorite{{$house->id}}" name="card_favorite{{$house->id}}"> | 10 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites <?=\App\Classes\RusDate::selected_item($house->id);?>" data-val="{{$house->id}}" id="card_favorite{{$house->id}}" name="card_favorite{{$house->id}}"> |
11 | <svg width="18" height="18"> | 11 | <svg width="18" height="18"> |
12 | <use xlink:href="{{ asset('images/sprite.svg#card-favorites-empty') }}"></use> | 12 | <use xlink:href="{{ asset('images/sprite.svg#card-favorites-empty') }}"></use> |
13 | </svg> | 13 | </svg> |
14 | <svg width="18" height="18"> | 14 | <svg width="18" height="18"> |
15 | <use xlink:href="{{ asset('images/sprite.svg#card-favorites') }}"></use> | 15 | <use xlink:href="{{ asset('images/sprite.svg#card-favorites') }}"></use> |
16 | </svg></span><a class="card__label card__label-messenger" href="#"> | 16 | </svg></span> |
17 | <a class="card__label card__label-messenger" href="tel:{{ $items_contact[0]->telephone }}"> | ||
17 | <svg width="25" height="25"> | 18 | <svg width="25" height="25"> |
18 | <use xlink:href="{{ asset('images/sprite.svg#card-messenger') }}"></use> | 19 | <use xlink:href="{{ asset('images/sprite.svg#card-messenger') }}"></use> |
19 | </svg></a></div> | 20 | </svg> |
21 | </a> | ||
22 | </div> | ||
20 | </div> | 23 | </div> |
21 | <div class="card__cnt"> | 24 | <div class="card__cnt"> |
22 | <div class="card__info"> | 25 | <div class="card__info"> |
23 | <address class="card__line card__line-complex">{{ $house->areas->name_area }}</address> | 26 | <address class="card__line card__line-complex">{{ $house->areas->name_area }}</address> |
24 | <address class="card__line">{{$house->metro}} ({{$house->description_metro }})<span style="background-color: #FFC955;"></span></address> | 27 | <address class="card__line">{{$house->metro}} ({{$house->description_metro }})<span style="background-color: #FFC955;"></span></address> |
25 | <address class="card__line">{{$house->address }}</address> | 28 | <address class="card__line">{{$house->address }}</address> |
26 | <div class="card__line">Площадь: <b>{{$house->area}} м2</b></div> | 29 | <div class="card__line">Площадь: <b>{{$house->area}} м2</b></div> |
27 | <div class="card__line">Цена за м<sup>2</sup>: <b>{{ $house->price_m2 }}₽</b></div> | 30 | <div class="card__line">Цена за м<sup>2</sup>: <b>{{ $house->price_m2 }}₽</b></div> |
28 | </div> | 31 | </div> |
29 | <? switch ($house->format_house) { | 32 | <? switch ($house->format_house) { |
30 | case 'Аренда': | 33 | case 'Аренда': |
31 | $comment = "<span>в месяц</span>"; | 34 | $comment = "<span>в месяц</span>"; |
32 | break; | 35 | break; |
33 | case 'Продажа': | 36 | case 'Продажа': |
34 | $comment = ""; | 37 | $comment = ""; |
35 | break; | 38 | break; |
36 | case 'Бизнес': | 39 | case 'Бизнес': |
37 | $comment= "<span>в месяц</span>"; | 40 | $comment= "<span>в месяц</span>"; |
38 | break; | 41 | break; |
39 | case 'Арендованные': | 42 | case 'Арендованные': |
40 | $comment = "<span>в месяц</span>"; | 43 | $comment = "<span>в месяц</span>"; |
41 | break; | 44 | break; |
42 | } | 45 | } |
43 | ?> | 46 | ?> |
44 | <div class="card__price"><span>{{ $house->price }} ₽ </span><? echo $comment; ?> | 47 | <div class="card__price"><span>{{ $house->price }} ₽ </span><? echo $comment; ?> |
45 | </div><a class="card__btn btn btn--bordered" href="{{ route('offer', ['house' => $house->id]) }}">Подробнее</a> | 48 | </div><a class="card__btn btn btn--bordered" href="{{ route('offer', ['house' => $house->id]) }}">Подробнее</a> |
46 | </div> | 49 | </div> |
47 | </div> | 50 | </div> |
48 | 51 | ||
49 | 52 |
resources/views/house/post.blade.php
1 | @extends('layout.site', ['title' => $house->title]) | 1 | @extends('layout.site', ['title' => $house->title]) |
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 | setComplexMap('offer-map', [{{ $house->coord_x }}, {{ $house->coord_y }}], "{{ $house->title}}"); | 6 | setComplexMap('offer-map', [{{ $house->coord_x }}, {{ $house->coord_y }}], "{{ $house->title}}"); |
7 | </script> | 7 | </script> |
8 | @endsection | 8 | @endsection |
9 | 9 | ||
10 | @section('content') | 10 | @section('content') |
11 | <section class="intro" style="background-image:url({{ asset('images/intro-bg-2.jpg') }}"> | 11 | <section class="intro" style="background-image:url({{ asset('images/intro-bg-2.jpg') }}"> |
12 | <div class="container"> | 12 | <div class="container"> |
13 | <div class="intro__wrap"> | 13 | <div class="intro__wrap"> |
14 | <div class="breadcrumbs"> | 14 | <div class="breadcrumbs"> |
15 | <ul class="breadcrumbs__list"> | 15 | <ul class="breadcrumbs__list"> |
16 | <li class="breadcrumbs__item"><a class="breadcrumbs__link" href="{{ route('index') }}">Главная</a></li> | 16 | <li class="breadcrumbs__item"><a class="breadcrumbs__link" href="{{ route('index') }}">Главная</a></li> |
17 | <li class="breadcrumbs__item"><a class="breadcrumbs__link" href="{{ route('catalog') }}">Каталог</a></li> | 17 | <li class="breadcrumbs__item"><a class="breadcrumbs__link" href="{{ route('catalog') }}">Каталог</a></li> |
18 | <!--<li class="breadcrumbs__item"><a class="breadcrumbs__link" href="#">Каталок недвижимости</a></li>--> | 18 | <!--<li class="breadcrumbs__item"><a class="breadcrumbs__link" href="#">Каталок недвижимости</a></li>--> |
19 | <li class="breadcrumbs__item"><a class="breadcrumbs__link" href="{{ route('complex', ['area' => $house->areas->id]) }}">{{ $house->areas->name_area }}</a></li> | 19 | <li class="breadcrumbs__item"><a class="breadcrumbs__link" href="{{ route('complex', ['area' => $house->areas->id]) }}">{{ $house->areas->name_area }}</a></li> |
20 | <li class="breadcrumbs__item"><span class="breadcrumbs__link">{{ $house->title }}</span></li> | 20 | <li class="breadcrumbs__item"><span class="breadcrumbs__link">{{ $house->title }}</span></li> |
21 | </ul> | 21 | </ul> |
22 | </div> | 22 | </div> |
23 | <div class="intro__inner"> | 23 | <div class="intro__inner"> |
24 | <div class="intro__cnt"> | 24 | <div class="intro__cnt"> |
25 | <h1 class="intro__title title-main">{{ $house->title }}</h1><a class="intro__link-complex" href="{{ route('complex', ['area' => $house->areas->id]) }}">Перейти на страницу: <span>{{ $house->areas->name_area }}</span></a> | 25 | <h1 class="intro__title title-main">{{ $house->title }}</h1><a class="intro__link-complex" href="{{ route('complex', ['area' => $house->areas->id]) }}">Перейти на страницу: <span>{{ $house->areas->name_area }}</span></a> |
26 | <div class="intro__row"> | 26 | <div class="intro__row"> |
27 | <div class="intro__col"> | 27 | <div class="intro__col"> |
28 | <ul class="intro__list"> | 28 | <ul class="intro__list"> |
29 | <li class="intro__item" style="color:{{ $house->color_metro }};"><span>{{ $house->metro }}</span></li> | 29 | <li class="intro__item" style="color:{{ $house->color_metro }};"><span>{{ $house->metro }}</span></li> |
30 | <li class="intro__item"><span>{{ $house->description_metro }}</span></li> | 30 | <li class="intro__item"><span>{{ $house->description_metro }}</span></li> |
31 | <li class="intro__item"><span>{{ $house->okrug }}</span></li> | 31 | <li class="intro__item"><span>{{ $house->okrug }}</span></li> |
32 | </ul><a class="intro__link-map js_smooth_link" href="#offer-map">Посмотреть на карте</a> | 32 | </ul><a class="intro__link-map js_smooth_link" href="#offer-map">Посмотреть на карте</a> |
33 | </div> | 33 | </div> |
34 | <div class="intro__col"> | 34 | <div class="intro__col"> |
35 | <div class="intro__group"><span>Адрес</span><span>{{ $house->address }}</span></div> | 35 | <div class="intro__group"><span>Адрес</span><span>{{ $house->address }}</span></div> |
36 | <div class="intro__group"><span>Артикул помещения</span><span>{{ $house->articul_area }}</span></div><a class="intro__link-map js_smooth_link" href="#offer-map">Посмотреть на карте</a> | 36 | <div class="intro__group"><span>Артикул помещения</span><span>{{ $house->articul_area }}</span></div><a class="intro__link-map js_smooth_link" href="#offer-map">Посмотреть на карте</a> |
37 | </div> | 37 | </div> |
38 | </div> | 38 | </div> |
39 | <div class="intro__bottom"> | 39 | <div class="intro__bottom"> |
40 | <div class="intro__views">{{ $count_user->count() }} человек(а) интересовались этим объектом за последние 24 ч</div> | 40 | <div class="intro__views">{{ $count_user->count() }} человек(а) интересовались этим объектом за последние 24 ч</div> |
41 | <a class="intro__link-phone btn btn--main" href="tel:+70001234567"><span>Позвонить | 41 | <a class="intro__link-phone btn btn--main" href="tel:{{ $items_contact[0]->telephone }}"><span>Позвонить |
42 | <svg width="22" height="22"> | 42 | <svg width="22" height="22"> |
43 | <use xlink:href="{{ asset('images/sprite.svg#intro-link-phone') }}"></use> | 43 | <use xlink:href="{{ asset('images/sprite.svg#intro-link-phone') }}"></use> |
44 | </svg></span></a> | 44 | </svg></span></a> |
45 | </div> | 45 | </div> |
46 | </div> | 46 | </div> |
47 | <div class="intro__swiper swiper"> | 47 | <div class="intro__swiper swiper"> |
48 | <div class="swiper-wrapper"> | 48 | <div class="swiper-wrapper"> |
49 | <?if (!empty($house->foto_main)) {?> | 49 | <?if (!empty($house->foto_main)) {?> |
50 | <div class="swiper-slide"> | 50 | <div class="swiper-slide"> |
51 | <div class="intro-item"> | 51 | <div class="intro-item"> |
52 | <div class="intro-item__img"><img src="{{ asset(Storage::url($house->foto_main)) }}" alt=""></div> | 52 | <div class="intro-item__img"><img src="{{ asset(Storage::url($house->foto_main)) }}" alt=""></div> |
53 | <a class="intro-item__btn js_intro_item_btn" href="{{asset(Storage::url($house->foto_main))}}" data-caption="{{ $house->title }}"> | 53 | <a class="intro-item__btn js_intro_item_btn" href="{{asset(Storage::url($house->foto_main))}}" data-caption="{{ $house->title }}"> |
54 | <svg width="16" height="16"> | 54 | <svg width="16" height="16"> |
55 | <use xlink:href="{{ asset('images/sprite.svg#intro-item-btn') }}"></use> | 55 | <use xlink:href="{{ asset('images/sprite.svg#intro-item-btn') }}"></use> |
56 | </svg></a> | 56 | </svg></a> |
57 | </div> | 57 | </div> |
58 | </div> | 58 | </div> |
59 | <?}?> | 59 | <?}?> |
60 | @foreach($house->fotohouse as $foto) | 60 | @foreach($house->fotohouse as $foto) |
61 | <div class="swiper-slide"> | 61 | <div class="swiper-slide"> |
62 | <div class="intro-item"> | 62 | <div class="intro-item"> |
63 | <div class="intro-item__img"><img src="{{ asset(Storage::url($foto->foto)) }}" alt=""></div> | 63 | <div class="intro-item__img"><img src="{{ asset(Storage::url($foto->foto)) }}" alt=""></div> |
64 | <a class="intro-item__btn js_intro_item_btn" href="{{ asset(Storage::url($foto->foto)) }}" data-caption="Фото {{ $foto->id }}"> | 64 | <a class="intro-item__btn js_intro_item_btn" href="{{ asset(Storage::url($foto->foto)) }}" data-caption="Фото {{ $foto->id }}"> |
65 | <svg width="16" height="16"> | 65 | <svg width="16" height="16"> |
66 | <use xlink:href="{{ asset('images/sprite.svg#intro-item-btn') }}"></use> | 66 | <use xlink:href="{{ asset('images/sprite.svg#intro-item-btn') }}"></use> |
67 | </svg></a> | 67 | </svg></a> |
68 | </div> | 68 | </div> |
69 | </div> | 69 | </div> |
70 | @endforeach | 70 | @endforeach |
71 | 71 | ||
72 | </div> | 72 | </div> |
73 | <div class="swiper-pagination"></div> | 73 | <div class="swiper-pagination"></div> |
74 | <div class="swiper-button-prev"> | 74 | <div class="swiper-button-prev"> |
75 | <svg width="10" height="17"> | 75 | <svg width="10" height="17"> |
76 | <use xlink:href="{{ asset('images/sprite.svg#slider-arrow') }}"></use> | 76 | <use xlink:href="{{ asset('images/sprite.svg#slider-arrow') }}"></use> |
77 | </svg> | 77 | </svg> |
78 | </div> | 78 | </div> |
79 | <div class="swiper-button-next"> | 79 | <div class="swiper-button-next"> |
80 | <svg width="10" height="17"> | 80 | <svg width="10" height="17"> |
81 | <use xlink:href="{{ asset('images/sprite.svg#slider-arrow') }}"></use> | 81 | <use xlink:href="{{ asset('images/sprite.svg#slider-arrow') }}"></use> |
82 | </svg> | 82 | </svg> |
83 | </div> | 83 | </div> |
84 | </div> | 84 | </div> |
85 | </div> | 85 | </div> |
86 | </div> | 86 | </div> |
87 | </div> | 87 | </div> |
88 | </section> | 88 | </section> |
89 | <section class="offer"> | 89 | <section class="offer"> |
90 | <div class="offer__wrap"> | 90 | <div class="offer__wrap"> |
91 | <div class="container"> | 91 | <div class="container"> |
92 | <div class="offer__inner"> | 92 | <div class="offer__inner"> |
93 | <div class="offer-side"> | 93 | <div class="offer-side"> |
94 | <div class="offer-side__tabs"> | 94 | <div class="offer-side__tabs"> |
95 | <button class="offer-side__tab js_offer_side_tab active" type="button" data-tab="1">План объекта</button> | 95 | <button class="offer-side__tab js_offer_side_tab active" type="button" data-tab="1">План объекта</button> |
96 | <button class="offer-side__tab js_offer_side_tab" type="button" data-tab="2">План этажа</button> | 96 | <button class="offer-side__tab js_offer_side_tab" type="button" data-tab="2">План этажа</button> |
97 | </div> | 97 | </div> |
98 | <div class="offer-side__cnt"> | 98 | <div class="offer-side__cnt"> |
99 | <div class="offer-side-item js_offer_side_item active" data-item="1"> | 99 | <div class="offer-side-item js_offer_side_item active" data-item="1"> |
100 | <div class="offer-side-item__img"> | 100 | <div class="offer-side-item__img"> |
101 | <? if (!empty($house->object_plan)) {?> | 101 | <? if (!empty($house->object_plan)) {?> |
102 | <img src="{{ asset(Storage::url($house->object_plan)) }}" alt="План объекта"> | 102 | <img src="{{ asset(Storage::url($house->object_plan)) }}" alt="План объекта"> |
103 | <? } ?> | 103 | <? } ?> |
104 | </div> | 104 | </div> |
105 | <a class="offer-side-item__btn js_offer_side_item_btn" href="#" data-btn="offer-side-popup"> | 105 | <a class="offer-side-item__btn js_offer_side_item_btn" href="#" data-btn="offer-side-popup"> |
106 | <svg width="16" height="16"> | 106 | <svg width="16" height="16"> |
107 | <use xlink:href="{{ asset('images/sprite.svg#intro-item-btn') }}"></use> | 107 | <use xlink:href="{{ asset('images/sprite.svg#intro-item-btn') }}"></use> |
108 | </svg></a> | 108 | </svg></a> |
109 | </div> | 109 | </div> |
110 | <div class="offer-side-item js_offer_side_item" data-item="2"> | 110 | <div class="offer-side-item js_offer_side_item" data-item="2"> |
111 | <div class="offer-side-item__img"> | 111 | <div class="offer-side-item__img"> |
112 | <? if (!empty($house->floor_plan)) { ?> | 112 | <? if (!empty($house->floor_plan)) { ?> |
113 | <img src="{{ asset(Storage::url($house->floor_plan)) }}" alt="План этажа"> | 113 | <img src="{{ asset(Storage::url($house->floor_plan)) }}" alt="План этажа"> |
114 | <? }?> | 114 | <? }?> |
115 | </div> | 115 | </div> |
116 | <a class="offer-side-item__btn js_offer_side_item_btn" href="#" data-btn="offer-side-popup"> | 116 | <a class="offer-side-item__btn js_offer_side_item_btn" href="#" data-btn="offer-side-popup"> |
117 | <svg width="16" height="16"> | 117 | <svg width="16" height="16"> |
118 | <use xlink:href="{{ asset('images/sprite.svg#intro-item-btn') }}"></use> | 118 | <use xlink:href="{{ asset('images/sprite.svg#intro-item-btn') }}"></use> |
119 | </svg></a> | 119 | </svg></a> |
120 | </div> | 120 | </div> |
121 | </div> | 121 | </div> |
122 | 122 | ||
123 | <!---------------------------> | 123 | <!---------------------------> |
124 | <div class="offer-side-popup" data-popup="offer-side-popup"> | 124 | <div class="offer-side-popup" data-popup="offer-side-popup"> |
125 | <div class="offer-side-popup__wrap"> | 125 | <div class="offer-side-popup__wrap"> |
126 | <button class="offer-side-popup__close js_popup_close" type="button"> | 126 | <button class="offer-side-popup__close js_popup_close" type="button"> |
127 | <svg width="20" height="20"> | 127 | <svg width="20" height="20"> |
128 | <use xlink:href="{{ asset('images/sprite.svg#popup-close')}}"></use> | 128 | <use xlink:href="{{ asset('images/sprite.svg#popup-close')}}"></use> |
129 | </svg> | 129 | </svg> |
130 | </button> | 130 | </button> |
131 | <div class="offer-side-popup__cnt"> | 131 | <div class="offer-side-popup__cnt"> |
132 | <div class="offer-side-popup__item js_offer_side_popup_item active" data-item="1"> | 132 | <div class="offer-side-popup__item js_offer_side_popup_item active" data-item="1"> |
133 | <? if (!empty($house->object_plan)) {?> | 133 | <? if (!empty($house->object_plan)) {?> |
134 | <img src="{{ asset(Storage::url($house->object_plan)) }}" alt="План объекта"> | 134 | <img src="{{ asset(Storage::url($house->object_plan)) }}" alt="План объекта"> |
135 | <? } ?> | 135 | <? } ?> |
136 | </div> | 136 | </div> |
137 | <div class="offer-side-popup__item js_offer_side_popup_item" data-item="2"> | 137 | <div class="offer-side-popup__item js_offer_side_popup_item" data-item="2"> |
138 | <? if (!empty($house->floor_plan)) { ?> | 138 | <? if (!empty($house->floor_plan)) { ?> |
139 | <img src="{{ asset(Storage::url($house->floor_plan)) }}" alt="План этажа"> | 139 | <img src="{{ asset(Storage::url($house->floor_plan)) }}" alt="План этажа"> |
140 | <? }?> | 140 | <? }?> |
141 | </div> | 141 | </div> |
142 | </div> | 142 | </div> |
143 | <div class="offer-side-popup__tabs"> | 143 | <div class="offer-side-popup__tabs"> |
144 | <button class="offer-side-popup__tab js_offer_side_popup_tab active" type="button" data-tab="1">План объекта</button> | 144 | <button class="offer-side-popup__tab js_offer_side_popup_tab active" type="button" data-tab="1">План объекта</button> |
145 | <button class="offer-side-popup__tab js_offer_side_popup_tab" type="button" data-tab="2">План этажа</button> | 145 | <button class="offer-side-popup__tab js_offer_side_popup_tab" type="button" data-tab="2">План этажа</button> |
146 | </div> | 146 | </div> |
147 | <button class="offer-side-popup__sizeoff js_popup_close" type="button"> | 147 | <button class="offer-side-popup__sizeoff js_popup_close" type="button"> |
148 | <svg width="18" height="18"> | 148 | <svg width="18" height="18"> |
149 | <use xlink:href="{{ asset('images/sprite.svg#popup-sizeoff')}}"></use> | 149 | <use xlink:href="{{ asset('images/sprite.svg#popup-sizeoff')}}"></use> |
150 | </svg> | 150 | </svg> |
151 | </button> | 151 | </button> |
152 | </div> | 152 | </div> |
153 | </div> | 153 | </div> |
154 | <!---------------------------> | 154 | <!---------------------------> |
155 | <div class="offer__lines"> | 155 | <div class="offer__lines"> |
156 | <? if ($house->format_house == "Продажа") {?> | ||
157 | <div class="offer__line"><span>Цена</span><span>{{ $house->price }} ₽</span></div> | ||
158 | <? } else {?> | ||
156 | <div class="offer__line"><span>Аренда в год за м2</span><span>{{ $house->rent_in_year }} ₽</span></div> | 159 | <div class="offer__line"><span>Аренда в год за м2</span><span>{{ $house->rent_in_year }} ₽</span></div> |
157 | <div class="offer__line"><span>Аренда в месяц</span><span>{{ $house->rent_in_month }} ₽</span></div> | 160 | <div class="offer__line"><span>Аренда в месяц</span><span>{{ $house->price }} ₽</span></div> |
161 | <? } ?> | ||
158 | <div class="offer__line"><span>Схема сделки</span><span>{{ $house->scheme_deal }}</span></div> | 162 | <div class="offer__line"><span>Схема сделки</span><span>{{ $house->scheme_deal }}</span></div> |
159 | </div> | 163 | </div> |
160 | <div class="offer-side__buttons"><a class="offer-side__btn btn btn--main" href="#" data-btn="viewing"><span>Записаться на просмотр | 164 | <div class="offer-side__buttons"><a class="offer-side__btn btn btn--main" href="#" data-btn="viewing"><span>Записаться на просмотр |
161 | <svg width="20" height="20"> | 165 | <svg width="20" height="20"> |
162 | <use xlink:href="{{ asset('images/sprite.svg#offer-side-btn-viewing') }}"></use> | 166 | <use xlink:href="{{ asset('images/sprite.svg#offer-side-btn-viewing') }}"></use> |
163 | </svg></span></a><a class="offer-side__btn btn btn--main" href="#" data-btn="sending"><span>Отправить по Email | 167 | </svg></span></a><a class="offer-side__btn btn btn--main" href="#" data-btn="sending"><span>Отправить по Email |
164 | <svg width="22" height="22"> | 168 | <svg width="22" height="22"> |
165 | <use xlink:href="{{ asset('images/sprite.svg#offer-side-btn-email') }}"></use> | 169 | <use xlink:href="{{ asset('images/sprite.svg#offer-side-btn-email') }}"></use> |
166 | </svg></span></a><a class="offer-side__btn btn btn--main" href="tel:+70001234567"><span>Позвонить | 170 | </svg></span></a><a class="offer-side__btn btn btn--main" href="tel:{{ $items_contact[0]->telephone }}"><span>Позвонить |
167 | <svg width="22" height="22"> | 171 | <svg width="22" height="22"> |
168 | <use xlink:href="{{ asset('images/sprite.svg#intro-link-phone') }}"></use> | 172 | <use xlink:href="{{ asset('images/sprite.svg#intro-link-phone') }}"></use> |
169 | </svg></span></a></div><a class="offer-side__download" href="#" download><span>Скачать презентацию | 173 | </svg></span></a></div><a class="offer-side__download" href="{{ $house->present }}" download><span>Скачать презентацию |
170 | <svg width="60" height="60"> | 174 | <svg width="60" height="60"> |
171 | <use xlink:href="{{ asset('images/sprite.svg#offer-side-download') }}"></use> | 175 | <use xlink:href="{{ asset('images/sprite.svg#offer-side-download') }}"></use> |
172 | </svg></span></a> | 176 | </svg></span></a> |
173 | </div> | 177 | </div> |
174 | <div class="offer__cnt"> | 178 | <div class="offer__cnt"> |
175 | <h2 class="offer__title">{{ $house->title }} {{ $house->address }}</h2> | 179 | <h2 class="offer__title">{{ $house->title }} {{ $house->address }}</h2> |
176 | <div class="offer__lines"> | 180 | <div class="offer__lines"> |
177 | <div class="offer__line"><span>Площадь, м2</span><span>{{ $house->area }}</span></div> | 181 | <div class="offer__line"><span>Площадь, м2</span><span>{{ $house->area }}</span></div> |
178 | <div class="offer__line"><span>Адрес</span><span>{{ $house->address }}</span></div> | 182 | <div class="offer__line"><span>Адрес</span><span>{{ $house->address }}</span></div> |
179 | <div class="offer__line"><span>Тип объекта</span><span>{{ $house->typearea->name_type }}</span></div> | 183 | <div class="offer__line"><span>Тип объекта</span><span>{{ $house->typearea->name_type }}</span></div> |
180 | <div class="offer__line"><span>Формат</span><span>{{ $house->format_house }}</span></div> | 184 | <div class="offer__line"><span>Формат</span><span>{{ $house->format_house }}</span></div> |
181 | <div class="offer__line"><span>Этаж</span><span>{{ $house->floor }} эт.</span></div> | 185 | <div class="offer__line"><span>Этаж</span><span>{{ $house->floor }} эт.</span></div> |
182 | <div class="offer__line"><span>Этажность здания</span><span>{{ $house->floor_bild }} эт.</span></div> | 186 | <div class="offer__line"><span>Этажность здания</span><span>{{ $house->floor_bild }} эт.</span></div> |
183 | <div class="offer__line"><span>Арендаторы</span><span>{{ $house->renter }}</span></div> | 187 | <div class="offer__line"><span>Арендаторы</span><span>{{ $house->renter }}</span></div> |
184 | <div class="offer__line"><span>Состояние объекта</span><span>{{ $house->sos_obj }}</span></div> | 188 | <div class="offer__line"><span>Состояние объекта</span><span>{{ $house->sos_obj }}</span></div> |
185 | <div class="offer__line"><span>Тип планировки</span><span>{{ $house->type_plan }}</span></div> | 189 | <div class="offer__line"><span>Тип планировки</span><span>{{ $house->type_plan }}</span></div> |
186 | <div class="offer__line"><span>Наличие зоны разгрузки</span><span><? if($house->uploading_area == 1) {?>Есть<?} else {?>Нет<?}?></span></div> | 190 | <div class="offer__line"><span>Наличие зоны разгрузки</span><span><? if($house->uploading_area == 1) {?>Есть<?} else {?>Нет<?}?></span></div> |
187 | <div class="offer__line"><span>Электрическая мощность</span><span>{{ $house->electric_power }} кВт</span></div> | 191 | <div class="offer__line"><span>Электрическая мощность</span><span>{{ $house->electric_power }} кВт</span></div> |
188 | <div class="offer__line"><span>Проездное</span><span><? if($house->travel_card == 1) {?>Есть<?} else {?>Нет<?}?></span></div> | 192 | <div class="offer__line"><span>Проездное</span><span><? if($house->travel_card == 1) {?>Есть<?} else {?>Нет<?}?></span></div> |
189 | <div class="offer__line"><span>Проходное место</span><span><? if($house->passing_place == 1) {?>Есть<?} else {?>Нет<?}?></span></div> | 193 | <div class="offer__line"><span>Проходное место</span><span><? if($house->passing_place == 1) {?>Есть<?} else {?>Нет<?}?></span></div> |
190 | <div class="offer__line"><span>Отдельный вход</span><span><? if($house->separate_input == 1) {?>Есть<?} else {?>Нет<?}?></span></div> | 194 | <div class="offer__line"><span>Отдельный вход</span><span><? if($house->separate_input == 1) {?>Есть<?} else {?>Нет<?}?></span></div> |
191 | <div class="offer__line"><span>Витрины</span><span><? if($house->shop_windows == 1) {?>Есть<?} else {?>Нет<?}?></span></div> | 195 | <div class="offer__line"><span>Витрины</span><span><? if($house->shop_windows == 1) {?>Есть<?} else {?>Нет<?}?></span></div> |
192 | <div class="offer__line"><span>Место для рекламы</span><span><? if($house->place_advertising == 1) {?>Есть<?} else {?>Нет<?}?></span></div> | 196 | <div class="offer__line"><span>Место для рекламы</span><span><? if($house->place_advertising == 1) {?>Есть<?} else {?>Нет<?}?></span></div> |
193 | <div class="offer__line"><span>Окна</span><span>{{ $house->windows }}</span></div> | 197 | <div class="offer__line"><span>Окна</span><span>{{ $house->windows }}</span></div> |
194 | <div class="offer__line"><span>Вытяжка</span><span><? if($house->hood == 1) {?>Есть<?} else {?>Нет<?}?></span></div> | 198 | <div class="offer__line"><span>Вытяжка</span><span><? if($house->hood == 1) {?>Есть<?} else {?>Нет<?}?></span></div> |
195 | <div class="offer__line"><span>Центральное отопление</span><span><? if($house->central_hearing == 1) {?>Есть<?} else {?>Нет<?}?></span></div> | 199 | <div class="offer__line"><span>Центральное отопление</span><span><? if($house->central_hearing == 1) {?>Есть<?} else {?>Нет<?}?></span></div> |
196 | <div class="offer__line"><span>Возможные часы работы</span><span>{{ $house->opening_hours }}</span></div> | 200 | <div class="offer__line"><span>Возможные часы работы</span><span>{{ $house->opening_hours }}</span></div> |
197 | <div class="offer__line"><span>Отделка</span><span><? if($house->finishing == 1) {?>Есть<?} else {?>Нет<?}?></span></div> | 201 | <div class="offer__line"><span>Отделка</span><span><? if($house->finishing == 1) {?>Есть<?} else {?>Нет<?}?></span></div> |
198 | <div class="offer__line"><span>Парковка</span><span>{{ $house->parking }} мест</span></div> | 202 | <div class="offer__line"><span>Парковка</span><span>{{ $house->parking }} мест</span></div> |
199 | </div> | 203 | </div> |
200 | <p class="offer__additional">{{ $house->description_2 }}</p> | 204 | <p class="offer__additional">{{ $house->description_2 }}</p> |
201 | </div> | 205 | </div> |
202 | </div> | 206 | </div> |
203 | <div class="offer-descr"> | 207 | <div class="offer-descr"> |
204 | <h3 class="offer-descr__caption">Описание объекта</h3> | 208 | <h3 class="offer-descr__caption">Описание объекта</h3> |
205 | <p class="offer-descr__text">{{ $house->description_house }}</p> | 209 | <p class="offer-descr__text">{{ $house->description_house }}</p> |
206 | </div> | 210 | </div> |
207 | </div> | 211 | </div> |
208 | </div> | 212 | </div> |
209 | <div class="offer__map map" id="offer-map"></div> | 213 | <div class="offer__map map" id="offer-map"></div> |
210 | </section> | 214 | </section> |
211 | <section class="slider"> | 215 | <section class="slider"> |
212 | <div class="container"> | 216 | <div class="container"> |
213 | <div class="slider__wrap"> | 217 | <div class="slider__wrap"> |
214 | <div class="slider__top"> | 218 | <div class="slider__top"> |
215 | <h2 class="slider__title title">Похожие помещения</h2> | 219 | <h2 class="slider__title title">Похожие помещения</h2> |
216 | <div class="slider__control"> | 220 | <div class="slider__control"> |
217 | <div class="swiper-button-prev"> | 221 | <div class="swiper-button-prev"> |
218 | <svg width="10" height="17"> | 222 | <svg width="10" height="17"> |
219 | <use xlink:href="images/sprite.svg#slider-arrow"></use> | 223 | <use xlink:href="{{ asset('images/sprite.svg#slider-arrow') }}"></use> |
220 | </svg> | 224 | </svg> |
221 | </div> | 225 | </div> |
222 | <div class="swiper-button-next"> | 226 | <div class="swiper-button-next"> |
223 | <svg width="10" height="17"> | 227 | <svg width="10" height="17"> |
224 | <use xlink:href="images/sprite.svg#slider-arrow"></use> | 228 | <use xlink:href="{{ asset('images/sprite.svg#slider-arrow') }}"></use> |
225 | </svg> | 229 | </svg> |
226 | </div> | 230 | </div> |
227 | </div> | 231 | </div> |
228 | </div> | 232 | </div> |
229 | <div class="slider__swiper swiper"> | 233 | <div class="slider__swiper swiper"> |
230 | <div class="swiper-wrapper"> | 234 | <div class="swiper-wrapper"> |
231 | @if ($houses->count()) | 235 | @if ($houses->count()) |
232 | @foreach ($houses as $house) | 236 | @foreach ($houses as $house) |
233 | @include('catalogs.elemhouse', ['house' => $house]) | 237 | @include('catalogs.elemhouse', ['house' => $house]) |
234 | @endforeach | 238 | @endforeach |
235 | @endif | 239 | @endif |
236 | 240 | ||
237 | <!--<div class="swiper-slide"> | 241 | <!--<div class="swiper-slide"> |
238 | <div class="card"> | 242 | <div class="card"> |
239 | <div class="card__top"><img src="images/card/card-img-1.jpg" alt="Фото недвижимости" loading="lazy"> | 243 | <div class="card__top"><img src="images/card/card-img-1.jpg" alt="Фото недвижимости" loading="lazy"> |
240 | <h3 class="card__title">Салон красоты</h3> | 244 | <h3 class="card__title">Салон красоты</h3> |
241 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> | 245 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> |
242 | <svg width="18" height="18"> | 246 | <svg width="18" height="18"> |
243 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> | 247 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> |
244 | </svg> | 248 | </svg> |
245 | <svg width="18" height="18"> | 249 | <svg width="18" height="18"> |
246 | <use xlink:href="images/sprite.svg#card-favorites"></use> | 250 | <use xlink:href="images/sprite.svg#card-favorites"></use> |
247 | </svg></span><a class="card__label card__label-messenger" href="#"> | 251 | </svg></span><a class="card__label card__label-messenger" href="#"> |
248 | <svg width="25" height="25"> | 252 | <svg width="25" height="25"> |
249 | <use xlink:href="images/sprite.svg#card-messenger"></use> | 253 | <use xlink:href="images/sprite.svg#card-messenger"></use> |
250 | </svg></a></div> | 254 | </svg></a></div> |
251 | </div> | 255 | </div> |
252 | <div class="card__cnt"> | 256 | <div class="card__cnt"> |
253 | <div class="card__info"> | 257 | <div class="card__info"> |
254 | <address class="card__line card__line-complex">ЖК “Новинки 1”</address> | 258 | <address class="card__line card__line-complex">ЖК “Новинки 1”</address> |
255 | <address class="card__line">Фрунзенская (10 мин., пешком)<span style="background-color: #FFC955;"></span></address> | 259 | <address class="card__line">Фрунзенская (10 мин., пешком)<span style="background-color: #FFC955;"></span></address> |
256 | <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address> | 260 | <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address> |
257 | <div class="card__line">Площадь: <b>556 м2</b></div> | 261 | <div class="card__line">Площадь: <b>556 м2</b></div> |
258 | <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div> | 262 | <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div> |
259 | </div> | 263 | </div> |
260 | <div class="card__price"><span>1 000 000 ₽</span> | 264 | <div class="card__price"><span>1 000 000 ₽</span> |
261 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее</a> | 265 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее</a> |
262 | </div> | 266 | </div> |
263 | </div> | 267 | </div> |
264 | </div> | 268 | </div> |
265 | <div class="swiper-slide"> | 269 | <div class="swiper-slide"> |
266 | <div class="card"> | 270 | <div class="card"> |
267 | <div class="card__top"><img src="images/card/card-img-2.jpg" alt="Фото недвижимости" loading="lazy"> | 271 | <div class="card__top"><img src="images/card/card-img-2.jpg" alt="Фото недвижимости" loading="lazy"> |
268 | <h3 class="card__title">Барбер-шоп</h3> | 272 | <h3 class="card__title">Барбер-шоп</h3> |
269 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> | 273 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> |
270 | <svg width="18" height="18"> | 274 | <svg width="18" height="18"> |
271 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> | 275 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> |
272 | </svg> | 276 | </svg> |
273 | <svg width="18" height="18"> | 277 | <svg width="18" height="18"> |
274 | <use xlink:href="images/sprite.svg#card-favorites"></use> | 278 | <use xlink:href="images/sprite.svg#card-favorites"></use> |
275 | </svg></span><a class="card__label card__label-messenger" href="#"> | 279 | </svg></span><a class="card__label card__label-messenger" href="#"> |
276 | <svg width="25" height="25"> | 280 | <svg width="25" height="25"> |
277 | <use xlink:href="images/sprite.svg#card-messenger"></use> | 281 | <use xlink:href="images/sprite.svg#card-messenger"></use> |
278 | </svg></a></div> | 282 | </svg></a></div> |
279 | </div> | 283 | </div> |
280 | <div class="card__cnt"> | 284 | <div class="card__cnt"> |
281 | <div class="card__info"> | 285 | <div class="card__info"> |
282 | <address class="card__line card__line-complex">ЖК “Новоарбатский”</address> | 286 | <address class="card__line card__line-complex">ЖК “Новоарбатский”</address> |
283 | <address class="card__line">Арбатская (8 мин., пешком)<span style="background-color: #0000A0;"></span></address> | 287 | <address class="card__line">Арбатская (8 мин., пешком)<span style="background-color: #0000A0;"></span></address> |
284 | <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address> | 288 | <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address> |
285 | <div class="card__line">Площадь: <b>6 556 м2</b></div> | 289 | <div class="card__line">Площадь: <b>6 556 м2</b></div> |
286 | <div class="card__line">Цена за м<sup>2</sup>: <b>5 225 256 ₽</b></div> | 290 | <div class="card__line">Цена за м<sup>2</sup>: <b>5 225 256 ₽</b></div> |
287 | </div> | 291 | </div> |
288 | <div class="card__price"><span>15 520 900 ₽</span><span>в месяц</span> | 292 | <div class="card__price"><span>15 520 900 ₽</span><span>в месяц</span> |
289 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a> | 293 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a> |
290 | </div> | 294 | </div> |
291 | </div> | 295 | </div> |
292 | </div> | 296 | </div> |
293 | <div class="swiper-slide"> | 297 | <div class="swiper-slide"> |
294 | <div class="card"> | 298 | <div class="card"> |
295 | <div class="card__top"><img src="images/card/card-img-3.jpg" alt="Фото недвижимости" loading="lazy"> | 299 | <div class="card__top"><img src="images/card/card-img-3.jpg" alt="Фото недвижимости" loading="lazy"> |
296 | <h3 class="card__title">Аптека</h3> | 300 | <h3 class="card__title">Аптека</h3> |
297 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> | 301 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> |
298 | <svg width="18" height="18"> | 302 | <svg width="18" height="18"> |
299 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> | 303 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> |
300 | </svg> | 304 | </svg> |
301 | <svg width="18" height="18"> | 305 | <svg width="18" height="18"> |
302 | <use xlink:href="images/sprite.svg#card-favorites"></use> | 306 | <use xlink:href="images/sprite.svg#card-favorites"></use> |
303 | </svg></span><a class="card__label card__label-messenger" href="#"> | 307 | </svg></span><a class="card__label card__label-messenger" href="#"> |
304 | <svg width="25" height="25"> | 308 | <svg width="25" height="25"> |
305 | <use xlink:href="images/sprite.svg#card-messenger"></use> | 309 | <use xlink:href="images/sprite.svg#card-messenger"></use> |
306 | </svg></a></div> | 310 | </svg></a></div> |
307 | </div> | 311 | </div> |
308 | <div class="card__cnt"> | 312 | <div class="card__cnt"> |
309 | <div class="card__info"> | 313 | <div class="card__info"> |
310 | <address class="card__line card__line-complex">ЖК “Садовые кварталы”</address> | 314 | <address class="card__line card__line-complex">ЖК “Садовые кварталы”</address> |
311 | <address class="card__line">Коломенская (2 мин., пешком)<span style="background-color: #029B55;"></span></address> | 315 | <address class="card__line">Коломенская (2 мин., пешком)<span style="background-color: #029B55;"></span></address> |
312 | <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address> | 316 | <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address> |
313 | <div class="card__line">Площадь: <b>8 626 м2</b></div> | 317 | <div class="card__line">Площадь: <b>8 626 м2</b></div> |
314 | <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div> | 318 | <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div> |
315 | </div> | 319 | </div> |
316 | <div class="card__price"><span>5 280 000 ₽</span> | 320 | <div class="card__price"><span>5 280 000 ₽</span> |
317 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее о продаже</a> | 321 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее о продаже</a> |
318 | </div> | 322 | </div> |
319 | </div> | 323 | </div> |
320 | </div> | 324 | </div> |
321 | <div class="swiper-slide"> | 325 | <div class="swiper-slide"> |
322 | <div class="card"> | 326 | <div class="card"> |
323 | <div class="card__top"><img src="images/card/card-img-4.jpg" alt="Фото недвижимости" loading="lazy"> | 327 | <div class="card__top"><img src="images/card/card-img-4.jpg" alt="Фото недвижимости" loading="lazy"> |
324 | <h3 class="card__title">Витрина</h3> | 328 | <h3 class="card__title">Витрина</h3> |
325 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> | 329 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> |
326 | <svg width="18" height="18"> | 330 | <svg width="18" height="18"> |
327 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> | 331 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> |
328 | </svg> | 332 | </svg> |
329 | <svg width="18" height="18"> | 333 | <svg width="18" height="18"> |
330 | <use xlink:href="images/sprite.svg#card-favorites"></use> | 334 | <use xlink:href="images/sprite.svg#card-favorites"></use> |
331 | </svg></span><a class="card__label card__label-messenger" href="#"> | 335 | </svg></span><a class="card__label card__label-messenger" href="#"> |
332 | <svg width="25" height="25"> | 336 | <svg width="25" height="25"> |
333 | <use xlink:href="images/sprite.svg#card-messenger"></use> | 337 | <use xlink:href="images/sprite.svg#card-messenger"></use> |
334 | </svg></a></div> | 338 | </svg></a></div> |
335 | </div> | 339 | </div> |
336 | <div class="card__cnt"> | 340 | <div class="card__cnt"> |
337 | <div class="card__info"> | 341 | <div class="card__info"> |
338 | <address class="card__line card__line-complex">ЖК “Нахимовский проспект, 46”</address> | 342 | <address class="card__line card__line-complex">ЖК “Нахимовский проспект, 46”</address> |
339 | <address class="card__line">Парк Победы (5 мин., пешком)<span style="background-color: #222964;"></span></address> | 343 | <address class="card__line">Парк Победы (5 мин., пешком)<span style="background-color: #222964;"></span></address> |
340 | <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address> | 344 | <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address> |
341 | <div class="card__line">Площадь: <b>6 856 м2</b></div> | 345 | <div class="card__line">Площадь: <b>6 856 м2</b></div> |
342 | <div class="card__line">Цена за м<sup>2</sup>: <b>25 256 ₽</b></div> | 346 | <div class="card__line">Цена за м<sup>2</sup>: <b>25 256 ₽</b></div> |
343 | </div> | 347 | </div> |
344 | <div class="card__price"><span>2 625 520 ₽</span><span>в месяц</span> | 348 | <div class="card__price"><span>2 625 520 ₽</span><span>в месяц</span> |
345 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a> | 349 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a> |
346 | </div> | 350 | </div> |
347 | </div> | 351 | </div> |
348 | </div> | 352 | </div> |
349 | <div class="swiper-slide"> | 353 | <div class="swiper-slide"> |
350 | <div class="card"> | 354 | <div class="card"> |
351 | <div class="card__top"><img src="images/card/card-img-1.jpg" alt="Фото недвижимости" loading="lazy"> | 355 | <div class="card__top"><img src="images/card/card-img-1.jpg" alt="Фото недвижимости" loading="lazy"> |
352 | <h3 class="card__title">Салон красоты</h3> | 356 | <h3 class="card__title">Салон красоты</h3> |
353 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> | 357 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> |
354 | <svg width="18" height="18"> | 358 | <svg width="18" height="18"> |
355 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> | 359 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> |
356 | </svg> | 360 | </svg> |
357 | <svg width="18" height="18"> | 361 | <svg width="18" height="18"> |
358 | <use xlink:href="images/sprite.svg#card-favorites"></use> | 362 | <use xlink:href="images/sprite.svg#card-favorites"></use> |
359 | </svg></span><a class="card__label card__label-messenger" href="#"> | 363 | </svg></span><a class="card__label card__label-messenger" href="#"> |
360 | <svg width="25" height="25"> | 364 | <svg width="25" height="25"> |
361 | <use xlink:href="images/sprite.svg#card-messenger"></use> | 365 | <use xlink:href="images/sprite.svg#card-messenger"></use> |
362 | </svg></a></div> | 366 | </svg></a></div> |
363 | </div> | 367 | </div> |
364 | <div class="card__cnt"> | 368 | <div class="card__cnt"> |
365 | <div class="card__info"> | 369 | <div class="card__info"> |
366 | <address class="card__line card__line-complex">ЖК “Новинки 1”</address> | 370 | <address class="card__line card__line-complex">ЖК “Новинки 1”</address> |
367 | <address class="card__line">Фрунзенская (10 мин., пешком)<span style="background-color: #FFC955;"></span></address> | 371 | <address class="card__line">Фрунзенская (10 мин., пешком)<span style="background-color: #FFC955;"></span></address> |
368 | <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address> | 372 | <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address> |
369 | <div class="card__line">Площадь: <b>556 м2</b></div> | 373 | <div class="card__line">Площадь: <b>556 м2</b></div> |
370 | <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div> | 374 | <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div> |
371 | </div> | 375 | </div> |
372 | <div class="card__price"><span>1 000 000 ₽</span> | 376 | <div class="card__price"><span>1 000 000 ₽</span> |
373 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее</a> | 377 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее</a> |
374 | </div> | 378 | </div> |
375 | </div> | 379 | </div> |
376 | </div> | 380 | </div> |
377 | <div class="swiper-slide"> | 381 | <div class="swiper-slide"> |
378 | <div class="card"> | 382 | <div class="card"> |
379 | <div class="card__top"><img src="images/card/card-img-2.jpg" alt="Фото недвижимости" loading="lazy"> | 383 | <div class="card__top"><img src="images/card/card-img-2.jpg" alt="Фото недвижимости" loading="lazy"> |
380 | <h3 class="card__title">Барбер-шоп</h3> | 384 | <h3 class="card__title">Барбер-шоп</h3> |
381 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> | 385 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> |
382 | <svg width="18" height="18"> | 386 | <svg width="18" height="18"> |
383 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> | 387 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> |
384 | </svg> | 388 | </svg> |
385 | <svg width="18" height="18"> | 389 | <svg width="18" height="18"> |
386 | <use xlink:href="images/sprite.svg#card-favorites"></use> | 390 | <use xlink:href="images/sprite.svg#card-favorites"></use> |
387 | </svg></span><a class="card__label card__label-messenger" href="#"> | 391 | </svg></span><a class="card__label card__label-messenger" href="#"> |
388 | <svg width="25" height="25"> | 392 | <svg width="25" height="25"> |
389 | <use xlink:href="images/sprite.svg#card-messenger"></use> | 393 | <use xlink:href="images/sprite.svg#card-messenger"></use> |
390 | </svg></a></div> | 394 | </svg></a></div> |
391 | </div> | 395 | </div> |
392 | <div class="card__cnt"> | 396 | <div class="card__cnt"> |
393 | <div class="card__info"> | 397 | <div class="card__info"> |
394 | <address class="card__line card__line-complex">ЖК “Новоарбатский”</address> | 398 | <address class="card__line card__line-complex">ЖК “Новоарбатский”</address> |
395 | <address class="card__line">Арбатская (8 мин., пешком)<span style="background-color: #0000A0;"></span></address> | 399 | <address class="card__line">Арбатская (8 мин., пешком)<span style="background-color: #0000A0;"></span></address> |
396 | <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address> | 400 | <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address> |
397 | <div class="card__line">Площадь: <b>6 556 м2</b></div> | 401 | <div class="card__line">Площадь: <b>6 556 м2</b></div> |
398 | <div class="card__line">Цена за м<sup>2</sup>: <b>5 225 256 ₽</b></div> | 402 | <div class="card__line">Цена за м<sup>2</sup>: <b>5 225 256 ₽</b></div> |
399 | </div> | 403 | </div> |
400 | <div class="card__price"><span>15 520 900 ₽</span><span>в месяц</span> | 404 | <div class="card__price"><span>15 520 900 ₽</span><span>в месяц</span> |
401 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a> | 405 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a> |
402 | </div> | 406 | </div> |
403 | </div> | 407 | </div> |
404 | </div> | 408 | </div> |
405 | <div class="swiper-slide"> | 409 | <div class="swiper-slide"> |
406 | <div class="card"> | 410 | <div class="card"> |
407 | <div class="card__top"><img src="images/card/card-img-3.jpg" alt="Фото недвижимости" loading="lazy"> | 411 | <div class="card__top"><img src="images/card/card-img-3.jpg" alt="Фото недвижимости" loading="lazy"> |
408 | <h3 class="card__title">Аптека</h3> | 412 | <h3 class="card__title">Аптека</h3> |
409 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> | 413 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> |
410 | <svg width="18" height="18"> | 414 | <svg width="18" height="18"> |
411 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> | 415 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> |
412 | </svg> | 416 | </svg> |
413 | <svg width="18" height="18"> | 417 | <svg width="18" height="18"> |
414 | <use xlink:href="images/sprite.svg#card-favorites"></use> | 418 | <use xlink:href="images/sprite.svg#card-favorites"></use> |
415 | </svg></span><a class="card__label card__label-messenger" href="#"> | 419 | </svg></span><a class="card__label card__label-messenger" href="#"> |
416 | <svg width="25" height="25"> | 420 | <svg width="25" height="25"> |
417 | <use xlink:href="images/sprite.svg#card-messenger"></use> | 421 | <use xlink:href="images/sprite.svg#card-messenger"></use> |
418 | </svg></a></div> | 422 | </svg></a></div> |
419 | </div> | 423 | </div> |
420 | <div class="card__cnt"> | 424 | <div class="card__cnt"> |
421 | <div class="card__info"> | 425 | <div class="card__info"> |
422 | <address class="card__line card__line-complex">ЖК “Садовые кварталы”</address> | 426 | <address class="card__line card__line-complex">ЖК “Садовые кварталы”</address> |
423 | <address class="card__line">Коломенская (2 мин., пешком)<span style="background-color: #029B55;"></span></address> | 427 | <address class="card__line">Коломенская (2 мин., пешком)<span style="background-color: #029B55;"></span></address> |
424 | <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address> | 428 | <address class="card__line">ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69</address> |
425 | <div class="card__line">Площадь: <b>8 626 м2</b></div> | 429 | <div class="card__line">Площадь: <b>8 626 м2</b></div> |
426 | <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div> | 430 | <div class="card__line">Цена за м<sup>2</sup>: <b>550 256 ₽</b></div> |
427 | </div> | 431 | </div> |
428 | <div class="card__price"><span>5 280 000 ₽</span> | 432 | <div class="card__price"><span>5 280 000 ₽</span> |
429 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее о продаже</a> | 433 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее о продаже</a> |
430 | </div> | 434 | </div> |
431 | </div> | 435 | </div> |
432 | </div> | 436 | </div> |
433 | <div class="swiper-slide"> | 437 | <div class="swiper-slide"> |
434 | <div class="card"> | 438 | <div class="card"> |
435 | <div class="card__top"><img src="images/card/card-img-4.jpg" alt="Фото недвижимости" loading="lazy"> | 439 | <div class="card__top"><img src="images/card/card-img-4.jpg" alt="Фото недвижимости" loading="lazy"> |
436 | <h3 class="card__title">Витрина</h3> | 440 | <h3 class="card__title">Витрина</h3> |
437 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> | 441 | <div class="card__labels"><span class="card__label card__label-favorites js_card_favorites"> |
438 | <svg width="18" height="18"> | 442 | <svg width="18" height="18"> |
439 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> | 443 | <use xlink:href="images/sprite.svg#card-favorites-empty"></use> |
440 | </svg> | 444 | </svg> |
441 | <svg width="18" height="18"> | 445 | <svg width="18" height="18"> |
442 | <use xlink:href="images/sprite.svg#card-favorites"></use> | 446 | <use xlink:href="images/sprite.svg#card-favorites"></use> |
443 | </svg></span><a class="card__label card__label-messenger" href="#"> | 447 | </svg></span><a class="card__label card__label-messenger" href="#"> |
444 | <svg width="25" height="25"> | 448 | <svg width="25" height="25"> |
445 | <use xlink:href="images/sprite.svg#card-messenger"></use> | 449 | <use xlink:href="images/sprite.svg#card-messenger"></use> |
446 | </svg></a></div> | 450 | </svg></a></div> |
447 | </div> | 451 | </div> |
448 | <div class="card__cnt"> | 452 | <div class="card__cnt"> |
449 | <div class="card__info"> | 453 | <div class="card__info"> |
450 | <address class="card__line card__line-complex">ЖК “Нахимовский проспект, 46”</address> | 454 | <address class="card__line card__line-complex">ЖК “Нахимовский проспект, 46”</address> |
451 | <address class="card__line">Парк Победы (5 мин., пешком)<span style="background-color: #222964;"></span></address> | 455 | <address class="card__line">Парк Победы (5 мин., пешком)<span style="background-color: #222964;"></span></address> |
452 | <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address> | 456 | <address class="card__line">г. Москва, ул. Дербеневская, д. 1, стр. 6, п. 4, эт. 2, к. 3.1.</address> |
453 | <div class="card__line">Площадь: <b>6 856 м2</b></div> | 457 | <div class="card__line">Площадь: <b>6 856 м2</b></div> |
454 | <div class="card__line">Цена за м<sup>2</sup>: <b>25 256 ₽</b></div> | 458 | <div class="card__line">Цена за м<sup>2</sup>: <b>25 256 ₽</b></div> |
455 | </div> | 459 | </div> |
456 | <div class="card__price"><span>2 625 520 ₽</span><span>в месяц</span> | 460 | <div class="card__price"><span>2 625 520 ₽</span><span>в месяц</span> |
457 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a> | 461 | </div><a class="card__btn btn btn--bordered" href="#">Подробнее об аренде</a> |
458 | </div> | 462 | </div> |
459 | </div> | 463 | </div> |
460 | </div>--> | 464 | </div>--> |
461 | </div> | 465 | </div> |
462 | </div> | 466 | </div> |
463 | <div class="swiper-pagination"></div> | 467 | <div class="swiper-pagination"></div> |
464 | </div> | 468 | </div> |
465 | </div> | 469 | </div> |
466 | </section> | 470 | </section> |
467 | @endsection | 471 | @endsection |
468 | 472 | ||
469 | @section('form_feedback') | 473 | @section('form_feedback') |
470 | <!-- Форма обратной связи --> | 474 | <!-- Форма обратной связи --> |
471 | @include('form.form_feedback') | 475 | @include('form.form_feedback') |
472 | @endsection | 476 | @endsection |
473 | 477 | ||
474 | 478 |
resources/views/layout/site.blade.php
1 | <!DOCTYPE html> | 1 | <!DOCTYPE html> |
2 | <html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> | 2 | <html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> |
3 | <head> | 3 | <head> |
4 | <meta charset="UTF-8"> | 4 | <meta charset="UTF-8"> |
5 | <meta http-equiv="X-UA-Compatible" content="IE=edge"> | 5 | <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
6 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> | 6 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
7 | <title>{{$title}}</title> | 7 | <title>{{$title}}</title> |
8 | <link rel="preload" href="{{ asset('fonts/Manrope-ExtraLight.woff2') }}" as="font" type="font/woff2" crossorigin> | 8 | <link rel="preload" href="{{ asset('fonts/Manrope-ExtraLight.woff2') }}" as="font" type="font/woff2" crossorigin> |
9 | <link rel="preload" href="{{ asset('fonts/Manrope-Light.woff2" as="font') }}" type="font/woff2" crossorigin> | 9 | <link rel="preload" href="{{ asset('fonts/Manrope-Light.woff2" as="font') }}" type="font/woff2" crossorigin> |
10 | <link rel="preload" href="{{ asset('fonts/Manrope-Regular.woff2') }}" as="font" type="font/woff2" crossorigin> | 10 | <link rel="preload" href="{{ asset('fonts/Manrope-Regular.woff2') }}" as="font" type="font/woff2" crossorigin> |
11 | <link rel="preload" href="{{ asset('fonts/Manrope-Medium.woff2') }}" as="font" type="font/woff2" crossorigin> | 11 | <link rel="preload" href="{{ asset('fonts/Manrope-Medium.woff2') }}" as="font" type="font/woff2" crossorigin> |
12 | <link rel="preload" href="{{ asset('fonts/Manrope-SemiBold.woff2') }}" as="font" type="font/woff2" crossorigin> | 12 | <link rel="preload" href="{{ asset('fonts/Manrope-SemiBold.woff2') }}" as="font" type="font/woff2" crossorigin> |
13 | <link rel="preload" href="{{ asset('fonts/Manrope-Bold.woff2') }}" as="font" type="font/woff2" crossorigin> | 13 | <link rel="preload" href="{{ asset('fonts/Manrope-Bold.woff2') }}" as="font" type="font/woff2" crossorigin> |
14 | <link rel="preload" href="{{ asset('fonts/Manrope-ExtraBold.woff2') }}" as="font" type="font/woff2" crossorigin> | 14 | <link rel="preload" href="{{ asset('fonts/Manrope-ExtraBold.woff2') }}" as="font" type="font/woff2" crossorigin> |
15 | <link rel="stylesheet" href="{{ asset('css/swiper-bundle.min.css') }}"> | 15 | <link rel="stylesheet" href="{{ asset('css/swiper-bundle.min.css') }}"> |
16 | <link rel="stylesheet" href="{{ asset('css/style.css') }}"> | 16 | <link rel="stylesheet" href="{{ asset('css/style.css') }}"> |
17 | </head> | 17 | </head> |
18 | <body> | 18 | <body> |
19 | <div class="spinner"></div> | 19 | <div class="spinner"></div> |
20 | <div class="wrapper"> | 20 | <div class="wrapper"> |
21 | <header class="header js_header"> | 21 | <header class="header js_header"> |
22 | <div class="container"> | 22 | <div class="container"> |
23 | <div class="header__wrap"><a class="header__logo" href="{{ route('index') }}"><img src="{{ asset('images/logo.svg') }}" alt="Лого"></a> | 23 | <div class="header__wrap"><a class="header__logo" href="{{ route('index') }}"><img src="{{ asset('images/logo.svg') }}" alt="Лого"></a> |
24 | <nav class="header__nav nav"> | 24 | <nav class="header__nav nav"> |
25 | <ul class="nav__list"> | 25 | <ul class="nav__list"> |
26 | <li class="nav__item"><a class="nav__link" href="{{ route('catalog') }}">Каталог</a></li> | 26 | <li class="nav__item"><a class="nav__link" href="{{ route('catalog') }}">Каталог</a></li> |
27 | <li class="nav__item"><a class="nav__link" href="{{ route('about') }}">О компании</a></li> | 27 | <li class="nav__item"><a class="nav__link" href="{{ route('about') }}">О компании</a></li> |
28 | <li class="nav__item"><a class="nav__link" href="{{ route('contact') }}">Контакты</a></li> | 28 | <li class="nav__item"><a class="nav__link" href="{{ route('contact') }}">Контакты</a></li> |
29 | <li class="nav__item"><a class="nav__link nav__link-favorites" href="{{ route('favorite') }}">Избранное<span><?=\App\Classes\RusDate::count_item_fav();?></span></a></li> | 29 | <li class="nav__item"><a class="nav__link nav__link-favorites" href="{{ route('favorite') }}">Избранное<span><?=\App\Classes\RusDate::count_item_fav();?></span></a></li> |
30 | </ul> | 30 | </ul> |
31 | </nav> | 31 | </nav> |
32 | <div class="header__buttons"><a class="header__btn-phone" href="#" data-btn="feedback"> | 32 | <div class="header__buttons"><a class="header__btn-phone" href="#" data-btn="feedback"> |
33 | <svg width="22" height="22"> | 33 | <svg width="22" height="22"> |
34 | <use xlink:href="{{ asset('images/sprite.svg#header-btn-phone') }}"></use> | 34 | <use xlink:href="{{ asset('images/sprite.svg#header-btn-phone') }}"></use> |
35 | </svg></a> | 35 | </svg></a> |
36 | <div class="header__contacts"> | 36 | <div class="header__contacts"> |
37 | <div class="header__col"><a class="header__contact" href="mailto:{{ $items_contact[0]->email }}">{{ $items_contact[0]->email }}</a></div> | 37 | <div class="header__col"><a class="header__contact" href="mailto:{{ $items_contact[0]->email }}">{{ $items_contact[0]->email }}</a></div> |
38 | <div class="header__col"><a class="header__contact" href="tel:{{ $items_contact[0]->email }}">{{ $items_contact[0]->telephone }}</a> | 38 | <div class="header__col"><a class="header__contact" href="tel:{{ $items_contact[0]->telephone }}">{{ $items_contact[0]->telephone }}</a> |
39 | <button class="header__btn-callback" type="button" data-btn="feedback">Обратный звонок</button> | 39 | <button class="header__btn-callback" type="button" data-btn="feedback">Обратный звонок</button> |
40 | </div> | 40 | </div> |
41 | </div> | 41 | </div> |
42 | <button class="header__burger js_header_burger" type="button">Меню | 42 | <button class="header__burger js_header_burger" type="button">Меню |
43 | <svg width="28" height="18"> | 43 | <svg width="28" height="18"> |
44 | <use xlink:href="{{ asset('images/sprite.svg#burger') }}"></use> | 44 | <use xlink:href="{{ asset('images/sprite.svg#burger') }}"></use> |
45 | </svg> | 45 | </svg> |
46 | </button> | 46 | </button> |
47 | </div> | 47 | </div> |
48 | <div class="menu js_menu"> | 48 | <div class="menu js_menu"> |
49 | <div class="menu__wrap"> | 49 | <div class="menu__wrap"> |
50 | <button class="menu__close js_menu_close" type="button">Меню | 50 | <button class="menu__close js_menu_close" type="button">Меню |
51 | <svg width="20" height="20"> | 51 | <svg width="20" height="20"> |
52 | <use xlink:href="{{ asset('images/sprite.svg#popup-close') }}"></use> | 52 | <use xlink:href="{{ asset('images/sprite.svg#popup-close') }}"></use> |
53 | </svg> | 53 | </svg> |
54 | </button> | 54 | </button> |
55 | <div class="menu__inner"> | 55 | <div class="menu__inner"> |
56 | <nav class="menu__nav"> | 56 | <nav class="menu__nav"> |
57 | <ul class="menu__list"> | 57 | <ul class="menu__list"> |
58 | <li class="menu__item"><a class="menu__link" href="{{ route('about') }}">О компании</a></li> | 58 | <li class="menu__item"><a class="menu__link" href="{{ route('about') }}">О компании</a></li> |
59 | <li class="menu__item"><a class="menu__link menu__link-favorites" href="{{ route('favorite') }}">Избранное<span>5</span></a></li> | 59 | <li class="menu__item"><a class="menu__link menu__link-favorites" href="{{ route('favorite') }}">Избранное<span>5</span></a></li> |
60 | <li class="menu__item"><a class="menu__link" href="{{ route('catalog') }}">Каталог</a></li> | 60 | <li class="menu__item"><a class="menu__link" href="{{ route('catalog') }}">Каталог</a></li> |
61 | <li class="menu__item"><a class="menu__link" href="{{ route('news') }}">Новости</a></li> | 61 | <li class="menu__item"><a class="menu__link" href="{{ route('news') }}">Новости</a></li> |
62 | <li class="menu__item"><a class="menu__link" href="{{ route('contact') }}">Контакты</a></li> | 62 | <li class="menu__item"><a class="menu__link" href="{{ route('contact') }}">Контакты</a></li> |
63 | </ul> | 63 | </ul> |
64 | </nav> | 64 | </nav> |
65 | <div class="menu__contacts"><a class="menu__contact" href="mailto:info@renttorg.ru">E-MAIL<span>info@renttorg.ru</span></a><a class="menu__contact" href="tel:+79290127262">ТЕЛЕФОН<span>+7 (929) 012-72-62</span></a></div> | 65 | <div class="menu__contacts"><a class="menu__contact" href="mailto:info@renttorg.ru">E-MAIL<span>info@renttorg.ru</span></a><a class="menu__contact" href="tel:+79290127262">ТЕЛЕФОН<span>+7 (929) 012-72-62</span></a></div> |
66 | <div class="menu__social social"> | 66 | <div class="menu__social social"> |
67 | <ul class="social__list"> | 67 | <ul class="social__list"> |
68 | <li class="social__item"><a class="social__link" href="#" target="_blank"><img src="{{ asset('images/tg.svg') }}" alt=""></a></li> | 68 | <li class="social__item"><a class="social__link" href="#" target="_blank"><img src="{{ asset('images/tg.svg') }}" alt=""></a></li> |
69 | <li class="social__item"><a class="social__link" href="#" target="_blank"> | 69 | <li class="social__item"><a class="social__link" href="#" target="_blank"> |
70 | <svg width="40" height="40"> | 70 | <svg width="40" height="40"> |
71 | <use xlink:href="{{ asset('images/sprite.svg#wa')}}"></use> | 71 | <use xlink:href="{{ asset('images/sprite.svg#wa')}}"></use> |
72 | </svg></a></li> | 72 | </svg></a></li> |
73 | </ul> | 73 | </ul> |
74 | </div> | 74 | </div> |
75 | </div> | 75 | </div> |
76 | </div> | 76 | </div> |
77 | </div> | 77 | </div> |
78 | </div> | 78 | </div> |
79 | </div> | 79 | </div> |
80 | </header> | 80 | </header> |
81 | <main> | 81 | <main> |
82 | 82 | ||
83 | 83 | ||
84 | <!-- Фильтр --> | 84 | <!-- Фильтр --> |
85 | @yield('filter') | 85 | @yield('filter') |
86 | 86 | ||
87 | @if ($message = Session::get('success')) | 87 | @if ($message = Session::get('success')) |
88 | <section> | 88 | <section> |
89 | <div class="alert alert-success alert-dismissible mt-0" role="alert"> | 89 | <div class="alert alert-success alert-dismissible mt-0" role="alert"> |
90 | <button type="button" class="close" data-dismiss="alert" aria-label="Закрыть"> | 90 | <button type="button" class="close" data-dismiss="alert" aria-label="Закрыть"> |
91 | <span aria-hidden="true">×</span> | 91 | <span aria-hidden="true">×</span> |
92 | </button> | 92 | </button> |
93 | {{ $message }} | 93 | {{ $message }} |
94 | </div> | 94 | </div> |
95 | </section> | 95 | </section> |
96 | @endif | 96 | @endif |
97 | 97 | ||
98 | @if ($errors->any()) | 98 | @if ($errors->any()) |
99 | <section> | 99 | <section> |
100 | <div class="alert alert-danger alert-dismissible mt-4" role="alert"> | 100 | <div class="alert alert-danger alert-dismissible mt-4" role="alert"> |
101 | <button type="button" class="close" data-dismiss="alert" aria-label="Закрыть"> | 101 | <button type="button" class="close" data-dismiss="alert" aria-label="Закрыть"> |
102 | <span aria-hidden="true">×</span> | 102 | <span aria-hidden="true">×</span> |
103 | </button> | 103 | </button> |
104 | <ul class="mb-0"> | 104 | <ul class="mb-0"> |
105 | @foreach ($errors->all() as $error) | 105 | @foreach ($errors->all() as $error) |
106 | <li>{{ $error }}</li> | 106 | <li>{{ $error }}</li> |
107 | @endforeach | 107 | @endforeach |
108 | </ul> | 108 | </ul> |
109 | </div> | 109 | </div> |
110 | </section> | 110 | </section> |
111 | @endif | 111 | @endif |
112 | <!-- Основной контент --> | 112 | <!-- Основной контент --> |
113 | @yield('content') | 113 | @yield('content') |
114 | 114 | ||
115 | </main> | 115 | </main> |
116 | 116 | ||
117 | <footer class="footer" style="background-image:url({{ asset('images/footer-bg.jpg')}})"> | 117 | <footer class="footer" style="background-image:url({{ asset('images/footer-bg.jpg')}})"> |
118 | <div class="footer__buttons"> | 118 | <div class="footer__buttons"> |
119 | <button class="footer__btn footer__btn-phone js_btn_contact_us" type="button"> | 119 | <button class="footer__btn footer__btn-phone js_btn_contact_us" type="button"> |
120 | <svg width="30" height="32"> | 120 | <svg width="30" height="32"> |
121 | <use xlink:href="{{ asset('images/sprite.svg#footer-btn-phone')}}"></use> | 121 | <use xlink:href="{{ asset('images/sprite.svg#footer-btn-phone')}}"></use> |
122 | </svg> | 122 | </svg> |
123 | </button> | 123 | </button> |
124 | <button class="footer__btn footer__btn-up js_btn_up" type="button"> | 124 | <button class="footer__btn footer__btn-up js_btn_up" type="button"> |
125 | <svg width="19" height="11"> | 125 | <svg width="19" height="11"> |
126 | <use xlink:href="{{ asset('images/sprite.svg#footer-btn-up')}}"></use> | 126 | <use xlink:href="{{ asset('images/sprite.svg#footer-btn-up')}}"></use> |
127 | </svg> | 127 | </svg> |
128 | </button> | 128 | </button> |
129 | </div> | 129 | </div> |
130 | <!-- Форма обратной связи --> | 130 | <!-- Форма обратной связи --> |
131 | @yield('form_feedback') | 131 | @yield('form_feedback') |
132 | 132 | ||
133 | <!-- Сам футер мееню --> | 133 | <!-- Сам футер мееню --> |
134 | <div class="footer-middle"> | 134 | <div class="footer-middle"> |
135 | <div class="container"> | 135 | <div class="container"> |
136 | <div class="footer-middle__wrap"> | 136 | <div class="footer-middle__wrap"> |
137 | <div class="footer__col footer__col-intro"><a class="footer__logo" href="index.html"><img src="{{ asset('images/logo-footer.svg')}}" alt="Лого"></a> | 137 | <div class="footer__col footer__col-intro"><a class="footer__logo" href="index.html"><img src="{{ asset('images/logo-footer.svg')}}" alt="Лого"></a> |
138 | <p class="footer__descr">В группу “Renttorg” входит ряд ведущих российских девелоперских компаний полного цикла, реализующих масштабные объекты недвижимости.</p> | 138 | <p class="footer__descr">В группу “Renttorg” входит ряд ведущих российских девелоперских компаний полного цикла, реализующих масштабные объекты недвижимости.</p> |
139 | <div class="footer-questions"> | 139 | <div class="footer-questions"> |
140 | <h3 class="footer-questions__title">Есть вопросы или предложения?</h3><a class="footer-questions__btn btn btn--main" href="#" data-btn="feedback">Напишите нам</a> | 140 | <h3 class="footer-questions__title">Есть вопросы или предложения?</h3><a class="footer-questions__btn btn btn--main" href="#" data-btn="feedback">Напишите нам</a> |
141 | </div> | 141 | </div> |
142 | </div> | 142 | </div> |
143 | <div class="footer__col footer__col-menu js_footer_col"> | 143 | <div class="footer__col footer__col-menu js_footer_col"> |
144 | <h3 class="footer__caption js_footer_caption">Меню</h3> | 144 | <h3 class="footer__caption js_footer_caption">Меню</h3> |
145 | <div class="footer__block js_footer_block"> | 145 | <div class="footer__block js_footer_block"> |
146 | <ul class="footer__list"> | 146 | <ul class="footer__list"> |
147 | <li class="footer__item"><a class="footer__link" href="{{ route('catalog') }}">Каталог</a></li> | 147 | <li class="footer__item"><a class="footer__link" href="{{ route('catalog') }}">Каталог</a></li> |
148 | <li class="footer__item"><a class="footer__link" href="{{ route('about') }}">О компании</a></li> | 148 | <li class="footer__item"><a class="footer__link" href="{{ route('about') }}">О компании</a></li> |
149 | <li class="footer__item"><a class="footer__link" href="{{ route('contact') }}">Контакты</a></li> | 149 | <li class="footer__item"><a class="footer__link" href="{{ route('contact') }}">Контакты</a></li> |
150 | <li class="footer__item"><a class="footer__link" href="{{ route('favorite') }}">Избранное</a></li> | 150 | <li class="footer__item"><a class="footer__link" href="{{ route('favorite') }}">Избранное</a></li> |
151 | <li class="footer__item"><a class="footer__link" href="{{ route('news') }}">Новости</a></li> | 151 | <li class="footer__item"><a class="footer__link" href="{{ route('news') }}">Новости</a></li> |
152 | </ul> | 152 | </ul> |
153 | 153 | ||
154 | </div><a class="footer__author" href="#" target="_blank"><img src="{{ asset('images/author.png')}}" alt="Лого разработчика"></a> | 154 | </div><a class="footer__author" href="#" target="_blank"><img src="{{ asset('images/author.png')}}" alt="Лого разработчика"></a> |
155 | </div> | 155 | </div> |
156 | <div class="footer__col js_footer_col"> | 156 | <div class="footer__col js_footer_col"> |
157 | <h3 class="footer__caption js_footer_caption">Услуги</h3> | 157 | <h3 class="footer__caption js_footer_caption">Услуги</h3> |
158 | <div class="footer__block js_footer_block"> | 158 | <div class="footer__block js_footer_block"> |
159 | <ul class="footer__list"> | 159 | <ul class="footer__list"> |
160 | <li class="footer__item"><a class="footer__link" href="#">Продажа арендного бизнеса</a></li> | 160 | <li class="footer__item"><a class="footer__link" href="#">Продажа арендного бизнеса</a></li> |
161 | <li class="footer__item"><a class="footer__link" href="#">Арендованные помещения</a></li> | 161 | <li class="footer__item"><a class="footer__link" href="#">Арендованные помещения</a></li> |
162 | <li class="footer__item"><a class="footer__link" href="#">Свободные для аренды</a></li> | 162 | <li class="footer__item"><a class="footer__link" href="#">Свободные для аренды</a></li> |
163 | </ul> | 163 | </ul> |
164 | </div> | 164 | </div> |
165 | </div> | 165 | </div> |
166 | <div class="footer__col js_footer_col"> | 166 | <div class="footer__col js_footer_col"> |
167 | <h3 class="footer__caption js_footer_caption">Страницы</h3> | 167 | <h3 class="footer__caption js_footer_caption">Страницы</h3> |
168 | <div class="footer__block js_footer_block"> | 168 | <div class="footer__block js_footer_block"> |
169 | <ul class="footer__list"> | 169 | <ul class="footer__list"> |
170 | <li class="footer__item"><a class="footer__link" href="{{ route('auth.login') }}">Админка</a></li> | 170 | <li class="footer__item"><a class="footer__link" href="{{ route('auth.login') }}">Админка</a></li> |
171 | <li class="footer__item"><a class="footer__link" href="{{ route('cookies') }}">Cookies</a></li> | 171 | <li class="footer__item"><a class="footer__link" href="{{ route('cookies') }}">Cookies</a></li> |
172 | 172 | ||
173 | <!--<li class="footer__item"><a class="footer__link" href="#">Новая Москва</a></li> | 173 | <!--<li class="footer__item"><a class="footer__link" href="#">Новая Москва</a></li> |
174 | <li class="footer__item"><a class="footer__link" href="#">Подмосковье</a></li> | 174 | <li class="footer__item"><a class="footer__link" href="#">Подмосковье</a></li> |
175 | <li class="footer__item"><a class="footer__link" href="#">Москва</a></li> | 175 | <li class="footer__item"><a class="footer__link" href="#">Москва</a></li> |
176 | <li class="footer__item"><a class="footer__link" href="#">Тип недвижимости</a></li>--> | 176 | <li class="footer__item"><a class="footer__link" href="#">Тип недвижимости</a></li>--> |
177 | </ul> | 177 | </ul> |
178 | </div> | 178 | </div> |
179 | </div> | 179 | </div> |
180 | <div class="footer__col footer__col-contacts"> | 180 | <div class="footer__col footer__col-contacts"> |
181 | <h3 class="footer__caption js_footer_caption">Контакты</h3> | 181 | <h3 class="footer__caption js_footer_caption">Контакты</h3> |
182 | <ul class="footer__list"> | 182 | <ul class="footer__list"> |
183 | <li class="footer__item"><a class="footer__link" href="#mailto:{{ $items_contact[0]->email }}">{{ $items_contact[0]->email }}</a></li> | 183 | <li class="footer__item"><a class="footer__link" href="#mailto:{{ $items_contact[0]->email }}">{{ $items_contact[0]->email }}</a></li> |
184 | <li class="footer__item"><a class="footer__link" href="tel:{{ $items_contact[0]->telephone }}">{{ $items_contact[0]->telephone }}</a></li> | 184 | <li class="footer__item"><a class="footer__link" href="tel:{{ $items_contact[0]->telephone }}">{{ $items_contact[0]->telephone }}</a></li> |
185 | </ul> | 185 | </ul> |
186 | <div class="footer__social social"> | 186 | <div class="footer__social social"> |
187 | <ul class="social__list"> | 187 | <ul class="social__list"> |
188 | <li class="social__item"><a class="social__link" href="#" target="_blank"><img src="{{ asset('images/tg.svg')}}" alt=""></a></li> | 188 | <li class="social__item"><a class="social__link" href="#" target="_blank"><img src="{{ asset('images/tg.svg')}}" alt=""></a></li> |
189 | <li class="social__item"><a class="social__link" href="#" target="_blank"> | 189 | <li class="social__item"><a class="social__link" href="#" target="_blank"> |
190 | <svg width="40" height="40"> | 190 | <svg width="40" height="40"> |
191 | <use xlink:href="{{ asset('images/sprite.svg#wa') }}"></use> | 191 | <use xlink:href="{{ asset('images/sprite.svg#wa') }}"></use> |
192 | </svg></a></li> | 192 | </svg></a></li> |
193 | </ul> | 193 | </ul> |
194 | </div> | 194 | </div> |
195 | </div> | 195 | </div> |
196 | </div> | 196 | </div> |
197 | </div> | 197 | </div> |
198 | </div> | 198 | </div> |
199 | 199 | ||
200 | <div class="footer-bottom"> | 200 | <div class="footer-bottom"> |
201 | <div class="container"> | 201 | <div class="container"> |
202 | <div class="footer-bottom__wrap"> | 202 | <div class="footer-bottom__wrap"> |
203 | <div class="footer__copy">© 2023 RentTorg</div><a class="footer__plicy" href="{{ route('conf') }}">Политика конфиденциальности</a> | 203 | <div class="footer__copy">© 2023 RentTorg</div><a class="footer__plicy" href="{{ route('conf') }}">Политика конфиденциальности</a> |
204 | </div> | 204 | </div> |
205 | </div> | 205 | </div> |
206 | </div> | 206 | </div> |
207 | </footer> | 207 | </footer> |
208 | </div> | 208 | </div> |
209 | 209 | ||
210 | <!-- Вплывающие окна --> | 210 | <!-- Вплывающие окна --> |
211 | <div class="popup popup-feedback" data-popup="feedback"> | 211 | <div class="popup popup-feedback" data-popup="feedback"> |
212 | <div class="popup__wrap"> | 212 | <div class="popup__wrap"> |
213 | <button class="popup__close js_popup_close" type="button"> | 213 | <button class="popup__close js_popup_close" type="button"> |
214 | <svg width="20" height="20"> | 214 | <svg width="20" height="20"> |
215 | <use xlink:href="{{ asset('images/sprite.svg#popup-close')}}"></use> | 215 | <use xlink:href="{{ asset('images/sprite.svg#popup-close')}}"></use> |
216 | </svg> | 216 | </svg> |
217 | </button> | 217 | </button> |
218 | <form class="popup-feedback__form js_popup_feedback_form" action="{{ route('header_form') }}" method="POST"> | 218 | <form class="popup-feedback__form js_popup_feedback_form" action="{{ route('header_form') }}" method="POST"> |
219 | @csrf | 219 | @csrf |
220 | <div class="popup-feedback__title">Как с вами связаться</div> | 220 | <div class="popup-feedback__title">Как с вами связаться</div> |
221 | <div class="popup-feedback__fields"> | 221 | <div class="popup-feedback__fields"> |
222 | <label class="popup-feedback__field field"> | 222 | <label class="popup-feedback__field field"> |
223 | <input type="text" placeholder="Имя" name="NameUser"> | 223 | <input type="text" placeholder="Имя" name="NameUser"> |
224 | </label> | 224 | </label> |
225 | <label class="popup-feedback__field field"> | 225 | <label class="popup-feedback__field field"> |
226 | <input class="js_input_phone" type="text" placeholder="Телефон" name="TelephoneUser"> | 226 | <input class="js_input_phone" type="text" placeholder="Телефон" name="TelephoneUser"> |
227 | </label> | 227 | </label> |
228 | </div> | 228 | </div> |
229 | <button class="popup-feedback__btn btn btn--main js_form_btn">Отправить</button> | 229 | <button class="popup-feedback__btn btn btn--main js_form_btn">Отправить</button> |
230 | <p class="popup-feedback__confirm">Нажимая на кнопку «Отправить», Вы даете согласие на обработку персональных данных в соответствии с <a href="{{ route('conf') }}">Политикой конфиденциальности</a>.</p> | 230 | <p class="popup-feedback__confirm">Нажимая на кнопку «Отправить», Вы даете согласие на обработку персональных данных в соответствии с <a href="{{ route('conf') }}">Политикой конфиденциальности</a>.</p> |
231 | </form> | 231 | </form> |
232 | </div> | 232 | </div> |
233 | </div> | 233 | </div> |
234 | <div class="popup popup-feedback" data-popup="viewing"> | 234 | <div class="popup popup-feedback" data-popup="viewing"> |
235 | <div class="popup__wrap"> | 235 | <div class="popup__wrap"> |
236 | <button class="popup__close js_popup_close" type="button"> | 236 | <button class="popup__close js_popup_close" type="button"> |
237 | <svg width="20" height="20"> | 237 | <svg width="20" height="20"> |
238 | <use xlink:href="{{ asset('images/sprite.svg#popup-close')}}"></use> | 238 | <use xlink:href="{{ asset('images/sprite.svg#popup-close')}}"></use> |
239 | </svg> | 239 | </svg> |
240 | </button> | 240 | </button> |
241 | <form class="popup-feedback__form js_popup_viewing_form" action="{{ route('rec_view_form') }}" method="POST"> | 241 | <form class="popup-feedback__form js_popup_viewing_form" action="{{ route('rec_view_form') }}" method="POST"> |
242 | @csrf | 242 | @csrf |
243 | <div class="popup-feedback__title">Записаться на просмотр</div> | 243 | <div class="popup-feedback__title">Записаться на просмотр</div> |
244 | <div class="popup-feedback__fields"> | 244 | <div class="popup-feedback__fields"> |
245 | <label class="popup-feedback__field field"> | 245 | <label class="popup-feedback__field field"> |
246 | <input type="text" placeholder="Имя" name="NameUser"> | 246 | <input type="text" placeholder="Имя" name="NameUser"> |
247 | </label> | 247 | </label> |
248 | <label class="popup-feedback__field field"> | 248 | <label class="popup-feedback__field field"> |
249 | <input class="js_input_phone" type="text" placeholder="Телефон" name="TelephoneUser"> | 249 | <input class="js_input_phone" type="text" placeholder="Телефон" name="TelephoneUser"> |
250 | </label> | 250 | </label> |
251 | </div> | 251 | </div> |
252 | <button class="popup-feedback__btn btn btn--main js_form_btn">Отправить</button> | 252 | <button class="popup-feedback__btn btn btn--main js_form_btn">Отправить</button> |
253 | <p class="popup-feedback__confirm">Нажимая на кнопку «Отправить», Вы даете согласие на обработку персональных данных в соответствии с <a href="#">Политикой конфиденциальности</a>.</p> | 253 | <p class="popup-feedback__confirm">Нажимая на кнопку «Отправить», Вы даете согласие на обработку персональных данных в соответствии с <a href="#">Политикой конфиденциальности</a>.</p> |
254 | </form> | 254 | </form> |
255 | </div> | 255 | </div> |
256 | </div> | 256 | </div> |
257 | <div class="popup popup-success" data-popup="success"> | 257 | <div class="popup popup-success" data-popup="success"> |
258 | <div class="popup__wrap"> | 258 | <div class="popup__wrap"> |
259 | <button class="popup__close js_popup_close" type="button"> | 259 | <button class="popup__close js_popup_close" type="button"> |
260 | <svg width="20" height="20"> | 260 | <svg width="20" height="20"> |
261 | <use xlink:href="{{ asset('images/sprite.svg#popup-close') }}"></use> | 261 | <use xlink:href="{{ asset('images/sprite.svg#popup-close') }}"></use> |
262 | </svg> | 262 | </svg> |
263 | </button> | 263 | </button> |
264 | <div class="popup-success__inner"> | 264 | <div class="popup-success__inner"> |
265 | <div class="popup-success__logo"> | 265 | <div class="popup-success__logo"> |
266 | <svg width="48" height="39"> | 266 | <svg width="48" height="39"> |
267 | <use xlink:href="{{ asset('images/sprite.svg#popup-success-logo')}}"></use> | 267 | <use xlink:href="{{ asset('images/sprite.svg#popup-success-logo')}}"></use> |
268 | </svg> | 268 | </svg> |
269 | </div> | 269 | </div> |
270 | <div class="popup-success__title">Спасибо за заявку</div> | 270 | <div class="popup-success__title">Спасибо за заявку</div> |
271 | <p class="popup-success__descr">В ближайшее время с вами свяжется наш специалист для уточнения деталей вашей задачи.</p> | 271 | <p class="popup-success__descr">В ближайшее время с вами свяжется наш специалист для уточнения деталей вашей задачи.</p> |
272 | </div> | 272 | </div> |
273 | </div> | 273 | </div> |
274 | </div> | 274 | </div> |
275 | <div class="popup popup-feedback" data-popup="sending"> | 275 | <div class="popup popup-feedback" data-popup="sending"> |
276 | <div class="popup__wrap"> | 276 | <div class="popup__wrap"> |
277 | <button class="popup__close js_popup_close" type="button"> | 277 | <button class="popup__close js_popup_close" type="button"> |
278 | <svg width="20" height="20"> | 278 | <svg width="20" height="20"> |
279 | <use xlink:href="{{ asset('images/sprite.svg#popup-close')}}"></use> | 279 | <use xlink:href="{{ asset('images/sprite.svg#popup-close')}}"></use> |
280 | </svg> | 280 | </svg> |
281 | </button> | 281 | </button> |
282 | <form class="popup-feedback__form js_popup_sending_form_" action="{{ route('email_form') }}" method="POST"> | 282 | <form class="popup-feedback__form js_popup_sending_form_" action="{{ route('email_form') }}" method="POST"> |
283 | @csrf | 283 | @csrf |
284 | <div class="popup-feedback__title">Отправить на почту</div> | 284 | <div class="popup-feedback__title">Отправить на почту</div> |
285 | <div class="popup-feedback__fields"> | 285 | <div class="popup-feedback__fields"> |
286 | <label class="popup-feedback__field field"> | 286 | <label class="popup-feedback__field field"> |
287 | <input class="js_input_email" type="text" placeholder="Электронная почта" name="EmailUser"> | 287 | <input class="js_input_email" type="text" placeholder="Электронная почта" name="EmailUser"> |
288 | </label> | 288 | </label> |
289 | </div> | 289 | </div> |
290 | <button class="popup-feedback__btn btn btn--main js_form_btn">Отправить</button> | 290 | <button class="popup-feedback__btn btn btn--main js_form_btn">Отправить</button> |
291 | <p class="popup-feedback__confirm">Нажимая на кнопку «Отправить», Вы даете согласие на обработку персональных данных в соответствии с <a href="{{ route('conf') }}">Политикой конфиденциальности</a>.</p> | 291 | <p class="popup-feedback__confirm">Нажимая на кнопку «Отправить», Вы даете согласие на обработку персональных данных в соответствии с <a href="{{ route('conf') }}">Политикой конфиденциальности</a>.</p> |
292 | </form> | 292 | </form> |
293 | </div> | 293 | </div> |
294 | </div> | 294 | </div> |
295 | <div class="contact-us js_contact_us"> | 295 | <div class="contact-us js_contact_us"> |
296 | <div class="contact-us__top"> | 296 | <div class="contact-us__top"> |
297 | <button class="contact-us__close js_contact_us_close" type="button"> | 297 | <button class="contact-us__close js_contact_us_close" type="button"> |
298 | <svg width="20" height="20"> | 298 | <svg width="20" height="20"> |
299 | <use xlink:href="{{ asset('images/sprite.svg#popup-close')}}"></use> | 299 | <use xlink:href="{{ asset('images/sprite.svg#popup-close')}}"></use> |
300 | </svg> | 300 | </svg> |
301 | </button> | 301 | </button> |
302 | <div class="contact-us__title">Свяжитесь с нами</div> | 302 | <div class="contact-us__title">Свяжитесь с нами</div> |
303 | </div> | 303 | </div> |
304 | <div class="contact-us__body"> | 304 | <div class="contact-us__body"> |
305 | <div class="contact-us__items"><a class="contact-us-item js_contact_us_close" data-btn="feedback"> | 305 | <div class="contact-us__items"><a class="contact-us-item js_contact_us_close" data-btn="feedback"> |
306 | <div class="contact-us-item__icon"> | 306 | <div class="contact-us-item__icon"> |
307 | <svg width="34" height="34"> | 307 | <svg width="34" height="34"> |
308 | <use xlink:href="{{ asset('images/sprite.svg#contact-us-phone')}}"></use> | 308 | <use xlink:href="{{ asset('images/sprite.svg#contact-us-phone')}}"></use> |
309 | </svg> | 309 | </svg> |
310 | </div> | 310 | </div> |
311 | <div class="contact-us-item__name">Позвонить</div></a> | 311 | <div class="contact-us-item__name">Позвонить</div></a> |
312 | 312 | ||
313 | <a class="contact-us-item js_contact_us_close" data-btn="sending"> | 313 | <a class="contact-us-item js_contact_us_close" data-btn="sending"> |
314 | <div class="contact-us-item__icon"> | 314 | <div class="contact-us-item__icon"> |
315 | <svg width="44" height="44"> | 315 | <svg width="44" height="44"> |
316 | <use xlink:href="{{ asset('images/sprite.svg#contact-us-email')}}"></use> | 316 | <use xlink:href="{{ asset('images/sprite.svg#contact-us-email')}}"></use> |
317 | </svg> | 317 | </svg> |
318 | </div> | 318 | </div> |
319 | <div class="contact-us-item__name">Написать</div></a> | 319 | <div class="contact-us-item__name">Написать</div></a> |
320 | 320 | ||
321 | <a class="contact-us-item js_contact_us_close" > | 321 | <a class="contact-us-item js_contact_us_close" > |
322 | <div class="contact-us-item__icon"> | 322 | <div class="contact-us-item__icon"> |
323 | <svg width="34" height="34"> | 323 | <svg width="34" height="34"> |
324 | <use xlink:href="{{ asset('images/sprite.svg#contact-us-chat')}}"></use> | 324 | <use xlink:href="{{ asset('images/sprite.svg#contact-us-chat')}}"></use> |
325 | </svg> | 325 | </svg> |
326 | </div> | 326 | </div> |
327 | <div class="contact-us-item__name">Онлайн-чат</div></a></div> | 327 | <div class="contact-us-item__name">Онлайн-чат</div></a></div> |
328 | <div class="contact-us__socials"><a class="contact-us-social js_contact_us_close" href="#" target="_blank"> | 328 | <div class="contact-us__socials"><a class="contact-us-social js_contact_us_close" href="#" target="_blank"> |
329 | <div class="contact-us-social__icon contact-us-social__icon-tg"><img src="{{ asset('images/contact-us-tg.svg')}}" alt=""></div> | 329 | <div class="contact-us-social__icon contact-us-social__icon-tg"><img src="{{ asset('images/contact-us-tg.svg')}}" alt=""></div> |
330 | <div class="contact-us-social__name">Telegram</div></a><a class="contact-us-social js_contact_us_close" href="#" target="_blank"> | 330 | <div class="contact-us-social__name">Telegram</div></a><a class="contact-us-social js_contact_us_close" href="#" target="_blank"> |
331 | <div class="contact-us-social__icon contact-us-social__icon-wa"> | 331 | <div class="contact-us-social__icon contact-us-social__icon-wa"> |
332 | <svg width="31" height="31"> | 332 | <svg width="31" height="31"> |
333 | <use xlink:href="{{ asset('images/sprite.svg#contact-us-wa')}}"></use> | 333 | <use xlink:href="{{ asset('images/sprite.svg#contact-us-wa')}}"></use> |
334 | </svg> | 334 | </svg> |
335 | </div> | 335 | </div> |
336 | <div class="contact-us-social__name">WhatsApp</div></a></div> | 336 | <div class="contact-us-social__name">WhatsApp</div></a></div> |
337 | </div> | 337 | </div> |
338 | </div> | 338 | </div> |
339 | 339 | ||
340 | <!-- Всплывашка этажа и объекта | 340 | <!-- Всплывашка этажа и объекта |
341 | <div class="offer-side-popup" data-popup="offer-side-popup"> | 341 | <div class="offer-side-popup" data-popup="offer-side-popup"> |
342 | <div class="offer-side-popup__wrap"> | 342 | <div class="offer-side-popup__wrap"> |
343 | <button class="offer-side-popup__close js_popup_close" type="button"> | 343 | <button class="offer-side-popup__close js_popup_close" type="button"> |
344 | <svg width="20" height="20"> | 344 | <svg width="20" height="20"> |
345 | <use xlink:href="{{ asset('images/sprite.svg#popup-close')}}"></use> | 345 | <use xlink:href="images/sprite.svg#popup-close"></use> |
346 | </svg> | 346 | </svg> |
347 | </button> | 347 | </button> |
348 | <div class="offer-side-popup__cnt"> | 348 | <div class="offer-side-popup__cnt"> |
349 | <div class="offer-side-popup__item js_offer_side_popup_item active" data-item="1"><img src="{{ asset('images/offer-side-item-img-1.jpg')}}" alt="План объекта"></div> | 349 | <div class="offer-side-popup__item js_offer_side_popup_item active" data-item="1"><img src="images/offer-side-item-img-1.jpg" alt="План объекта"></div> |
350 | <div class="offer-side-popup__item js_offer_side_popup_item" data-item="2"><img src="{{ asset('images/offer-side-item-img-2.jpg')}}" alt="План этажа"></div> | 350 | <div class="offer-side-popup__item js_offer_side_popup_item" data-item="2"><img src="images/offer-side-item-img-2.jpg" alt="План этажа"></div> |
351 | </div> | 351 | </div> |
352 | <div class="offer-side-popup__tabs"> | 352 | <div class="offer-side-popup__tabs"> |
353 | <button class="offer-side-popup__tab js_offer_side_popup_tab active" type="button" data-tab="1">План объекта</button> | 353 | <button class="offer-side-popup__tab js_offer_side_popup_tab active" type="button" data-tab="1">План объекта</button> |
354 | <button class="offer-side-popup__tab js_offer_side_popup_tab" type="button" data-tab="2">План этажа</button> | 354 | <button class="offer-side-popup__tab js_offer_side_popup_tab" type="button" data-tab="2">План этажа</button> |
355 | </div> | 355 | </div> |
356 | <button class="offer-side-popup__sizeoff js_popup_close" type="button"> | 356 | <button class="offer-side-popup__sizeoff js_popup_close" type="button"> |
357 | <svg width="18" height="18"> | 357 | <svg width="18" height="18"> |
358 | <use xlink:href="{{ asset('images/sprite.svg#popup-sizeoff')}}"></use> | 358 | <use xlink:href="images/sprite.svg#popup-sizeoff"></use> |
359 | </svg> | 359 | </svg> |
360 | </button> | 360 | </button> |
361 | </div> | 361 | </div> |
362 | </div> | 362 | </div> |
363 | --> | 363 | --> |
364 | 364 | ||
365 | <div class="img-viewer js_img_viewer"> | 365 | <div class="img-viewer js_img_viewer"> |
366 | <div class="img-viewer__wrap"> | 366 | <div class="img-viewer__wrap"> |
367 | <button class="img-viewer__close js_img_viewer_close" type="button"> | 367 | <button class="img-viewer__close js_img_viewer_close" type="button"> |
368 | <svg width="20" height="20"> | 368 | <svg width="20" height="20"> |
369 | <use xlink:href="{{ asset('images/sprite.svg#popup-close')}}"></use> | 369 | <use xlink:href="{{ asset('images/sprite.svg#popup-close')}}"></use> |
370 | </svg> | 370 | </svg> |
371 | </button> | 371 | </button> |
372 | <div class="img-viewer__thumbs js_img_viewer_thumbs"> | 372 | <div class="img-viewer__thumbs js_img_viewer_thumbs"> |
373 | <div class="img-viewer__thumbs-swiper js_img_viewer_thumbs_swiper swiper"> | 373 | <div class="img-viewer__thumbs-swiper js_img_viewer_thumbs_swiper swiper"> |
374 | <div class="swiper-wrapper"></div> | 374 | <div class="swiper-wrapper"></div> |
375 | </div> | 375 | </div> |
376 | </div> | 376 | </div> |
377 | <div class="img-viewer__slider"> | 377 | <div class="img-viewer__slider"> |
378 | <div class="img-viewer__slider-swiper js_img_viewer_slider_swiper swiper"> | 378 | <div class="img-viewer__slider-swiper js_img_viewer_slider_swiper swiper"> |
379 | <div class="swiper-wrapper"></div> | 379 | <div class="swiper-wrapper"></div> |
380 | </div> | 380 | </div> |
381 | <div class="swiper-button-prev"> | 381 | <div class="swiper-button-prev"> |
382 | <svg width="10" height="17"> | 382 | <svg width="10" height="17"> |
383 | <use xlink:href="{{ asset('images/sprite.svg#slider-arrow')}}"></use> | 383 | <use xlink:href="{{ asset('images/sprite.svg#slider-arrow')}}"></use> |
384 | </svg> | 384 | </svg> |
385 | </div> | 385 | </div> |
386 | <div class="swiper-button-next"> | 386 | <div class="swiper-button-next"> |
387 | <svg width="10" height="17"> | 387 | <svg width="10" height="17"> |
388 | <use xlink:href="{{ asset('images/sprite.svg#slider-arrow')}}"></use> | 388 | <use xlink:href="{{ asset('images/sprite.svg#slider-arrow')}}"></use> |
389 | </svg> | 389 | </svg> |
390 | </div> | 390 | </div> |
391 | </div> | 391 | </div> |
392 | <div class="img-viewer__caption js_img_viewer_caption"></div> | 392 | <div class="img-viewer__caption js_img_viewer_caption"></div> |
393 | <button class="img-viewer__sizeoff js_img_viewer_close" type="button"> | 393 | <button class="img-viewer__sizeoff js_img_viewer_close" type="button"> |
394 | <svg width="18" height="18"> | 394 | <svg width="18" height="18"> |
395 | <use xlink:href="{{ asset('images/sprite.svg#popup-sizeoff') }}"></use> | 395 | <use xlink:href="{{ asset('images/sprite.svg#popup-sizeoff') }}"></use> |
396 | </svg> | 396 | </svg> |
397 | </button> | 397 | </button> |
398 | </div> | 398 | </div> |
399 | </div> | 399 | </div> |
400 | <div class="cookies js_cookies"> | 400 | <div class="cookies js_cookies"> |
401 | <div class="container"> | 401 | <div class="container"> |
402 | <div class="cookies__wrap"> | 402 | <div class="cookies__wrap"> |
403 | <div class="cookies__top"> | 403 | <div class="cookies__top"> |
404 | <div class="cookies__img"><img src="{{ asset('images/cookies.svg') }}" alt="cookies"></div> | 404 | <div class="cookies__img"><img src="{{ asset('images/cookies.svg') }}" alt="cookies"></div> |
405 | <div class="cookies__title">Cookies</div> | 405 | <div class="cookies__title">Cookies</div> |
406 | </div> | 406 | </div> |
407 | <p class="cookies__descr">Мы используем cookie-файлы для наилучшего представления нашего сайта.<br>Продолжая использовать сайт, вы даете согласие с использованием cookie-файлов.</p> | 407 | <p class="cookies__descr">Мы используем cookie-файлы для наилучшего представления нашего сайта.<br>Продолжая использовать сайт, вы даете согласие с использованием cookie-файлов.</p> |
408 | <div class="cookies__buttons"> | 408 | <div class="cookies__buttons"> |
409 | <button class="cookies__btn btn btn--main js_cookies_confirm" type="button">Принять</button><a class="cookies__link" href="{{ route('cookies') }}">Подробнее</a> | 409 | <button class="cookies__btn btn btn--main js_cookies_confirm" type="button">Принять</button><a class="cookies__link" href="{{ route('cookies') }}">Подробнее</a> |
410 | </div> | 410 | </div> |
411 | </div> | 411 | </div> |
412 | </div> | 412 | </div> |
413 | </div> | 413 | </div> |
414 | <script src="https://api-maps.yandex.ru/2.1/?lang=ru_RU"></script> | 414 | <script src="https://api-maps.yandex.ru/2.1/?lang=ru_RU"></script> |
415 | <script src="{{ asset('js/swiper-bundle.min.js') }}"></script> | 415 | <script src="{{ asset('js/swiper-bundle.min.js') }}"></script> |
416 | <script src="{{ asset('js/main_main.js') }}"></script> | 416 | <script src="{{ asset('js/main_main.js') }}"></script> |
417 | <script type="text/javascript" src="{{ asset('js/jquery.min.js') }}"></script> | 417 | <script type="text/javascript" src="{{ asset('js/jquery.min.js') }}"></script> |
418 | <script type="text/javascript" src="{{ asset('js/jquery.cookie.js') }}"></script> | 418 | <script type="text/javascript" src="{{ asset('js/jquery.cookie.js') }}"></script> |
419 | @yield('custom_js') | 419 | @yield('custom_js') |
420 | @include('js.cookies_favorite') | 420 | @include('js.cookies_favorite') |
421 | </body> | 421 | </body> |
422 | </html> | 422 | </html> |
423 | 423 |