From ef85e20c2a673e1383d43c0c8eca67b61962de67 Mon Sep 17 00:00:00 2001 From: anazaryan Date: Wed, 11 Dec 2024 20:13:58 +0400 Subject: [PATCH] show popup on subscribe --- app/Http/Controllers/EmployerController.php | 2 +- app/Http/Controllers/WorkerController.php | 2 +- resources/views/employers/subcribe.blade.php | 4 ++++ resources/views/workers/subcribe.blade.php | 4 ++++ 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/EmployerController.php b/app/Http/Controllers/EmployerController.php index 01e6ba1..774e3ee 100644 --- a/app/Http/Controllers/EmployerController.php +++ b/app/Http/Controllers/EmployerController.php @@ -626,7 +626,7 @@ class EmployerController extends Controller 'subscribe' => request()->has('email_msg') && request('email_msg') === 'on' ? 1 : 0 ] ); - return redirect()->route('employer.subscribe')->with('Вы успешно подписались на рассылку'); + return redirect()->route('employer.subscribe')->with('success', 'Ваши изменения успешно сохранены'); } //Сбросить форму с паролем public function password_reset() { diff --git a/app/Http/Controllers/WorkerController.php b/app/Http/Controllers/WorkerController.php index c0aa0cb..23fa11c 100644 --- a/app/Http/Controllers/WorkerController.php +++ b/app/Http/Controllers/WorkerController.php @@ -914,7 +914,7 @@ class WorkerController extends Controller 'subscribe' => request()->has('email_msg') && request('email_msg') === 'on' ? 1 : 0 ] ); - return redirect()->route('worker.subscribe')->with('Вы успешно подписались на рассылку'); + return redirect()->route('worker.subscribe')->with('success', 'Ваши изменения успешно сохранены'); } public function delete_add_diplom(Request $request, Worker $worker) { diff --git a/resources/views/employers/subcribe.blade.php b/resources/views/employers/subcribe.blade.php index c0ed482..ba7041b 100644 --- a/resources/views/employers/subcribe.blade.php +++ b/resources/views/employers/subcribe.blade.php @@ -7,6 +7,10 @@ @section('content')
+ @include('modals.flash-message', [ + 'title' => 'Спасибо!', + 'message' => session('success') + ])