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')