pop-up-messages

aplus#26
Mahesh Sharma 2 years ago
parent ea8c7325c3
commit 29990fe901
  1. 3
      app/Http/Controllers/HomeController.php
  2. 4
      app/Http/Controllers/RecruitmentController.php
  3. BIN
      public/frontend/.DS_Store
  4. BIN
      public/images/applicant/2022/12/14/2091d808c1a83bd7456fd3210c9581e3.docx
  5. 16
      resources/views/am_chef.blade.php
  6. 16
      resources/views/contact.blade.php
  7. 4
      resources/views/errors/error.blade.php
  8. 18
      resources/views/need_chef.blade.php
  9. 3
      resources/views/welcome.blade.php

@ -131,7 +131,8 @@ class HomeController extends Controller
}); });
}); });
return redirect()->back()->with(['success' => 'Thank you for your interest. We will get back to you soon.']); // return redirect()->back()->with(['msg' => 'Successfully submitted.']);
return redirect()->back()->with(['msg' => 'Thank you for your interest. We will get back to you soon.']);
// return response()->json(['success' => 'Thank you for your interest. We will get back to you soon.','status' =>'Ok'],200); // return response()->json(['success' => 'Thank you for your interest. We will get back to you soon.','status' =>'Ok'],200);
} }

@ -52,7 +52,7 @@ class RecruitmentController extends Controller
}); });
}); });
return redirect()->back()->with(['success' => 'Thank you! Your recruitment details have been recieved.']); return redirect()->back()->with(['msg' => 'Thank you! Your recruitment details have been recieved.']);
} }
public function apply(Request $request){ public function apply(Request $request){
@ -112,6 +112,6 @@ class RecruitmentController extends Controller
}); });
}); });
return redirect()->back()->with(['success' => 'Thank you! Your details have been recieved.']); return redirect()->back()->with(['msg' => 'Thank you! Your details have been recieved.']);
} }
} }

Binary file not shown.

