Your ROOT_URL in app.ini is http://159.89.207.79:3000/ but you are visiting http://9.cron.my.id:3000/tribikram/AplusAgency/commit/29990fe90141d06a9f96d153432f914c7949f9ec?style=unified&whitespace=ignore-eol
You should set ROOT_URL correctly, otherwise the web may not work correctly.
9 changed files with
54 additions and
10 deletions
app/Http/Controllers/HomeController.php
app/Http/Controllers/RecruitmentController.php
BIN
public/frontend/.DS_Store
BIN
public/images/applicant/2022/12/14/2091d808c1a83bd7456fd3210c9581e3.docx
resources/views/am_chef.blade.php
resources/views/contact.blade.php
resources/views/errors/error.blade.php
resources/views/need_chef.blade.php
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.']);
}
}
@ -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" > × < / 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" >
@ -41,8 +44,8 @@
< div class = "chef-hire-form" >
< form action = "{{route('recruitment.vacancy')}}" method = "post" >
@csrf
@include('errors.error')
@include('success.success')
@include('errors.error')
< 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,