From d2e30108c8b0332f3949dfc16c69d53b19c70093 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9=20=20=D0=9B=D0=B0=D1=80?= =?UTF-8?q?=D0=B8=D0=BE=D0=BD=D0=BE=D0=B2?= Date: Tue, 21 Mar 2023 18:18:42 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9B=D0=B8=D0=BD=D0=BA=D0=B8=20=D1=82=D0=B5=D0=BB?= =?UTF-8?q?=D0=B5=D1=84=D0=BE=D0=BD=D0=BE=D0=B2=20=D0=B2=20=D0=BA=D0=B0=D1=80?= =?UTF-8?q?=D1=82=D0=BE=D1=87=D0=BA=D0=B0=D1=85=20=D0=BE=D1=84=D0=B8=D1=81=D0?= =?UTF-8?q?=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/MainController.php | 6 +++++- app/Providers/ComposerServiceProvider.php | 2 +- resources/views/admin/houses/form.blade.php | 4 ++-- resources/views/catalogs/elemhouse.blade.php | 5 ++++- resources/views/catalogs/house_mini.blade.php | 7 +++++-- resources/views/house/post.blade.php | 18 +++++++++++------- resources/views/layout/site.blade.php | 10 +++++----- 7 files changed, 33 insertions(+), 19 deletions(-) diff --git a/app/Http/Controllers/MainController.php b/app/Http/Controllers/MainController.php index 931149a..089bddd 100644 --- a/app/Http/Controllers/MainController.php +++ b/app/Http/Controllers/MainController.php @@ -228,6 +228,9 @@ class MainController extends Controller $MailBD->save(); } + /* + * Форма записаться на просмотр + */ public function rec_view_form(FooterFeedbackRequest $request) { $RentTorg = Contact::query()->limit(1)->get(); $MailBD = new ModelMailFeedback(); @@ -236,6 +239,7 @@ class MainController extends Controller $MailBD->subject = "Пользователь <".$request->NameUser.">"; $MailBD->form = 'Форма записи на просмотр'; $MailBD->text = "От пользователя: ".$request->NameUser." Сообщение: Заказываю просмотр офиса"; + $MailBD->text .= "Адрес офиса-объекта: ".url()->previous()." "; $MailBD->save(); } @@ -773,7 +777,7 @@ class MainController extends Controller // выводим количество пользователей гостей данной страницы $count_user = DB::table('pages')->where('url', '=', "$url")->get(); - return view('house.post', compact('house', 'houses', 'count_user')); + return view('house.post', compact('house', 'houses', 'count_user')); } /* diff --git a/app/Providers/ComposerServiceProvider.php b/app/Providers/ComposerServiceProvider.php index 94b2f6c..49f7bfc 100644 --- a/app/Providers/ComposerServiceProvider.php +++ b/app/Providers/ComposerServiceProvider.php @@ -34,7 +34,7 @@ class ComposerServiceProvider extends ServiceProvider } ); - $views = ['layout.site', 'index', 'about']; + $views = ['layout.site', 'index', 'about', 'house.post', 'catalog', 'category_catalog']; View::composer($views, function($view) { $view->with(['items_contact' => Contact::limit(1)->get()]); }); diff --git a/resources/views/admin/houses/form.blade.php b/resources/views/admin/houses/form.blade.php index bc992e4..1eca5aa 100644 --- a/resources/views/admin/houses/form.blade.php +++ b/resources/views/admin/houses/form.blade.php @@ -192,7 +192,7 @@

-
+
@error('price')
{{ $message }}
@enderror @@ -206,7 +206,7 @@

-
+
@error('rent_in_year')
{{ $message }}
@enderror diff --git a/resources/views/catalogs/elemhouse.blade.php b/resources/views/catalogs/elemhouse.blade.php index b54b779..7c914cc 100644 --- a/resources/views/catalogs/elemhouse.blade.php +++ b/resources/views/catalogs/elemhouse.blade.php @@ -17,7 +17,7 @@ - + @@ -43,6 +43,9 @@ case 'Арендованные': $comment = "в месяц"; break; + default: + $comment = "в месяц"; + break; } ?>
{{ $house->price }} ₽ diff --git a/resources/views/catalogs/house_mini.blade.php b/resources/views/catalogs/house_mini.blade.php index 4ca1cd8..77a8fdc 100644 --- a/resources/views/catalogs/house_mini.blade.php +++ b/resources/views/catalogs/house_mini.blade.php @@ -13,10 +13,13 @@ - + + -
+ + +
diff --git a/resources/views/house/post.blade.php b/resources/views/house/post.blade.php index e52b8be..0b0341d 100644 --- a/resources/views/house/post.blade.php +++ b/resources/views/house/post.blade.php @@ -38,7 +38,7 @@
{{ $count_user->count() }} человек(а) интересовались этим объектом за последние 24 ч
- Позвонить + Позвонить @@ -153,8 +153,12 @@
+ format_house == "Продажа") {?> +
Цена{{ $house->price }} ₽
+
Аренда в год за м2{{ $house->rent_in_year }} ₽
-
Аренда в месяц{{ $house->rent_in_month }} ₽
+
Аренда в месяц{{ $house->price }} ₽
+
Схема сделки{{ $house->scheme_deal }}
Скачать презентацию +
Скачать презентацию @@ -177,7 +181,7 @@
Площадь, м2{{ $house->area }}
Адрес{{ $house->address }}
Тип объекта{{ $house->typearea->name_type }}
-
Формат{{ $house->format_house }}
+
Формат{{ $house->format_house }}
Этаж{{ $house->floor }} эт.
Этажность здания{{ $house->floor_bild }} эт.
Арендаторы{{ $house->renter }}
@@ -216,12 +220,12 @@
- +
- +
diff --git a/resources/views/layout/site.blade.php b/resources/views/layout/site.blade.php index 4994470..ee7b36a 100644 --- a/resources/views/layout/site.blade.php +++ b/resources/views/layout/site.blade.php @@ -35,7 +35,7 @@
- @@ -342,12 +342,12 @@
-
План объекта
-
План этажа
+
План объекта
+
План этажа
@@ -355,7 +355,7 @@
-- 1.7.10.4