Commit 48b64e32f86628b906df3fe4ca4e257815d15aa9
1 parent
a9da0bb95e
Exists in
master
Презентация pdf
Showing 33 changed files with 1162 additions and 4 deletions Inline Diff
- app/Http/Controllers/MainController.php
- public/fonts/all.css
- public/fonts/dejavusans.ttf
- public/fonts/dejavusans.woff
- public/fonts/dejavusans.woff2
- public/fonts/dejavusansbold.ttf
- public/fonts/dejavusansbold.woff
- public/fonts/dejavusansbold.woff2
- public/fonts/dejavusansboldoblique.ttf
- public/fonts/dejavusansboldoblique.woff
- public/fonts/dejavusansboldoblique.woff2
- public/fonts/dejavusansextralight.ttf
- public/fonts/dejavusansextralight.woff
- public/fonts/dejavusansextralight.woff2
- public/fonts/dejavusansoblique.ttf
- public/fonts/dejavusansoblique.woff
- public/fonts/dejavusansoblique.woff2
- public/images/1.jpg
- public/images/10.jpg
- public/images/11.jpg
- public/images/12.jpg
- public/images/2.jpg
- public/images/3.jpg
- public/images/4.jpg
- public/images/5.jpg
- public/images/6.jpg
- public/images/7.jpg
- public/images/8.jpg
- public/images/9.jpg
- public/styles/normalize_.css
- public/styles/style_.css
- resources/views/layout/pdf.blade.php
- resources/views/layout/pdf2.blade.php
app/Http/Controllers/MainController.php
1 | <?php | 1 | <?php |
2 | 2 | ||
3 | namespace App\Http\Controllers; | 3 | namespace App\Http\Controllers; |
4 | 4 | ||
5 | use App\Classes\SortData; | 5 | use App\Classes\SortData; |
6 | use App\Http\Requests\EmailRequest; | 6 | use App\Http\Requests\EmailRequest; |
7 | use App\Http\Requests\FooterFeedbackRequest; | 7 | use App\Http\Requests\FooterFeedbackRequest; |
8 | use App\Mail\SendMail; | 8 | use App\Mail\SendMail; |
9 | use App\Models\Area; | 9 | use App\Models\Area; |
10 | use App\Models\Contact; | 10 | use App\Models\Contact; |
11 | use App\Models\format_area; | 11 | use App\Models\format_area; |
12 | use App\Models\House; | 12 | use App\Models\House; |
13 | use App\Models\ModelMailFeedback; | 13 | use App\Models\ModelMailFeedback; |
14 | use App\Models\News; | 14 | use App\Models\News; |
15 | use App\Models\Page; | 15 | use App\Models\Page; |
16 | use App\Models\Partners; | 16 | use App\Models\Partners; |
17 | use App\Models\type_area; | 17 | use App\Models\type_area; |
18 | use Barryvdh\DomPDF\Facade\Pdf; | 18 | use Barryvdh\DomPDF\Facade\Pdf; |
19 | use Illuminate\Database\Eloquent\Model; | 19 | use Illuminate\Database\Eloquent\Model; |
20 | use Illuminate\Http\Request; | 20 | use Illuminate\Http\Request; |
21 | use App\Classes\RusDate; | 21 | use App\Classes\RusDate; |
22 | use Illuminate\Support\Facades\DB; | 22 | use Illuminate\Support\Facades\DB; |
23 | use Illuminate\Support\Facades\Mail; | 23 | use Illuminate\Support\Facades\Mail; |
24 | use PhpParser\Node\Stmt\Switch_; | 24 | use PhpParser\Node\Stmt\Switch_; |
25 | use Illuminate\Support\Facades\Response; | 25 | use Illuminate\Support\Facades\Response; |
26 | use App\Classes\FilterData; | 26 | use App\Classes\FilterData; |
27 | //use App\Mail\SendMail; | 27 | //use App\Mail\SendMail; |
28 | //use PDF; | 28 | //use PDF; |
29 | 29 | ||
30 | class MainController extends Controller | 30 | class MainController extends Controller |
31 | { | 31 | { |
32 | /* | 32 | /* |
33 | * Главная страница проекта | 33 | * Главная страница проекта |
34 | */ | 34 | */ |
35 | public function index() { | 35 | public function index() { |
36 | $houses = House::with('areas')->orderByDesc('created_at')->limit(8)->get(); | 36 | $houses = House::with('areas')->orderByDesc('created_at')->limit(8)->get(); |
37 | $news = News::query()->orderByDesc('created_at')->limit(8)->get(); | 37 | $news = News::query()->orderByDesc('created_at')->limit(8)->get(); |
38 | $partners = Partners::query()->limit(18)->get(); | 38 | $partners = Partners::query()->limit(18)->get(); |
39 | return view('index', compact('houses', 'news', 'partners')); | 39 | return view('index', compact('houses', 'news', 'partners')); |
40 | } | 40 | } |
41 | 41 | ||
42 | /* | 42 | /* |
43 | * Фильтр ajax в каталоге | 43 | * Фильтр ajax в каталоге |
44 | */ | 44 | */ |
45 | public function catalog_ajax_filter(Request $request) { | 45 | public function catalog_ajax_filter(Request $request) { |
46 | $Res = Array(); | 46 | $Res = Array(); |
47 | if (!empty($request->area)) { | 47 | if (!empty($request->area)) { |
48 | $area_table = Area::where('id', '=', $request->area)->get(); | 48 | $area_table = Area::where('id', '=', $request->area)->get(); |
49 | $Res[] = $area_table[0]->name_area; | 49 | $Res[] = $area_table[0]->name_area; |
50 | } else { | 50 | } else { |
51 | $Res[] = "Все объекты"; | 51 | $Res[] = "Все объекты"; |
52 | } | 52 | } |
53 | 53 | ||
54 | if (!empty($request->type_area)) { | 54 | if (!empty($request->type_area)) { |
55 | $type_area_table = type_area::where('id', '=', $request->type_area)->get(); | 55 | $type_area_table = type_area::where('id', '=', $request->type_area)->get(); |
56 | $Res[] = $type_area_table[0]->name_type; | 56 | $Res[] = $type_area_table[0]->name_type; |
57 | } else { | 57 | } else { |
58 | $Res[] = "Тип недвижимости"; | 58 | $Res[] = "Тип недвижимости"; |
59 | } | 59 | } |
60 | 60 | ||
61 | if (!empty($request->format_area)) { | 61 | if (!empty($request->format_area)) { |
62 | $format_area_table = format_area::where('id', '=', $request->format_area)->get(); | 62 | $format_area_table = format_area::where('id', '=', $request->format_area)->get(); |
63 | $Res[] = $format_area_table[0]->name_format; | 63 | $Res[] = $format_area_table[0]->name_format; |
64 | } else { | 64 | } else { |
65 | $Res[] = "Формат недвижимости"; | 65 | $Res[] = "Формат недвижимости"; |
66 | } | 66 | } |
67 | 67 | ||
68 | return json_encode($Res); | 68 | return json_encode($Res); |
69 | } | 69 | } |
70 | 70 | ||
71 | /* | 71 | /* |
72 | * Страница ЖК | 72 | * Страница ЖК |
73 | */ | 73 | */ |
74 | public function Complex(Area $area, Request $request) { | 74 | public function Complex(Area $area, Request $request) { |
75 | //////////раздел аренда | 75 | //////////раздел аренда |
76 | $house_arenda = House::with('areas')-> | 76 | $house_arenda = House::with('areas')-> |
77 | where('area_id', '=', $area->id)-> | 77 | where('area_id', '=', $area->id)-> |
78 | where('format_house', '=', 'Аренда'); | 78 | where('format_house', '=', 'Аренда'); |
79 | 79 | ||
80 | if ($request->view == 'arenda') { | 80 | if ($request->view == 'arenda') { |
81 | $house_arenda = (new SortData($house_arenda, $request))->apply()->get(); | 81 | $house_arenda = (new SortData($house_arenda, $request))->apply()->get(); |
82 | 82 | ||
83 | } else { | 83 | } else { |
84 | $house_arenda = $house_arenda->orderBy('price')-> | 84 | $house_arenda = $house_arenda->orderBy('price')-> |
85 | orderByDesc('created_at')-> | 85 | orderByDesc('created_at')-> |
86 | orderByDesc('area')->get(); | 86 | orderByDesc('area')->get(); |
87 | } | 87 | } |
88 | 88 | ||
89 | ////////раздел продажа | 89 | ////////раздел продажа |
90 | $house_prodaja = House::with('areas')-> | 90 | $house_prodaja = House::with('areas')-> |
91 | where('area_id', '=', $area->id)-> | 91 | where('area_id', '=', $area->id)-> |
92 | where('format_house', '=', 'Продажа'); | 92 | where('format_house', '=', 'Продажа'); |
93 | 93 | ||
94 | if ($request->view == 'prodaja') { | 94 | if ($request->view == 'prodaja') { |
95 | $house_prodaja = (new SortData($house_prodaja, $request))->apply()->get(); | 95 | $house_prodaja = (new SortData($house_prodaja, $request))->apply()->get(); |
96 | 96 | ||
97 | } else { | 97 | } else { |
98 | $house_prodaja = $house_prodaja->orderBy('price')-> | 98 | $house_prodaja = $house_prodaja->orderBy('price')-> |
99 | orderByDesc('created_at')-> | 99 | orderByDesc('created_at')-> |
100 | orderByDesc('area')->get(); | 100 | orderByDesc('area')->get(); |
101 | } | 101 | } |
102 | 102 | ||
103 | //////////////// Раздел бизнеса | 103 | //////////////// Раздел бизнеса |
104 | $house_bissnes = House::with('areas')-> | 104 | $house_bissnes = House::with('areas')-> |
105 | where('area_id', '=', $area->id)-> | 105 | where('area_id', '=', $area->id)-> |
106 | where('format_house', '=', 'Бизнес'); | 106 | where('format_house', '=', 'Бизнес'); |
107 | //orderByDesc('created_at')->get(); | 107 | //orderByDesc('created_at')->get(); |
108 | 108 | ||
109 | if ($request->view == 'bissnes') { | 109 | if ($request->view == 'bissnes') { |
110 | $house_bissnes = (new SortData($house_bissnes, $request))->apply()->get(); | 110 | $house_bissnes = (new SortData($house_bissnes, $request))->apply()->get(); |
111 | 111 | ||
112 | } else { | 112 | } else { |
113 | $house_bissnes = $house_bissnes->orderBy('price')-> | 113 | $house_bissnes = $house_bissnes->orderBy('price')-> |
114 | orderByDesc('created_at')-> | 114 | orderByDesc('created_at')-> |
115 | orderByDesc('area')->get(); | 115 | orderByDesc('area')->get(); |
116 | } | 116 | } |
117 | 117 | ||
118 | //////////раздел арендованные | 118 | //////////раздел арендованные |
119 | $house_arendovannie = House::with('areas')-> | 119 | $house_arendovannie = House::with('areas')-> |
120 | where('area_id', '=', $area->id)-> | 120 | where('area_id', '=', $area->id)-> |
121 | where('format_house', '=', 'Арендованные'); | 121 | where('format_house', '=', 'Арендованные'); |
122 | //orderByDesc('created_at')->get(); | 122 | //orderByDesc('created_at')->get(); |
123 | 123 | ||
124 | if ($request->view == 'arendovannie') { | 124 | if ($request->view == 'arendovannie') { |
125 | $house_arendovannie = (new SortData($house_arendovannie, $request))->apply()->get(); | 125 | $house_arendovannie = (new SortData($house_arendovannie, $request))->apply()->get(); |
126 | 126 | ||
127 | } else { | 127 | } else { |
128 | $house_arendovannie = $house_arendovannie->orderBy('price')-> | 128 | $house_arendovannie = $house_arendovannie->orderBy('price')-> |
129 | orderByDesc('created_at')-> | 129 | orderByDesc('created_at')-> |
130 | orderByDesc('area')->get(); | 130 | orderByDesc('area')->get(); |
131 | } | 131 | } |
132 | 132 | ||
133 | if ($request->ajax()) { | 133 | if ($request->ajax()) { |
134 | switch($request->view) { | 134 | switch($request->view) { |
135 | case 'arenda': return view('ajax.complex.arenda', compact('house_arenda')); break; | 135 | case 'arenda': return view('ajax.complex.arenda', compact('house_arenda')); break; |
136 | case 'prodaja': return view('ajax.complex.prodaja', compact('house_prodaja'));break; | 136 | case 'prodaja': return view('ajax.complex.prodaja', compact('house_prodaja'));break; |
137 | case 'bissnes': return view('ajax.complex.bissnes', compact('house_bissnes')); break; | 137 | case 'bissnes': return view('ajax.complex.bissnes', compact('house_bissnes')); break; |
138 | case 'arendovannie': return view('ajax.complex.arendovannie', compact('house_arendovannie')); break; | 138 | case 'arendovannie': return view('ajax.complex.arendovannie', compact('house_arendovannie')); break; |
139 | } | 139 | } |
140 | } | 140 | } |
141 | 141 | ||
142 | return view('complex', compact('area', | 142 | return view('complex', compact('area', |
143 | 'house_arenda', | 143 | 'house_arenda', |
144 | 'house_prodaja', | 144 | 'house_prodaja', |
145 | 'house_bissnes', | 145 | 'house_bissnes', |
146 | 'house_arendovannie')); | 146 | 'house_arendovannie')); |
147 | 147 | ||
148 | } | 148 | } |
149 | 149 | ||
150 | /* | 150 | /* |
151 | * О компании | 151 | * О компании |
152 | */ | 152 | */ |
153 | public function About(): \Illuminate\Contracts\View\Factory|\Illuminate\Contracts\View\View|\Illuminate\Contracts\Foundation\Application | 153 | public function About(): \Illuminate\Contracts\View\Factory|\Illuminate\Contracts\View\View|\Illuminate\Contracts\Foundation\Application |
154 | { | 154 | { |
155 | $news = News::query()->orderByDesc('created_at')->limit(8)->get(); | 155 | $news = News::query()->orderByDesc('created_at')->limit(8)->get(); |
156 | $partners = Partners::query()->limit(18)->get(); | 156 | $partners = Partners::query()->limit(18)->get(); |
157 | return view('about', compact('news', 'partners')); | 157 | return view('about', compact('news', 'partners')); |
158 | } | 158 | } |
159 | 159 | ||
160 | public function send_mail() { | 160 | public function send_mail() { |
161 | $toEmail = "integralal@mail.ru";//$RentTorg[0]->email; | 161 | $toEmail = "integralal@mail.ru";//$RentTorg[0]->email; |
162 | $message = "Тест сообщения, проверка связи!"; | 162 | $message = "Тест сообщения, проверка связи!"; |
163 | $mm = new SendMail($message); | 163 | $mm = new SendMail($message); |
164 | $d = Mail::to($toEmail)->send(new SendMail($message)); | 164 | $d = Mail::to($toEmail)->send(new SendMail($message)); |
165 | dd($d); | 165 | dd($d); |
166 | } | 166 | } |
167 | 167 | ||
168 | /* | 168 | /* |
169 | * Форма обратной связи внизу сайта | 169 | * Форма обратной связи внизу сайта |
170 | */ | 170 | */ |
171 | public function main_form(FooterFeedbackRequest $request) { | 171 | public function main_form(FooterFeedbackRequest $request) { |
172 | $RentTorg = Contact::query()->limit(1)->get(); | 172 | $RentTorg = Contact::query()->limit(1)->get(); |
173 | $MailBD = new ModelMailFeedback(); | 173 | $MailBD = new ModelMailFeedback(); |
174 | $MailBD->to = 'Администрации сайта'; | 174 | $MailBD->to = 'Администрации сайта'; |
175 | $MailBD->from = $request->TelephoneUser; | 175 | $MailBD->from = $request->TelephoneUser; |
176 | $MailBD->subject = "Пользователь <".$request->NameUser.">"; | 176 | $MailBD->subject = "Пользователь <".$request->NameUser.">"; |
177 | $MailBD->form = 'Форма в футере'; | 177 | $MailBD->form = 'Форма в футере'; |
178 | $message = "От пользователя: ".$request->NameUser.". Телефон: ".$request->TelephoneUser.". Заявка на лучшие предложения. Сообщение: ".$request->TextUser; | 178 | $message = "От пользователя: ".$request->NameUser.". Телефон: ".$request->TelephoneUser.". Заявка на лучшие предложения. Сообщение: ".$request->TextUser; |
179 | $MailBD->text = $message; | 179 | $MailBD->text = $message; |
180 | $MailBD->save(); | 180 | $MailBD->save(); |
181 | 181 | ||
182 | $toEmail = $RentTorg[0]->email; | 182 | $toEmail = $RentTorg[0]->email; |
183 | $mm = new SendMail($message); | 183 | $mm = new SendMail($message); |
184 | $d = Mail::to($toEmail)->send(new SendMail($message)); | 184 | $d = Mail::to($toEmail)->send(new SendMail($message)); |
185 | 185 | ||
186 | //$toEmail = "integralal@mail.ru";//$RentTorg[0]->email; | 186 | //$toEmail = "integralal@mail.ru";//$RentTorg[0]->email; |
187 | /*$email = $RentTorg[0]->email; | 187 | /*$email = $RentTorg[0]->email; |
188 | $sender = "alarionov@nologostudio.ru"; | 188 | $sender = "alarionov@nologostudio.ru"; |
189 | 189 | ||
190 | $headers = "From: $sender" . "\r\n" . | 190 | $headers = "From: $sender" . "\r\n" . |
191 | "Reply-To: $sender" . "\r\n" . | 191 | "Reply-To: $sender" . "\r\n" . |
192 | "X-Mailer: PHP/" . phpversion(); | 192 | "X-Mailer: PHP/" . phpversion(); |
193 | mail($email, "От сайта Рентторг", $message, $headers); | 193 | mail($email, "От сайта Рентторг", $message, $headers); |
194 | */ | 194 | */ |
195 | //$mm = new SendMail($message); | 195 | //$mm = new SendMail($message); |
196 | //Mail::to($toEmail)->send($mm); | 196 | //Mail::to($toEmail)->send($mm); |
197 | 197 | ||
198 | //return true; | 198 | //return true; |
199 | /* | 199 | /* |
200 | Mail::send('emails.feedback', ['user' => $user], | 200 | Mail::send('emails.feedback', ['user' => $user], |
201 | function ($message) use ($user) { | 201 | function ($message) use ($user) { |
202 | $message->from('sender@gmail.com', 'Sender'); | 202 | $message->from('sender@gmail.com', 'Sender'); |
203 | $message->to($user->email, $user->name)->subject('Test message'); | 203 | $message->to($user->email, $user->name)->subject('Test message'); |
204 | }); | 204 | }); |
205 | */ | 205 | */ |
206 | 206 | ||
207 | 207 | ||
208 | } | 208 | } |
209 | 209 | ||
210 | /* | 210 | /* |
211 | * Форма обратной связе в хедере | 211 | * Форма обратной связе в хедере |
212 | */ | 212 | */ |
213 | public function header_form(FooterFeedbackRequest $request) { | 213 | public function header_form(FooterFeedbackRequest $request) { |
214 | $RentTorg = Contact::query()->limit(1)->get(); | 214 | $RentTorg = Contact::query()->limit(1)->get(); |
215 | $MailBD = new ModelMailFeedback(); | 215 | $MailBD = new ModelMailFeedback(); |
216 | $MailBD->to = 'Администрации сайта'; | 216 | $MailBD->to = 'Администрации сайта'; |
217 | $MailBD->from = $request->TelephoneUser; | 217 | $MailBD->from = $request->TelephoneUser; |
218 | $MailBD->subject = "Пользователь <".$request->NameUser.">"; | 218 | $MailBD->subject = "Пользователь <".$request->NameUser.">"; |
219 | $MailBD->form = 'Форма в заголовке сайта'; | 219 | $MailBD->form = 'Форма в заголовке сайта'; |
220 | $message = "От пользователя: ".$request->NameUser.". Телефон: ".$request->TelephoneUser.". Сообщение: Заказываю обратный звонок"; | 220 | $message = "От пользователя: ".$request->NameUser.". Телефон: ".$request->TelephoneUser.". Сообщение: Заказываю обратный звонок"; |
221 | $MailBD->text = $message; | 221 | $MailBD->text = $message; |
222 | $MailBD->save(); | 222 | $MailBD->save(); |
223 | 223 | ||
224 | $toEmail = $RentTorg[0]->email; | 224 | $toEmail = $RentTorg[0]->email; |
225 | $mm = new SendMail($message); | 225 | $mm = new SendMail($message); |
226 | $d = Mail::to($toEmail)->send(new SendMail($message)); | 226 | $d = Mail::to($toEmail)->send(new SendMail($message)); |
227 | 227 | ||
228 | /*$email = $RentTorg[0]->email; | 228 | /*$email = $RentTorg[0]->email; |
229 | $sender = "alarionov@nologostudio.ru"; | 229 | $sender = "alarionov@nologostudio.ru"; |
230 | 230 | ||
231 | $headers = "From: $sender" . "\r\n" . | 231 | $headers = "From: $sender" . "\r\n" . |
232 | "Reply-To: $sender" . "\r\n" . | 232 | "Reply-To: $sender" . "\r\n" . |
233 | "X-Mailer: PHP/" . phpversion(); | 233 | "X-Mailer: PHP/" . phpversion(); |
234 | mail($email, "От сайта Рентторг", $message, $headers); | 234 | mail($email, "От сайта Рентторг", $message, $headers); |
235 | */ | 235 | */ |
236 | } | 236 | } |
237 | 237 | ||
238 | /* | 238 | /* |
239 | * Форма записаться на просмотр | 239 | * Форма записаться на просмотр |
240 | */ | 240 | */ |
241 | public function rec_view_form(FooterFeedbackRequest $request) { | 241 | public function rec_view_form(FooterFeedbackRequest $request) { |
242 | $RentTorg = Contact::query()->limit(1)->get(); | 242 | $RentTorg = Contact::query()->limit(1)->get(); |
243 | $MailBD = new ModelMailFeedback(); | 243 | $MailBD = new ModelMailFeedback(); |
244 | $MailBD->to = 'Администрации сайта'; | 244 | $MailBD->to = 'Администрации сайта'; |
245 | $MailBD->from = $request->TelephoneUser; | 245 | $MailBD->from = $request->TelephoneUser; |
246 | $MailBD->subject = "Пользователь <".$request->NameUser.">"; | 246 | $MailBD->subject = "Пользователь <".$request->NameUser.">"; |
247 | $MailBD->form = 'Форма записи на просмотр'; | 247 | $MailBD->form = 'Форма записи на просмотр'; |
248 | $message = "От пользователя: ".$request->NameUser.". Телефон: ".$request->TelephoneUser.". Сообщение: Заказываю просмотр офиса"; | 248 | $message = "От пользователя: ".$request->NameUser.". Телефон: ".$request->TelephoneUser.". Сообщение: Заказываю просмотр офиса"; |
249 | $message.= "Адрес офиса-объекта: ".url()->previous()." "; | 249 | $message.= "Адрес офиса-объекта: ".url()->previous()." "; |
250 | $MailBD->text = $message; | 250 | $MailBD->text = $message; |
251 | $MailBD->save(); | 251 | $MailBD->save(); |
252 | 252 | ||
253 | $toEmail = $RentTorg[0]->email; | 253 | $toEmail = $RentTorg[0]->email; |
254 | $d = Mail::to($toEmail)->send(new SendMail($message)); | 254 | $d = Mail::to($toEmail)->send(new SendMail($message)); |
255 | 255 | ||
256 | /*$email = $RentTorg[0]->email; | 256 | /*$email = $RentTorg[0]->email; |
257 | $sender = "alarionov@nologostudio.ru"; | 257 | $sender = "alarionov@nologostudio.ru"; |
258 | 258 | ||
259 | $headers = "From: $sender" . "\r\n" . | 259 | $headers = "From: $sender" . "\r\n" . |
260 | "Reply-To: $sender" . "\r\n" . | 260 | "Reply-To: $sender" . "\r\n" . |
261 | "X-Mailer: PHP/" . phpversion(); | 261 | "X-Mailer: PHP/" . phpversion(); |
262 | mail($email, "От сайта Рентторг", $message, $headers);*/ | 262 | mail($email, "От сайта Рентторг", $message, $headers);*/ |
263 | } | 263 | } |
264 | 264 | ||
265 | /* | 265 | /* |
266 | * Форма обратной связи на странице "Контакты" | 266 | * Форма обратной связи на странице "Контакты" |
267 | */ | 267 | */ |
268 | public function page_contact_form(FooterFeedbackRequest $request) { | 268 | public function page_contact_form(FooterFeedbackRequest $request) { |
269 | $RentTorg = Contact::query()->limit(1)->get(); | 269 | $RentTorg = Contact::query()->limit(1)->get(); |
270 | $MailBD = new ModelMailFeedback(); | 270 | $MailBD = new ModelMailFeedback(); |
271 | $MailBD->to = 'Администрации сайта'; | 271 | $MailBD->to = 'Администрации сайта'; |
272 | $MailBD->from = $request->TelephoneUser; | 272 | $MailBD->from = $request->TelephoneUser; |
273 | $MailBD->subject = "Пользователь <".$request->NameUser."> Компания <".$request->NameCompany.">"; | 273 | $MailBD->subject = "Пользователь <".$request->NameUser."> Компания <".$request->NameCompany.">"; |
274 | $MailBD->form = 'Форма на странице "Контакты"'; | 274 | $MailBD->form = 'Форма на странице "Контакты"'; |
275 | $message = "От пользователя: ".$request->NameUser.". Компания <".$request->NameCompany.">. Телефон: ".$request->TelephoneUser." Почта: <".$request->EmailUser."> Сообщение:".$request->TextUser; | 275 | $message = "От пользователя: ".$request->NameUser.". Компания <".$request->NameCompany.">. Телефон: ".$request->TelephoneUser." Почта: <".$request->EmailUser."> Сообщение:".$request->TextUser; |
276 | $MailBD->text = $message; | 276 | $MailBD->text = $message; |
277 | $MailBD->save(); | 277 | $MailBD->save(); |
278 | 278 | ||
279 | $toEmail = $RentTorg[0]->email; | 279 | $toEmail = $RentTorg[0]->email; |
280 | $d = Mail::to($toEmail)->send(new SendMail($message)); | 280 | $d = Mail::to($toEmail)->send(new SendMail($message)); |
281 | 281 | ||
282 | /* | 282 | /* |
283 | $email = $RentTorg[0]->email; | 283 | $email = $RentTorg[0]->email; |
284 | $sender = "alarionov@nologostudio.ru"; | 284 | $sender = "alarionov@nologostudio.ru"; |
285 | 285 | ||
286 | $headers = "From: $sender" . "\r\n" . | 286 | $headers = "From: $sender" . "\r\n" . |
287 | "Reply-To: $sender" . "\r\n" . | 287 | "Reply-To: $sender" . "\r\n" . |
288 | "X-Mailer: PHP/" . phpversion(); | 288 | "X-Mailer: PHP/" . phpversion(); |
289 | mail($email, "От сайта Рентторг", $message, $headers); | 289 | mail($email, "От сайта Рентторг", $message, $headers); |
290 | */ | 290 | */ |
291 | } | 291 | } |
292 | /* | 292 | /* |
293 | * Форма обратной связи по емайлу | 293 | * Форма обратной связи по емайлу |
294 | */ | 294 | */ |
295 | public function email_form(EmailRequest $request) { | 295 | public function email_form(EmailRequest $request) { |
296 | $RentTorg = Contact::query()->limit(1)->get(); | 296 | $RentTorg = Contact::query()->limit(1)->get(); |
297 | $MailBD = new ModelMailFeedback(); | 297 | $MailBD = new ModelMailFeedback(); |
298 | $MailBD->to = 'Администрации сайта'; | 298 | $MailBD->to = 'Администрации сайта'; |
299 | $MailBD->from = $request->EmailUser; | 299 | $MailBD->from = $request->EmailUser; |
300 | $MailBD->subject = "Пользователь <".$request->EmailUser.">"; | 300 | $MailBD->subject = "Пользователь <".$request->EmailUser.">"; |
301 | $MailBD->form = 'Форма обратной связи по Email'; | 301 | $MailBD->form = 'Форма обратной связи по Email'; |
302 | $message = "От почты: ".$request->EmailUser.". Сообщение: Отправить на данную почту предложения RentTorg"; | 302 | $message = "От почты: ".$request->EmailUser.". Сообщение: Отправить на данную почту предложения RentTorg"; |
303 | $MailBD->text = $message; | 303 | $MailBD->text = $message; |
304 | $MailBD->save(); | 304 | $MailBD->save(); |
305 | 305 | ||
306 | $toEmail = $RentTorg[0]->email; | 306 | $toEmail = $RentTorg[0]->email; |
307 | $d = Mail::to($toEmail)->send(new SendMail($message)); | 307 | $d = Mail::to($toEmail)->send(new SendMail($message)); |
308 | 308 | ||
309 | /* | 309 | /* |
310 | $email = $RentTorg[0]->email; | 310 | $email = $RentTorg[0]->email; |
311 | $sender = "alarionov@nologostudio.ru"; | 311 | $sender = "alarionov@nologostudio.ru"; |
312 | 312 | ||
313 | $headers = "From: $sender" . "\r\n" . | 313 | $headers = "From: $sender" . "\r\n" . |
314 | "Reply-To: $sender" . "\r\n" . | 314 | "Reply-To: $sender" . "\r\n" . |
315 | "X-Mailer: PHP/" . phpversion(); | 315 | "X-Mailer: PHP/" . phpversion(); |
316 | mail($email, "От сайта Рентторг", $message, $headers); | 316 | mail($email, "От сайта Рентторг", $message, $headers); |
317 | */ | 317 | */ |
318 | //dd('Email form'); | 318 | //dd('Email form'); |
319 | return redirect()->route('index'); | 319 | return redirect()->route('index'); |
320 | } | 320 | } |
321 | 321 | ||
322 | /* | 322 | /* |
323 | * Избранное | 323 | * Избранное |
324 | */ | 324 | */ |
325 | public function Favorite(Request $request) { | 325 | public function Favorite(Request $request) { |
326 | if (empty($_COOKIE['favorite_house'])) { | 326 | if (empty($_COOKIE['favorite_house'])) { |
327 | $Arr = Array(); | 327 | $Arr = Array(); |
328 | } else { | 328 | } else { |
329 | $Arr = json_decode($_COOKIE['favorite_house'], true); | 329 | $Arr = json_decode($_COOKIE['favorite_house'], true); |
330 | } | 330 | } |
331 | if (!empty($Arr) && is_array($Arr)) { | 331 | if (!empty($Arr) && is_array($Arr)) { |
332 | $houses = House::with('areas')->whereIn('id', $Arr); | 332 | $houses = House::with('areas')->whereIn('id', $Arr); |
333 | 333 | ||
334 | if (isset($request->sort_price)) { | 334 | if (isset($request->sort_price)) { |
335 | $houses = (new SortData($houses, $request))->apply(); | 335 | $houses = (new SortData($houses, $request))->apply(); |
336 | 336 | ||
337 | 337 | ||
338 | } else { | 338 | } else { |
339 | $houses = $houses->orderBy('price')-> | 339 | $houses = $houses->orderBy('price')-> |
340 | orderByDesc('created_at')-> | 340 | orderByDesc('created_at')-> |
341 | orderByDesc('area'); | 341 | orderByDesc('area'); |
342 | } | 342 | } |
343 | 343 | ||
344 | $houses = $houses->paginate(4); | 344 | $houses = $houses->paginate(4); |
345 | 345 | ||
346 | if ($request->ajax()) { | 346 | if ($request->ajax()) { |
347 | return view('ajax.complex.favorite', compact('houses')); | 347 | return view('ajax.complex.favorite', compact('houses')); |
348 | } | 348 | } |
349 | 349 | ||
350 | return view('favorite_data', compact('houses')); | 350 | return view('favorite_data', compact('houses')); |
351 | } else { | 351 | } else { |
352 | return view('favorite', compact('Arr')); | 352 | return view('favorite', compact('Arr')); |
353 | } | 353 | } |
354 | 354 | ||
355 | 355 | ||
356 | } | 356 | } |
357 | 357 | ||
358 | /* | 358 | /* |
359 | * Категории каталога Аренда/Продажа/Бизнес/Арендованные | 359 | * Категории каталога Аренда/Продажа/Бизнес/Арендованные |
360 | */ | 360 | */ |
361 | public function Category($cat, Request $request) { | 361 | public function Category($cat, Request $request) { |
362 | switch ($cat) { | 362 | switch ($cat) { |
363 | case 'arenda': | 363 | case 'arenda': |
364 | $title = "Аренда торговых помещениий"; | 364 | $title = "Аренда торговых помещениий"; |
365 | $format_house = 'Аренда'; | 365 | $format_house = 'Аренда'; |
366 | break; | 366 | break; |
367 | case 'sale': | 367 | case 'sale': |
368 | $title = "Продажа торговых помещений"; | 368 | $title = "Продажа торговых помещений"; |
369 | $format_house = 'Продажа'; | 369 | $format_house = 'Продажа'; |
370 | break; | 370 | break; |
371 | case 'bussiness': | 371 | case 'bussiness': |
372 | $title = "Арендый бизнес"; | 372 | $title = "Арендый бизнес"; |
373 | $format_house = 'Бизнес'; | 373 | $format_house = 'Бизнес'; |
374 | break; | 374 | break; |
375 | case 'arendovannie': | 375 | case 'arendovannie': |
376 | $title = "Арендованные"; | 376 | $title = "Арендованные"; |
377 | $format_house = 'Арендованные'; | 377 | $format_house = 'Арендованные'; |
378 | break; | 378 | break; |
379 | default: | 379 | default: |
380 | $title = "Аренда торговых помещениий"; | 380 | $title = "Аренда торговых помещениий"; |
381 | $format_house = 'Аренда'; | 381 | $format_house = 'Аренда'; |
382 | break; | 382 | break; |
383 | } | 383 | } |
384 | 384 | ||
385 | $houses = House::with('areas')-> | 385 | $houses = House::with('areas')-> |
386 | where('format_house', '=', $format_house); | 386 | where('format_house', '=', $format_house); |
387 | //->appends(request()->query()); | 387 | //->appends(request()->query()); |
388 | 388 | ||
389 | $houses = (new FilterData($houses, $request))->apply(); | 389 | $houses = (new FilterData($houses, $request))->apply(); |
390 | 390 | ||
391 | if (isset($request->sort_price)) { | 391 | if (isset($request->sort_price)) { |
392 | $houses = (new SortData($houses, $request))->apply(); | 392 | $houses = (new SortData($houses, $request))->apply(); |
393 | 393 | ||
394 | 394 | ||
395 | } else { | 395 | } else { |
396 | $houses = $houses->orderBy('price')-> | 396 | $houses = $houses->orderBy('price')-> |
397 | orderByDesc('created_at')-> | 397 | orderByDesc('created_at')-> |
398 | orderByDesc('area'); | 398 | orderByDesc('area'); |
399 | } | 399 | } |
400 | 400 | ||
401 | $houses = $houses->paginate(4); | 401 | $houses = $houses->paginate(4); |
402 | 402 | ||
403 | if ($request->ajax()) { | 403 | if ($request->ajax()) { |
404 | return view('ajax.complex.category', compact('houses')); | 404 | return view('ajax.complex.category', compact('houses')); |
405 | } | 405 | } |
406 | 406 | ||
407 | return view('category_catalog', compact('title', 'cat', 'houses')); | 407 | return view('category_catalog', compact('title', 'cat', 'houses')); |
408 | } | 408 | } |
409 | 409 | ||
410 | public function Test(Request $request) { | 410 | public function Test(Request $request) { |
411 | $house_arenda = House::with('areas')-> | 411 | $house_arenda = House::with('areas')-> |
412 | where('format_house', '=', 'Аренда'); | 412 | where('format_house', '=', 'Аренда'); |
413 | 413 | ||
414 | $house_arenda = $house_arenda->orderByDesc('price')-> | 414 | $house_arenda = $house_arenda->orderByDesc('price')-> |
415 | orderByDesc('created_at')-> | 415 | orderByDesc('created_at')-> |
416 | orderByDesc('area')->get(); | 416 | orderByDesc('area')->get(); |
417 | 417 | ||
418 | 418 | ||
419 | return view('ajax.complex.arenda', compact('house_arenda')); | 419 | return view('ajax.complex.arenda', compact('house_arenda')); |
420 | 420 | ||
421 | } | 421 | } |
422 | 422 | ||
423 | 423 | ||
424 | /* | 424 | /* |
425 | * Каталог | 425 | * Каталог |
426 | */ | 426 | */ |
427 | public function Catalog(Request $request) { | 427 | public function Catalog(Request $request) { |
428 | 428 | ||
429 | //////////раздел аренда///////////////////////////////////////////////////////////////// | 429 | //////////раздел аренда///////////////////////////////////////////////////////////////// |
430 | $house_arenda = House::with('areas')-> | 430 | $house_arenda = House::with('areas')-> |
431 | where('format_house', '=', 'Аренда'); | 431 | where('format_house', '=', 'Аренда'); |
432 | // условия поиска по объектам комплексов | 432 | // условия поиска по объектам комплексов |
433 | 433 | ||
434 | $house_arenda = (new FilterData($house_arenda, $request))->apply(); | 434 | $house_arenda = (new FilterData($house_arenda, $request))->apply(); |
435 | 435 | ||
436 | if ($request->view == 'arenda') { | 436 | if ($request->view == 'arenda') { |
437 | $house_arenda = (new SortData($house_arenda, $request))->apply()->get(); | 437 | $house_arenda = (new SortData($house_arenda, $request))->apply()->get(); |
438 | } else { | 438 | } else { |
439 | $house_arenda = $house_arenda->orderBy('price')-> | 439 | $house_arenda = $house_arenda->orderBy('price')-> |
440 | orderByDesc('created_at')-> | 440 | orderByDesc('created_at')-> |
441 | orderByDesc('area')->get(); | 441 | orderByDesc('area')->get(); |
442 | } | 442 | } |
443 | 443 | ||
444 | ////////раздел продажа////////////////////////////////////////////////////////////////// | 444 | ////////раздел продажа////////////////////////////////////////////////////////////////// |
445 | $house_prodaja = House::with('areas')-> | 445 | $house_prodaja = House::with('areas')-> |
446 | where('format_house', '=', 'Продажа'); | 446 | where('format_house', '=', 'Продажа'); |
447 | 447 | ||
448 | $house_prodaja = (new FilterData($house_prodaja, $request))->apply(); | 448 | $house_prodaja = (new FilterData($house_prodaja, $request))->apply(); |
449 | 449 | ||
450 | if ($request->view == 'prodaja') { | 450 | if ($request->view == 'prodaja') { |
451 | $house_prodaja = (new SortData($house_prodaja, $request))->apply()->get(); | 451 | $house_prodaja = (new SortData($house_prodaja, $request))->apply()->get(); |
452 | 452 | ||
453 | } else { | 453 | } else { |
454 | $house_prodaja = $house_prodaja->orderBy('price')-> | 454 | $house_prodaja = $house_prodaja->orderBy('price')-> |
455 | orderByDesc('created_at')-> | 455 | orderByDesc('created_at')-> |
456 | orderByDesc('area')->get(); | 456 | orderByDesc('area')->get(); |
457 | } | 457 | } |
458 | 458 | ||
459 | //////////////// Раздел бизнеса///////////////////////////////////////////////////////// | 459 | //////////////// Раздел бизнеса///////////////////////////////////////////////////////// |
460 | $house_bissnes = House::with('areas')-> | 460 | $house_bissnes = House::with('areas')-> |
461 | where('format_house', '=', 'Бизнес'); | 461 | where('format_house', '=', 'Бизнес'); |
462 | //orderByDesc('created_at')->get(); | 462 | //orderByDesc('created_at')->get(); |
463 | 463 | ||
464 | $house_bissnes = (new FilterData($house_bissnes, $request))->apply(); | 464 | $house_bissnes = (new FilterData($house_bissnes, $request))->apply(); |
465 | 465 | ||
466 | if ($request->view == 'bissnes') { | 466 | if ($request->view == 'bissnes') { |
467 | $house_bissnes = (new SortData($house_bissnes, $request))->apply()->get(); | 467 | $house_bissnes = (new SortData($house_bissnes, $request))->apply()->get(); |
468 | 468 | ||
469 | } else { | 469 | } else { |
470 | $house_bissnes = $house_bissnes->orderBy('price')-> | 470 | $house_bissnes = $house_bissnes->orderBy('price')-> |
471 | orderByDesc('created_at')-> | 471 | orderByDesc('created_at')-> |
472 | orderByDesc('area')->get(); | 472 | orderByDesc('area')->get(); |
473 | } | 473 | } |
474 | 474 | ||
475 | //////////раздел арендованные////////////////////////////////////////////////////////// | 475 | //////////раздел арендованные////////////////////////////////////////////////////////// |
476 | $house_arendovannie = House::with('areas')-> | 476 | $house_arendovannie = House::with('areas')-> |
477 | where('format_house', '=', 'Арендованные'); | 477 | where('format_house', '=', 'Арендованные'); |
478 | //orderByDesc('created_at')->get(); | 478 | //orderByDesc('created_at')->get(); |
479 | 479 | ||
480 | $house_arendovannie = (new FilterData($house_arendovannie, $request))->apply(); | 480 | $house_arendovannie = (new FilterData($house_arendovannie, $request))->apply(); |
481 | 481 | ||
482 | if ($request->view == 'arendovannie') { | 482 | if ($request->view == 'arendovannie') { |
483 | $house_arendovannie = (new SortData($house_arendovannie, $request))->apply()->get(); | 483 | $house_arendovannie = (new SortData($house_arendovannie, $request))->apply()->get(); |
484 | 484 | ||
485 | } else { | 485 | } else { |
486 | $house_arendovannie = $house_arendovannie->orderBy('price')-> | 486 | $house_arendovannie = $house_arendovannie->orderBy('price')-> |
487 | orderByDesc('created_at')-> | 487 | orderByDesc('created_at')-> |
488 | orderByDesc('area')->get(); | 488 | orderByDesc('area')->get(); |
489 | } | 489 | } |
490 | 490 | ||
491 | if ($request->ajax()) { | 491 | if ($request->ajax()) { |
492 | switch($request->view) { | 492 | switch($request->view) { |
493 | case 'arenda': return view('ajax.complex.arenda', compact('house_arenda')); break; | 493 | case 'arenda': return view('ajax.complex.arenda', compact('house_arenda')); break; |
494 | case 'prodaja': return view('ajax.complex.prodaja', compact('house_prodaja'));break; | 494 | case 'prodaja': return view('ajax.complex.prodaja', compact('house_prodaja'));break; |
495 | case 'bissnes': return view('ajax.complex.bissnes', compact('house_bissnes')); break; | 495 | case 'bissnes': return view('ajax.complex.bissnes', compact('house_bissnes')); break; |
496 | case 'arendovannie': return view('ajax.complex.arendovannie', compact('house_arendovannie')); break; | 496 | case 'arendovannie': return view('ajax.complex.arendovannie', compact('house_arendovannie')); break; |
497 | } | 497 | } |
498 | } | 498 | } |
499 | if (session('message') == 'Искать') { | 499 | if (session('message') == 'Искать') { |
500 | session()->flash('message', 'Сброс'); | 500 | session()->flash('message', 'Сброс'); |
501 | } else { | 501 | } else { |
502 | session()->flash('message', 'Искать'); | 502 | session()->flash('message', 'Искать'); |
503 | } | 503 | } |
504 | 504 | ||
505 | if (empty($request)) { | 505 | if (empty($request)) { |
506 | session()->flash('message', 'Искать'); | 506 | session()->flash('message', 'Искать'); |
507 | } | 507 | } |
508 | 508 | ||
509 | return view('catalog', compact( | 509 | return view('catalog', compact( |
510 | 'house_arenda', | 510 | 'house_arenda', |
511 | 'house_prodaja', | 511 | 'house_prodaja', |
512 | 'house_bissnes', | 512 | 'house_bissnes', |
513 | 'house_arendovannie' | 513 | 'house_arendovannie' |
514 | )); | 514 | )); |
515 | 515 | ||
516 | 516 | ||
517 | } | 517 | } |
518 | 518 | ||
519 | /* | 519 | /* |
520 | * Новости | 520 | * Новости |
521 | */ | 521 | */ |
522 | public function News() { | 522 | public function News() { |
523 | //$news = News::orderByDesc('created_at')->limit(1)->paginate(); | 523 | //$news = News::orderByDesc('created_at')->limit(1)->paginate(); |
524 | $news_ = News::query()->orderByDesc('created_at')->paginate(4); | 524 | $news_ = News::query()->orderByDesc('created_at')->paginate(4); |
525 | return view('news', compact('news_')); | 525 | return view('news', compact('news_')); |
526 | } | 526 | } |
527 | 527 | ||
528 | /* | 528 | /* |
529 | * Контакты | 529 | * Контакты |
530 | */ | 530 | */ |
531 | public function Contact() { | 531 | public function Contact() { |
532 | return view('contact'); | 532 | return view('contact'); |
533 | } | 533 | } |
534 | 534 | ||
535 | /* | 535 | /* |
536 | * Карта объектов | 536 | * Карта объектов |
537 | */ | 537 | */ |
538 | public function MapsObj(Request $request) { | 538 | public function MapsObj(Request $request) { |
539 | //$houses = House::with('areas'); | 539 | //$houses = House::with('areas'); |
540 | //$houses = $houses->orderBy('id')->get(); | 540 | //$houses = $houses->orderBy('id')->get(); |
541 | $input = $request->all(); | 541 | $input = $request->all(); |
542 | 542 | ||
543 | $houses = House::with('areas'); | 543 | $houses = House::with('areas'); |
544 | if (empty($input)) { | 544 | if (empty($input)) { |
545 | 545 | ||
546 | } else { | 546 | } else { |
547 | $houses = (new FilterData($houses, $request))->apply(); | 547 | $houses = (new FilterData($houses, $request))->apply(); |
548 | } | 548 | } |
549 | 549 | ||
550 | $houses = $houses->orderByDesc('id')->get(); | 550 | $houses = $houses->orderByDesc('id')->get(); |
551 | 551 | ||
552 | $areas = Area::query()->orderBy('id')->get(); | 552 | $areas = Area::query()->orderBy('id')->get(); |
553 | 553 | ||
554 | return view('mapsobj', compact('areas', 'input', 'houses')); | 554 | return view('mapsobj', compact('areas', 'input', 'houses')); |
555 | } | 555 | } |
556 | 556 | ||
557 | /* | 557 | /* |
558 | * Посмотр конктретного предложение офиса | 558 | * Посмотр конктретного предложение офиса |
559 | */ | 559 | */ |
560 | public function Offer(House $house, Request $request) { | 560 | public function Offer(House $house, Request $request) { |
561 | $houses = House::with('areas'); | 561 | $houses = House::with('areas'); |
562 | $houses = $houses->where('type_area_id', '=', $house->typearea->id); | 562 | $houses = $houses->where('type_area_id', '=', $house->typearea->id); |
563 | $houses = $houses->where('format_house', '=', $house->format_house); | 563 | $houses = $houses->where('format_house', '=', $house->format_house); |
564 | $houses = $houses->orderByDesc('created_at')->limit(8)->get(); | 564 | $houses = $houses->orderByDesc('created_at')->limit(8)->get(); |
565 | 565 | ||
566 | //получение адреса страницы | 566 | //получение адреса страницы |
567 | $url = $request->url(); | 567 | $url = $request->url(); |
568 | // получение ip-адреса клиента | 568 | // получение ip-адреса клиента |
569 | $ip = RusDate::ip_addr_client(); | 569 | $ip = RusDate::ip_addr_client(); |
570 | 570 | ||
571 | //получение выборки данных из базы данных по данной странице | 571 | //получение выборки данных из базы данных по данной странице |
572 | $page_ = Page::query()->where('url', '=', "$url")-> | 572 | $page_ = Page::query()->where('url', '=', "$url")-> |
573 | orderBy('created_at')->limit(1)->get(); | 573 | orderBy('created_at')->limit(1)->get(); |
574 | 574 | ||
575 | //если интервал времени больше суток, то обнуляем счетчик | 575 | //если интервал времени больше суток, то обнуляем счетчик |
576 | if ($page_->count()) { | 576 | if ($page_->count()) { |
577 | $result = RusDate::interval_day($page_[0]->created_at); | 577 | $result = RusDate::interval_day($page_[0]->created_at); |
578 | if ($result) { | 578 | if ($result) { |
579 | DB::table('pages')->where('url', '=', "$url")->delete(); | 579 | DB::table('pages')->where('url', '=', "$url")->delete(); |
580 | } | 580 | } |
581 | } | 581 | } |
582 | // проверяем если в базе данных данный ip-адрес | 582 | // проверяем если в базе данных данный ip-адрес |
583 | $count_user = DB::table('pages')->where('ipaddress', '=', "$ip")-> | 583 | $count_user = DB::table('pages')->where('ipaddress', '=', "$ip")-> |
584 | where('url', '=', "$url")->get(); | 584 | where('url', '=', "$url")->get(); |
585 | // если есть, то обновляем дату просмотра | 585 | // если есть, то обновляем дату просмотра |
586 | if ($count_user->count() > 0) { | 586 | if ($count_user->count() > 0) { |
587 | DB::table('pages')->where('ipaddress', '=', "$ip")-> | 587 | DB::table('pages')->where('ipaddress', '=', "$ip")-> |
588 | where('url', '=', "$url")->update(['created_at' => date('Y-m-d H:i')]); | 588 | where('url', '=', "$url")->update(['created_at' => date('Y-m-d H:i')]); |
589 | } else { | 589 | } else { |
590 | // в противном случае добавляем новый ip В бд | 590 | // в противном случае добавляем новый ip В бд |
591 | $page = new Page(); | 591 | $page = new Page(); |
592 | $page->ipaddress = $ip; | 592 | $page->ipaddress = $ip; |
593 | $page->url = $url; | 593 | $page->url = $url; |
594 | $page->save(); | 594 | $page->save(); |
595 | } | 595 | } |
596 | 596 | ||
597 | // выводим количество пользователей гостей данной страницы | 597 | // выводим количество пользователей гостей данной страницы |
598 | $count_user = DB::table('pages')->where('url', '=', "$url")->get(); | 598 | $count_user = DB::table('pages')->where('url', '=', "$url")->get(); |
599 | $title = $house->title; | 599 | $title = $house->title; |
600 | 600 | ||
601 | return view('house.post', compact('house', 'houses', 'count_user', 'title')); | 601 | return view('house.post', compact('house', 'houses', 'count_user', 'title')); |
602 | } | 602 | } |
603 | 603 | ||
604 | public function preview_PDF(House $house) { | 604 | public function preview_PDF(House $house) { |
605 | $file_img = ""; | ||
605 | if (!empty($house->foto_main)) { | 606 | if (!empty($house->foto_main)) { |
606 | $file_img = base64_encode(file_get_contents(public_path("storage/".$house->foto_main))); | 607 | //$file_img = base64_encode(file_get_contents(public_path("storage/".$house->foto_main))); |
608 | $file_img = public_path("storage/".$house->foto_main); | ||
607 | } else { | 609 | } else { |
608 | $file_img = ""; | 610 | $file_img = ""; |
609 | } | 611 | } |
610 | 612 | ||
611 | $arr_house = ['0' => $house, 'image' => $file_img]; | 613 | $arr_image = Array(); |
614 | if ($house->fotohouse->count()) { | ||
615 | foreach ($house->fotohouse as $image) { | ||
616 | $arr_image[] = public_path("storage/".$image->foto); | ||
617 | } | ||
618 | } | ||
619 | |||
620 | if (!empty($house->object_plan)) | ||
621 | $object_image = public_path("storage/" . $house->object_plan); | ||
622 | else | ||
623 | $object_image = ''; | ||
624 | |||
625 | if (!empty($house->floor_plan)) | ||
626 | $floor_image = public_path("storage/".$house->floor_plan); | ||
627 | else | ||
628 | $floor_image = ''; | ||
629 | |||
630 | $url = redirect()->back()->getTargetUrl(); | ||
631 | |||
632 | //dd($arr_image); | ||
633 | |||
634 | $arr_house = ['0' => $house, 'image' => $file_img, 'url' => $url, | ||
635 | 'arrimage' => $arr_image, 'object_image' => $object_image, 'floor_image' => $floor_image]; | ||
612 | view()->share('house',$arr_house); | 636 | view()->share('house',$arr_house); |
613 | $pdf = PDF::loadView('house.pdf', $arr_house); | 637 | $pdf = PDF::loadView('layout.pdf2', $arr_house)->setPaper('a4', 'landscape'); |
614 | return $pdf->stream(); | 638 | return $pdf->stream(); |
615 | } | 639 | } |
616 | 640 | ||
617 | public function generate_PDF(House $house) { | 641 | public function generate_PDF(House $house) { |
618 | $arr_house = ['0' => $house]; | 642 | $arr_house = ['0' => $house]; |
619 | view()->share('house',$arr_house); | 643 | view()->share('house',$arr_house); |
620 | $PDFOptions = ['enable_remote' => true, 'chroot' => public_path('storage/app/public')]; | 644 | $PDFOptions = ['enable_remote' => true, 'chroot' => public_path('storage/app/public')]; |
621 | //$PDFOptions = ['isHtml5ParserEnabled' => true, 'isRemoteEnabled' => true]; | 645 | //$PDFOptions = ['isHtml5ParserEnabled' => true, 'isRemoteEnabled' => true]; |
622 | $pdf = PDF::setOptions($PDFOptions)->loadView('house.pdf', $arr_house); | 646 | $pdf = PDF::setOptions($PDFOptions)->loadView('house.pdf', $arr_house); |
623 | //$pdf = PDF::loadView('house.pdf', $arr_house); | 647 | //$pdf = PDF::loadView('house.pdf', $arr_house); |
624 | /*$pdf->getDomPDF()->setHttpContext( | 648 | /*$pdf->getDomPDF()->setHttpContext( |
625 | stream_context_create([ | 649 | stream_context_create([ |
626 | 'ssl' => [ | 650 | 'ssl' => [ |
627 | 'allow_self_signed'=> TRUE, | 651 | 'allow_self_signed'=> TRUE, |
628 | 'verify_peer' => FALSE, | 652 | 'verify_peer' => FALSE, |
629 | 'verify_peer_name' => FALSE, | 653 | 'verify_peer_name' => FALSE, |
630 | ], | 654 | ], |
631 | ]) | 655 | ]) |
632 | );*/ | 656 | );*/ |
633 | $id = $house->id; | 657 | $id = $house->id; |
634 | return $pdf->download("pdf_file_".$id.".pdf"); | 658 | return $pdf->download("pdf_file_".$id.".pdf"); |
635 | } | 659 | } |
636 | 660 | ||
637 | /* | 661 | /* |
638 | * Просмотр детально конкретной новости | 662 | * Просмотр детально конкретной новости |
639 | */ | 663 | */ |
640 | public function DetailNew(News $news) { | 664 | public function DetailNew(News $news) { |
641 | $news_list = News::query()->orderByDesc('created_at')->limit(8)->get(); | 665 | $news_list = News::query()->orderByDesc('created_at')->limit(8)->get(); |
642 | return view('new.post', compact('news', 'news_list')); | 666 | return view('new.post', compact('news', 'news_list')); |
643 | } | 667 | } |
644 | } | 668 | } |
645 | 669 |
public/fonts/all.css
File was created | 1 | @font-face { | |
2 | font-family: 'DejaVu Sans'; | ||
3 | src: local('DejaVu Sans ExtraLight'), local('DejaVuSans-ExtraLight'), url('dejavusansextralight.woff2') format('woff2'), url('dejavusansextralight.woff') format('woff'), url('dejavusansextralight.ttf') format('truetype'); | ||
4 | font-weight: 200; | ||
5 | font-style: normal; | ||
6 | } | ||
7 | @font-face { | ||
8 | font-family: 'DejaVu Sans'; | ||
9 | src: local('DejaVu Sans'), local('DejaVuSans'), url('dejavusans.woff2') format('woff2'), url('dejavusans.woff') format('woff'), url('dejavusans.ttf') format('truetype'); | ||
10 | font-weight: 400; | ||
11 | font-style: normal; | ||
12 | } | ||
13 | @font-face { | ||
14 | font-family: 'DejaVu Sans'; | ||
15 | src: local('DejaVu Sans Oblique'), local('DejaVuSans-Oblique'), url('dejavusansoblique.woff2') format('woff2'), url('dejavusansoblique.woff') format('woff'), url('dejavusansoblique.ttf') format('truetype'); | ||
16 | font-weight: 400; | ||
17 | font-style: italic; | ||
18 | } | ||
19 | @font-face { | ||
20 | font-family: 'DejaVu Sans'; | ||
21 | src: local('DejaVu Sans Bold'), local('DejaVuSans-Bold'), url('dejavusansbold.woff2') format('woff2'), url('dejavusansbold.woff') format('woff'), url('dejavusansbold.ttf') format('truetype'); | ||
22 | font-weight: 700; | ||
23 | font-style: normal; | ||
24 | } | ||
25 | @font-face { | ||
26 | font-family: 'DejaVu Sans'; | ||
27 | src: local('DejaVu Sans Bold Oblique'), local('DejaVuSans-BoldOblique'), url('dejavusansboldoblique.woff2') format('woff2'), url('dejavusansboldoblique.woff') format('woff'), url('dejavusansboldoblique.ttf') format('truetype'); | ||
28 | font-weight: 700; | ||
29 | font-style: italic; | ||
30 | } | ||
31 |
public/fonts/dejavusans.ttf
No preview for this file type
public/fonts/dejavusans.woff
No preview for this file type
public/fonts/dejavusans.woff2
No preview for this file type
public/fonts/dejavusansbold.ttf
No preview for this file type
public/fonts/dejavusansbold.woff
No preview for this file type
public/fonts/dejavusansbold.woff2
No preview for this file type
public/fonts/dejavusansboldoblique.ttf
No preview for this file type
public/fonts/dejavusansboldoblique.woff
No preview for this file type
public/fonts/dejavusansboldoblique.woff2
No preview for this file type
public/fonts/dejavusansextralight.ttf
No preview for this file type
public/fonts/dejavusansextralight.woff
No preview for this file type
public/fonts/dejavusansextralight.woff2
No preview for this file type
public/fonts/dejavusansoblique.ttf
No preview for this file type
public/fonts/dejavusansoblique.woff
No preview for this file type
public/fonts/dejavusansoblique.woff2
No preview for this file type
public/images/1.jpg
119 KB
public/images/10.jpg
65.7 KB
public/images/11.jpg
84.3 KB
public/images/12.jpg
108 KB
public/images/2.jpg
19 KB
public/images/3.jpg
15.3 KB
public/images/4.jpg
49.7 KB
public/images/5.jpg
46.1 KB
public/images/6.jpg
42.7 KB
public/images/7.jpg
53.3 KB
public/images/8.jpg
61.4 KB
public/images/9.jpg
36 KB
public/styles/normalize_.css
File was created | 1 | html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none} |
public/styles/style_.css
File was created | 1 | @page{margin:0;size:A4 landscape} | |
2 | *{-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-shadow:none;box-shadow:none;outline:none} | ||
3 | ::-webkit-input-placeholder{color:inherit;opacity:1} | ||
4 | :-ms-input-placeholder{color:inherit;opacity:1} | ||
5 | ::-ms-input-placeholder{color:inherit;opacity:1} | ||
6 | ::-moz-placeholder{color:inherit;opacity:1} | ||
7 | ::placeholder{color:inherit;opacity:1} | ||
8 | :focus::-webkit-input-placeholder{color:transparent} | ||
9 | :focus:-ms-input-placeholder{color:transparent} | ||
10 | :focus::-ms-input-placeholder{color:transparent} | ||
11 | :focus::-moz-placeholder{color:transparent} | ||
12 | :focus::placeholder{color:transparent} | ||
13 | input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;appearance:none;margin:0} | ||
14 | html{font-size:8px} | ||
15 | body{font-family:'DejaVu Sans',sans-serif;background:#fff;font-size:1.6rem;font-weight:400;color:#363A3F} | ||
16 | a,button{color:inherit} | ||
17 | a{text-decoration:none} | ||
18 | a,input[type=button],input[type=submit],button{cursor:pointer;-webkit-transition:.5s;-o-transition:.5s;transition:.5s} | ||
19 | .bold,b{font-weight:700} | ||
20 | .br,img{display:block} | ||
21 | .floatLeft{float:left} | ||
22 | .floatRight{float:right} | ||
23 | .clearBoth:after{content:'';display:block;clear:both} | ||
24 | .blue{color:#42AAFF} | ||
25 | .contain img{-o-object-fit:contain!important;object-fit:contain!important;height:500px} | ||
26 | .root{width:1122px;height:793px;overflow:hidden} | ||
27 | .content{width:100%;height:683px;line-height:1.3;z-index:1;background:#fff no-repeat 50%/cover;position:relative} | ||
28 | .content:before{content:'';z-index:1;position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(3,9,15,0.7)} | ||
29 | .content__wrapper{position:relative;z-index:2;padding:65px 60px} | ||
30 | .content__title{font-weight:700;font-size:4rem;margin:0;margin-bottom:30px;line-height:1.1} | ||
31 | .content__subtitle{margin:0;margin-bottom:24px;font-size:2rem;max-width:450px} | ||
32 | .content__list{margin:0;padding:0} | ||
33 | .content__listItem{position:relative;display:block;border-bottom:1px dashed #E6E7E7;height:24px} | ||
34 | .content__listItem:after{content:'';display:block;clear:both} | ||
35 | .content__listItem+.content__listItem{margin-top:12px} | ||
36 | .content__listItem span{width:50%;position:relative;z-index:1;background:#fff;padding-right:8px;color:#9A9C9F;float:left;height:23px;line-height:23px} | ||
37 | .content__listItem span+span{color:#363A3F;text-align:right;float:right;padding:0;padding-left:8px} | ||
38 | .content__row .content__list{width:46%} | ||
39 | .content__row .content__list+.content__list{margin-left:4%} | ||
40 | .content__quote{padding:2px 0;margin:0;max-width:850px;padding-left:16px;position:relative;margin-bottom:30px;font-size:2rem;line-height:1.3;border-left:2px solid #42AAFF} | ||
41 | .content__quote.min{max-width:640px} | ||
42 | .content__text{margin:0;color:#686B6F} | ||
43 | .content__2pics{margin-top:40px} | ||
44 | .content__2pics:after{content:'';display:block;clear:both} | ||
45 | .content__2pics img{float:left;border-radius:20px;-o-object-fit:cover;object-fit:cover;width:48%;-webkit-box-shadow:0 4px 24px rgba(6,15,26,0.08),0 4px 12px rgba(6,15,26,0.04);box-shadow:0 4px 24px rgba(6,15,26,0.08),0 4px 12px rgba(6,15,26,0.04);height:380px} | ||
46 | .content__2pics img+img{margin-left:4%} | ||
47 | .content__2pics.min img{height:380px} | ||
48 | .content__2pics.last img{height:280px} | ||
49 | .content__3pics{margin-top:40px} | ||
50 | .content__3pics:after{content:'';display:block;clear:both} | ||
51 | .content__3pics img{float:left;border-radius:20px;-o-object-fit:cover;object-fit:cover;width:31%;-webkit-box-shadow:0 4px 24px rgba(6,15,26,0.08),0 4px 12px rgba(6,15,26,0.04);box-shadow:0 4px 24px rgba(6,15,26,0.08),0 4px 12px rgba(6,15,26,0.04);height:220px} | ||
52 | .content__3pics img+img{margin-left:3.5%} | ||
53 | .content__phone{margin-top:30px;font-size:0} | ||
54 | .content__phone a{display:inline-block;padding-top:3px;position:relative;background:#42AAFF;border-radius:0 999px 999px 0;font-size:4.8rem;text-align:center;padding-right:100px;color:#fff;height:77px} | ||
55 | .content__phone a:before{content:'';z-index:1;position:absolute;top:0;left:-60px;width:60px;height:100%;background:#42aaff} | ||
56 | .content__phone span{position:relative;z-index:2} | ||
57 | .footer{border-top:1px solid #E6E7E7;width:100%;height:109px;font-size:1.4rem;line-height:1.3;z-index:2;background:#fff;-webkit-box-shadow:0 -2px 16px rgba(14,56,94,0.08);box-shadow:0 -2px 16px rgba(14,56,94,0.08)} | ||
58 | .footer>div{width:60%;padding-left:60px} | ||
59 | .footer>div+div{width:40%;text-align:right;padding:0;padding-right:60px} | ||
60 | .footer__logo{display:inline-block;vertical-align:middle;margin-top:32px} | ||
61 | .footer__contacts{display:inline-block;vertical-align:middle;margin-top:34px;margin-left:20px} | ||
62 | .footer__contacts span{display:inline-block;vertical-align:middle;background:#42AAFF;border-radius:999px;width:2px;height:48px;margin:0 6px} | ||
63 | .footer__contactsPhone{display:inline-block;vertical-align:middle;font-size:3.2rem} | ||
64 | .footer__contactsEmail{display:inline-block;vertical-align:middle;font-size:2.4rem} | ||
65 | .footer__address{display:inline-block;vertical-align:middle;margin-top:10px} | ||
66 | .footer__link{display:inline-block;vertical-align:middle;margin-top:10px} | ||
67 | .slide1__body{width:40%;color:#fff;padding-top:70px} | ||
68 | .slide1__photo{width:60%;border-radius:20px;height:553px;-o-object-fit:cover;object-fit:cover} | ||
69 | .slide1__title{font-weight:700;font-size:3.2rem;margin:0;line-height:1.1;padding-right:20px} | ||
70 | .slide1__list{margin:0;padding:4px 0;margin-top:10px} | ||
71 | .slide1__list li{display:block} | ||
72 | .slide1__list li:before{content:'';width:8px;height:8px;background:#fff;border-radius:2px;display:inline-block;margin-right:8px} | ||
73 | .slide1__list li.red:before{background:#E9162F} | ||
74 | .slide1__text{max-width:250px;margin:0;margin-top:10px} |
resources/views/layout/pdf.blade.php
File was created | 1 | <!DOCTYPE html> | |
2 | <html lang="ru"> | ||
3 | <head> | ||
4 | <meta charset="utf-8"> | ||
5 | <title>RentTorg pdf-документ</title> | ||
6 | <link rel="stylesheet" href="{{ asset('styles/normalize_.css') }}"> | ||
7 | <link rel="stylesheet" href="{{ asset('styles/style_.css') }}"> | ||
8 | </head> | ||
9 | <body class="all-in"> | ||
10 | |||
11 | <div class="root"> | ||
12 | <div class="content" style="background-image:url(images/1.jpg)"> | ||
13 | <div class="content__wrapper"> | ||
14 | <div class="slide1 clearBoth"> | ||
15 | <div class="slide1__body floatLeft"> | ||
16 | <h1 class="slide1__title"> | ||
17 | <span class="br">Аренда торгового</span> | ||
18 | помещения 321,6 м<sup>2</sup> | ||
19 | </h1> | ||
20 | <ul class="slide1__list"> | ||
21 | <li class="red">Фрунзенская</li> | ||
22 | <li>10 мин, пешком от метро</li> | ||
23 | <li>ЮВАО</li> | ||
24 | </ul> | ||
25 | <p class="slide1__text"> | ||
26 | <b class="br">Адрес</b> | ||
27 | ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69 | ||
28 | </p> | ||
29 | <p class="slide1__text"> | ||
30 | <b class="br">Артикул помещения</b> | ||
31 | ЖК - 01 | ||
32 | </p> | ||
33 | <p class="slide1__text"> | ||
34 | <b class="br">Площадь помещения</b> | ||
35 | 321,6 м<sup>2</sup> | ||
36 | </p> | ||
37 | </div> | ||
38 | <img src="images/1.jpg" alt="" class="slide1__photo floatRight"> | ||
39 | </div> | ||
40 | </div> | ||
41 | </div> | ||
42 | <div class="footer clearBoth"> | ||
43 | <div class="floatLeft clearBoth"> | ||
44 | <a href="#" class="footer__logo"> | ||
45 | <img src="images/logo.png" alt=""> | ||
46 | </a> | ||
47 | <div class="footer__contacts"> | ||
48 | <a href="tel:+70001234567" class="footer__contactsPhone">+7 000 123-45-67</a><span></span> | ||
49 | <a href="mailto:info@renttorg.ru" class="footer__contactsEmail">info@renttorg.ru</a> | ||
50 | </div> | ||
51 | </div> | ||
52 | <div class="floatRight clearBoth"> | ||
53 | <div class="footer__address"> | ||
54 | <b class="br">Адрес</b> | ||
55 | ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69 | ||
56 | </div> | ||
57 | <div class="footer__link"> | ||
58 | <b class="br">Ссылка на объект</b> | ||
59 | <a href="http://renttorg.dev.nologostudio.ru/offer/111">http://renttorg.dev.nologostudio.ru/offer/111</a> | ||
60 | </div> | ||
61 | </div> | ||
62 | </div> | ||
63 | </div> <!--('.root')--> | ||
64 | |||
65 | |||
66 | |||
67 | |||
68 | |||
69 | |||
70 | |||
71 | |||
72 | |||
73 | |||
74 | |||
75 | <div class="root"> | ||
76 | |||
77 | <div class="content"> | ||
78 | <div class="content__wrapper"> | ||
79 | <div class="slide2"> | ||
80 | <h1 class="content__title">Информация об <span class="blue">объекте</span></h1> | ||
81 | <p class="content__subtitle">Аренда торгового помещения 321,6 м<sup>2</sup> Москва, Мастеркова ул., д.3</p> | ||
82 | <div class="content__row clearBoth"> | ||
83 | <ul class="content__list floatLeft"> | ||
84 | <li class="content__listItem"> | ||
85 | <span>Площадь, м<sup>2</sup></span> | ||
86 | <span>123</span> | ||
87 | </li> | ||
88 | <li class="content__listItem"> | ||
89 | <span>Адрес</span> | ||
90 | <span>Волгоградский проспект, д. 80/2</span> | ||
91 | </li> | ||
92 | <li class="content__listItem"> | ||
93 | <span>Тип объекта</span> | ||
94 | <span>Нежилое помещение</span> | ||
95 | </li> | ||
96 | <li class="content__listItem"> | ||
97 | <span>Формат</span> | ||
98 | <span>Арендованное помещение</span> | ||
99 | </li> | ||
100 | <li class="content__listItem"> | ||
101 | <span>Этаж</span> | ||
102 | <span>3 эт.</span> | ||
103 | </li> | ||
104 | <li class="content__listItem"> | ||
105 | <span>Этажность здания</span> | ||
106 | <span>23 эт.</span> | ||
107 | </li> | ||
108 | <li class="content__listItem"> | ||
109 | <span>Арендаторы</span> | ||
110 | <span>ВкусВилл</span> | ||
111 | </li> | ||
112 | <li class="content__listItem"> | ||
113 | <span>Состояние объекта</span> | ||
114 | <span>Рабочее</span> | ||
115 | </li> | ||
116 | <li class="content__listItem"> | ||
117 | <span>Тип планировки</span> | ||
118 | <span>Открытая</span> | ||
119 | </li> | ||
120 | <li class="content__listItem"> | ||
121 | <span>Наличие зоны разгрузки</span> | ||
122 | <span>Есть</span> | ||
123 | </li> | ||
124 | <li class="content__listItem"> | ||
125 | <span>Электрическая мощность</span> | ||
126 | <span>30 кВт</span> | ||
127 | </li> | ||
128 | </ul> | ||
129 | <ul class="content__list floatLeft"> | ||
130 | <li class="content__listItem"> | ||
131 | <span>Проездное</span> | ||
132 | <span>Есть</span> | ||
133 | </li> | ||
134 | <li class="content__listItem"> | ||
135 | <span>Проходное место</span> | ||
136 | <span>Есть</span> | ||
137 | </li> | ||
138 | <li class="content__listItem"> | ||
139 | <span>Отдельный вход</span> | ||
140 | <span>Есть</span> | ||
141 | </li> | ||
142 | <li class="content__listItem"> | ||
143 | <span>Витрины</span> | ||
144 | <span>Есть</span> | ||
145 | </li> | ||
146 | <li class="content__listItem"> | ||
147 | <span>Место для рекламы</span> | ||
148 | <span>Есть</span> | ||
149 | </li> | ||
150 | <li class="content__listItem"> | ||
151 | <span>Окна</span> | ||
152 | <span>4</span> | ||
153 | </li> | ||
154 | <li class="content__listItem"> | ||
155 | <span>Вытяжка</span> | ||
156 | <span>Есть</span> | ||
157 | </li> | ||
158 | <li class="content__listItem"> | ||
159 | <span>Центральное отопление</span> | ||
160 | <span>Есть</span> | ||
161 | </li> | ||
162 | <li class="content__listItem"> | ||
163 | <span>Возможные часы работы</span> | ||
164 | <span>С 08:00 До 20:00</span> | ||
165 | </li> | ||
166 | <li class="content__listItem"> | ||
167 | <span>Отделка</span> | ||
168 | <span>Есть</span> | ||
169 | </li> | ||
170 | <li class="content__listItem"> | ||
171 | <span>Парковка</span> | ||
172 | <span>13 мест</span> | ||
173 | </li> | ||
174 | </ul> | ||
175 | </div> | ||
176 | </div> | ||
177 | </div> | ||
178 | </div> | ||
179 | |||
180 | |||
181 | <div class="footer clearBoth"> | ||
182 | <div class="floatLeft clearBoth"> | ||
183 | <a href="#" class="footer__logo"> | ||
184 | <img src="images/logo.png" alt=""> | ||
185 | </a> | ||
186 | <div class="footer__contacts"> | ||
187 | <a href="tel:+70001234567" class="footer__contactsPhone">+7 000 123-45-67</a><span></span> | ||
188 | <a href="mailto:info@renttorg.ru" class="footer__contactsEmail">info@renttorg.ru</a> | ||
189 | </div> | ||
190 | </div> | ||
191 | <div class="floatRight clearBoth"> | ||
192 | <div class="footer__address"> | ||
193 | <b class="br">Адрес</b> | ||
194 | ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69 | ||
195 | </div> | ||
196 | <div class="footer__link"> | ||
197 | <b class="br">Ссылка на объект</b> | ||
198 | <a href="http://renttorg.dev.nologostudio.ru/offer/111">http://renttorg.dev.nologostudio.ru/offer/111</a> | ||
199 | </div> | ||
200 | </div> | ||
201 | </div> | ||
202 | </div> <!--('.root')--> | ||
203 | |||
204 | |||
205 | <div class="root"> | ||
206 | |||
207 | <div class="content"> | ||
208 | <div class="content__wrapper"> | ||
209 | <div class="slide3"> | ||
210 | <h1 class="content__title">Дополнительная информация об <span class="blue">объекте</span></h1> | ||
211 | <p class="content__quote min">Коммунальные платежи и электричество оплачиваются арендатором отдельно</p> | ||
212 | <div class="content__text">Аренда торгового помещения на первой линии Краснопрудной улицы! Интенсивный пешеходный и автомобильный трафик! Шаговая доступность от метро Красносельская (2 минуты). Густонаселенный жилой массив, насыщенное деловое окружение. Формирующее стабильный интенсивный трафик Ваших потенциальных посетителей и покупателей! Развитая инфраструктура района, метро в нескольких минута пешком, автобусные остановки, городская стихийная парковка. Сетевое торговое окружение: Перекрёсток, Мираторг, Макдональдс, KFC и многие другие представители ритейла привлекающие в данную локацию местное население! Общая площадь: 131,2 кв. м. ( все в первом этаже). Зальная планировка. Все необходимые коммуникации. Электричество 35 Квт.</div> | ||
213 | <div class="content__3pics"> | ||
214 | <img src="images/1.jpg" alt=""> | ||
215 | <img src="images/1.jpg" alt=""> | ||
216 | <img src="images/1.jpg" alt=""> | ||
217 | </div> | ||
218 | </div> | ||
219 | </div> | ||
220 | </div> | ||
221 | |||
222 | |||
223 | <div class="footer clearBoth"> | ||
224 | <div class="floatLeft clearBoth"> | ||
225 | <a href="#" class="footer__logo"> | ||
226 | <img src="images/logo.png" alt=""> | ||
227 | </a> | ||
228 | <div class="footer__contacts"> | ||
229 | <a href="tel:+70001234567" class="footer__contactsPhone">+7 000 123-45-67</a><span></span> | ||
230 | <a href="mailto:info@renttorg.ru" class="footer__contactsEmail">info@renttorg.ru</a> | ||
231 | </div> | ||
232 | </div> | ||
233 | <div class="floatRight clearBoth"> | ||
234 | <div class="footer__address"> | ||
235 | <b class="br">Адрес</b> | ||
236 | ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69 | ||
237 | </div> | ||
238 | <div class="footer__link"> | ||
239 | <b class="br">Ссылка на объект</b> | ||
240 | <a href="http://renttorg.dev.nologostudio.ru/offer/111">http://renttorg.dev.nologostudio.ru/offer/111</a> | ||
241 | </div> | ||
242 | </div> | ||
243 | </div> | ||
244 | </div> <!--('.root')--> | ||
245 | |||
246 | |||
247 | <div class="root"> | ||
248 | |||
249 | <div class="content"> | ||
250 | <div class="content__wrapper"> | ||
251 | <div class="slide4"> | ||
252 | <h1 class="content__title">План <span class="blue">объекта</span></h1> | ||
253 | <p class="content__quote">Уникальное расположение у входа/выхода из станции метро «Фрунзенская». Сверхинтенсивные пешеходные потоки, более 3 000 человек/час.</p> | ||
254 | <div class="content__2pics contain"> | ||
255 | <img src="images/2.jpg" alt=""> | ||
256 | <img src="images/3.jpg" alt=""> | ||
257 | </div> | ||
258 | </div> | ||
259 | </div> | ||
260 | </div> | ||
261 | |||
262 | |||
263 | <div class="footer clearBoth"> | ||
264 | <div class="floatLeft clearBoth"> | ||
265 | <a href="#" class="footer__logo"> | ||
266 | <img src="images/logo.png" alt=""> | ||
267 | </a> | ||
268 | <div class="footer__contacts"> | ||
269 | <a href="tel:+70001234567" class="footer__contactsPhone">+7 000 123-45-67</a><span></span> | ||
270 | <a href="mailto:info@renttorg.ru" class="footer__contactsEmail">info@renttorg.ru</a> | ||
271 | </div> | ||
272 | </div> | ||
273 | <div class="floatRight clearBoth"> | ||
274 | <div class="footer__address"> | ||
275 | <b class="br">Адрес</b> | ||
276 | ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69 | ||
277 | </div> | ||
278 | <div class="footer__link"> | ||
279 | <b class="br">Ссылка на объект</b> | ||
280 | <a href="http://renttorg.dev.nologostudio.ru/offer/111">http://renttorg.dev.nologostudio.ru/offer/111</a> | ||
281 | </div> | ||
282 | </div> | ||
283 | </div> | ||
284 | </div> <!--('.root')--> | ||
285 | |||
286 | |||
287 | <div class="root"> | ||
288 | |||
289 | <div class="content"> | ||
290 | <div class="content__wrapper"> | ||
291 | <div class="slide5"> | ||
292 | <h1 class="content__title">План <span class="blue">этажа</span></h1> | ||
293 | <p class="content__quote">Уникальное расположение у входа/выхода из станции метро «Фрунзенская». Сверхинтенсивные пешеходные потоки, более 3 000 человек/час.</p> | ||
294 | <div class="content__2pics contain"> | ||
295 | <img src="images/4.jpg" alt=""> | ||
296 | <img src="images/4.jpg" alt=""> | ||
297 | </div> | ||
298 | </div> | ||
299 | </div> | ||
300 | </div> | ||
301 | |||
302 | |||
303 | <div class="footer clearBoth"> | ||
304 | <div class="floatLeft clearBoth"> | ||
305 | <a href="#" class="footer__logo"> | ||
306 | <img src="images/logo.png" alt=""> | ||
307 | </a> | ||
308 | <div class="footer__contacts"> | ||
309 | <a href="tel:+70001234567" class="footer__contactsPhone">+7 000 123-45-67</a><span></span> | ||
310 | <a href="mailto:info@renttorg.ru" class="footer__contactsEmail">info@renttorg.ru</a> | ||
311 | </div> | ||
312 | </div> | ||
313 | <div class="floatRight clearBoth"> | ||
314 | <div class="footer__address"> | ||
315 | <b class="br">Адрес</b> | ||
316 | ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69 | ||
317 | </div> | ||
318 | <div class="footer__link"> | ||
319 | <b class="br">Ссылка на объект</b> | ||
320 | <a href="http://renttorg.dev.nologostudio.ru/offer/111">http://renttorg.dev.nologostudio.ru/offer/111</a> | ||
321 | </div> | ||
322 | </div> | ||
323 | </div> | ||
324 | </div> <!--('.root')--> | ||
325 | |||
326 | <div class="root"> | ||
327 | |||
328 | <div class="content"> | ||
329 | <div class="content__wrapper"> | ||
330 | <div class="slide6"> | ||
331 | <h1 class="content__title">Фотографии <span class="blue">объекта</span></h1> | ||
332 | <p class="content__quote">Уникальное расположение у входа/выхода из станции метро «Фрунзенская». Сверхинтенсивные пешеходные потоки, более 3 000 человек/час.</p> | ||
333 | <div class="content__2pics"> | ||
334 | <img src="images/5.jpg" alt=""> | ||
335 | <img src="images/6.jpg" alt=""> | ||
336 | </div> | ||
337 | </div> | ||
338 | </div> | ||
339 | </div> | ||
340 | |||
341 | |||
342 | <div class="footer clearBoth"> | ||
343 | <div class="floatLeft clearBoth"> | ||
344 | <a href="#" class="footer__logo"> | ||
345 | <img src="images/logo.png" alt=""> | ||
346 | </a> | ||
347 | <div class="footer__contacts"> | ||
348 | <a href="tel:+70001234567" class="footer__contactsPhone">+7 000 123-45-67</a><span></span> | ||
349 | <a href="mailto:info@renttorg.ru" class="footer__contactsEmail">info@renttorg.ru</a> | ||
350 | </div> | ||
351 | </div> | ||
352 | <div class="floatRight clearBoth"> | ||
353 | <div class="footer__address"> | ||
354 | <b class="br">Адрес</b> | ||
355 | ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69 | ||
356 | </div> | ||
357 | <div class="footer__link"> | ||
358 | <b class="br">Ссылка на объект</b> | ||
359 | <a href="http://renttorg.dev.nologostudio.ru/offer/111">http://renttorg.dev.nologostudio.ru/offer/111</a> | ||
360 | </div> | ||
361 | </div> | ||
362 | </div> | ||
363 | </div> <!--('.root')--> | ||
364 | |||
365 | <div class="root"> | ||
366 | |||
367 | <div class="content"> | ||
368 | <div class="content__wrapper"> | ||
369 | <div class="slide7"> | ||
370 | <h1 class="content__title">Фотографии <span class="blue">объекта</span></h1> | ||
371 | <p class="content__quote">Уникальное расположение у входа/выхода из станции метро «Фрунзенская». Сверхинтенсивные пешеходные потоки, более 3 000 человек/час.</p> | ||
372 | <div class="content__2pics"> | ||
373 | <img src="images/7.jpg" alt=""> | ||
374 | <img src="images/8.jpg" alt=""> | ||
375 | </div> | ||
376 | </div> | ||
377 | </div> | ||
378 | </div> | ||
379 | |||
380 | |||
381 | <div class="footer clearBoth"> | ||
382 | <div class="floatLeft clearBoth"> | ||
383 | <a href="#" class="footer__logo"> | ||
384 | <img src="images/logo.png" alt=""> | ||
385 | </a> | ||
386 | <div class="footer__contacts"> | ||
387 | <a href="tel:+70001234567" class="footer__contactsPhone">+7 000 123-45-67</a><span></span> | ||
388 | <a href="mailto:info@renttorg.ru" class="footer__contactsEmail">info@renttorg.ru</a> | ||
389 | </div> | ||
390 | </div> | ||
391 | <div class="floatRight clearBoth"> | ||
392 | <div class="footer__address"> | ||
393 | <b class="br">Адрес</b> | ||
394 | ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69 | ||
395 | </div> | ||
396 | <div class="footer__link"> | ||
397 | <b class="br">Ссылка на объект</b> | ||
398 | <a href="http://renttorg.dev.nologostudio.ru/offer/111">http://renttorg.dev.nologostudio.ru/offer/111</a> | ||
399 | </div> | ||
400 | </div> | ||
401 | </div> | ||
402 | </div> <!--('.root')--> | ||
403 | |||
404 | <div class="root"> | ||
405 | |||
406 | <div class="content"> | ||
407 | <div class="content__wrapper"> | ||
408 | <div class="slide8"> | ||
409 | <h1 class="content__title">Фотографии <span class="blue">объекта</span></h1> | ||
410 | <p class="content__quote">Уникальное расположение у входа/выхода из станции метро «Фрунзенская». Сверхинтенсивные пешеходные потоки, более 3 000 человек/час.</p> | ||
411 | <div class="content__2pics"> | ||
412 | <img src="images/9.jpg" alt=""> | ||
413 | <img src="images/10.jpg" alt=""> | ||
414 | </div> | ||
415 | </div> | ||
416 | </div> | ||
417 | </div> | ||
418 | |||
419 | |||
420 | <div class="footer clearBoth"> | ||
421 | <div class="floatLeft clearBoth"> | ||
422 | <a href="#" class="footer__logo"> | ||
423 | <img src="images/logo.png" alt=""> | ||
424 | </a> | ||
425 | <div class="footer__contacts"> | ||
426 | <a href="tel:+70001234567" class="footer__contactsPhone">+7 000 123-45-67</a><span></span> | ||
427 | <a href="mailto:info@renttorg.ru" class="footer__contactsEmail">info@renttorg.ru</a> | ||
428 | </div> | ||
429 | </div> | ||
430 | <div class="floatRight clearBoth"> | ||
431 | <div class="footer__address"> | ||
432 | <b class="br">Адрес</b> | ||
433 | ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69 | ||
434 | </div> | ||
435 | <div class="footer__link"> | ||
436 | <b class="br">Ссылка на объект</b> | ||
437 | <a href="http://renttorg.dev.nologostudio.ru/offer/111">http://renttorg.dev.nologostudio.ru/offer/111</a> | ||
438 | </div> | ||
439 | </div> | ||
440 | </div> | ||
441 | </div> <!--('.root')--> | ||
442 | |||
443 | |||
444 | <div class="root"> | ||
445 | |||
446 | <div class="content"> | ||
447 | <div class="content__wrapper"> | ||
448 | <div class="slide9"> | ||
449 | <h1 class="content__title">Фотографии <span class="blue">объекта</span></h1> | ||
450 | <p class="content__quote">Уникальное расположение у входа/выхода из станции метро «Фрунзенская». Сверхинтенсивные пешеходные потоки, более 3 000 человек/час.</p> | ||
451 | <div class="content__2pics min last"> | ||
452 | <img src="images/11.jpg" alt=""> | ||
453 | <img src="images/12.jpg" alt=""> | ||
454 | </div> | ||
455 | <div class="content__phone"><a href="tel:+70001234567"><span>+7 000 123-45-67</span></a></div> | ||
456 | </div> | ||
457 | </div> | ||
458 | </div> | ||
459 | |||
460 | |||
461 | <div class="footer clearBoth"> | ||
462 | <div class="floatLeft clearBoth"> | ||
463 | <a href="#" class="footer__logo"> | ||
464 | <img src="images/logo.png" alt=""> | ||
465 | </a> | ||
466 | <div class="footer__contacts"> | ||
467 | <a href="tel:+70001234567" class="footer__contactsPhone">+7 000 123-45-67</a><span></span> | ||
468 | <a href="mailto:info@renttorg.ru" class="footer__contactsEmail">info@renttorg.ru</a> | ||
469 | </div> | ||
470 | </div> | ||
471 | <div class="floatRight clearBoth"> | ||
472 | <div class="footer__address"> | ||
473 | <b class="br">Адрес</b> | ||
474 | ул. Ак. Королева, д. 13, стр. 1, этаж 7, пом. 1, к. 69 | ||
475 | </div> | ||
476 | <div class="footer__link"> | ||
477 | <b class="br">Ссылка на объект</b> | ||
478 | <a href="http://renttorg.dev.nologostudio.ru/offer/111">http://renttorg.dev.nologostudio.ru/offer/111</a> | ||
479 | </div> | ||
480 | </div> | ||
481 | </div> | ||
482 | </div> <!--('.root')--> | ||
483 | |||
484 | |||
485 | |||
486 | </body> | ||
487 | </html> | ||
488 |
resources/views/layout/pdf2.blade.php
File was created | 1 | <!DOCTYPE html> | |
2 | <html lang="ru"> | ||
3 | <head> | ||
4 | <meta charset="utf-8"> | ||
5 | <title>RentTorg pdf-документ</title> | ||
6 | <link rel="stylesheet" href="{{ asset('styles/normalize_.css') }}"> | ||
7 | <link rel="stylesheet" href="{{ asset('styles/style_.css') }}"> | ||
8 | </head> | ||
9 | <body class="all-in"> | ||
10 | |||
11 | <div class="root"> | ||
12 | <div class="content" style="background-image:url(images/1.jpg)"> | ||
13 | <div class="content__wrapper"> | ||
14 | <div class="slide1 clearBoth"> | ||
15 | <div class="slide1__body floatLeft"> | ||
16 | <h1 class="slide1__title"> | ||
17 | <span class="br">{{$house[0]->title}} | ||
18 | </h1> | ||
19 | <ul class="slide1__list"> | ||
20 | <li class="red">{{ $house[0]->metro }}</li> | ||
21 | <li>{{ $house[0]->description_metro }}</li> | ||
22 | <li>{{ $house[0]->okrug }}</li> | ||
23 | </ul> | ||
24 | <p class="slide1__text"> | ||
25 | <b class="br">Адрес</b> | ||
26 | {{ $house[0]->address }} | ||
27 | </p> | ||
28 | <p class="slide1__text"> | ||
29 | <b class="br">Артикул помещения</b> | ||
30 | {{ $house[0]->articul_area }} | ||
31 | </p> | ||
32 | <p class="slide1__text"> | ||
33 | <b class="br">Площадь помещения</b> | ||
34 | {{ $house[0]->area }} м<sup>2</sup> | ||
35 | </p> | ||
36 | </div> | ||
37 | <? if (!empty($house['image'])) {?> | ||
38 | <img src="{{ $house['image'] }}" alt="" class="slide1__photo floatRight"> | ||
39 | <? } ?> | ||
40 | </div> | ||
41 | </div> | ||
42 | </div> | ||
43 | <div class="footer clearBoth"> | ||
44 | <div class="floatLeft clearBoth"> | ||
45 | <a href="#" class="footer__logo"> | ||
46 | <img src="images/logo.png" alt=""> | ||
47 | </a> | ||
48 | <div class="footer__contacts"> | ||
49 | <a href="tel:+70001234567" class="footer__contactsPhone">+7 000 123-45-67</a><span></span> | ||
50 | <a href="mailto:info@renttorg.ru" class="footer__contactsEmail">info@renttorg.ru</a> | ||
51 | </div> | ||
52 | </div> | ||
53 | <div class="floatRight clearBoth"> | ||
54 | <div class="footer__address"> | ||
55 | <b class="br">Адрес</b> | ||
56 | {{ $house[0]->address }} | ||
57 | </div><br> | ||
58 | <div class="footer__link"> | ||
59 | <b class="br">Ссылка на объект</b> | ||
60 | <a href="{{ route('offer', ['house' => $house[0]->id]) }}">{{ route('offer', ['house' => $house[0]->id]) }}</a> | ||
61 | </div> | ||
62 | </div> | ||
63 | </div> | ||
64 | </div> <!--('.root')--> | ||
65 | |||
66 | |||
67 | |||
68 | |||
69 | |||
70 | |||
71 | |||
72 | |||
73 | |||
74 | |||
75 | |||
76 | <div class="root"> | ||
77 | |||
78 | <div class="content"> | ||
79 | <div class="content__wrapper"> | ||
80 | <div class="slide2"> | ||
81 | <h1 class="content__title">Информация об <span class="blue">объекте</span></h1> | ||
82 | <p class="content__subtitle">{{ $house[0]->format_house }}, {{ $house[0]->title }}, {{ $house[0]->area }} м<sup>2</sup>. {{ $house[0]->address }}</p> | ||
83 | <div class="content__row clearBoth"> | ||
84 | <ul class="content__list floatLeft"> | ||
85 | <li class="content__listItem"> | ||
86 | <span>Площадь, м<sup>2</sup></span> | ||
87 | <span>{{ $house[0]->area }}</span> | ||
88 | </li> | ||
89 | <li class="content__listItem"> | ||
90 | <span>Адрес</span> | ||
91 | <span>{{ $house[0]->address }}</span> | ||
92 | </li> | ||
93 | <li class="content__listItem"> | ||
94 | <span>Тип объекта</span> | ||
95 | <span>{{ $house[0]->typearea->name_type }}</span> | ||
96 | </li> | ||
97 | <li class="content__listItem"> | ||
98 | <span>Формат</span> | ||
99 | <span>{{ $house[0]->format_house }}</span> | ||
100 | </li> | ||
101 | <li class="content__listItem"> | ||
102 | <span>Этаж</span> | ||
103 | <span>{{ $house[0]->floor }} эт.</span> | ||
104 | </li> | ||
105 | <li class="content__listItem"> | ||
106 | <span>Этажность здания</span> | ||
107 | <span>{{ $house[0]->floor_bild }} эт.</span> | ||
108 | </li> | ||
109 | <li class="content__listItem"> | ||
110 | <span>Арендаторы</span> | ||
111 | <span>{{ $house[0]->renter }}</span> | ||
112 | </li> | ||
113 | <!--<li class="content__listItem"> | ||
114 | <span>Состояние объекта</span> | ||
115 | <span>Рабочее</span> | ||
116 | </li>--> | ||
117 | <li class="content__listItem"> | ||
118 | <span>Тип планировки</span> | ||
119 | <span>{{ $house[0]->type_plan }}</span> | ||
120 | </li> | ||
121 | <li class="content__listItem"> | ||
122 | <span>Наличие зоны разгрузки</span> | ||
123 | <span><? if($house[0]->uploading_area == 1) {?>Есть<?} else {?>Нет<?}?></span> | ||
124 | </li> | ||
125 | <li class="content__listItem"> | ||
126 | <span>Электрическая мощность</span> | ||
127 | <span>{{ $house[0]->electric_power }} кВт</span> | ||
128 | </li> | ||
129 | </ul> | ||
130 | <ul class="content__list floatLeft"> | ||
131 | <!--<li class="content__listItem"> | ||
132 | <span>Проездное</span> | ||
133 | <span>Есть</span> | ||
134 | </li> | ||
135 | <li class="content__listItem"> | ||
136 | <span>Проходное место</span> | ||
137 | <span>Есть</span> | ||
138 | </li>--> | ||
139 | <? if ($house[0]->format_house == "Продажа") {?> | ||
140 | <li class="content__listItem"> | ||
141 | <span>Цена</span> | ||
142 | <span>{{ $house[0]->price }} ₽</span> | ||
143 | </li> | ||
144 | <? } else {?> | ||
145 | <li class="content__listItem"> | ||
146 | <span>Аренда в год за м2:</span> | ||
147 | <span>{{ $house[0]->rent_in_year }} ₽</span> | ||
148 | </li> | ||
149 | <li class="content__listItem"> | ||
150 | <span>Аренда в месяц:</span> | ||
151 | <span>{{ $house[0]->price }} ₽</span> | ||
152 | </li> | ||
153 | <? } ?> | ||
154 | <li class="content__listItem"> | ||
155 | <span>Отдельный вход</span> | ||
156 | <span><? if($house[0]->separate_input == 1) {?>Есть<?} else {?>Нет<?}?></span> | ||
157 | </li> | ||
158 | <li class="content__listItem"> | ||
159 | <span>Витрины</span> | ||
160 | <span><? if($house[0]->shop_windows == 1) {?>Есть<?} else {?>Нет<?}?></span> | ||
161 | </li> | ||
162 | <!--<li class="content__listItem"> | ||
163 | <span>Место для рекламы</span> | ||
164 | <span>Есть</span> | ||
165 | </li> | ||
166 | <li class="content__listItem"> | ||
167 | <span>Окна</span> | ||
168 | <span>4</span> | ||
169 | </li>--> | ||
170 | <li class="content__listItem"> | ||
171 | <span>Вытяжка</span> | ||
172 | <span><? if($house[0]->hood == 1) {?>Есть<?} else {?>Нет<?}?></span> | ||
173 | </li> | ||
174 | <!--<li class="content__listItem"> | ||
175 | <span>Центральное отопление</span> | ||
176 | <span>Есть</span> | ||
177 | </li>--> | ||
178 | <li class="content__listItem"> | ||
179 | <span>Возможные часы работы</span> | ||
180 | <span>{{ $house[0]->opening_hours }}</span> | ||
181 | </li> | ||
182 | <li class="content__listItem"> | ||
183 | <span>Отделка</span> | ||
184 | <span><? if($house[0]->finishing == 1) {?>Есть<?} else {?>Нет<?}?></span> | ||
185 | </li> | ||
186 | <li class="content__listItem"> | ||
187 | <span>Парковка</span> | ||
188 | <span>{{ $house[0]->parking }} мест</span> | ||
189 | </li> | ||
190 | </ul> | ||
191 | </div> | ||
192 | </div> | ||
193 | </div> | ||
194 | </div> | ||
195 | |||
196 | |||
197 | <div class="footer clearBoth"> | ||
198 | <div class="floatLeft clearBoth"> | ||
199 | <a href="#" class="footer__logo"> | ||
200 | <img src="images/logo.png" alt=""> | ||
201 | </a> | ||
202 | <div class="footer__contacts"> | ||
203 | <a href="tel:+70001234567" class="footer__contactsPhone">+7 000 123-45-67</a><span></span> | ||
204 | <a href="mailto:info@renttorg.ru" class="footer__contactsEmail">info@renttorg.ru</a> | ||
205 | </div> | ||
206 | </div> | ||
207 | <div class="floatRight clearBoth"> | ||
208 | <div class="footer__address"> | ||
209 | <b class="br">Адрес</b> | ||
210 | {{ $house[0]->address }} | ||
211 | </div><br> | ||
212 | <div class="footer__link"> | ||
213 | <b class="br">Ссылка на объект</b> | ||
214 | <a href="{{ route('offer', ['house' => $house[0]->id]) }}">{{ route('offer', ['house' => $house[0]->id]) }}</a> | ||
215 | </div> | ||
216 | </div> | ||
217 | </div> | ||
218 | </div> <!--('.root')--> | ||
219 | |||
220 | |||
221 | <div class="root"> | ||
222 | |||
223 | <div class="content"> | ||
224 | <div class="content__wrapper"> | ||
225 | <div class="slide3"> | ||
226 | <h1 class="content__title">Дополнительная информация об <span class="blue">объекте</span></h1> | ||
227 | <p class="content__quote min">Коммунальные платежи и электричество оплачиваются арендатором отдельно</p> | ||
228 | <div class="content__text">{{ $house[0]->description_2 }}</div> | ||
229 | <div class="content__3pics"> | ||
230 | @if (count($house['arrimage']) > 0) | ||
231 | <? $i = 1?> | ||
232 | @foreach($house['arrimage'] as $image) | ||
233 | <img src="{{$image}}" alt=""> | ||
234 | <? $i++; | ||
235 | if ($i > 3) break; | ||
236 | ?> | ||
237 | @endforeach | ||
238 | @endif | ||
239 | |||
240 | <!--<img src="images/1.jpg" alt=""> | ||
241 | <img src="images/1.jpg" alt="">--> | ||
242 | |||
243 | </div> | ||
244 | </div> | ||
245 | </div> | ||
246 | </div> | ||
247 | |||
248 | |||
249 | <div class="footer clearBoth"> | ||
250 | <div class="floatLeft clearBoth"> | ||
251 | <a href="#" class="footer__logo"> | ||
252 | <img src="images/logo.png" alt=""> | ||
253 | </a> | ||
254 | <div class="footer__contacts"> | ||
255 | <a href="tel:+70001234567" class="footer__contactsPhone">+7 000 123-45-67</a><span></span> | ||
256 | <a href="mailto:info@renttorg.ru" class="footer__contactsEmail">info@renttorg.ru</a> | ||
257 | </div> | ||
258 | </div> | ||
259 | <div class="floatRight clearBoth"> | ||
260 | <div class="footer__address"> | ||
261 | <b class="br">Адрес</b> | ||
262 | {{ $house[0]->address }} | ||
263 | </div><br> | ||
264 | <div class="footer__link"> | ||
265 | <b class="br">Ссылка на объект</b> | ||
266 | <a href="{{ route('offer', ['house' => $house[0]->id]) }}">{{ route('offer', ['house' => $house[0]->id]) }}</a> | ||
267 | </div> | ||
268 | </div> | ||
269 | </div> | ||
270 | </div> <!--('.root')--> | ||
271 | |||
272 | |||
273 | <div class="root"> | ||
274 | |||
275 | <div class="content"> | ||
276 | <div class="content__wrapper"> | ||
277 | <div class="slide4"> | ||
278 | <h1 class="content__title">План <span class="blue">объекта</span></h1> | ||
279 | <p class="content__quote">{{ $house[0]->description_house }}</p> | ||
280 | <div class="content__2pics contain"> | ||
281 | <? if ((!empty($house['object_image'])) && (isset($house['object_image']))) {?> | ||
282 | <img src="{{ $house['object_image'] }}" alt=""> | ||
283 | <? } ?> | ||
284 | <!--<img src="images/3.jpg" alt="">--> | ||
285 | </div> | ||
286 | </div> | ||
287 | </div> | ||
288 | </div> | ||
289 | |||
290 | |||
291 | <div class="footer clearBoth"> | ||
292 | <div class="floatLeft clearBoth"> | ||
293 | <a href="#" class="footer__logo"> | ||
294 | <img src="images/logo.png" alt=""> | ||
295 | </a> | ||
296 | <div class="footer__contacts"> | ||
297 | <a href="tel:+70001234567" class="footer__contactsPhone">+7 000 123-45-67</a><span></span> | ||
298 | <a href="mailto:info@renttorg.ru" class="footer__contactsEmail">info@renttorg.ru</a> | ||
299 | </div> | ||
300 | </div> | ||
301 | <div class="floatRight clearBoth"> | ||
302 | <div class="footer__address"> | ||
303 | <b class="br">Адрес</b> | ||
304 | {{ $house[0]->address }} | ||
305 | </div><br> | ||
306 | <div class="footer__link"> | ||
307 | <b class="br">Ссылка на объект</b> | ||
308 | <a href="{{ route('offer', ['house' => $house[0]->id]) }}">{{ route('offer', ['house' => $house[0]->id]) }}</a> | ||
309 | </div> | ||
310 | </div> | ||
311 | </div> | ||
312 | </div> <!--('.root')--> | ||
313 | |||
314 | |||
315 | <div class="root"> | ||
316 | |||
317 | <div class="content"> | ||
318 | <div class="content__wrapper"> | ||
319 | <div class="slide5"> | ||
320 | <h1 class="content__title">План <span class="blue">этажа</span></h1> | ||
321 | <p class="content__quote">{{ $house[0]->description_house }}</p> | ||
322 | <div class="content__2pics contain"> | ||
323 | <? if ((!empty($house['floor_image'])) && (isset($house['floor_image']))){?> | ||
324 | <img src="{{ $house['floor_image'] }}" alt=""> | ||
325 | <? } ?> | ||
326 | <!--<img src="images/4.jpg" alt="">--> | ||
327 | </div> | ||
328 | </div> | ||
329 | </div> | ||
330 | </div> | ||
331 | |||
332 | |||
333 | <div class="footer clearBoth"> | ||
334 | <div class="floatLeft clearBoth"> | ||
335 | <a href="#" class="footer__logo"> | ||
336 | <img src="images/logo.png" alt=""> | ||
337 | </a> | ||
338 | <div class="footer__contacts"> | ||
339 | <a href="tel:+70001234567" class="footer__contactsPhone">+7 000 123-45-67</a><span></span> | ||
340 | <a href="mailto:info@renttorg.ru" class="footer__contactsEmail">info@renttorg.ru</a> | ||
341 | </div> | ||
342 | </div> | ||
343 | <div class="floatRight clearBoth"> | ||
344 | <div class="footer__address"> | ||
345 | <b class="br">Адрес</b> | ||
346 | {{ $house[0]->address }} | ||
347 | </div><br> | ||
348 | <div class="footer__link"> | ||
349 | <b class="br">Ссылка на объект</b> | ||
350 | <a href="{{ route('offer', ['house' => $house[0]->id]) }}">{{ route('offer', ['house' => $house[0]->id]) }}</a> | ||
351 | </div> | ||
352 | </div> | ||
353 | </div> | ||
354 | </div> <!--('.root')--> | ||
355 | |||
356 | |||
357 | |||
358 | <div class="root"> | ||
359 | <div class="content"> | ||
360 | <div class="content__wrapper"> | ||
361 | <div class="slide6"> | ||
362 | <h1 class="content__title">Фотографии <span class="blue">объекта</span></h1> | ||
363 | <p class="content__quote">{{ $house[0]->description_house }}</p> | ||
364 | <div class="content__2pics"> | ||
365 | <? if (isset($house['arrimage'][3])) {?> | ||
366 | <img src="{{$house['arrimage'][3]}}" alt=""> | ||
367 | <? } ?> | ||
368 | |||
369 | <? if (isset($house['arrimage'][4])) {?> | ||
370 | <img src="{{$house['arrimage'][4]}}" alt=""> | ||
371 | <? } ?> | ||
372 | </div> | ||
373 | </div> | ||
374 | </div> | ||
375 | </div> | ||
376 | |||
377 | |||
378 | <div class="footer clearBoth"> | ||
379 | <div class="floatLeft clearBoth"> | ||
380 | <a href="#" class="footer__logo"> | ||
381 | <img src="images/logo.png" alt=""> | ||
382 | </a> | ||
383 | <div class="footer__contacts"> | ||
384 | <a href="tel:+70001234567" class="footer__contactsPhone">+7 000 123-45-67</a><span></span> | ||
385 | <a href="mailto:info@renttorg.ru" class="footer__contactsEmail">info@renttorg.ru</a> | ||
386 | </div> | ||
387 | </div> | ||
388 | <div class="floatRight clearBoth"> | ||
389 | <div class="footer__address"> | ||
390 | <b class="br">Адрес</b> | ||
391 | {{ $house[0]->address }} | ||
392 | </div><br> | ||
393 | <div class="footer__link"> | ||
394 | <b class="br">Ссылка на объект</b> | ||
395 | <a href="{{ route('offer', ['house' => $house[0]->id]) }}">{{ route('offer', ['house' => $house[0]->id]) }}</a> | ||
396 | </div> | ||
397 | </div> | ||
398 | </div> | ||
399 | </div> <!--('.root')--> | ||
400 | |||
401 | |||
402 | |||
403 | |||
404 | |||
405 | |||
406 | |||
407 | <div class="root"> | ||
408 | |||
409 | <div class="content"> | ||
410 | <div class="content__wrapper"> | ||
411 | <div class="slide7"> | ||
412 | <h1 class="content__title">Фотографии <span class="blue">объекта</span></h1> | ||
413 | <p class="content__quote">{{ $house[0]->description_house }}</p> | ||
414 | <div class="content__2pics"> | ||
415 | <? if (isset($house['arrimage'][5])) {?> | ||
416 | <img src="{{$house['arrimage'][5]}}" alt=""> | ||
417 | <? } ?> | ||
418 | |||
419 | <? if (isset($house['arrimage'][6])) {?> | ||
420 | <img src="{{$house['arrimage'][6]}}" alt=""> | ||
421 | <? } ?> | ||
422 | </div> | ||
423 | </div> | ||
424 | </div> | ||
425 | </div> | ||
426 | |||
427 | |||
428 | <div class="footer clearBoth"> | ||
429 | <div class="floatLeft clearBoth"> | ||
430 | <a href="#" class="footer__logo"> | ||
431 | <img src="images/logo.png" alt=""> | ||
432 | </a> | ||
433 | <div class="footer__contacts"> | ||
434 | <a href="tel:+70001234567" class="footer__contactsPhone">+7 000 123-45-67</a><span></span> | ||
435 | <a href="mailto:info@renttorg.ru" class="footer__contactsEmail">info@renttorg.ru</a> | ||
436 | </div> | ||
437 | </div> | ||
438 | <div class="floatRight clearBoth"> | ||
439 | <div class="footer__address"> | ||
440 | <b class="br">Адрес</b> | ||
441 | {{ $house[0]->address }} | ||
442 | </div><br> | ||
443 | <div class="footer__link"> | ||
444 | <b class="br">Ссылка на объект</b> | ||
445 | <a href="{{ route('offer', ['house' => $house[0]->id]) }}">{{ route('offer', ['house' => $house[0]->id]) }}</a> | ||
446 | </div> | ||
447 | </div> | ||
448 | </div> | ||
449 | </div> <!--('.root')--> | ||
450 | |||
451 | <div class="root"> | ||
452 | |||
453 | <div class="content"> | ||
454 | <div class="content__wrapper"> | ||
455 | <div class="slide8"> | ||
456 | <h1 class="content__title">Фотографии <span class="blue">объекта</span></h1> | ||
457 | <p class="content__quote">{{ $house[0]->description_house }}</p> | ||
458 | <div class="content__2pics"> | ||
459 | <? if (isset($house['arrimage'][7])) {?> | ||
460 | <img src="{{$house['arrimage'][7]}}" alt=""> | ||
461 | <? } ?> | ||
462 | <? if (isset($house['arrimage'][8])) {?> | ||
463 | <img src="{{$house['arrimage'][8]}}" alt=""> | ||
464 | <? } ?> | ||
465 | </div> | ||
466 | </div> | ||
467 | </div> | ||
468 | </div> | ||
469 | |||
470 | |||
471 | <div class="footer clearBoth"> | ||
472 | <div class="floatLeft clearBoth"> | ||
473 | <a href="#" class="footer__logo"> | ||
474 | <img src="images/logo.png" alt=""> | ||
475 | </a> | ||
476 | <div class="footer__contacts"> | ||
477 | <a href="tel:+70001234567" class="footer__contactsPhone">+7 000 123-45-67</a><span></span> | ||
478 | <a href="mailto:info@renttorg.ru" class="footer__contactsEmail">info@renttorg.ru</a> | ||
479 | </div> | ||
480 | </div> | ||
481 | <div class="floatRight clearBoth"> | ||
482 | <div class="footer__address"> | ||
483 | <b class="br">Адрес</b> | ||
484 | {{ $house[0]->address }} | ||
485 | </div><br> | ||
486 | <div class="footer__link"> | ||
487 | <b class="br">Ссылка на объект</b> | ||
488 | <a href="{{ route('offer', ['house' => $house[0]->id]) }}">{{ route('offer', ['house' => $house[0]->id]) }}</a> | ||
489 | </div> | ||
490 | </div> | ||
491 | </div> | ||
492 | </div> <!--('.root')--> | ||
493 | |||
494 | |||
495 | <div class="root"> | ||
496 | |||
497 | <div class="content"> | ||
498 | <div class="content__wrapper"> | ||
499 | <div class="slide9"> | ||
500 | <h1 class="content__title">Фотографии <span class="blue">объекта</span></h1> | ||
501 | <p class="content__quote">{{ $house[0]->description_house }}</p> | ||
502 | <div class="content__2pics min last"> | ||
503 | <? if (isset($house['arrimage'][9])) {?> | ||
504 | <img src="{{$house['arrimage'][9]}}" alt=""> | ||
505 | <? } ?> | ||
506 | <? if (isset($house['arrimage'][10])) {?> | ||
507 | <img src="{{$house['arrimage'][10]}}" alt=""> | ||
508 | <? } ?> | ||
509 | </div> | ||
510 | <div class="content__phone"><a href="tel:+70001234567"><span>+7 000 123-45-67</span></a></div> | ||
511 | </div> | ||
512 | </div> | ||
513 | </div> | ||
514 | |||
515 | |||
516 | <div class="footer clearBoth"> | ||
517 | <div class="floatLeft clearBoth"> | ||
518 | <a href="#" class="footer__logo"> | ||
519 | <img src="images/logo.png" alt=""> | ||
520 | </a> | ||
521 | <div class="footer__contacts"> | ||
522 | <a href="tel:+70001234567" class="footer__contactsPhone">+7 000 123-45-67</a><span></span> | ||
523 | <a href="mailto:info@renttorg.ru" class="footer__contactsEmail">info@renttorg.ru</a> | ||
524 | </div> | ||
525 | </div> | ||
526 | <div class="floatRight clearBoth"> | ||
527 | <div class="footer__address"> | ||
528 | <b class="br">Адрес</b> | ||
529 | {{ $house[0]->address }} | ||
530 | </div><br> | ||
531 | <div class="footer__link"> | ||
532 | <b class="br">Ссылка на объект</b> | ||
533 | <a href="{{ route('offer', ['house' => $house[0]->id]) }}">{{ route('offer', ['house' => $house[0]->id]) }}</a> | ||
534 | </div> | ||
535 | </div> | ||
536 | </div> | ||
537 | </div> <!--('.root')--> | ||
538 | |||
539 | |||
540 | |||
541 | </body> | ||
542 | </html> | ||
543 |