recruitment-form-submissionn

aplus/#9
Mahesh Sharma 2 years ago
parent ea4c3f91b1
commit c0c734f930
  1. 10
      app/Http/Controllers/HomeController.php
  2. 55
      app/Http/Controllers/RecruitmentController.php
  3. 11
      app/Models/Recruitment.php
  4. 4
      database/migrations/2022_12_07_041318_create_recruitments_table.php
  5. BIN
      public/images/news_and_update/2022/12/09/0e900948c55abc91e473dac65ddde3df.jpeg
  6. 2
      resources/views/admin/login.blade.php
  7. 2
      resources/views/need_chef.blade.php
  8. 24
      resources/views/recruitment_mail.blade.php
  9. 63
      resources/views/welcome.blade.php
  10. 2
      routes/web.php

@ -42,7 +42,10 @@ class HomeController extends Controller
$phone = Setting::where(['key' => 'phone','status' => '1'])->first(); $phone = Setting::where(['key' => 'phone','status' => '1'])->first();
$email = Setting::where(['key' => 'email','status' => '1'])->first(); $email = Setting::where(['key' => 'email','status' => '1'])->first();
$address = Setting::where(['key' => 'address','status' => '1'])->first(); $address = Setting::where(['key' => 'address','status' => '1'])->first();
return view('welcome',compact('services','sliders','about_us','news_and_updates','testimonials','phone','email','address','partners')); $visa_success = Setting::where(['slug' => 'visa-success','status' => '1'])->first();
$visa_approved = Setting::where(['slug' => 'visa-approved','status' => '1'])->first();
$partner_institution = Setting::where(['slug' => 'partner-institutions','status' => '1'])->first();
return view('welcome',compact('services','sliders','about_us','news_and_updates','testimonials','phone','email','address','partners','visa_success','visa_approved','partner_institution'));
} }
public function service(){ public function service(){
@ -318,5 +321,10 @@ class HomeController extends Controller
{ {
return response()->json(['captcha_code'=> Str::random(5)]); return response()->json(['captcha_code'=> Str::random(5)]);
} }
public function news(){
$news = NewsAndUpdate::where('status',1)->get();
return view('news.blade.php',compact('news'))
}
} }

@ -0,0 +1,55 @@
<?php
namespace App\Http\Controllers;
use App\Models\Recruitment;
use Illuminate\Http\Request;
class RecruitmentController extends Controller
{
public function save_vacancy(Request $request){
$this->validate(\request(),[
'full_name' => 'required',
'company' => 'required',
'email' => 'required',
'no_of_position' => 'required',
'entered_captcha_code' => 'required|same:displayed_captcha_code'
]);
$recruitment = new Recruitment();
$subject = 'Recruitment Enquiry';
$recruitment->full_name = $request['full_name'];
$recruitment->company = $request['company'];
$recruitment->email = $request['email'];
$recruitment->no_of_position = $request['no_of_position'];
$recruitment->enquiry = $request['enquiry'];
$recruitment->save();
dispatch(function() use ($subject, $recruitment) {
\Mail::send('recruitment_mail', array(
'full_name' =>$recruitment['full_name'],
'email' =>$recruitment['email'],
'company' =>$recruitment['company'],
'enquiry' =>$recruitment['enquiry'],
'no_of_position' =>$recruitment['no_of_position'],
'subject' =>$subject ,
), function($message) use ($subject){
// $subject=($service!= '') ? 'Enquiry for '.$service : 'Contact/Feedback';
$message->subject($subject);
// $message->to('info@agilityhomecare.com.au', 'AgilityHomeCare')->subject($subject);
$message->to('mahesh@extratechs.com.au', 'Extratech')->subject($subject);
});
});
return redirect()->back()->with(['success' => 'Thank you! Your recruitment details have been recieved.']);
}
}

@ -0,0 +1,11 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Recruitment extends Model
{
use HasFactory;
}

