diff --git a/app/Http/Controllers/EmployerController.php b/app/Http/Controllers/EmployerController.php index 10fc49c..b4648f6 100644 --- a/app/Http/Controllers/EmployerController.php +++ b/app/Http/Controllers/EmployerController.php @@ -285,7 +285,8 @@ class EmployerController extends Controller $Employer = Employer::query() ->with('users')->with('ads')->with('flots')->where('user_id', $id)->first(); - return view('employers.edit_vacancy', compact('ad_employer', 'Positions','Employer', 'jobs')); + + return redirect()->back()->with('success', 'Вакансия успешно сохранена и опубликована'); } // Сохранение карточки вакансии diff --git a/resources/views/employers/edit_vacancy.blade.php b/resources/views/employers/edit_vacancy.blade.php index c7c596c..a40e259 100644 --- a/resources/views/employers/edit_vacancy.blade.php +++ b/resources/views/employers/edit_vacancy.blade.php @@ -32,6 +32,10 @@ @endsection @section('content')
+ @include('modals.flash-message', [ + 'title' => 'Спасибо!', + 'message' => session('success') + ])