@ -6,6 +6,9 @@
<meta name="og:image" content="{{url('frontend/images/am-chef-banner.png')}}"/> <meta name="og:image" content="{{url('frontend/images/am-chef-banner.png')}}"/>
@endsection @endsection
@section('content') @section('content')
@php
$msg = Session::get('msg') ?? null;
@endphp
<section class="need-chef-banner" style="background: url('frontend/images/am-chef-banner.png')"> <section class="need-chef-banner" style="background: url('frontend/images/am-chef-banner.png')">
<nav aria-label="breadcrumb"> <nav aria-label="breadcrumb">
<ol class="breadcrumb"> <ol class="breadcrumb">
@ -50,7 +53,7 @@
<form action="{{route('recruitment.apply')}}" method = "post" enctype="multipart/form-data"> <form action="{{route('recruitment.apply')}}" method = "post" enctype="multipart/form-data">
@csrf @csrf
@include('errors.error') @include('errors.error')
@include('success.success')
<h2>Please fill-up the form</h2> <h2>Please fill-up the form</h2>
<div class="mb-3"> <div class="mb-3">
<label for="">Full name</label> <label for="">Full name</label>
@ -367,7 +370,18 @@
</section> </section>
@section('script') @section('script')
<script src="//cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
<script> <script>
var php_var = "<?php echo $msg; ?>";
if(php_var.length !== 0){
Swal.fire({
title: 'Submitted!!',
text: php_var,
icon: 'success'
})
}
$('#refresh').click(function(event){ $('#refresh').click(function(event){
event.preventDefault(); event.preventDefault();
$.ajax({ $.ajax({

@ -7,6 +7,9 @@
@endsection @endsection
@section('content') @section('content')
@php
$msg = Session::get('msg') ?? null;
@endphp
<section class="contact-us-section" style="background: url('frontend/images/contact-us-banner.png')"> <section class="contact-us-section" style="background: url('frontend/images/contact-us-banner.png')">
<nav aria-label="breadcrumb"> <nav aria-label="breadcrumb">
<ol class="breadcrumb"> <ol class="breadcrumb">
@ -63,7 +66,6 @@
<div class="col-md-7"> <div class="col-md-7">
<div class="contact-form"> <div class="contact-form">
<h2>Please fill-up the form</h2> <h2>Please fill-up the form</h2>
@include('success.success')
@include('errors.error') @include('errors.error')
<form action="{{route('send_contact_mail')}}" method = "post"> <form action="{{route('send_contact_mail')}}" method = "post">
@ -144,7 +146,19 @@
</section> </section>
@section('script') @section('script')
<script src="//cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
<script> <script>
var php_var = "<?php echo $msg; ?>";
if(php_var.length !== 0){
Swal.fire({
title: 'Submitted!!',
text: php_var,
icon: 'success'
})
}
$('#refresh').click(function(event){ $('#refresh').click(function(event){
event.preventDefault(); event.preventDefault();
$.ajax({ $.ajax({

@ -11,9 +11,9 @@
@if (isset($custom_errors)) @if (isset($custom_errors))
<div class="alert alert-danger"> <div class="alert alert-danger">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"> <!-- <button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">&times;</span> <span aria-hidden="true">&times;</span>
</button> </button> -->
<ul> <ul>
@foreach ($custom_errors as $error) @foreach ($custom_errors as $error)
<li>{{ $error }}</li> <li>{{ $error }}</li>

@ -6,6 +6,9 @@
<meta name="og:image" content="{{url('frontend/images/need-chef.png')}}"/> <meta name="og:image" content="{{url('frontend/images/need-chef.png')}}"/>
@endsection @endsection
@section('content') @section('content')
@php
$msg = Session::get('msg') ?? null;
@endphp
<section class="need-chef-banner" style="background: url('frontend/images/need-chef.png')"> <section class="need-chef-banner" style="background: url('frontend/images/need-chef.png')">
<nav aria-label="breadcrumb"> <nav aria-label="breadcrumb">
<ol class="breadcrumb"> <ol class="breadcrumb">
@ -41,8 +44,8 @@
<div class="chef-hire-form"> <div class="chef-hire-form">
<form action="{{route('recruitment.vacancy')}}" method = "post"> <form action="{{route('recruitment.vacancy')}}" method = "post">
@csrf @csrf
@include('errors.error') @include('errors.error')
@include('success.success')
<h2>Please fill-up the form</h2> <h2>Please fill-up the form</h2>
<div class="mb-3"> <div class="mb-3">
<label for="">Full name</label> <label for="">Full name</label>
@ -89,7 +92,18 @@
</section> </section>
@section('script') @section('script')
<script src="//cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
<script> <script>
var php_var = "<?php echo $msg; ?>";
if(php_var.length !== 0){
Swal.fire({
title: 'Submitted!!',
text: php_var,
icon: 'success'
})
}
$('#refresh').click(function(event){ $('#refresh').click(function(event){
event.preventDefault(); event.preventDefault();
$.ajax({ $.ajax({

@ -269,6 +269,8 @@
<div class="col-md-6"> <div class="col-md-6">
<div class="enquiry-header text-center"> <div class="enquiry-header text-center">
<h2>Quick Enquiry</h2> <h2>Quick Enquiry</h2>
@include('errors.error')
@include('success.success')
<p>Want to get in touch? Please fill in the form below and one of our agents will be in touch with you shortly. </p> <p>Want to get in touch? Please fill in the form below and one of our agents will be in touch with you shortly. </p>
</div> </div>
<form action="{{route('send_contact_mail')}}" method="post"> <form action="{{route('send_contact_mail')}}" method="post">
@ -394,7 +396,6 @@
var php_var = "<?php echo $msg; ?>"; var php_var = "<?php echo $msg; ?>";
if(php_var.length !== 0){ if(php_var.length !== 0){
alert('ok');
Swal.fire({ Swal.fire({
title: 'Submitted!!', title: 'Submitted!!',
text: php_var, text: php_var,

Loading…
Cancel
Save