@ -17,9 +17,9 @@ return new class extends Migration
$table->id(); $table->id();
$table->string('full_name'); $table->string('full_name');
$table->string('company'); $table->string('company');
$table->string('address'); $table->string('email');
$table->string('no_of_position'); $table->string('no_of_position');
$table->text('enquiry'); $table->text('enquiry')->nullable();
$table->timestamps(); $table->timestamps();
}); });
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

@ -4,7 +4,7 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<title>DICE | Login</title> <title>AplusAgency |Admin Login</title>
<!-- Google Font: Source Sans Pro --> <!-- Google Font: Source Sans Pro -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback"> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">

@ -38,6 +38,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('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>

@ -0,0 +1,24 @@
<style>
.main-column{
display:flex;
width:100%;
}
.column-one{
width:50%;
}
</style>
<h1>Recruitment Enquiry Details </h1>
<br />
<div class="main-column" style = "display:block; width:100%;">
<div class="column-one" style = "display:block; width:100%;">
<h3>Please, find out the recruitment details</h3>
<b>Full Name:</b> {{ $full_name }}<br /><br />
<b>Email:</b> {{ $email }}<br /><br />
<b>Company Name:</b> {{$company}}<br /><br />
<b>No of position:</b> {{$no_of_position}}<br /><br />
<b>Enquiry:</b> {{ $enquiry }}<br /><br />
</div>
</div>

@ -11,12 +11,14 @@
<video width="100%" height="auto" id="vid" autoplay playsinline loop muted> <video width="100%" height="auto" id="vid" autoplay playsinline loop muted>
<source src="{{url('frontend/video/aplus-video.mp4')}}" type="video/mp4"> <source src="{{url('frontend/video/aplus-video.mp4')}}" type="video/mp4">
</video> </video>
@foreach($sliders as $slider)
<div class="banner-description"> <div class="banner-description">
<h2>Study Commercial</h2> <h2>{{$slider->title1}}</h2>
<h3>Cookery in Australia</h3> <h3>{{$slider->title2}}</h3>
<p>Let us find you a work placement and secure your permanent residency in just 4 simple steps.</p> <p>{{$slider->description}}</p>
</div> </div>
<div class="banner-description-two"> @endforeach
<!-- <div class="banner-description-two">
<h2>Our pathway will </h2> <h2>Our pathway will </h2>
<h3>help you build a secure future in Australia </h3> <h3>help you build a secure future in Australia </h3>
<p>Let us find you a work placement and secure your permanent residency in just 4 simple steps.</p> <p>Let us find you a work placement and secure your permanent residency in just 4 simple steps.</p>
@ -25,7 +27,7 @@
<h2>Lorem ipsum </h2> <h2>Lorem ipsum </h2>
<h3>help you build a secure future in Australia </h3> <h3>help you build a secure future in Australia </h3>
<p>Let us find you a work placement and secure your permanent residency in just 4 simple steps.</p> <p>Let us find you a work placement and secure your permanent residency in just 4 simple steps.</p>
</div> </div> -->
</section> </section>
<!-- Slider section --> <!-- Slider section -->
<!-- Achievement section --> <!-- Achievement section -->
@ -33,15 +35,15 @@
<div class="achievement-items"> <div class="achievement-items">
<div class="achivement-sec"> <div class="achivement-sec">
<img src="{{url('frontend/icons/success-icon.svg')}}" class="img-fluid" alt=""> <img src="{{url('frontend/icons/success-icon.svg')}}" class="img-fluid" alt="">
<h5>99% Visa Success</h5> <h5>{{$visa_success->value}}</h5>
</div> </div>
<div class="achivement-sec"> <div class="achivement-sec">
<img src="{{url('frontend/icons/visa-approved.svg')}}" alt=""> <img src="{{url('frontend/icons/visa-approved.svg')}}" alt="">
<h5>150 Visa Approved</h5> <h5>{{$visa_approved->value}}</h5>
</div> </div>
<div class="achivement-sec"> <div class="achivement-sec">
<img src="{{url('frontend/icons/institution.svg')}}" alt=""> <img src="{{url('frontend/icons/institution.svg')}}" alt="">
<h5>500+ Partner Institutions</h5> <h5>{{$partner_institution->value}}</h5>
</div> </div>
</div> </div>
</section> </section>
@ -153,16 +155,17 @@
</div> </div>
<div class="row"> <div class="row">
<div class="col-md-6"> <div class="col-md-6">
<div class="featured-news"> <div class="featured-news">
<a href="/news_detail" href=""> <a href="/news_detail" href="">
<div class="featured-news-image"> <div class="featured-news-image">
<img src="{{url('frontend/images/featured-image.png')}}" class="w-100" alt=""> <img src="{{url($news_and_updates->first()->image)}}" class="w-100" alt="">
</div> </div>
<div class="featured-content"> <div class="featured-content">
<p>4 Nov, 2022</p> <p>{{$news_and_updates->first()->created_at}}</p>
<h2>Recognition of Prior Learning (RPL)</h2> <h2>{{$news_and_updates->first()->title}}</h2>
<div class="featured-btn"> <div class="featured-btn">
<p href="/">Learn more</p> <p href="{{url('news/'.$news_and_updates->first()->slug)}}">Read more</p>
<i class="fa-solid fa-arrow-right-long"></i> <i class="fa-solid fa-arrow-right-long"></i>
</div> </div>
</div> </div>
@ -171,42 +174,18 @@
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<div class="more-news"> <div class="more-news">
@foreach($news_and_updates->skip(1) as $news)
<a href="/news_detail" class="more-news-box"> <a href="/news_detail" class="more-news-box">
<div class="news-box-img"> <div class="news-box-img">
<img src="{{url('frontend/images/baking.png')}}" class="w-100" alt=""> <img src="{{url($news->image)}}" class="w-100" alt="">
</div>
<div class="news-box-desc">
<h4>Baking and Pastry Arts</h4>
<p>Aadvanced culinary training in baking fresh bread, cakes, pies ...</p>
</div>
</a>
<a href="/news_detail" class="more-news-box">
<div class="news-box-img">
<img src="{{url('frontend/images/baking.png')}}" class="w-100" alt="">
</div>
<div class="news-box-desc">
<h4>Baking and Pastry Arts</h4>
<p>Aadvanced culinary training in baking fresh bread, cakes, pies ...</p>
</div>
</a>
<a href="/news_detail" class="more-news-box">
<div class="news-box-img">
<img src="{{url('frontend/images/baking.png')}}" class="w-100" alt="">
</div>
<div class="news-box-desc">
<h4>Baking and Pastry Arts</h4>
<p>Aadvanced culinary training in baking fresh bread, cakes, pies ...</p>
</div>
</a>
<a href="/news_detail" class="more-news-box">
<div class="news-box-img">
<img src="{{url('frontend/images/baking.png')}}" class="w-100" alt="">
</div> </div>
<div class="news-box-desc"> <div class="news-box-desc">
<h4>Baking and Pastry Arts</h4> <h4>{{$news->title}}</h4>
<p>Aadvanced culinary training in baking fresh bread, cakes, pies ...</p> <p>{{\Illuminate\Support\Str::limit($news->description, 150, $end='...')}}</p>
</div> </div>
</a> </a>
@endforeach
</div> </div>
</div> </div>
</div> </div>

@ -6,7 +6,7 @@ use App\Http\Controllers\Admin\ServiceController;
use App\Http\Controllers\Admin\AboutUsController; use App\Http\Controllers\Admin\AboutUsController;
use App\Http\Controllers\ServiceController as FrontendServiceController; use App\Http\Controllers\ServiceController as FrontendServiceController;
use App\Http\Controllers\Admin\ReferralController as ReferralAdminController; use App\Http\Controllers\Admin\ReferralController as ReferralAdminController;
use App\Http\Controllers\ReferralController; use App\Http\Controllers\RecruitmentController;
use App\Http\Controllers\Admin\ServiceSectionController; use App\Http\Controllers\Admin\ServiceSectionController;
use App\Http\Controllers\Admin\AccomodationController; use App\Http\Controllers\Admin\AccomodationController;
use App\Http\Controllers\Admin\ContactUsController; use App\Http\Controllers\Admin\ContactUsController;

Loading…
Cancel
Save