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. 16
      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);
}

@ -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){
@ -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')}}"/>
@endsection
@section('content')
@php
$msg = Session::get('msg') ?? null;
@endphp
<section class="need-chef-banner" style="background: url('frontend/images/am-chef-banner.png')">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
@ -50,7 +53,7 @@
<form action="{{route('recruitment.apply')}}" method = "post" enctype="multipart/form-data">
@csrf
@include('errors.error')
@include('success.success')
<h2>Please fill-up the form</h2>
<div class="mb-3">
<label for="">Full name</label>
@ -367,7 +370,18 @@
</section>
@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>
var php_var = "<?php echo $msg; ?>";
if(php_var.length !== 0){
Swal.fire({
title: 'Submitted!!',
text: php_var,
icon: 'success'
})
}
$('#refresh').click(function(event){
event.preventDefault();
$.ajax({

@ -7,6 +7,9 @@
@endsection
@section('content')
@php
$msg = Session::get('msg') ?? null;
@endphp
<section class="contact-us-section" style="background: url('frontend/images/contact-us-banner.png')">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
@ -63,7 +66,6 @@
<div class="col-md-7">
<div class="contact-form">
<h2>Please fill-up the form</h2>
@include('success.success')
@include('errors.error')
<form action="{{route('send_contact_mail')}}" method = "post">
@ -144,7 +146,19 @@
</section>
@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>
var php_var = "<?php echo $msg; ?>";
if(php_var.length !== 0){
Swal.fire({
title: 'Submitted!!',
text: php_var,
icon: 'success'
})
}
$('#refresh').click(function(event){
event.preventDefault();
$.ajax({

@ -11,9 +11,9 @@
@if (isset($custom_errors))
<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>
</button>
</button> -->
<ul>
@foreach ($custom_errors as $error)
<li>{{ $error }}</li>

@ -6,6 +6,9 @@
<meta name="og:image" content="{{url('frontend/images/need-chef.png')}}"/>
@endsection
@section('content')
@php
$msg = Session::get('msg') ?? null;
@endphp
<section class="need-chef-banner" style="background: url('frontend/images/need-chef.png')">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
@ -42,7 +45,7 @@
<form action="{{route('recruitment.vacancy')}}" method = "post">
@csrf
@include('errors.error')
@include('success.success')
<h2>Please fill-up the form</h2>
<div class="mb-3">
<label for="">Full name</label>
@ -89,7 +92,18 @@
</section>
@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>
var php_var = "<?php echo $msg; ?>";
if(php_var.length !== 0){
Swal.fire({
title: 'Submitted!!',
text: php_var,
icon: 'success'
})
}
$('#refresh').click(function(event){
event.preventDefault();
$.ajax({

@ -269,6 +269,8 @@
<div class="col-md-6">
<div class="enquiry-header text-center">
<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>
</div>
<form action="{{route('send_contact_mail')}}" method="post">
@ -394,7 +396,6 @@
var php_var = "<?php echo $msg; ?>";
if(php_var.length !== 0){
alert('ok');
Swal.fire({
title: 'Submitted!!',
text: php_var,

Loading…
Cancel
Save