Compare commits

...

5 Commits

  1. 45
      app/Http/Controllers/EnquiryController.php
  2. 41
      app/Jobs/SendEnquiryMailJob.php
  3. 65
      app/Mail/EnquiryMail.php
  4. 13
      app/Models/Enquiry.php
  5. 22
      database/migrations/2023_02_16_171148_create_enquiries_table.php
  6. 27
      public/frontend/css/style.css
  7. BIN
      public/frontend/icons/career-counselling.png
  8. BIN
      public/frontend/icons/jrp.png
  9. BIN
      public/frontend/icons/noto_graduation-cap.png
  10. 12
      public/frontend/icons/noto_graduation-cap.svg
  11. 8
      resources/views/contact.blade.php
  12. 336
      resources/views/enquiry-form.blade.php
  13. 76
      resources/views/enquiry_mail.blade.php
  14. 4
      resources/views/welcome.blade.php
  15. 417
      routes/web.php

@ -0,0 +1,45 @@
<?php
namespace App\Http\Controllers;
use App\Jobs\SendEnquiryMailJob;
use App\Models\Country;
use App\Models\Enquiry;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
class EnquiryController extends Controller
{
public function form()
{
$countries = Country::all();
return view('enquiry-form', compact('countries'));
}
public function submit(Request $request)
{
$work_experience = $request->get('work_experience');
if ($work_experience == 'no') {
$request['work_experience_details'] = null;
$request['salary_mode'] = null;
}
$marital_status = $request->get('marital_status');
if ($marital_status == 'Widow' || $marital_status == 'Single') {
$request['married_date'] = null;
$request['spouse_academics'] = null;
$request['spouse_work_experience'] = null;
$request['spouse_salary_mode'] = null;
}
DB::beginTransaction();
try {
$enquiry = Enquiry::create($request->all());
} catch (\Exception $e) {
DB::rollback();
return redirect()->back()->with(['msg' => 'Something went wrong. Please try again!', 'status' => false], 400);
}
DB::commit();
dispatch(new SendEnquiryMailJob($enquiry));
return redirect()->back()->with(['msg' => 'We have recieved your enquiry. You will be contacted soon!', 'status' => true], 200);
}
}

@ -0,0 +1,41 @@
<?php
namespace App\Jobs;
use App\Mail\EnquiryMail;
use App\Models\Setting;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldBeUnique;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use Illuminate\Support\Facades\Mail;
class SendEnquiryMailJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
/**
* Create a new job instance.
*
* @return void
*/
protected $enquiry;
public function __construct($enquiry)
{
$this->enquiry = $enquiry;
}
/**
* Execute the job.
*
* @return void
*/
public function handle()
{
$email = Setting::where('key', 'email')->get('value')->first()->value;
Mail::to($email)->send(new EnquiryMail($this->enquiry));
}
}

@ -0,0 +1,65 @@
<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Mail\Mailables\Content;
use Illuminate\Mail\Mailables\Envelope;
use Illuminate\Queue\SerializesModels;
class EnquiryMail extends Mailable
{
use Queueable, SerializesModels;
/**
* Create a new message instance.
*
* @return void
*
*/
protected $enquiry;
public function __construct($enquiry)
{
$this->enquiry = $enquiry;
}
/**
* Get the message envelope.
*
* @return \Illuminate\Mail\Mailables\Envelope
*/
public function envelope()
{
return new Envelope(
subject: 'Enquiry Mail',
);
}
/**
* Get the message content definition.
*
* @return \Illuminate\Mail\Mailables\Content
*/
public function content()
{
return new Content(
view: 'enquiry_mail',
with: [
'enquiry' => $this->enquiry,
],
);
}
/**
* Get the attachments for the message.
*
* @return array
*/
public function attachments()
{
return [];
}
}

@ -0,0 +1,13 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Enquiry extends Model
{
use HasFactory;
protected $guarded = ['id'];
}

@ -16,7 +16,7 @@ return new class extends Migration
Schema::create('enquiries', function (Blueprint $table) {
$table->id();
$table->string('first_name');
$table->string('middle_name');
$table->string('middle_name')->nullable();
$table->string('last_name');
$table->date('dob');
$table->string('cob');
@ -25,17 +25,23 @@ return new class extends Migration
$table->string('phone');
$table->string('address');
$table->string('highest_qualification');
$table->string('stream');
$table->string('stream')->nullable();
$table->string('gpa');
$table->string('graduate_year');
$table->string('gap');
$table->string('gap')->nullable();
$table->string('current_status')->nullable();
$table->string('work_experience');
$table->string('salary_mode');
$table->string('test_score');
$table->text('work_experience_details')->nullable();
$table->string('salary_mode')->nullable();
$table->string('test_score')->nullable();
$table->string('marital_status');
$table->string('marital_date');
$table->string('spouse_academics');
$table->string('marital_date');
$table->string('married_date')->nullable();
$table->string('spouse_academics')->nullable();
$table->string('spouse_work_experience')->nullable();
$table->string('spouse_salary_mode')->nullable();
$table->string('immigration_history')->nullable();
$table->string('desired_study_field')->nullable();
$table->string('desired_location')->nullable();
$table->boolean('status')->default(true);
$table->timestamps();
});

