Commit ef85e20c2a673e1383d43c0c8eca67b61962de67

Authored by Hayk Nazaryan
1 parent 12a0a31005
Exists in master

show popup on subscribe

Showing 4 changed files with 10 additions and 2 deletions Side-by-side Diff

app/Http/Controllers/EmployerController.php
... ... @@ -626,7 +626,7 @@ class EmployerController extends Controller
626 626 'subscribe' => request()->has('email_msg') && request('email_msg') === 'on' ? 1 : 0
627 627 ]
628 628 );
629   - return redirect()->route('employer.subscribe')->with('Вы успешно подписались на рассылку');
  629 + return redirect()->route('employer.subscribe')->with('success', 'Ваши изменения успешно сохранены');
630 630 }
631 631 //Сбросить форму с паролем
632 632 public function password_reset() {
app/Http/Controllers/WorkerController.php
... ... @@ -914,7 +914,7 @@ class WorkerController extends Controller
914 914 'subscribe' => request()->has('email_msg') && request('email_msg') === 'on' ? 1 : 0
915 915 ]
916 916 );
917   - return redirect()->route('worker.subscribe')->with('Вы успешно подписались на рассылку');
  917 + return redirect()->route('worker.subscribe')->with('success', 'Ваши изменения успешно сохранены');
918 918  
919 919 }
920 920 public function delete_add_diplom(Request $request, Worker $worker) {
resources/views/employers/subcribe.blade.php
... ... @@ -7,6 +7,10 @@
7 7 @section('content')
8 8 <section class="cabinet">
9 9 <div class="container">
  10 + @include('modals.flash-message', [
  11 + 'title' => 'Спасибо!',
  12 + 'message' => session('success')
  13 + ])
10 14 <ul class="breadcrumbs cabinet__breadcrumbs">
11 15 <li><a href="{{ route('index') }}">Главная</a></li>
12 16 <li><b>Личный кабинет</b></li>
resources/views/workers/subcribe.blade.php
... ... @@ -7,6 +7,10 @@
7 7 @section('content')
8 8 <section class="cabinet">
9 9 <div class="container">
  10 + @include('modals.flash-message', [
  11 + 'title' => 'Спасибо!',
  12 + 'message' => session('success')
  13 + ])
10 14 <ul class="breadcrumbs cabinet__breadcrumbs">
11 15 <li><a href="{{ route('index') }}">Главная</a></li>
12 16 <li><b>Личный кабинет</b></li>