@ -287,7 +287,7 @@ Responsive Codes
padding: 3rem 6rem;
position: absolute;
top: 20%;
width: 60%;
width: 50%;
}
.slider-content h2{
font-weight: 700;
@ -1071,14 +1071,18 @@ Responsive Codes
line-height: 2.6rem;
color: #FFFFFF;
}
.form-sec .form-control::placeholder{
.form-sec .form-control::placeholder,
.enquiry-form-section .form-control::placeholder,
.enquiry-form-section .form-select{
font-weight: 400;
font-size: 14px;
line-height: 26px;
color: #7B8792;
}
.form-sec .form-control{
background: #FFFFFF;
.form-sec .form-control,
.enquiry-form-row .form-control,
.enquiry-form-row .form-select{
background-color: #FFFFFF;
border: 1px solid #B1B1B1;
border-radius: 6px;
padding: 10px;
@ -1103,11 +1107,17 @@ Responsive Codes
}
.form-sec label{
margin-bottom: 8px;
font-weight: 400;
font-weight: 400;
font-size: 16px;
line-height: 28px;
color: #0A2849;
}
.enquiry-form-row label{
margin-bottom: 8px;
font-weight: 400;
font-size: 16px;
line-height: 28px;
}
.contact-form .row,
.visa-display-section .row{
display: flex;
@ -1697,7 +1707,7 @@ table.lightgrey-weekends tbody td:nth-child(n+6) {
transition: background-color 1s ease-out 100ms;
}
.form-select .select-placeholder{
color: #7B8792;
color: #000000;
}
.enquiry-form-row h3{
font-weight: 600;
@ -1742,6 +1752,11 @@ table.lightgrey-weekends tbody td:nth-child(n+6) {
box-shadow: none;
border-color: none;
}
.error{
color: red;
font-size: 14px;
line-height: 1.8rem;
}
/* enquiry page css ends */
/* Footer Css */

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

@ -0,0 +1,12 @@
<svg width="66" height="66" viewBox="0 0 66 66" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M51.0779 47.1385C51.0779 47.1385 43.2868 54.45 32.9846 54.45C22.6824 54.45 14.8965 47.1385 14.8965 47.1385C14.8965 47.1385 13.4476 40.1827 17.191 28.1738C19.1658 21.8419 47.2674 21.1974 49.4691 26.7352C53.2126 36.135 51.0779 47.1385 51.0779 47.1385Z" fill="#C31780"/>
<path d="M14.8963 47.1385L17.3661 49.1185C17.3661 49.1185 17.3455 45.1997 18.5572 41.5439C19.011 40.1775 20.63 39.6052 21.8469 40.3735L31.2777 46.2877C31.7947 46.6114 32.3914 46.7852 33.0014 46.7898C33.6113 46.7943 34.2106 46.6294 34.7324 46.3135C39.2389 43.5806 50.9952 36.4289 51.5314 35.9906C51.5314 35.9906 51.5314 35.1089 51.3097 33.9849L14.7622 34.0313L14.8963 47.1385Z" fill="#AA2376"/>
<path d="M63.3238 26.828L34.0363 44.2716C33.3969 44.6531 32.5977 44.6531 31.9531 44.2716L2.67596 26.828C1.86127 26.3433 1.86127 25.1625 2.67596 24.6778L31.9635 7.23423C32.6028 6.85267 33.4021 6.85267 34.0466 7.23423L63.3341 24.6778C64.1436 25.1625 64.1436 26.3433 63.3238 26.828Z" fill="#E22899"/>
<path d="M33.0206 42.9928C33.0155 42.9928 33.0052 42.998 33 42.998C32.9175 42.998 32.835 42.9773 32.7628 42.9309L2.15533 25.2863C2.15533 25.2863 2.00579 25.5698 2.15533 26.0803C2.31001 26.5908 2.5472 26.7558 2.67611 26.8331L31.9636 44.2767C32.2833 44.4675 32.6442 44.5655 33.0052 44.5655H33.0258V42.9928H33.0206Z" fill="#F266BB"/>
<path d="M32.9998 42.9928C33.0049 42.9928 33.0153 42.998 33.0204 42.998C33.1029 42.998 33.1854 42.9773 33.2576 42.9309L63.8651 25.2863C63.8651 25.2863 64.0146 25.5698 63.8651 26.0803C63.7104 26.5908 63.4732 26.7558 63.3443 26.8331L34.0568 44.2767C33.7371 44.4675 33.3762 44.5655 33.0153 44.5655H32.9946V42.9928H32.9998Z" fill="#C41780"/>
<path d="M18.2788 36.1247L18.4438 34.6758C18.4438 34.6758 31.0818 27.8025 32.3296 27.0806C33.5774 26.3587 34.8871 25.5544 35.4697 24.9098C36.501 23.7755 35.7585 23.0639 35.7585 23.0639C35.7585 23.0639 34.9438 24.3839 32.9999 24.1519C31.8862 24.0178 30.4372 23.1155 30.1949 22.6926C29.9526 22.2698 15.9276 32.9536 15.9276 32.9536L15.8296 34.6706L18.2788 36.1247Z" fill="#AA2376"/>
<path d="M35.7585 23.069C34.4075 24.9562 32.1182 24.1312 32.1182 24.1312C32.1182 24.1312 24.9458 27.5704 24.6777 27.0497C24.4096 26.5289 30.6022 23.3423 30.6022 23.3423C30.6022 23.3423 30.2568 22.0739 30.2929 21.5325C30.2929 21.5325 19.0935 28.6584 14.8911 31.0561C12.6894 32.3142 12.2202 33.5001 12.2253 35.1708C12.2253 35.9029 12.2357 38.28 12.246 39.6979C12.246 39.9609 12.1325 40.2084 11.9314 40.3734C11.627 40.6229 11.3816 40.9369 11.2131 41.2926C11.0446 41.6484 10.9571 42.0371 10.9569 42.4308C10.9569 43.2197 11.3024 43.9261 11.8489 44.4159C12.1428 44.6789 12.081 45.2461 12.1068 45.6122C12.1583 46.3134 12.1068 46.6331 11.818 47.2828C11.5344 47.917 11.2714 48.5667 11.091 49.237C10.9518 49.7526 10.8589 50.2837 10.7661 50.8097C10.1525 54.3314 9.8741 58.0954 8.24988 61.3336C8.21929 61.3941 8.20103 61.4601 8.19615 61.5277C8.19127 61.5953 8.19988 61.6633 8.22146 61.7275C8.24305 61.7918 8.27719 61.8512 8.3219 61.9021C8.36661 61.9531 8.421 61.9947 8.48191 62.0245C8.60438 62.0863 8.74633 62.0971 8.87675 62.0546C9.00717 62.0121 9.11548 61.9197 9.17801 61.7976C10.0236 60.1115 10.4619 58.2656 10.8228 56.4351C10.8022 58.0903 10.7919 59.7609 10.7352 61.5656C10.7249 61.9162 10.6991 62.6226 11.0188 62.7773C12.2202 63.36 12.2202 61.5656 12.2202 61.5656C12.2202 61.5656 12.2357 63.1795 13.8702 63.1795C15.5047 63.1795 15.6233 61.5656 15.6233 61.5656C15.6233 61.5656 15.7419 63.0454 16.5824 62.9733C16.9227 62.9423 17.3713 62.7361 17.2114 60.9675C17.0516 59.204 16.6546 52.8825 16.4844 50.8818C16.2472 48.1129 15.3397 46.4681 15.1541 45.4884C15.0871 45.1172 15.0819 44.7304 15.3758 44.4881C15.6749 44.243 15.9171 43.9357 16.0855 43.5875C16.2538 43.2394 16.3443 42.8587 16.3507 42.4721C16.3571 42.0854 16.2792 41.702 16.1224 41.3485C15.9656 40.9949 15.7337 40.6798 15.4428 40.425C15.3394 40.3346 15.2585 40.2214 15.2066 40.0943C15.1547 39.9672 15.1332 39.8297 15.1438 39.6928C15.2418 38.3573 15.35 36.4186 15.4377 35.97C15.8193 33.9539 16.8144 33.5929 17.8354 32.9948C18.8563 32.3915 33.6444 25.6781 34.5055 25.1058C36.0988 24.0384 35.7585 23.069 35.7585 23.069Z" fill="#E2A610"/>
<path d="M35.7588 23.069C34.4852 24.8686 31.8401 24.0642 31.8401 24.0642C31.8401 24.0642 25.0802 27.06 25.5288 26.5186C25.9722 25.9772 30.6026 23.3423 30.6026 23.3423C30.6026 23.3423 30.2571 22.0739 30.2932 21.5325C30.2932 21.5325 18.8979 28.117 14.479 31.2829C13.3394 32.1028 11.9266 33.4434 13.0765 34.7789C13.6076 35.3925 14.6337 35.5214 15.2885 35.0367C15.6855 34.7479 15.9949 34.3251 16.3455 33.99C16.7787 33.5672 17.3046 33.299 17.8202 32.9948C18.8412 32.3915 33.6293 25.6781 34.4904 25.1058C36.0991 24.0384 35.7588 23.069 35.7588 23.069Z" fill="#FFCA28"/>
<path d="M13.4628 47.3653C12.7822 47.3653 12.3232 47.3086 11.9056 47.2106C11.8311 47.1936 11.7652 47.1504 11.7197 47.0889C11.6743 47.0274 11.6525 46.9517 11.6581 46.8755L11.7922 44.9058C11.8076 44.7047 11.9984 44.5655 12.1943 44.6222C12.6584 44.7563 13.5865 44.8903 15.1025 44.5706C15.2881 44.5294 15.4737 44.6583 15.4943 44.8491L15.7006 46.8084C15.7161 46.9683 15.6129 47.1178 15.4582 47.1539C14.6693 47.3344 14.097 47.3653 13.4628 47.3653Z" fill="#9E740B"/>
<path d="M51.0777 47.1385C51.0777 47.1385 51.9904 42.3741 51.6243 37.3055C51.5624 36.4496 51.0365 35.7122 50.6291 38.708C50.3971 40.425 49.8918 45.5658 49.0307 48.7781C50.3455 47.8294 51.0777 47.1385 51.0777 47.1385ZM33.8919 18.9699C34.2683 19.0885 34.6138 19.3772 34.7118 19.7639C34.8407 20.2796 34.5158 20.7952 34.1652 21.1974C33.4794 21.9863 32.5358 22.6772 31.4891 22.6411C31.1436 22.6308 30.7724 22.5174 30.561 22.2441C30.4115 22.0533 30.3599 21.8058 30.3444 21.5635C30.2516 19.7949 32.2522 18.4542 33.8919 18.9699Z" fill="#FF55BC"/>
</svg>

Before

Width:  |  Height:  |  Size: 5.6 KiB

After

Width:  |  Height:  |  Size: 5.6 KiB

@ -9,8 +9,8 @@
<meta property="og:description" content="ET Education and Visa Services, presented by Extratech, is an adept provider of excellent education consultation, information, and visa guidance solution to students seeking schooling abroad."/>
@endsection
@section('content')
@php
$msg = Session::get('msg') ?? null;
@php
$msg = Session::get('msg') ?? null;
@endphp
<section class="abroad-banner-section" style="background: url({{$page->banner_image}})">
<!-- <nav aria-label="breadcrumb">
@ -113,7 +113,7 @@
<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>
// contact us form error declaration
fnameError = document.getElementById('contact-fname-error');
@ -189,7 +189,7 @@
}
var php_var = "<?php echo $msg; ?>";
if(php_var.length !== 0){
Swal.fire({
title: 'Submitted!!',

@ -10,50 +10,59 @@
@endsection
@section('content')
<section class="enquiry-form-section">
@php
$msg = Session::get('msg') ?? null;
$status = Session::get('status') ?? null;
@endphp
<h2>Enquiry Form</h2>
<p>Please fill up the form and we will get back to you soon, Thanks !</p>
<form action="">
<form action="{{ route('enquiry.submit') }}" onsubmit="return submitEnquiry()" method = "post">
@csrf
<div class="row enquiry-form-row">
<h3>Personal Details</h3>
<div class="col-md-4">
<div class="form-group mb-3">
<label for="name">First Name</label>
<input type="text" class="form-control mt-2" id="fname" name="first_name" placeholder="Enter your First name" required>
<input type="text" class="form-control" id="fname" name="first_name" value="" placeholder="Enter your First name" onkeyup="validatefName()">
<span class="error" id="error-fname"></span>
</div>
</div>
<div class="col-md-4">
<div class="form-group mb-3">
<label for="name">Middle Name</label>
<input type="text" class="form-control mt-2" id="mname" name="middle_name" placeholder="Enter your Middle name">
<input type="text" class="form-control" id="mname" name="middle_name" value="" placeholder="Enter your Middle name">
</div>
</div>
<div class="col-md-4">
<div class="form-group mb-3">
<label for="name">Last Name</label>
<input type="text" class="form-control mt-2" id="lname" name="last_name" placeholder="Enter your Last name" required>
<input type="text" class="form-control" id="lname" name="last_name" value="" placeholder="Enter your Last name" onkeyup="validatelName()">
<span class="error" id="error-lname"></span>
</div>
</div>
<div class="col-md-4">
<div class="form-group mb-3">
<label for="name">Date of birth</label>
<input type="date" class="form-control mt-2" id="dob" name="dob" placeholder="Enter your Date of birth" required>
<input type="date" class="form-control" id="dob" name="dob" placeholder="Enter your Date of birth" onkeyup="validateDob()">
<span class="error" id="error-dob"></span>
</div>
</div>
<div class="col-md-4">
<div class="form-group mb-3">
<label for="name">Country</label>
<select class="form-select mt-2" name="cob" id="e-cob" onchange="eCob()">
<option value="" hidden>Select you country of birth</option>
<select class="form-select" name="cob" id="e-cob" onchange="eCob()">
<option hidden>Select your country of birth</option>
@foreach($countries as $country)
<option value="{{$country->id}}" @if(old('country_id') === $country->id) selected @endif>{{$country->name}}</option>
<option class="select-placeholder" value="{{$country->id}}" @if(old('country_id') === $country->id) selected @endif>{{$country->name}}</option>
@endforeach
</select>
<span class="error" id="error-cob"></span>
</div>
</div>
<div class="col-md-4">
<div class="form-group mb-3">
<label for="name">Gender</label>
<div class="d-flex gap-2 mt-2" onclick="eGender()">
<div class="d-flex gap-2" onclick="eGender()">
<div class="form-check">
<input class="form-check-input gender" type="radio" name="gender" value="Male"/>
<label class="form-check-label">
@ -73,24 +82,28 @@
</label>
</div>
</div>
<span class="error" id="error-gender"></span>
</div>
</div>
<div class="col-md-4">
<div class="form-group mb-3">
<label for="name">Address</label>
<input type="text" class="form-control mt-2" id="address" name="address" placeholder="Enter your Address" required>
<input type="text" class="form-control" id="address" name="address" placeholder="Enter your Address" onkeyup="validateAddress()">
<span class="error" id="error-address"></span>
</div>
</div>
<div class="col-md-4">
<div class="form-group mb-3">
<label for="name">Email</label>
<input type="email" class="form-control mt-2" id="email" name="email" placeholder="Enter your Email Address" required>
<input type="email" class="form-control" id="email" name="email" placeholder="Enter your Email Address" onkeyup="validateEmail()">
<span class="error" id="error-email"></span>
</div>
</div>
<div class="col-md-4">
<div class="form-group mb-3">
<label for="name">Phone</label>
<input type="text" class="form-control mt-2" id="phone" name="phone" placeholder="Enter your Phone Number" required>
<input type="text" class="form-control" id="phone" name="phone" placeholder="Enter your Phone Number" onkeyup="validatePhone()">
<span class="error" id="error-phone"></span>
</div>
</div>
@ -98,71 +111,78 @@
<div class="col-md-4">
<div class="form-group mb-3">
<label for="name">Highest Qualification</label>
<input type="text" class="form-control mt-2" id="highest_qualification" name="highest_qualification" placeholder="Enter your Highest Qualification">
<input type="text" class="form-control" id="highest_qualification" name="highest_qualification" placeholder="Enter your Highest Qualification" onkeyup="validateQualification()">
<span class="error" id="error-qualification"></span>
</div>
</div>
<div class="col-md-4">
<div class="form-group mb-3">
<label for="name">Stream</label>
<input type="text" class="form-control mt-2" id="stream" name="stream" placeholder="Enter your Stream">
<input type="text" class="form-control" id="stream" name="stream" placeholder="Enter your Stream" onkeyup="validateStream()">
<span class="error" id="error-stream"></span>
</div>
</div>
<div class="col-md-4">
<div class="form-group mb-3">
<label for="name">% or GPA</label>
<input type="text" class="form-control mt-2" id="gpa" name="gpa" placeholder="Enter your % or GPA">
<input type="text" class="form-control" id="gpa" name="gpa" placeholder="Enter your % or GPA" onkeyup="validateGpa()">
<span class="error" id="error-gpa"></span>
</div>
</div>
<div class="col-md-4">
<div class="form-group mb-3">
<label for="name">Passed Year</label>
<input type="text" class="form-control mt-2" id="graduate_year" name="graduate_year" placeholder="Enter your Passed Year">
<input type="text" class="form-control" id="graduate_year" name="graduate_year" placeholder="Enter your Passed Year" onkeyup="validatePassout()">
<span class="error" id="error-graduate_year"></span>
</div>
</div>
<div class="col-md-4">
<div class="form-group mb-3">
<label for="name">Gap after Studies</label>
<input type="text" class="form-control mt-2" id="gap" name="gap" placeholder="Enter your Gap after Studies">
<input type="text" class="form-control" id="gap" name="gap" placeholder="Enter your Gap after Studies" onkeyup="validateGap()">
<span class="error" id="error-gap"></span>
</div>
</div>
<div class="col-md-4">
<div class="form-group mb-3">
<label for="name">What you are doing now?</label>
<input type="text" class="form-control mt-2" id="current_status" name="current_status" placeholder="Enter your Current Status">
<input type="text" class="form-control" id="current_status" name="current_status" placeholder="Enter your Current Status" onkeyup="validateCurrent()">
<span class="error" id="error-currentStatus"></span>
</div>
</div>
<div class="col-md-4">
<div class="form-group mb-3">
<label for="name">Do you have work experience?</label>
<select class="form-select mt-2" name="work_experience" id="work-experience" onchange="wExperience()">
<option value="" hidden>Work experence status</option>
<option value="yes">Yes</option>
<option value="no">No</option>
<select class="form-select" name="work_experience" id="work-experience" onchange="wExperience()">
<option hidden value="">Work experence status</option>
<option value="yes" class="select-placeholder">Yes</option>
<option value="no" class="select-placeholder">No</option>
</select>
<span class="error" id="error-workExperience"></span>
</div>
</div>
<div class="col-md-4" id="work-exp-detail">
<div class="form-group mb-3">
<label for="name">Work experience Details</label>
<input type="text" class="form-control mt-2" id="work-experience-detail" name="work_experience_details" placeholder="Enter your Work experience Details">
<input type="text" class="form-control" id="work-experience-detail" name="work_experience_details" placeholder="Enter your Work experience Details">
</div>
</div>
<div class="col-md-4" id="work-salary-mode">
<div class="form-group mb-3">
<label for="name">Salary mode</label>
<input type="text" class="form-control mt-2" id="salary-mode" name="salary_mode" placeholder="Enter your Salary Mode">
<input type="text" class="form-control" id="salary-mode" name="salary_mode" placeholder="Enter your Salary Mode">
</div>
</div>
<div class="col-md-4">
<div class="form-group mb-3">
<label for="name">IELTS / PTE Score</label>
<input type="text" class="form-control mt-2" id="test-score" name="test_score" placeholder="Enter your IELTS / PTE score">
<input type="text" class="form-control" id="test-score" name="test_score" placeholder="Enter your IELTS / PTE score">
</div>
</div>
<div class="col-md-4">
<div class="form-group mb-3">
<label for="name">Marital Status</label>
<div class="d-flex gap-2 mt-2" onclick="maritalStatus()">
<div class="d-flex gap-2" onclick="maritalStatus()">
<div class="form-check">
<input class="form-check-input marital-status" id="marital-status" type="radio" name="marital_status" value="Single"/>
<label class="form-check-label">
@ -188,48 +208,50 @@
<div class="col-md-4" id="spouse-married-date">
<div class="form-group mb-3">
<label for="name">Married date</label>
<input type="date" class="form-control mt-2" id="married-date" name="married_date">
<input type="date" class="form-control" id="married-date" name="married_date">
</div>
</div>
<div class="col-md-4" id="spouse-academic">
<div class="form-group mb-3">
<label for="name">Spouse Academics</label>
<input type="text" class="form-control mt-2" id="spouse-academics" name="spouse_academics" placeholder="Enter your Spouse Academics">
<input type="text" class="form-control" id="spouse-academics" name="spouse_academics" placeholder="Enter your Spouse Academics">
</div>
</div>
<div class="col-md-4" id="spouse-experience">
<div class="form-group mb-3">
<label for="name">Work Experience of Spouse</label>
<input type="text" class="form-control mt-2" id="spouse-work-experience" name="spouse_work_experience" placeholder="Enter Work Experience of Spouse">
<input type="text" class="form-control" id="spouse-work-experience" name="spouse_work_experience" placeholder="Enter Work Experience of Spouse">
</div>
</div>
<div class="col-md-4" id="spouse-salary">
<div class="form-group mb-3">
<label for="name">Spouse Salary Mode</label>
<input type="text" class="form-control mt-2" id="spouse-salary-mode" name="spouse_salary_mode" placeholder="Enter Spouse Salary Mode">
<input type="text" class="form-control" id="spouse-salary-mode" name="spouse_salary_mode" placeholder="Enter Spouse Salary Mode">
</div>
</div>
<div class="col-md-4">
<div class="form-group mb-3">
<label for="name">Immigration History: </label>
<input type="text" class="form-control mt-2" id="immigration-history" name="immigration_history" placeholder="Enter your Immigration History">
<input type="text" class="form-control" id="immigration-history" name="immigration_history" placeholder="Enter your Immigration History" onkeyup="validateImmigrationHistory()">
<span class="error" id="error-immigration-history"></span>
</div>
</div>
<div class="col-md-4">
<div class="form-group mb-3">
<label for="name">Desired study field</label>
<input type="text" class="form-control mt-2" id="desired-study-field" name="desired_study_field" placeholder="Enter your Desired study field">
<input type="text" class="form-control" id="desired-study-field" name="desired_study_field" placeholder="Enter your Desired study field" onkeyup="validateStudyField()">
<span class="error" id="error-studyfield"></span>
</div>
</div>
<div class="col-md-4">
<div class="form-group mb-3">
<label for="name">Desired location (If Any)</label>
<select class="form-select mt-2" name="desired_location" id="desired-location">
<option value="" hidden class="select-placeholder">Select your desired location</option>
<option value="au">Australia</option>
<option value="nz">New Zeland</option>
<option value="ca">Canada</option>
<option value="us">USA</option>
<select class="form-select" name="desired_location" id="desired-location">
<option hidden>Select your desired location</option>
<option value="au" class="select-placeholder">Australia</option>
<option value="nz" class="select-placeholder">New Zeland</option>
<option value="ca" class="select-placeholder">Canada</option>
<option value="us" class="select-placeholder">USA</option>
</select>
</div>
</div>
@ -241,7 +263,38 @@
</section>
@endsection
@section('script')
<script src="//cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<script>
var php_var = "<?php echo $msg; ?>";
var status = "<?php echo $status; ?>";
if(php_var.length !== 0){
Swal.fire({
title: 'Submitted!!',
text: php_var,
icon: status ? 'success' : 'error'
})
}
fnameError = document.getElementById('error-fname');
lnameError = document.getElementById('error-lname');
dobError = document.getElementById('error-dob');
cobError = document.getElementById('error-cob');
GenderError = document.getElementById('error-gender');
addressError = document.getElementById('error-address');
emailError = document.getElementById('error-email');
phoneNumberError = document.getElementById('error-phone');
qualificationError = document.getElementById('error-qualification');
streamError = document.getElementById('error-stream');
gpaError = document.getElementById('error-gpa');
graduateYearError = document.getElementById('error-graduate_year');
gapError = document.getElementById('error-gap');
currentStatusError = document.getElementById('error-currentStatus');
workExperienceError = document.getElementById('error-workExperience');
ImmigrationHistoryError = document.getElementById('error-immigration-history');
StudyFieldError = document.getElementById('error-studyfield');
function maritalStatus(){
var marriedDate = document.getElementById('spouse-married-date');
var spouseAcademic = document.getElementById('spouse-academic');
@ -274,6 +327,7 @@
salaryMode = document.getElementById('work-salary-mode');
if(workExperience.length == 0){
$('#work-experience').focus();
workExperienceError.innerHTML = "This field cannot be empty !"
return false;
}if(workExperience == "yes"){
workDetail.classList.add('married');
@ -281,6 +335,212 @@
}else{
workDetail.classList.remove('married');
salaryMode.classList.remove('married');
}
workExperienceError.innerHTML = "";
return true;
}
function validatefName(){
firstName = document.getElementById('fname').value;
if(firstName.length == 0){
$('#fname').focus();
fnameError.innerHTML = "First Name is required !";
return false;
}else{
fnameError.innerHTML = "";
return true;
}
}
function validatelName(){
lastName = document.getElementById('lname').value;
if(lastName.length == 0){
$('#lname').focus();
lnameError.innerHTML = "Last Name is required !";
return false;
}else{
lnameError.innerHTML = "";
return true;
}
}
function validateDob(){
var dob = document.getElementById('dob').value;
if(dob == ""){
$('#dob').focus();
dobError.innerHTML = "Date of birth is required !";
return false;
}
dobError.innerHTML = '';
return true;
}
function eCob(){
var cob = document.getElementById('e-cob').value;
if(cob == ""){
$('#e-cob').focus();
cobError.innerHTML = "Country of birth is required !";
return false;
}
cobError.innerHTML = '';
return true;
}
function eGender(){
var valid = false;
var gender = document.getElementsByClassName("gender");
for(var i=0;i<gender.length;i++){
if(gender[i].checked){
valid = true;
break;
}
}
if(valid){
GenderError.innerHTML = '';
return true;
}else{
GenderError.innerHTML = "Please select your gender !";
return false;
}
}
function validateAddress(){
var address = document.getElementById('address').value;
if(address.length == 0){
$('#address').focus();
addressError.innerHTML = "Address field is required !";
return false;
}
addressError.innerHTML = '';
return true;
}
function validateEmail(){
var email = document.getElementById('email').value;
if(email.length == 0){
emailError.innerHTML = "Email is required !";
return false;
}
if(!email.match(/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(.\w{2,3})+$/)){
emailError.innerHTML = "Invalid email address";
return false;
}
emailError.innerHTML = '';
return true;
}
function validatePhone(){
var phone = document.getElementById('phone').value;
if(phone.length == 0){
$('#phone').focus();
phoneNumberError.innerHTML = "Mobile number is required !";
return false;
}
if(!phone.match(/^\d{10}$/)){
phoneNumberError.innerHTML = "Invalid mobile number";
return false;
}
phoneNumberError.innerHTML = '';
return true;
}
function validateQualification(){
var qualification = document.getElementById('highest_qualification').value;
if(qualification.length == 0){
$('#highest_qualification').focus();
qualificationError.innerHTML = "Highest Qualification field is required !";
return false;
}
qualificationError.innerHTML = '';
return true;
}
function validateStream(){
var stream = document.getElementById('stream').value;
if(stream.length == 0){
$('#stream').focus();
streamError.innerHTML = "Stream field is required !";
return false;
}
streamError.innerHTML = '';
return true;
}
function validateGpa(){
var gpa = document.getElementById('gpa').value;
if(gpa.length == 0){
$('#gpa').focus();
gpaError.innerHTML = "GPA or % is required !";
return false;
}
gpaError.innerHTML = '';
return true;
}
function validatePassout(){
var graduateYear = document.getElementById('graduate_year').value;
if(graduateYear.length == 0){
$('#graduate_year').focus();
graduateYearError.innerHTML = "Graduate year is required !";
return false;
}
graduateYearError.innerHTML = '';
return true;
}
function validateGap(){
var gap = document.getElementById('gap').value;
if(gap.length == 0){
$('#gap').focus();
gapError.innerHTML = "Gap field is required !";
return false;
}
gapError.innerHTML = '';
return true;
}
function validateCurrent(){
var currentStatus = document.getElementById('current_status').value;
if(currentStatus.length == 0){
$('#current_status').focus();
currentStatusError.innerHTML = "Current Status is required !";
return false;
}
currentStatusError.innerHTML = '';
return true;
}
function validateImmigrationHistory(){
var ImmigrationHistory = document.getElementById('immigration-history').value;
if(ImmigrationHistory.length == 0){
$('#immigration-history').focus();
ImmigrationHistoryError.innerHTML = "Immigration History is required !";
return false;
}
ImmigrationHistoryError.innerHTML = '';
return true;
}
function validateStudyField(){
var StudyField = document.getElementById('desired-study-field').value;
if(StudyField.length == 0){
$('#desired-study-field').focus();
StudyFieldError.innerHTML = "Desired Study Field is required !";
return false;
}
StudyFieldError.innerHTML = '';
return true;
}
function submitEnquiry(){
if(!validatefName() || !validatelName() || !validateDob() || !eCob() || !eGender() ||
!validateAddress() || !validateEmail() || !validatePhone() || !validateQualification() ||
!validateStream() || !validateGpa() || !validatePassout() || !validateGap() || !validateCurrent() ||
!wExperience() || !validateImmigrationHistory() || !validateStudyField()){
return false;
}else{
}
}
</script>

@ -0,0 +1,76 @@
<style>
.main-column{
display:flex;
width:100%;
}
.column-one{
width:50%;
}
</style>
<h1>Persional Details</h1>
<br />
<div class="main-column" style = "display:block; width:100%;">
<div class="column-one" style = "display:block; width:100%;">
<b>Full Name:</b> {{ $enquiry->first_name . ' ' .(!is_null($enquiry->middle_name) ? $enquiry->middle_name .' ' :''). $enquiry->last_name }}<br /><br />
<b>Email:</b> {{ $enquiry->email }}<br /><br />
<b>Phone:</b> {{$enquiry->phone}}<br /><br />
<b>Address:</b> {{$enquiry->address}}<br /><br />
<b>Date of Birth:</b> {{$enquiry->dob}}<br /><br />
<b>Country of Birth:</b> {{$enquiry->cob}}<br /><br />
<b>Gender:</b> {{$enquiry->gender}}<br /><br />
</div>
</div>
<h1>Additional Details</h1>
<br />
<div class="main-column" style = "display:block; width:100%;">
<div class="column-one" style = "display:block; width:100%;">
<b>Highest Qualification:</b> {{ $enquiry->highest_qualification }}<br /><br />
@if(!is_null($enquiry->stream))
<b>Stream:</b> {{$enquiry->stream}}<br /><br />
@endif
<b>% or GPA</b> {{$enquiry->gpa}}<br /><br />
<b>Graduated year:</b> {{$enquiry->graduate_year}}<br /><br />
<b>Gap:</b> {{$enquiry->gap}}<br /><br />
<b>Current Status:</b> {{$enquiry->current_status}}<br /><br />
<b>Work Experience:</b> {{$enquiry->work_experience}}<br /><br />
@if(!is_null($enquiry->work_experience))
<b>Work Experience Details:</b> {{$enquiry->work_experience_details}}<br /><br />
@endif
@if(!is_null($enquiry->salary_mode))
<b>Salary Mode:</b> {{$enquiry->salary_mode}}<br /><br />
@endif
<b>Test Score:</b> {{$enquiry->test_score}}<br /><br />
<b>Marital Status:</b> {{$enquiry->marital_status}}<br /><br />
@if(!is_null($enquiry->married_date))
<b>Married Date:</b> {{$enquiry->married_date}}<br /><br />
@endif
@if(!is_null($enquiry->spouse_academics))
<b>Spouse Academic:</b> {{$enquiry->spouse_academics}}<br /><br />
@endif
@if(!is_null($enquiry->spouse_work_experience))
<b>Spouse Work Experience:</b> {{ $enquiry->spouse_work_experience }}<br /><br />
@endif
@if(!is_null($enquiry->spouse_salary_mode))
<b>Spouse Salary Mode:</b> {{ $enquiry->spouse_salary_mode }}<br /><br />
@endif
@if(!is_null($enquiry->immigration_history))
<b>Immigration History:</b> {{ $enquiry->immigration_history }}<br /><br />
@endif
@if(!is_null($enquiry->desired_study_field))
<b>Desired Field of Study:</b> {{ $enquiry->desired_study_field }}<br /><br />
@endif
@if(!is_null($enquiry->desired_location))
<b>Desired Location:</b> {{ $enquiry->desired_location }}<br /><br />
@endif
</div>
</div>

@ -96,7 +96,7 @@
</div>
<div class="service-card">
<div class="service-icon">
<img src="{{url('frontend/icons/ribbon.png')}}" alt="">
<img src="{{url('frontend/icons/jrp.png')}}" alt="">
</div>
<h2>Job Ready Program</h2>
<p>Get into the job market with a correct set of skills.</p>
@ -106,7 +106,7 @@
<div class="services-slider">
<div class="service-card">
<div class="service-icon">
<img src="{{url('frontend/icons/ribbon.png')}}" alt="">
<img src="{{url('frontend/icons/career-counselling.png')}}" alt="">
</div>
<h2>Career Counselling</h2>
<p>Get the right guidance to leap through your career.</p>

@ -43,6 +43,7 @@ use App\Models\Country;
use App\Http\Controllers\Admin\TeamController;
use App\Http\Controllers\Admin\AppointmentController;
use App\Http\Controllers\EnquiryController;
/*
|--------------------------------------------------------------------------
@ -54,53 +55,54 @@ use App\Http\Controllers\Admin\AppointmentController;
| contains the "web" middleware group. Now create something great!
|
*/
Route::get('/mycron', [HomeController::class,'runQueueJobs']);
Route::get('/seed', [HomeController::class,'runSeeder']);
Route::get('/', [HomeController::class,'index'])->name('home.index');
Route::get('login', [HomeAdminController::class,'getLogin'])->name('login');
Route::post('login', [HomeAdminController::class,'postLogin']);
Route::get('/mycron', [HomeController::class, 'runQueueJobs']);
Route::get('/seed', [HomeController::class, 'runSeeder']);
Route::get('/', [HomeController::class, 'index'])->name('home.index');
Route::get('study-abroad', [StudyAbroadController::class,'study_abroad']);
Route::get('/education/{slug}', [StudyAbroadController::class,'details']);
Route::get('/visa/{slug}', [VisaController::class,'details']);
Route::get('login', [HomeAdminController::class, 'getLogin'])->name('login');
Route::post('login', [HomeAdminController::class, 'postLogin']);
Route::get('study-abroad', [StudyAbroadController::class, 'study_abroad']);
Route::get('/education/{slug}', [StudyAbroadController::class, 'details']);
Route::get('/visa/{slug}', [VisaController::class, 'details']);
// Route::get('/study-abroad-detail', function () {
// return view('study-abroad-detail');
// });
// Route::get('visas', [VisaController::class,'index']);
Route::get('contact', [ContactController::class,'index']);
Route::post('contact', [ContactController::class,'post_contact']);
Route::get('about', [FrontendAboutUsController::class,'index']);
Route::get('appointment', [FrontendAppointmentController::class,'index']);
Route::post('appointments_by_date', [FrontendAppointmentController::class,'get_appointment_by_date']);
Route::post('appointment_submit', [FrontendAppointmentController::class,'form_submit']);
Route::get('contact', [ContactController::class, 'index']);
Route::post('contact', [ContactController::class, 'post_contact']);
Route::get('about', [FrontendAboutUsController::class, 'index']);
Route::get('appointment', [FrontendAppointmentController::class, 'index']);
Route::post('appointments_by_date', [FrontendAppointmentController::class, 'get_appointment_by_date']);
Route::post('appointment_submit', [FrontendAppointmentController::class, 'form_submit']);
// Route::get('/about', function () {
// return view('about');
// });
Route::get('blogs', [BlogController::class,'index']);
Route::get('blog/{slug}', [BlogController::class,'blog_detail']);
Route::get('faqs', [FrontendFaqController::class,'index']);
Route::get('blogs', [BlogController::class, 'index']);
Route::get('blog/{slug}', [BlogController::class, 'blog_detail']);
Route::get('faqs', [FrontendFaqController::class, 'index']);
Route::post('image-upload', [ImageUploadController::class, 'storeImage'])->name('image.upload'); //upload image in CkEditor
Route::post('/subscribe', [HomeController::class, 'subscribe']);
Route::group(['middleware'=>['auth']],function (){
Route::group(['middleware' => ['auth']], function () {
//routes for admin
Route::group(['prefix'=>'admin'],function (){
Route::group(['prefix' => 'admin'], function () {
Route::get('logout', [HomeAdminController::class,'getLogout']);
Route::get('/index', [HomeAdminController::class,'indexAdmin']);
Route::get('logout', [HomeAdminController::class, 'getLogout']);
Route::get('/index', [HomeAdminController::class, 'indexAdmin']);
Route::get('/change_password', [HomeAdminController::class,'change_password']);
Route::post('/change_password', [HomeAdminController::class,'update_password']);
Route::get('/change_password', [HomeAdminController::class, 'change_password']);
Route::post('/change_password', [HomeAdminController::class, 'update_password']);
Route::get('settings',[SettingController::class,'index']);
Route::get('settings/create',[SettingController::class,'create']);
Route::post('settings',[SettingController::class,'store']);
Route::get('settings/{id}',[SettingController::class,'show']);
Route::get('settings/{id}/edit',[SettingController::class,'edit']);
Route::post('settings/{id}',[SettingController::class,'update']);
Route::get('settings/{id}/delete',[SettingController::class,'delete']);
Route::get('settings', [SettingController::class, 'index']);
Route::get('settings/create', [SettingController::class, 'create']);
Route::post('settings', [SettingController::class, 'store']);
Route::get('settings/{id}', [SettingController::class, 'show']);
Route::get('settings/{id}/edit', [SettingController::class, 'edit']);
Route::post('settings/{id}', [SettingController::class, 'update']);
Route::get('settings/{id}/delete', [SettingController::class, 'delete']);
// Route::get('service',[ServiceController::class,'index']);
@ -110,188 +112,184 @@ Route::group(['middleware'=>['auth']],function (){
// Route::post('service/{id}/update',[ServiceController::class,'update']);
// Route::get('service/{id}/delete',[ServiceController::class,'delete']);
Route::get('sliders',[SliderController::class,'index']);
Route::get('sliders/create',[SliderController::class,'create']);
Route::post('sliders',[SliderController::class,'store']);
Route::get('sliders/{id}/view',[SliderController::class,'show']);
Route::get('sliders/{id}/edit',[SliderController::class,'edit']);
Route::post('sliders/{id}',[SliderController::class,'update']);
Route::get('sliders/{id}/delete',[SliderController::class,'destroy']);
Route::resource('about_us',AboutUsController::class);
Route::get('pages',[PageController::class,'index']);
Route::get('pages/create',[PageController::class,'create']);
Route::post('pages',[PageController::class,'store']);
Route::get('pages/{id}/view',[PageController::class,'show']);
Route::get('pages/{id}/edit',[PageController::class,'edit']);
Route::post('pages/{id}',[PageController::class,'update']);
Route::get('pages/{id}/delete',[PageController::class,'destroy']);
Route::get('blogs',[NewsAndUpdateController::class,'index']);
Route::get('blogs/create',[NewsAndUpdateController::class,'create']);
Route::post('blogs',[NewsAndUpdateController::class,'store']);
Route::get('blogs/{id}',[NewsAndUpdateController::class,'show']);
Route::get('blogs/{id}/edit',[NewsAndUpdateController::class,'edit']);
Route::post('blogs/{id}',[NewsAndUpdateController::class,'update']);
Route::get('blogs/delete/{id}',[NewsAndUpdateController::class,'delete']);
Route::get('sliders', [SliderController::class, 'index']);
Route::get('sliders/create', [SliderController::class, 'create']);
Route::post('sliders', [SliderController::class, 'store']);
Route::get('sliders/{id}/view', [SliderController::class, 'show']);
Route::get('sliders/{id}/edit', [SliderController::class, 'edit']);
Route::post('sliders/{id}', [SliderController::class, 'update']);
Route::get('sliders/{id}/delete', [SliderController::class, 'destroy']);
Route::resource('about_us', AboutUsController::class);
Route::get('pages', [PageController::class, 'index']);
Route::get('pages/create', [PageController::class, 'create']);
Route::post('pages', [PageController::class, 'store']);
Route::get('pages/{id}/view', [PageController::class, 'show']);
Route::get('pages/{id}/edit', [PageController::class, 'edit']);
Route::post('pages/{id}', [PageController::class, 'update']);
Route::get('pages/{id}/delete', [PageController::class, 'destroy']);
Route::get('blogs', [NewsAndUpdateController::class, 'index']);
Route::get('blogs/create', [NewsAndUpdateController::class, 'create']);
Route::post('blogs', [NewsAndUpdateController::class, 'store']);
Route::get('blogs/{id}', [NewsAndUpdateController::class, 'show']);
Route::get('blogs/{id}/edit', [NewsAndUpdateController::class, 'edit']);
Route::post('blogs/{id}', [NewsAndUpdateController::class, 'update']);
Route::get('blogs/delete/{id}', [NewsAndUpdateController::class, 'delete']);
// Route::get('blog_point/{blog_point_id}',[BlogController::class,'blog_point']);
Route::get('galleries',[GalleryController::class,'index']);
Route::get('galleries/create',[GalleryController::class,'create']);
Route::post('galleries',[GalleryController::class,'store']);
Route::get('galleries/{id}',[GalleryController::class,'show']);
Route::get('galleries/{id}/edit',[GalleryController::class,'edit']);
Route::post('galleries/{id}',[GalleryController::class,'update']);
Route::get('galleries/delete/{id}',[GalleryController::class,'delete']);
Route::get('referrals',[ReferralAdminController::class,'index']);
Route::get('referrals/create',[ReferralAdminController::class,'create']);
Route::post('referrals/store',[ReferralAdminController::class,'store']);
Route::get('referrals/{id}/view',[ReferralAdminController::class,'show']);
Route::post('referrals/{id}/update',[ReferralAdminController::class,'update']);
Route::get('referrals/{id}/delete',[ReferralAdminController::class,'delete']);
Route::get('ndis_pricing',[NdisPricingController::class,'index']);
Route::get('ndis_pricing/create',[NdisPricingController::class,'create']);
Route::post('ndis_pricing',[NdisPricingController::class,'store']);
Route::get('ndis_pricing/{id}/view',[NdisPricingController::class,'show']);
Route::get('ndis_pricing/{id}/edit',[NdisPricingController::class,'edit']);
Route::post('ndis_pricing/{id}',[NdisPricingController::class,'update']);
Route::get('ndis_pricing/{id}/delete',[NdisPricingController::class,'destroy']);
Route::get('sub_offices',[SubOfficeController::class,'index']);
Route::get('sub_offices/create',[SubOfficeController::class,'create']);
Route::post('sub_offices',[SubOfficeController::class,'store']);
Route::get('sub_offices/{id}/edit',[SubOfficeController::class,'edit']);
Route::post('sub_offices/{id}',[SubOfficeController::class,'update']);
Route::get('sub_offices_delete/{id}',[SubOfficeController::class,'delete']);
Route::get('departments',[DepartmentController::class,'index']);
Route::get('departments/create',[DepartmentController::class,'create']);
Route::post('departments/store',[DepartmentController::class,'store']);
Route::get('departments/{id}/edit',[DepartmentController::class,'edit']);
Route::post('departments/{id}',[DepartmentController::class,'update']);
Route::get('departments/{id}/delete',[DepartmentController::class,'delete']);
Route::get('services',[ServiceController::class,'index']);
Route::get('services/create',[ServiceController::class,'create']);
Route::post('service',[ServiceController::class,'store']);
Route::get('services/{id}/edit',[ServiceController::class,'edit']);
Route::get('services/{id}/view',[ServiceController::class,'show']);
Route::post('services/{id}',[ServiceController::class,'update']);
Route::get('services/{id}/delete',[ServiceController::class,'delete']);
Route::get('galleries', [GalleryController::class, 'index']);
Route::get('galleries/create', [GalleryController::class, 'create']);
Route::post('galleries', [GalleryController::class, 'store']);
Route::get('galleries/{id}', [GalleryController::class, 'show']);
Route::get('galleries/{id}/edit', [GalleryController::class, 'edit']);
Route::post('galleries/{id}', [GalleryController::class, 'update']);
Route::get('galleries/delete/{id}', [GalleryController::class, 'delete']);
Route::get('referrals', [ReferralAdminController::class, 'index']);
Route::get('referrals/create', [ReferralAdminController::class, 'create']);
Route::post('referrals/store', [ReferralAdminController::class, 'store']);
Route::get('referrals/{id}/view', [ReferralAdminController::class, 'show']);
Route::post('referrals/{id}/update', [ReferralAdminController::class, 'update']);
Route::get('referrals/{id}/delete', [ReferralAdminController::class, 'delete']);
Route::get('ndis_pricing', [NdisPricingController::class, 'index']);
Route::get('ndis_pricing/create', [NdisPricingController::class, 'create']);
Route::post('ndis_pricing', [NdisPricingController::class, 'store']);
Route::get('ndis_pricing/{id}/view', [NdisPricingController::class, 'show']);
Route::get('ndis_pricing/{id}/edit', [NdisPricingController::class, 'edit']);
Route::post('ndis_pricing/{id}', [NdisPricingController::class, 'update']);
Route::get('ndis_pricing/{id}/delete', [NdisPricingController::class, 'destroy']);
Route::get('sub_offices', [SubOfficeController::class, 'index']);
Route::get('sub_offices/create', [SubOfficeController::class, 'create']);
Route::post('sub_offices', [SubOfficeController::class, 'store']);
Route::get('sub_offices/{id}/edit', [SubOfficeController::class, 'edit']);
Route::post('sub_offices/{id}', [SubOfficeController::class, 'update']);
Route::get('sub_offices_delete/{id}', [SubOfficeController::class, 'delete']);
Route::get('departments', [DepartmentController::class, 'index']);
Route::get('departments/create', [DepartmentController::class, 'create']);
Route::post('departments/store', [DepartmentController::class, 'store']);
Route::get('departments/{id}/edit', [DepartmentController::class, 'edit']);
Route::post('departments/{id}', [DepartmentController::class, 'update']);
Route::get('departments/{id}/delete', [DepartmentController::class, 'delete']);
Route::get('services', [ServiceController::class, 'index']);
Route::get('services/create', [ServiceController::class, 'create']);
Route::post('service', [ServiceController::class, 'store']);
Route::get('services/{id}/edit', [ServiceController::class, 'edit']);
Route::get('services/{id}/view', [ServiceController::class, 'show']);
Route::post('services/{id}', [ServiceController::class, 'update']);
Route::get('services/{id}/delete', [ServiceController::class, 'delete']);
// Route::get('service_point/{service_point_id}',[ServiceController::class,'service_point']);
Route::get('services/{id}/sections',[ServiceSectionController::class,'index']);
Route::get('services/{id}/section/create',[ServiceSectionController::class,'create']);
Route::post('service/{id}/section',[ServiceSectionController::class,'store']);
Route::get('services/{id}/section/{secId}/edit',[ServiceSectionController::class,'edit']);
Route::get('services/{id}/section/{secId}/view',[ServiceSectionController::class,'show']);
Route::post('services/{id}/section/{secId}',[ServiceSectionController::class,'update']);
Route::get('services/{id}/section/delete',[ServiceSectionController::class,'delete']);
Route::get('service_point/{service_point_id}',[ServiceSectionController::class,'service_point']);
Route::get('visa_services',[VisaServiceController::class,'index']);
Route::get('visa_services/create',[VisaServiceController::class,'create']);
Route::post('visa_service',[VisaServiceController::class,'store']);
Route::get('visa_services/{id}/edit',[VisaServiceController::class,'edit']);
Route::get('visa_services/{id}/view',[VisaServiceController::class,'show']);
Route::post('visa_services/{id}',[VisaServiceController::class,'update']);
Route::get('visa_services/{id}/delete',[VisaServiceController::class,'delete']);
Route::get('services/{id}/sections', [ServiceSectionController::class, 'index']);
Route::get('services/{id}/section/create', [ServiceSectionController::class, 'create']);
Route::post('service/{id}/section', [ServiceSectionController::class, 'store']);
Route::get('services/{id}/section/{secId}/edit', [ServiceSectionController::class, 'edit']);
Route::get('services/{id}/section/{secId}/view', [ServiceSectionController::class, 'show']);
Route::post('services/{id}/section/{secId}', [ServiceSectionController::class, 'update']);
Route::get('services/{id}/section/delete', [ServiceSectionController::class, 'delete']);
Route::get('service_point/{service_point_id}', [ServiceSectionController::class, 'service_point']);
Route::get('visa_services', [VisaServiceController::class, 'index']);
Route::get('visa_services/create', [VisaServiceController::class, 'create']);
Route::post('visa_service', [VisaServiceController::class, 'store']);
Route::get('visa_services/{id}/edit', [VisaServiceController::class, 'edit']);
Route::get('visa_services/{id}/view', [VisaServiceController::class, 'show']);
Route::post('visa_services/{id}', [VisaServiceController::class, 'update']);
Route::get('visa_services/{id}/delete', [VisaServiceController::class, 'delete']);
// Route::get('service_section_point/{service_point_id}',[VisaServiceController::class,'service_point']);
Route::get('visa_services/{id}/sections',[VisaServiceSectionController::class,'index']);
Route::get('visa_services/{id}/section/create',[VisaServiceSectionController::class,'create']);
Route::post('visa_service/{id}/section',[VisaServiceSectionController::class,'store']);
Route::get('visa_services/{id}/section/{secId}/edit',[VisaServiceSectionController::class,'edit']);
Route::get('visa_services/{id}/section/{secId}/view',[VisaServiceSectionController::class,'show']);
Route::post('visa_services/{id}/section/{secId}',[VisaServiceSectionController::class,'update']);
Route::get('visa_services/{id}/section/delete',[VisaServiceSectionController::class,'delete']);
Route::get('visa_services/{id}/sections', [VisaServiceSectionController::class, 'index']);
Route::get('visa_services/{id}/section/create', [VisaServiceSectionController::class, 'create']);
Route::post('visa_service/{id}/section', [VisaServiceSectionController::class, 'store']);
Route::get('visa_services/{id}/section/{secId}/edit', [VisaServiceSectionController::class, 'edit']);
Route::get('visa_services/{id}/section/{secId}/view', [VisaServiceSectionController::class, 'show']);
Route::post('visa_services/{id}/section/{secId}', [VisaServiceSectionController::class, 'update']);
Route::get('visa_services/{id}/section/delete', [VisaServiceSectionController::class, 'delete']);
// Route::get('service_point/{service_point_id}',[VisaServiceSectionController::class,'service_point']);
Route::get('testimonials',[TestimonialController::class,'index']);
Route::get('testimonials/create',[TestimonialController::class,'create']);
Route::post('testimonials',[TestimonialController::class,'store']);
Route::get('testimonials/{id}/edit',[TestimonialController::class,'edit']);
Route::post('testimonials/{id}',[TestimonialController::class,'update']);
Route::get('testimonials/{id}',[TestimonialController::class,'show']);
Route::get('testimonials/{id}/delete',[TestimonialController::class,'delete']);
Route::get('clients',[ClientController::class,'index']);
Route::get('clients/create',[ClientController::class,'create']);
Route::post('clients',[ClientController::class,'store']);
Route::get('clients/{id}/edit',[ClientController::class,'edit']);
Route::post('clients/{id}',[ClientController::class,'update']);
Route::get('faqs',[FaqController::class,'index']);
Route::get('faqs/create',[FaqController::class,'create']);
Route::post('faqs',[FaqController::class,'store']);
Route::get('faqs/{id}/edit',[FaqController::class,'edit']);
Route::post('faqs/{id}',[FaqController::class,'update']);
Route::get('faqs/{id}',[FaqController::class,'show']);
Route::get('add-sections',[AddSectionController::class,'index']);
Route::get('add-sections/create',[AddSectionController::class,'create']);
Route::post('add-sections',[AddSectionController::class,'store']);
Route::get('add-sections/{id}/edit',[AddSectionController::class,'edit']);
Route::post('add-sections/{id}',[AddSectionController::class,'update']);
Route::get('add-sections/{id}/delete',[AddSectionController::class,'delete']);
Route::get('seo_titles',[SeoTitleController::class,'index']);
Route::get('seo_titles/create',[SeoTitleController::class,'create']);
Route::post('seo_titles',[SeoTitleController::class,'store']);
Route::get('seo_titles/{id}/edit',[SeoTitleController::class,'edit']);
Route::post('seo_titles/{id}',[SeoTitleController::class,'update']);
Route::get('seo_titles_delete/{id}',[SeoTitleController::class,'delete']);
Route::get('contacts',[ContactUsController::class,'index']);
Route::get('contacts/{id}/view',[ContactUsController::class,'show']);
Route::get('enrollments',[EnrollmentController::class,'index']);
Route::get('enrollments/{id}/view',[EnrollmentController::class,'show']);
Route::get('teams',[TeamController::class,'index']);
Route::get('teams/create',[TeamController::class,'create']);
Route::post('teams',[TeamController::class,'store']);
Route::get('teams/{id}/edit',[TeamController::class,'edit']);
Route::post('teams/{id}',[TeamController::class,'update']);
Route::get('careers',[CareerController::class,'index']);
Route::get('careers/create',[CareerController::class,'create']);
Route::post('careers',[CareerController::class,'store']);
Route::get('careers/{id}/edit',[CareerController::class,'edit']);
Route::post('careers/{id}',[CareerController::class,'update']);
Route::get('careers/{id}',[CareerController::class,'show']);
Route::get('appointments',[AppointmentController::class,'index']);
Route::get('appointments/create',[AppointmentController::class,'create']);
Route::post('appointments',[AppointmentController::class,'store']);
Route::get('appointments/{id}/edit',[AppointmentController::class,'edit']);
Route::post('appointments/{id}',[AppointmentController::class,'update']);
Route::get('appointments/{id}/view',[AppointmentController::class,'show']);
Route::get('appointments/{id}/delete',[AppointmentController::class,'destroy']);
Route::get('accomodations',[AccomodationController::class,'index']);
Route::get('accomodations/create',[AccomodationController::class,'create']);
Route::post('accomodations',[AccomodationController::class,'store']);
Route::get('accomodations/{id}/edit',[AccomodationController::class,'edit']);
Route::post('accomodations/{id}',[AccomodationController::class,'update']);
Route::get('accomodations/{id}',[AccomodationController::class,'show']);
Route::get('accomodations/{id}/delete',[AccomodationController::class,'delete']);
Route::get('accomodations/points_remove/{id}',[AccomodationController::class,'points_remove']);
Route::get('accomodations/information_points_remove/{id}',[AccomodationController::class,'information_points_remove']);
Route::get('accomodations/slider_points_remove/{id}',[AccomodationController::class,'slider_points_remove']);
Route::get('testimonials', [TestimonialController::class, 'index']);
Route::get('testimonials/create', [TestimonialController::class, 'create']);
Route::post('testimonials', [TestimonialController::class, 'store']);
Route::get('testimonials/{id}/edit', [TestimonialController::class, 'edit']);
Route::post('testimonials/{id}', [TestimonialController::class, 'update']);
Route::get('testimonials/{id}', [TestimonialController::class, 'show']);
Route::get('testimonials/{id}/delete', [TestimonialController::class, 'delete']);
Route::get('clients', [ClientController::class, 'index']);
Route::get('clients/create', [ClientController::class, 'create']);
Route::post('clients', [ClientController::class, 'store']);
Route::get('clients/{id}/edit', [ClientController::class, 'edit']);
Route::post('clients/{id}', [ClientController::class, 'update']);
Route::get('faqs', [FaqController::class, 'index']);
Route::get('faqs/create', [FaqController::class, 'create']);
Route::post('faqs', [FaqController::class, 'store']);
Route::get('faqs/{id}/edit', [FaqController::class, 'edit']);
Route::post('faqs/{id}', [FaqController::class, 'update']);
Route::get('faqs/{id}', [FaqController::class, 'show']);
Route::get('add-sections', [AddSectionController::class, 'index']);
Route::get('add-sections/create', [AddSectionController::class, 'create']);
Route::post('add-sections', [AddSectionController::class, 'store']);
Route::get('add-sections/{id}/edit', [AddSectionController::class, 'edit']);
Route::post('add-sections/{id}', [AddSectionController::class, 'update']);
Route::get('add-sections/{id}/delete', [AddSectionController::class, 'delete']);
Route::get('seo_titles', [SeoTitleController::class, 'index']);
Route::get('seo_titles/create', [SeoTitleController::class, 'create']);
Route::post('seo_titles', [SeoTitleController::class, 'store']);
Route::get('seo_titles/{id}/edit', [SeoTitleController::class, 'edit']);
Route::post('seo_titles/{id}', [SeoTitleController::class, 'update']);
Route::get('seo_titles_delete/{id}', [SeoTitleController::class, 'delete']);
Route::get('contacts', [ContactUsController::class, 'index']);
Route::get('contacts/{id}/view', [ContactUsController::class, 'show']);
Route::get('enrollments', [EnrollmentController::class, 'index']);
Route::get('enrollments/{id}/view', [EnrollmentController::class, 'show']);
Route::get('teams', [TeamController::class, 'index']);
Route::get('teams/create', [TeamController::class, 'create']);
Route::post('teams', [TeamController::class, 'store']);
Route::get('teams/{id}/edit', [TeamController::class, 'edit']);
Route::post('teams/{id}', [TeamController::class, 'update']);
Route::get('careers', [CareerController::class, 'index']);
Route::get('careers/create', [CareerController::class, 'create']);
Route::post('careers', [CareerController::class, 'store']);
Route::get('careers/{id}/edit', [CareerController::class, 'edit']);
Route::post('careers/{id}', [CareerController::class, 'update']);
Route::get('careers/{id}', [CareerController::class, 'show']);
Route::get('appointments', [AppointmentController::class, 'index']);
Route::get('appointments/create', [AppointmentController::class, 'create']);
Route::post('appointments', [AppointmentController::class, 'store']);
Route::get('appointments/{id}/edit', [AppointmentController::class, 'edit']);
Route::post('appointments/{id}', [AppointmentController::class, 'update']);
Route::get('appointments/{id}/view', [AppointmentController::class, 'show']);
Route::get('appointments/{id}/delete', [AppointmentController::class, 'destroy']);
Route::get('accomodations', [AccomodationController::class, 'index']);
Route::get('accomodations/create', [AccomodationController::class, 'create']);
Route::post('accomodations', [AccomodationController::class, 'store']);
Route::get('accomodations/{id}/edit', [AccomodationController::class, 'edit']);
Route::post('accomodations/{id}', [AccomodationController::class, 'update']);
Route::get('accomodations/{id}', [AccomodationController::class, 'show']);
Route::get('accomodations/{id}/delete', [AccomodationController::class, 'delete']);
Route::get('accomodations/points_remove/{id}', [AccomodationController::class, 'points_remove']);
Route::get('accomodations/information_points_remove/{id}', [AccomodationController::class, 'information_points_remove']);
Route::get('accomodations/slider_points_remove/{id}', [AccomodationController::class, 'slider_points_remove']);
});
});
Route::get('/services', function () {
return view('services');
@ -302,12 +300,13 @@ Route::get('/career_counselling', function () {
Route::get('/insurance', function () {
return view('insurance');
});
Route::get('/enquiry', function () {
$countries = Country::all();
return view('enquiry-form', compact('countries'));
});
// Route::get('/enquiry', function () {
// $countries = Country::all();
// return view('enquiry-form', compact('countries'));
// });
Route::get('/enquiry' , [EnquiryController::class, 'form']);
Route::post('/enquiry' , [EnquiryController::class, 'submit'])->name('enquiry.submit');
// Route::get('/visa', function () {
// return view('visa');
// });

Loading…
Cancel
Save