enquiry-backend

et#36
Mahesh Sharma 2 years ago
parent 948b076c03
commit 338d015069
  1. 6
      app/Http/Controllers/Admin/AppointmentController.php
  2. 32
      app/Http/Controllers/EnquiryController.php
  3. 2
      resources/views/admin/appointment/index.blade.php
  4. 157
      resources/views/admin/career/create.blade.php
  5. 203
      resources/views/admin/career/edit.blade.php
  6. 116
      resources/views/admin/career/index.blade.php
  7. 148
      resources/views/admin/career/show.blade.php
  8. 53
      resources/views/admin/enquiry/index.blade.php
  9. 22
      resources/views/admin/enquiry/mail.blade.php
  10. 158
      resources/views/admin/enquiry/show.blade.php
  11. 34
      resources/views/admin/layouts/menubar.blade.php
  12. 157
      resources/views/admin/referral/create.blade.php
  13. 203
      resources/views/admin/referral/edit.blade.php
  14. 135
      resources/views/admin/referral/show.blade.php
  15. 40
      resources/views/appointment.blade.php
  16. 2
      resources/views/enquiry_mail.blade.php
  17. 5
      routes/web.php

@ -13,7 +13,7 @@ class AppointmentController extends Controller
{ {
protected $view= 'admin.appointment.'; protected $view= 'admin.appointment.';
protected $redirect = 'admin/appointments'; protected $redirect = 'admin/appointments';
public function index(){ public function index(){
$appointments = Appointment::orderBy('id','DESC'); $appointments = Appointment::orderBy('id','DESC');
if(\request('date')){ if(\request('date')){
@ -24,7 +24,7 @@ class AppointmentController extends Controller
$key = \request('status'); $key = \request('status');
$appointments = $appointments->where('status',$key); $appointments = $appointments->where('status',$key);
} }
$appointments = $appointments->paginate(20); $appointments = $appointments->paginate(30);
return view($this->view.'index',compact('appointments')); return view($this->view.'index',compact('appointments'));
} }
@ -63,7 +63,7 @@ class AppointmentController extends Controller
$appointment = Appointment::findorfail($id); $appointment = Appointment::findorfail($id);
$start_time = explode(" ", $appointment->start_time); $start_time = explode(" ", $appointment->start_time);
$start_time = $start_time[0]; $start_time = $start_time[0];
$end_time = explode(" ", $appointment->end_time); $end_time = explode(" ", $appointment->end_time);
$end_time = $end_time[0]; $end_time = $end_time[0];
$appointment['start_time'] = $start_time; $appointment['start_time'] = $start_time;

@ -7,6 +7,9 @@ use App\Models\Country;
use App\Models\Enquiry; use App\Models\Enquiry;
use Illuminate\Http\Request; use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Session;
class EnquiryController extends Controller class EnquiryController extends Controller
{ {
@ -42,4 +45,33 @@ class EnquiryController extends Controller
dispatch(new SendEnquiryMailJob($enquiry)); dispatch(new SendEnquiryMailJob($enquiry));
return redirect()->back()->with(['msg' => 'We have recieved your enquiry. You will be contacted soon!', 'status' => true], 200); return redirect()->back()->with(['msg' => 'We have recieved your enquiry. You will be contacted soon!', 'status' => true], 200);
} }
public function index()
{
$enquiries = Enquiry::orderBy('id', 'DESC');
if (\request('name')) {
$key = \request('name');
$enquiries = $enquiries->where('first_name', 'like', $key . '%');
}
if (\request('email')) {
$key = \request('email');
$enquiries = $enquiries->where('email', 'like', $key . '%');
}
$enquiries = $enquiries->paginate(30);
return view('admin.enquiry.index', compact('enquiries'));
}
public function show($id)
{
$enquiry = Enquiry::findorfail($id);
return view('admin.enquiry.show', compact('enquiry'));
}
public function delete($id)
{
$enquiry = Enquiry::findorfail($id);
$enquiry->delete();
Session::flash('success', 'Enquiry has been successfully deleted!');
return redirect('admin/enquiries');
}
} }

@ -35,7 +35,7 @@
<div class="row"> <div class="row">
<div class="col-md-4"> <div class="col-md-4">
<div class="input-group input-group-sm mb-3 table-search w-100"> <div class="input-group input-group-sm mb-3 table-search w-100">
<input type="search" name="date" class="form-control ds-input" placeholder="Date" aria-label="Small" aria-describedby="inputGroup-sizing-sm" onchange="filterList()"> <input type="date" name="date" class="form-control ds-input" placeholder="Date" aria-label="Small" aria-describedby="inputGroup-sizing-sm" onchange="filterList()">
</div> </div>
</div> </div>
<div class="col-md-4"> <div class="col-md-4">

@ -1,157 +0,0 @@
@extends('admin.layouts.app')
@section('content')
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1>Career</h1>
</div>
</div>
</div><!-- /.container-fluid -->
</section>
<!-- Main content -->
<section class="content">
<div class="container-fluid">
<!-- SELECT2 EXAMPLE -->
<div class="card card-default">
<div class="card-header">
<h3 class="card-title">Create Career</h3>
<a href="{{url('admin/careers')}}" class="back-button">List</a>
</div>
<div class="card-body">
@include('success.success')
@include('errors.error')
{!! Form::open(['url' => '/admin/careers', 'class' => 'form-horizontal', 'method'=> 'POST','files' => true,'autocomplete' => 'OFF']) !!}
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label>Image <span style="color: red";> * </span> </label>
<input type="file" class="form-control" name="image" required>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label> Title <span style="color: red";> * </span> </label>
<input type="text" class="form-control" id="inputPassword3" name="title" value="{{old('title')}}" required>
</div>
</div>
<div class="col-md-6" >
<div class="form-group" >
<label>Sub Title <span style="color: red";> * </span></label>
<textarea name="sub_title" class="summernote_class" rows="5" required style="height: 658px;" >{{old('sub_title')}}</textarea>
</div>
</div>
<div class="col-md-6" >
<div class="form-group" >
<label>Point Title <span style="color: red";> * </span> </label>
<textarea name="point_title" class="summernote_class" rows="5" required style="height: 658px;" >{{old('point_title')}}
</textarea>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label>Seo Title</label>
<input type="text" class="form-control" id="inputPassword3" name="seo_title" value="{{old('seo_title')}}">
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label> Keyword <span style="color: red";> * </span> </label>
<input type="text" class="form-control" id="inputPassword3" name="keyword" value="{{old('keyword')}}" required>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label>Seo Description </label>
<textarea class="summernote_class" name="seo_description">{{old('seo_description')}}</textarea>
{{-- <input type="text" class="form-control" id="inputPassword3" name="seo_description" >--}}
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label>Meta Keyword</label>
<textarea class="summernote_class" name="meta_keyword" >{{old('meta_keyword')}}</textarea>
</div>
</div>
</div>
<div class="row" id="point_dom">
<div class="col-md-6 rel-close" id="point_row_1">
<div class="dom-box">
<div class="add-points card">
<div class="form-group" id="point_g_1" >
<!-- <label for=""> Point Title <span style="color: red";> * </span></label> <br> -->
<!-- <input type="text" name="point_title" id="title1" placeholder="Title"> <br> -->
<div id="point1" class="point1" >
<label for="">Points <span style="color: red";> * </span> </label> <br>
<input type="text" class="point" name="points[]" placeholder="Points"> <br>
<button class="close-point" onclick="deletePoint(1)" type="button"><i class="fa fa-trash" aria-hidden="true"></i></button>
</div>
</div>
<button type="button" class="add-point-btn btn btn-primary" onclick="getPoint(1)">Add Points</button>
</div>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label>Status <span style="color: red";> * </span> </label>
<select name="status" class="form-control" id="type" required>
<option value="" selected disabled>Please select Status</option>
@foreach(config('custom.status') as $in => $val)
<option value="{{$in}}" {{(old('status')==$in) ? 'selected':''}}>{{$val}}</option>
@endforeach
</select>
</div>
</div>
</div>
<div class="form-group row create-button">
<div class="col-sm-10 col-md-12">
<button type="submit" class="btn btn-primary">Create</button>
</div>
</div>
{!! Form::close() !!}
</div>
</div>
</div>
</section>
</div>
@endsection
@section('script')
<script>
$(document).ready(function() {
$('.summernote_class').summernote()
})
var point_count = 1;
function getPoint(count){
point_count = point_count +1;
debugger;
var html = '<div id="point'+point_count+'" class="point1">'+
'<input type="text" class="point" name="points[]" placeholder="Points"> <br>'+
'<button type="button" class="close-point" onclick="deletePoint('+point_count+')"><i class="fa fa-trash" aria-hidden="true"></i></button>'+
'</div>';
$('#point_g_1').append(html);
}
function deletePoint(count){
if($('.point').length > 1){
$('#point'+count).remove();
}
}
</script>
@endsection

@ -1,203 +0,0 @@
@extends('admin.layouts.app')
@section('content')
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1>Career</h1>
</div>
</div>
</div><!-- /.container-fluid -->
</section>
<!-- Main content -->
<section class="content">
<div class="container-fluid">
<!-- SELECT2 EXAMPLE -->
<div class="card card-default">
<div class="card-header">
<h3 class="card-title">Edit Career</h3>
<a href="{{url('admin/careers')}}" class="back-button">Back</a>
</div>
<div class="card-body">
@include('success.success')
@include('errors.error')
{!! Form::open(['url' => '/admin/careers/'.$about_us->id, 'class' => 'form-horizontal', 'method'=> 'POST','files' => true]) !!}
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label>Image</label>
<input type="file" class="form-control" name="image" >
<br>
<span>
<a href="{{url($about_us->image)}}" target="_blank">
<img src="{{url($about_us->image)}}" alt="" style="width: 100px">
</a>
</span>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label> Title <span style="color: red";> * </span> </label>
<input type="text" class="form-control" id="inputPassword3" name="title" value="{{$about_us->title}}" required>
</div>
</div>
<div class="col-md-6" >
<div class="form-group" >
<label>Sub Title <span style="color: red";> * </span></label>
<textarea name="sub_title" class="summernote_class" rows="5" required style="height: 658px;" >{{$about_us->sub_title}}</textarea>
</div>
</div>
<div class="col-md-6" >
<div class="form-group" >
<label>Point Title <span style="color: red";> * </span> </label>
<textarea name="point_title" class="summernote_class" rows="5" required style="height: 658px;" >{{$about_us->point_title}}
</textarea>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label>Seo Title</label>
<input type="text" class="form-control" id="inputPassword3" name="seo_title" value="{{$about_us->seo_title}}">
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label> Keyword <span style="color: red";> * </span> </label>
<input type="text" class="form-control" id="inputPassword3" name="keyword" value="{{$about_us->keyword}}">
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label>Seo Description</label>
<textarea class="summernote_class" name="seo_description">{{$about_us->seo_description}}</textarea>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label>Meta Keyword</label>
<textarea class="summernote_class" name="meta_keyword" >{{$about_us->meta_keyword}}</textarea>
</div>
</div>
</div>
@if($about_us->career_points->count() > 0)
<div class="row" id="point_dom">
<div class="col-md-6 rel-close" id="point_row_1">
<div class="dom-box">
<div class="add-points card">
<div class="form-group" id="point_g_1" >
<!-- <label for="">Point Title <span style="color: red";> * </span> </label> <br> -->
<!-- <input type="text" name="point_title" id="title1" placeholder="title" value="{{$about_us->point_title}}"> <br> -->
<label for="">Points <span style="color: red";> * </span> </label>
<br>
@foreach($about_us->career_points as $point)
<div id="point_old{{$point->id}}" class="point1" >
<input type="text" class="point" name="points[]" placeholder="Point" value="{{$point->point}}"> <br>
<input type="hidden" name="point_old_id[]" placeholder="points" value="{{$point->id}}"> <br>
<button class="close-point" onclick="deletePointPermanently({{$point->id}})" type="button"><i class="fa fa-trash" aria-hidden="true"></i></button>
</div>
@endforeach
</div>
<button type="button" class="add-point-btn btn btn-primary" onclick="getPoint(1)">Add Points</button>
</div>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<label>Status <span style="color: red";> * </span> </label>
<select name="status" class="form-control" id="type" required>
<option value="" selected disabled>Please select Status</option>
@foreach(config('custom.status') as $in => $val)
<option value="{{$in}}" {{($about_us->status ==$in) ? 'selected':''}}>{{$val}}</option>
@endforeach
</select>
</div>
</div>
</div>
@endif
<div class="form-group row">
<div class="col-sm-10">
<button type="submit" class="btn btn-primary">Update</button>
</div>
</div>
{!! Form::close() !!}
</div>
</div>
</div>
</section>
</div>
@endsection
@section('script')
<script>
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
$(document).ready(function() {
$('.summernote_class').summernote()
})
var point_count = 1;
function getPoint(count){
point_count = point_count +1;
var html = '<div id="point'+point_count+'" class="point1">'+
'<input type="text" class="point" name="points[]" placeholder="Point"> <br>'+
'<button type="button" class="close-point" onclick="deletePoint('+point_count+')"><i class="fa fa-trash" aria-hidden="true"></i></button>'+
'</div>';
$('#point_g_1').append(html);
}
function deletePoint(count){
if($('.point').length > 1){
$('#point'+count).remove();
}
}
function deletePointPermanently(id){
if($('.point').length > 1){
if (confirm("Are you sure Delete?")) {
$.ajax({
/* the route pointing to the post function */
type: 'GET',
url: Laravel.url +"/admin/blog_point/"+id,
dataType: 'json',
processData: false, // tell jQuery not to process the data
contentType: false,
/* remind that 'data' is the response of the AjaxController */
success: function (data) {
$('#point_old'+data.blog_point_id).remove();
},
error: function(error) {
}
});
}
return false;
}
}
</script>
@endsection

@ -1,116 +0,0 @@
@extends('admin.layouts.app')
@section('content')
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1>Career</h1>
</div>
</div>
</div><!-- /.container-fluid -->
</section>
<!-- Main content -->
<section class="content">
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="card-header">
<h3 class="card-title">Career Table</h3>
<div class="card-tools">
<a class="btn btn-primary" href="{{url('admin/careers/create')}}" role="button">Create</a>
</div>
</div>
<!-- /.card-header -->
<div class="card-body">
@include('success.success')
@include('errors.error')
<form id="search" class="search-form">
<div class="row">
<div class="input-group input-group-sm mb-3 table-search col-md-3">
<input type="search" name="name" class="form-control ds-input" placeholder="Name" aria-label="Small" aria-describedby="inputGroup-sizing-sm" onchange="filterList()">
</div>
<div class="input-group input-group-sm mb-3 table-search col-md-3">
<select name="status" class="form-control ds-input" onchange="filterList()">
<option value="" disabled selected>Search By Status</option>
@foreach(config('custom.status') as $in => $val)
<option value="{{$in}}">{{$val}}</option>
@endforeach
</select>
</div>
</div>
</form>
<table class="table table-bordered">
<thead>
<tr>
<th style="width: 10px">S.N.</th>
<th class="text-center">Image</th>
<th class="text-center">Title</th>
<th class="text-center">Slug</th>
<th class="text-center">Status</th>
<th class="text-center">Action</th>
</tr>
</thead>
<tbody>
@foreach($settings as $setting)
<tr>
<th scope="row">{{$loop->iteration}}</th>
<td class="text-center">
<a href="{{url($setting->image)}}" target="_blank">
<img src="{{url($setting->image)}}" alt="" style="width: 100px;">
</a>
</td>
<td class="text-center">{!!$setting->title!!}</td>
<td class="text-center">{{$setting->slug}}</td>
<td class="text-center"> {{config('custom.status')[$setting->status]}}</td>
<td class="text-center">
<a class="btn btn-primary btn-sm" href="{{url('admin/careers/'.$setting->id)}}">
<i class="fas fa-folder">
</i>
View
</a>
<a class="btn btn-info btn-sm" href="{{url('admin/careers/'.$setting->id.'/edit')}}">
<i class="fas fa-pencil-alt">
</i>
Edit
</a>
<!-- {{-- <a class="btn btn-info btn-danger" href="{{url('admin/about_us/delete/'.$setting->id)}}" onclick="return confirm('Are you sure want to delete?')">--}}
{{-- <i class="fas fa-pencil-alt">
{{-- </i>
{{-- Delete
{{-- </a> -->
</td>
</tr>
@endforeach
</tbody>
</table>
<div class="pagination-page" style="margin-top: 30px;">
{!! $settings->links() !!}
</div>
</div>
</div>
<!-- /.card -->
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</div><!-- /.container-fluid -->
</section>
<!-- /.content -->
</div>
@endsection

@ -1,148 +0,0 @@
@extends('admin.layouts.app')
@section('content')
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1>Show Career</h1>
</div>
</div>
</div><!-- /.container-fluid -->
</section>
<!-- Main content -->
<section class="content">
<div class="container-fluid">
<!-- SELECT2 EXAMPLE -->
<div class="card card-default">
<div class="card-header">
<h3 class="card-title">Show Career</h3>
</div>
<div class="card-body">
@include('success.success')
@include('errors.error')
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label>Image</label>
<br>
<span>
<a href="{{url($about_us->image)}}" target="_blank">
<img src="{{url($about_us->image)}}" alt="" style="width: 100px">
</a>
</span>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label> Title <span style="color: red";> * </span> </label>
<input type="text" class="form-control" id="inputPassword3" name="title" value="{{$about_us->title}}" required>
</div>
</div>
<div class="col-md-6" >
<div class="form-group" >
<label>Sub Title <span style="color: red";> * </span></label>
<textarea name="sub_title" class="summernote_class" rows="5" required style="height: 658px;" >{{$about_us->sub_title}}</textarea>
</div>
</div>
<div class="col-md-6" >
<div class="form-group" >
<label>Point Title <span style="color: red";> * </span> </label>
<textarea name="point_title" class="summernote_class" rows="5" required style="height: 658px;" >{{$about_us->point_title}}
</textarea>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label>Seo Title</label>
<input type="text" class="form-control" id="inputPassword3" name="seo_title" value="{{$about_us->seo_title}}" disabled>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label> Keyword </label>
<input type="text" class="form-control" id="inputPassword3" name="keyword" value="{{$about_us->keyword}}" disabled>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label>Seo Description</label>
<textarea class="summernote_class" name="seo_description" disabled>{{$about_us->seo_description}}</textarea>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label>Meta Keyword</label>
<textarea class="summernote_class" name="meta_keyword" disabled >{{$about_us->meta_keyword}}</textarea>
</div>
</div>
</div>
@if($about_us->career_points)
<div class="row" id="point_dom">
<div class="col-md-6 rel-close" id="point_row_1">
<div class="dom-box">
<div class="add-points card">
<div class="form-group" id="point_g_1" >
<!-- <label for="">Title</label> <br> -->
<!-- <input type="text" name="point_title" id="title1" placeholder="title" value="{{$about_us->point_title}}" disabled> <br> -->
<label for="">Points</label>
<br>
@foreach($about_us->career_points as $point)
<div id="point_old{{$point->id}}" class="point1" >
<input type="text" class="point" name="point_old[]" placeholder="points" value="{{$point->point}}" disabled> <br>
<input type="hidden" name="point_old_id[]" placeholder="points" value="{{$point->id}}"> <br>
</div>
@endforeach
</div>
</div>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label>Status</label>
<select name="status" class="form-control" id="type" required disabled>
<option value="" selected disabled>Please select Status</option>
@foreach(config('custom.status') as $in => $val)
<option value="{{$in}}" {{($about_us->status ==$in) ? 'selected':''}}>{{$val}}</option>
@endforeach
</select>
</div>
</div>
</div>
@endif
</div>
</div>
</div>
</section>
</div>
@endsection
@section('script')
<script>
$(document).ready(function() {
$('.summernote_class').summernote()
})
</script>
@endsection

@ -20,30 +20,27 @@
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<div class="card"> <div class="card">
<div class="card-header"> <div class="card-header d-flex flex-column">
<h3 class="card-title">Referrals</h3> <h3 class="card-title">Enquiries</h3>
<div class="card-tools">
</div> {{-- <a class="btn btn-green" href="{{url('admin/projects/create')}}" role="button">Create</a>--}}
</div>
</div>
<!-- /.card-header --> <!-- /.card-header -->
<div class="card-body"> <div class="card-body">
@include('success.success') @include('success.success')
@include('errors.error') @include('errors.error')
<form id="search" class="search-form"> <form id="search" class="search-form">
<div class="row"> <div class="row">
<div class="col-md-4"> <div class="col-md-4">
<div class="input-group input-group-sm mb-3 table-search w-100"> <div class="input-group input-group-sm mb-3 table-search w-100">
<input type="search" name="name" class="form-control ds-input" placeholder="Name" aria-label="Small" aria-describedby="inputGroup-sizing-sm" onchange="filterList()"> <input type="search" name="name" class="form-control ds-input" placeholder="Search by first name" aria-label="Small" aria-describedby="inputGroup-sizing-sm" onchange="filterList()">
</div> </div>
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<div class="input-group input-group-sm mb-3 table-search w-100"> <div class="input-group input-group-sm mb-3 table-search w-100">
<select name="status" class="form-control ds-input" onchange="filterList()"> <input type="search" name="email" class="form-control ds-input" placeholder="Search by email" aria-label="Small" aria-describedby="inputGroup-sizing-sm" onchange="filterList()">
<option value="" disabled selected>Search By Status</option>
@foreach(config('custom.status') as $in => $val)
<option value="{{$in}}">{{$val}}</option>
@endforeach
</select>
</div> </div>
</div> </div>
</div> </div>
@ -53,40 +50,36 @@
<thead> <thead>
<tr> <tr>
<th style="width: 10px">S.N.</th> <th style="width: 10px">S.N.</th>
<th class="text-center">Participant Name</th> <th class="text-center">Full Name</th>
<th class="text-center">Mobile</th> <th class="text-center">Birth Date</th>
<th class="text-center">Suburb</th> <th class="text-center">Email</th>
<th class="text-center">Phone</th>
<th class="text-center">Action</th> <th class="text-center">Action</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@foreach($settings as $setting) @foreach($enquiries as $enquiry)
<tr> <tr>
<th scope="row">{{$loop->iteration}}</th> <th scope="row">{{$loop->iteration}}</th>
<td class="text-center">{{$setting->name}}</td> <td class="text-center">{{$enquiry->first_name . ' ' .(!is_null($enquiry->middle_name) ? $enquiry->middle_name .' ' :''). $enquiry->last_name}}</td>
<td class="text-center">{{$setting->mobile_no}}</td> <td class="text-center">{{$enquiry->dob}}</td>
<td class="text-center">{{$setting->suburb}}</td> <td class="text-center">{{$enquiry->email}}</td>
<td class="text-center">{{$enquiry->phone}}</td>
<!-- <td class="text-center">
<a class="btn btn-primary btn-sm" href="{{url('admin/referrals/'.$setting->id.'/view')}}">
<i class="fas fa-folder">
</i>
View
</a>
</td> -->
<td class="d-flex justify-content-center action-icons"> <td class="d-flex justify-content-center action-icons">
<a href="{{url('admin/referrals/'.$setting->id.'/view')}}" class="btn btn-sm" data-bs-toggle="tooltip" data-bs-placement="top" title="view"> <a href="{{url('admin/enquiries/'.$enquiry->id.'/view')}}" class="btn btn-sm" data-bs-toggle="tooltip" data-bs-placement="top" title="view">
<i class="fa-solid fa-eye"></i> <i class="fa-solid fa-eye"></i>
</a> </a>
<a href="{{url('admin/enquiries/'.$enquiry->id.'/delete')}}" class="btn btn-sm" data-bs-toggle="tooltip" data-bs-placement="top" title="delete" onclick="return confirm('Are you sure you want to delete?');">
<i class="fas fa-trash"></i>
</td> </td>
</tr> </tr>
@endforeach @endforeach
</tbody> </tbody>
</table> </table>
<div class="pagination-default" style="margin-top: 30px;"> <div class="pagination-default" style="margin-top: 10px;">
{!! $settings->links() !!} {!! $enquiries->links() !!}
</div> </div>
</div> </div>

@ -0,0 +1,22 @@
Sender details: <br><br>
Name: {{ $name }}<br>
Email: {{ $email }}<br>
Phone: {{ $phone }}<br>
Query Type: {{ $query_type }}<br>
Contact Type: {{ $contact_us_type }}<br>
InQuery for: {{$inQuery_for}}<br>
Subject: {{ $subject }}<br>
Message: {!! $msg !!}<br><br>
Thanks

@ -0,0 +1,158 @@
@extends('admin.layouts.app')
@section('content')
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
</div>
</div>
</div><!-- /.container-fluid -->
</section>
<!-- Main content -->
<section class="content">
<div class="container-fluid">
<!-- SELECT2 EXAMPLE -->
<div class="card card-default">
<div class="card-header">
<h3 class="card-title">Enquiry</h3>
<a href="{{url('admin/enquiries')}}" class="btn btn-green back-button active" role="button" aria-pressed="true">List</a>
</div>
<div class="card-body">
@include('success.success')
@include('errors.error')
<h2>Personal Details</h2>
<ul class="contact-info">
<li class="d-flex">
<span>Full Name:</span>
<span>{{$enquiry->first_name . ' ' .(!is_null($enquiry->middle_name) ? $enquiry->middle_name .' ' :''). $enquiry->last_name}}</span>
</li>
<li class="d-flex">
<span>Date of Birth:</span>
<span>
{{$enquiry->dob}}
</span>
</li>
<li class="d-flex">
<span>Gender:</span>
<span>{{$enquiry->gender}} </span>
</li>
<li class="d-flex">
<span>Email:</span>
<span>{{$enquiry->email}}</span>
</li>
<li class="d-flex">
<span>Phone:</span>
<span>{{$enquiry->phone}}</span>
</li>
<li class="d-flex">
<span>Address:</span>
<span>{{$enquiry->address}} </span>
</li>
<li class="d-flex">
<span>Country of Birth:</span>
<span>{{$enquiry->cob}} </span>
</li>
</ul>
<h2>Additional Details</h2>
<ul class="contact-info">
<li class="d-flex">
<span>Highest Qualification:</span>
<span>{{$enquiry->highest_qualification}}</span>
</li>
<li class="d-flex">
<span>Stream:</span>
<span>
{{$enquiry->stream}}
</span>
</li>
<li class="d-flex">
<span>% or GPA:</span>
<span>{{$enquiry->gpa}} </span>
</li>
<li class="d-flex">
<span>Graduate Year:</span>
<span>{{$enquiry->graduate_year}}</span>
</li>
<li class="d-flex">
<span>Gap after Studies:</span>
<span>{{$enquiry->gap}}</span>
</li>
<li class="d-flex">
<span>Current Status:</span>
<span>{{$enquiry->current_status}} </span>
</li>
<li class="d-flex">
<span>Work Experience Details:</span>
<span>{{$enquiry->work_experience == 'yes' ? 'Yes' : 'No'}} </span>
</li>
@if(!is_null($enquiry->work_experience_details))
<li class="d-flex">
<span>Work Experience:</span>
<span>{{$enquiry->work_experience_details}} </span>
</li>
@endif
@if(!is_null($enquiry->salary_mode))
<li class="d-flex">
<span>Salary Mode:</span>
<span>{{$enquiry->salary_mode}} </span>
</li>
@endif
<li class="d-flex">
<span>Test Score:</span>
<span>{{$enquiry->test_score}} </span>
</li>
<li class="d-flex">
<span>Marital Status:</span>
<span>{{$enquiry->marital_status}} </span>
</li>
@if(!is_null($enquiry->married_date))
<li class="d-flex">
<span>Married Date:</span>
<span>{{$enquiry->married_date}} </span>
</li>
@endif
@if(!is_null($enquiry->spouse_academics))
<li class="d-flex">
<span>Spouse Academics:</span>
<span>{{$enquiry->spouse_academics}} </span>
</li>
@endif
@if(!is_null($enquiry->spouse_work_experience))
<li class="d-flex">
<span>Spouse Work Experience:</span>
<span>{{$enquiry->spouse_work_experience}} </span>
</li>
@endif
@if(!is_null($enquiry->spouse_salary_mode))
<li class="d-flex">
<span>Spouse Salary Mode:</span>
<span>{{$enquiry->spouse_salary_mode}} </span>
</li>
@endif
<li class="d-flex">
<span>Immigration History:</span>
<span>{{$enquiry->immigration_history ?? 'N/A'}} </span>
</li>
<li class="d-flex">
<span>Desired Study Field:</span>
<span>{{$enquiry->desired_study_field ?? 'N/A'}} </span>
</li>
<li class="d-flex">
<span>Desired Location:</span>
<span>{{$enquiry->desired_location ?? 'N/A'}} </span>
</li>
</ul>
{!! Form::close() !!}
</div>
</div>
</div>
</section>
</div>
@endsection

@ -36,7 +36,7 @@
</div> </div>
</li> </li>
</ul> </ul>
</nav> </nav>
<!-- /.navbar --> <!-- /.navbar -->
@ -102,9 +102,6 @@
</a> </a>
</li> </li>
<li class="nav-item"> <li class="nav-item">
<a href="{{url('admin/about_us')}}" class="nav-link {{(Request::segment(2) == 'about_us') ? 'active' : ''}}"> <a href="{{url('admin/about_us')}}" class="nav-link {{(Request::segment(2) == 'about_us') ? 'active' : ''}}">
<i class="fa-solid fa-users"></i> <i class="fa-solid fa-users"></i>
@ -157,38 +154,23 @@
</a> </a>
</li> </li>
<li class="nav-item"> <li class="nav-item">
<a href="{{url('admin/contacts')}}" class="nav-link"> <a href="{{url('admin/contacts')}}" class="nav-link {{(Request::segment(2) == 'contacts') ? 'active' : ''}}">
<i class="fa-solid fa-id-badge"></i> <i class="fa-solid fa-id-badge"></i>
<p> <p>
Contact/Enquiry Contact
</p> </p>
</a> </a>
</li> </li>
<li class="nav-item">
<a href="{{url('admin/enquiries')}}" class="nav-link {{(Request::segment(2) == 'enquiries') ? 'active' : ''}}">
<i class="fa-solid fa-id-badge"></i>
<!-- <li class="nav-item">
<a href="{{url('admin/seo_titles')}}" class="nav-link {{(Request::segment(2) == 'departments') ? 'active' : ''}}">
<i class="fa-solid fa-magnifying-glass"></i>
<p> <p>
Seo Titles Enquiries
</p> </p>
</a> </a>
</li> --> </li>
</ul> </ul>
</nav> </nav>
<!-- /.sidebar-menu --> <!-- /.sidebar-menu -->

@ -1,157 +0,0 @@
@extends('admin.layouts.app')
@section('content')
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1>Career</h1>
</div>
</div>
</div><!-- /.container-fluid -->
</section>
<!-- Main content -->
<section class="content">
<div class="container-fluid">
<!-- SELECT2 EXAMPLE -->
<div class="card card-default">
<div class="card-header">
<h3 class="card-title">Create Career</h3>
<a href="{{url('admin/careers')}}" class="back-button">List</a>
</div>
<div class="card-body">
@include('success.success')
@include('errors.error')
{!! Form::open(['url' => '/admin/careers', 'class' => 'form-horizontal', 'method'=> 'POST','files' => true,'autocomplete' => 'OFF']) !!}
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label>Image <span style="color: red";> * </span> </label>
<input type="file" class="form-control" name="image" required>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label> Title <span style="color: red";> * </span> </label>
<input type="text" class="form-control" id="inputPassword3" name="title" value="{{old('title')}}" required>
</div>
</div>
<div class="col-md-6" >
<div class="form-group" >
<label>Sub Title <span style="color: red";> * </span></label>
<textarea name="sub_title" class="summernote_class" rows="5" required style="height: 658px;" >{{old('sub_title')}}</textarea>
</div>
</div>
<div class="col-md-6" >
<div class="form-group" >
<label>Point Title <span style="color: red";> * </span> </label>
<textarea name="point_title" class="summernote_class" rows="5" required style="height: 658px;" >{{old('point_title')}}
</textarea>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label>Seo Title</label>
<input type="text" class="form-control" id="inputPassword3" name="seo_title" value="{{old('seo_title')}}">
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label> Keyword <span style="color: red";> * </span> </label>
<input type="text" class="form-control" id="inputPassword3" name="keyword" value="{{old('keyword')}}" required>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label>Seo Description </label>
<textarea class="summernote_class" name="seo_description">{{old('seo_description')}}</textarea>
{{-- <input type="text" class="form-control" id="inputPassword3" name="seo_description" >--}}
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label>Meta Keyword</label>
<textarea class="summernote_class" name="meta_keyword" >{{old('meta_keyword')}}</textarea>
</div>
</div>
</div>
<div class="row" id="point_dom">
<div class="col-md-6 rel-close" id="point_row_1">
<div class="dom-box">
<div class="add-points card">
<div class="form-group" id="point_g_1" >
<!-- <label for=""> Point Title <span style="color: red";> * </span></label> <br> -->
<!-- <input type="text" name="point_title" id="title1" placeholder="Title"> <br> -->
<div id="point1" class="point1" >
<label for="">Points <span style="color: red";> * </span> </label> <br>
<input type="text" class="point" name="points[]" placeholder="Points"> <br>
<button class="close-point" onclick="deletePoint(1)" type="button"><i class="fa fa-trash" aria-hidden="true"></i></button>
</div>
</div>
<button type="button" class="add-point-btn btn btn-primary" onclick="getPoint(1)">Add Points</button>
</div>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label>Status <span style="color: red";> * </span> </label>
<select name="status" class="form-control" id="type" required>
<option value="" selected disabled>Please select Status</option>
@foreach(config('custom.status') as $in => $val)
<option value="{{$in}}" {{(old('status')==$in) ? 'selected':''}}>{{$val}}</option>
@endforeach
</select>
</div>
</div>
</div>
<div class="form-group row create-button">
<div class="col-sm-10 col-md-12">
<button type="submit" class="btn btn-primary">Create</button>
</div>
</div>
{!! Form::close() !!}
</div>
</div>
</div>
</section>
</div>
@endsection
@section('script')
<script>
$(document).ready(function() {
$('.summernote_class').summernote()
})
var point_count = 1;
function getPoint(count){
point_count = point_count +1;
debugger;
var html = '<div id="point'+point_count+'" class="point1">'+
'<input type="text" class="point" name="points[]" placeholder="Points"> <br>'+
'<button type="button" class="close-point" onclick="deletePoint('+point_count+')"><i class="fa fa-trash" aria-hidden="true"></i></button>'+
'</div>';
$('#point_g_1').append(html);
}
function deletePoint(count){
if($('.point').length > 1){
$('#point'+count).remove();
}
}
</script>
@endsection

@ -1,203 +0,0 @@
@extends('admin.layouts.app')
@section('content')
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1>Career</h1>
</div>
</div>
</div><!-- /.container-fluid -->
</section>
<!-- Main content -->
<section class="content">
<div class="container-fluid">
<!-- SELECT2 EXAMPLE -->
<div class="card card-default">
<div class="card-header">
<h3 class="card-title">Edit Career</h3>
<a href="{{url('admin/careers')}}" class="back-button">Back</a>
</div>
<div class="card-body">
@include('success.success')
@include('errors.error')
{!! Form::open(['url' => '/admin/careers/'.$about_us->id, 'class' => 'form-horizontal', 'method'=> 'POST','files' => true]) !!}
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label>Image</label>
<input type="file" class="form-control" name="image" >
<br>
<span>
<a href="{{url($about_us->image)}}" target="_blank">
<img src="{{url($about_us->image)}}" alt="" style="width: 100px">
</a>
</span>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label> Title <span style="color: red";> * </span> </label>
<input type="text" class="form-control" id="inputPassword3" name="title" value="{{$about_us->title}}" required>
</div>
</div>
<div class="col-md-6" >
<div class="form-group" >
<label>Sub Title <span style="color: red";> * </span></label>
<textarea name="sub_title" class="summernote_class" rows="5" required style="height: 658px;" >{{$about_us->sub_title}}</textarea>
</div>
</div>
<div class="col-md-6" >
<div class="form-group" >
<label>Point Title <span style="color: red";> * </span> </label>
<textarea name="point_title" class="summernote_class" rows="5" required style="height: 658px;" >{{$about_us->point_title}}
</textarea>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label>Seo Title</label>
<input type="text" class="form-control" id="inputPassword3" name="seo_title" value="{{$about_us->seo_title}}">
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label> Keyword <span style="color: red";> * </span> </label>
<input type="text" class="form-control" id="inputPassword3" name="keyword" value="{{$about_us->keyword}}">
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label>Seo Description</label>
<textarea class="summernote_class" name="seo_description">{{$about_us->seo_description}}</textarea>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label>Meta Keyword</label>
<textarea class="summernote_class" name="meta_keyword" >{{$about_us->meta_keyword}}</textarea>
</div>
</div>
</div>
@if($about_us->career_points->count() > 0)
<div class="row" id="point_dom">
<div class="col-md-6 rel-close" id="point_row_1">
<div class="dom-box">
<div class="add-points card">
<div class="form-group" id="point_g_1" >
<!-- <label for="">Point Title <span style="color: red";> * </span> </label> <br> -->
<!-- <input type="text" name="point_title" id="title1" placeholder="title" value="{{$about_us->point_title}}"> <br> -->
<label for="">Points <span style="color: red";> * </span> </label>
<br>
@foreach($about_us->career_points as $point)
<div id="point_old{{$point->id}}" class="point1" >
<input type="text" class="point" name="points[]" placeholder="Point" value="{{$point->point}}"> <br>
<input type="hidden" name="point_old_id[]" placeholder="points" value="{{$point->id}}"> <br>
<button class="close-point" onclick="deletePointPermanently({{$point->id}})" type="button"><i class="fa fa-trash" aria-hidden="true"></i></button>
</div>
@endforeach
</div>
<button type="button" class="add-point-btn btn btn-primary" onclick="getPoint(1)">Add Points</button>
</div>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<label>Status <span style="color: red";> * </span> </label>
<select name="status" class="form-control" id="type" required>
<option value="" selected disabled>Please select Status</option>
@foreach(config('custom.status') as $in => $val)
<option value="{{$in}}" {{($about_us->status ==$in) ? 'selected':''}}>{{$val}}</option>
@endforeach
</select>
</div>
</div>
</div>
@endif
<div class="form-group row">
<div class="col-sm-10">
<button type="submit" class="btn btn-primary">Update</button>
</div>
</div>
{!! Form::close() !!}
</div>
</div>
</div>
</section>
</div>
@endsection
@section('script')
<script>
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
$(document).ready(function() {
$('.summernote_class').summernote()
})
var point_count = 1;
function getPoint(count){
point_count = point_count +1;
var html = '<div id="point'+point_count+'" class="point1">'+
'<input type="text" class="point" name="points[]" placeholder="Point"> <br>'+
'<button type="button" class="close-point" onclick="deletePoint('+point_count+')"><i class="fa fa-trash" aria-hidden="true"></i></button>'+
'</div>';
$('#point_g_1').append(html);
}
function deletePoint(count){
if($('.point').length > 1){
$('#point'+count).remove();
}
}
function deletePointPermanently(id){
if($('.point').length > 1){
if (confirm("Are you sure Delete?")) {
$.ajax({
/* the route pointing to the post function */
type: 'GET',
url: Laravel.url +"/admin/blog_point/"+id,
dataType: 'json',
processData: false, // tell jQuery not to process the data
contentType: false,
/* remind that 'data' is the response of the AjaxController */
success: function (data) {
$('#point_old'+data.blog_point_id).remove();
},
error: function(error) {
}
});
}
return false;
}
}
</script>
@endsection

@ -1,135 +0,0 @@
@extends('admin.layouts.app')
@section('content')
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
</div>
</div>
</div><!-- /.container-fluid -->
</section>
<!-- Main content -->
<section class="content">
<div class="container-fluid">
<!-- SELECT2 EXAMPLE -->
<div class="card card-default">
<div class="card-header">
<h3 class="card-title">Referral</h3>
<a href="{{url('admin/referrals')}}" class="btn btn-green back-button active" role="button" aria-pressed="true">List</a>
</div>
<div class="card-body">
@include('success.success')
@include('errors.error')
<div class="row">
<div class="col-md-12">
<div class="col-md-12">
<label for="service_name" style="font-weight: bold; font-size: 20px; color: #DD6227">Participant Details</label></br>
<ul class="contact-info">
<li class="d-flex">
<span>Full Name:</span>
<span>{{$referral->name}}</span>
</li>
<li class="d-flex">
<span>Gender:</span>
<span>@if($referral->gender == '1') Male @elseif($referral->gender == '2') Female @else Other @endif</span>
</li>
<li class="d-flex">
<span>Email:</span>
<span>{{$referral->email}}</span>
</li>
<li class="d-flex">
<span>Date of Birth:</span>
<span>{{$referral->dob}}</span>
</li>
<li class="d-flex">
<span>Phone:</span>
<span>{{$referral->mobile_no}}</span>
</li>
</ul>
</div>
<div class="col-md-12 mt-4">
<label for="service_name" style="font-weight: bold; font-size: 20px; color: #DD6227">Participant Address</label></br>
<ul class="contact-info">
<li class="d-flex">
<span>Suburb:</span>
<span>{{$referral->suburb}}</span>
</li>
<li class="d-flex">
<span>State/Region:</span>
<span>{{$referral->state_name}}</span>
</li>
<li class="d-flex">
<span>Postal Code:</span>
<span>{{$referral->postalcode}}</span>
</li>
</ul>
</div>
@if($referral->is_ndis == '1')
<div class="col-md-12 mt-4" >
<label for="service_name" style="font-weight: bold; font-size: 20px; color: #DD6227">NDIS Details</label></br>
<ul class="contact-info">
<li class="d-flex">
<span>NDIS Number:</span>
<span>{{$referral->ndis_number}}</span>
</li>
<li class="d-flex">
<span>NDIS Expiry Date:</span>
<span>{{$referral->ndis_expiry_date}}</span>
</li>
<li class="d-flex">
<span>NDIS Plan:</span>
<span>{{config('custom.ndis_plan')[$referral->ndis_plan]}}</span>
</li>
</ul>
</div>
@endif
<div class="col-md-12 mt-4">
<label for="service_name" style="font-weight: bold; font-size: 20px; color: #DD6227">Service Details</label></br>
<ul class="contact-info">
<li class="d-flex">
<span>Sevices:</span>
<span>
@foreach($referral->referral_services as $service)
{{App\Models\Service::find($service->service_id)->name}}<br />
@endforeach
</span>
</li>
<li class="d-flex">
<span>Details: </span>
<span>{{$referral->services_details}}</span>
</li>
</ul>
</div>
<div class="col-md-12 mt-4">
<label for="service_name" style="font-weight: bold; font-size: 20px; color: #DD6227">Referrer Details</label></br>
<ul class="contact-info">
<li class="d-flex">
<span>Referrer Full Name:</span>
<span>{{$referral->referrer_full_name}}</span>
</li>
<li class="d-flex">
<span>Referrer Contact Number:</span>
<span>{{$referral->referrer_contact_no}}</span>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</div>
@endsection

@ -20,8 +20,8 @@
<div class="col-sm-12 col-md-4 d-flex align-items-start"> <div class="col-sm-12 col-md-4 d-flex align-items-start">
<div class="nav appointment-pills flex-column nav-pills me-3" id="v-pills-tab" role="tablist" aria-orientation="vertical"> <div class="nav appointment-pills flex-column nav-pills me-3" id="v-pills-tab" role="tablist" aria-orientation="vertical">
<button class="btn-appointment nav-link active" id="v-pills-education-tab" data-type = "1" data-bs-toggle="pill" data-bs-target="#v-pills-education" type="button" role="tab" aria-controls="v-pills-home" aria-selected="true"> <button class="btn-appointment nav-link active" id="v-pills-education-tab" data-type = "1" data-bs-toggle="pill" data-bs-target="#v-pills-education" type="button" role="tab" aria-controls="v-pills-home" aria-selected="true">
<i class="appointment-card-img"><img src="{{url('frontend/icons/visa-approved.svg')}}" class="img-fluid" alt=""></i> <i class="appointment-card-img"><img src="{{url('frontend/icons/visa-approved.svg')}}" class="img-fluid" alt=""></i>
<h2>Education Services</h2> <h2>Education Services</h2>
</button> </button>
<button class="btn-appointment nav-link" id="v-pills-visa-tab" data-type = "2" data-bs-toggle="pill" data-bs-target="#v-pills-visa" type="button" role="tab" aria-controls="v-pills-visa" aria-selected="false"> <button class="btn-appointment nav-link" id="v-pills-visa-tab" data-type = "2" data-bs-toggle="pill" data-bs-target="#v-pills-visa" type="button" role="tab" aria-controls="v-pills-visa" aria-selected="false">
<i class="appointment-card-img"><img src="{{url('frontend/icons/visa-approved.svg')}}" class="img-fluid" alt=""></i> <i class="appointment-card-img"><img src="{{url('frontend/icons/visa-approved.svg')}}" class="img-fluid" alt=""></i>
@ -42,7 +42,7 @@
<h3>Education services | 30 mins</h3> <h3>Education services | 30 mins</h3>
<div id="1-calendar-apppearance"></div> <div id="1-calendar-apppearance"></div>
<div id='1-available-dates' class="available-dates"></div> <div id='1-available-dates' class="available-dates"></div>
</div> </div>
</div> </div>
<!-- Start of Visa Block --> <!-- Start of Visa Block -->
@ -74,7 +74,7 @@
</div> </div>
<div class="modal-body"> <div class="modal-body">
<div class="book-modal-info"> <div class="book-modal-info">
<p>You are about to book your appointment for <span id = "booking_service"></span> at date &nbsp;<span id = "booking_date"></span><span class="time" id = "start_time"></span> to <span id = "end_time"></span></p> <p>You are about to book appointment for <span id = "booking_service"></span> at date &nbsp;<span id = "booking_date"></span><span class="time" id = "start_time"></span> to <span id = "end_time"></span></p>
</div> </div>
<!-- Form with the fields name, email, phone, and notes --> <!-- Form with the fields name, email, phone, and notes -->
<form id ="appointment-form"> <form id ="appointment-form">
@ -117,8 +117,8 @@
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
} }
}); });
$('#v-pills-education-tab').click(function (e) { $('#v-pills-education-tab').click(function (e) {
var id = $(this).data("type"); var id = $(this).data("type");
var $calender = $("#"+id+"-calendar-apppearance"); var $calender = $("#"+id+"-calendar-apppearance");
@ -144,7 +144,7 @@
var events = []; var events = [];
appointments_list.forEach(function(list) { appointments_list.forEach(function(list) {
events.push({ events.push({
date: list.date, date: list.date,
classname: "clickable event-clickable" classname: "clickable event-clickable"
}); });
@ -160,9 +160,9 @@
prev: '<i class="fas fa-chevron-circle-left"></i>', prev: '<i class="fas fa-chevron-circle-left"></i>',
next: '<i class="fas fa-chevron-circle-right"></i>' next: '<i class="fas fa-chevron-circle-right"></i>'
}, },
events:events events:events
}); });
let allBtns = document.querySelectorAll("td") let allBtns = document.querySelectorAll("td")
@ -192,13 +192,13 @@
allBtns.forEach(function(el){ allBtns.forEach(function(el){
el.classList.remove("active"); el.classList.remove("active");
}); });
// Add the class on clicked one // Add the class on clicked one
e.target.classList.add("active"); e.target.classList.add("active");
}) })
} }
function dispalyAppointments(appointments,formated_date,id) { function dispalyAppointments(appointments,formated_date,id) {
//display available appointments in timeslot //display available appointments in timeslot
if (appointments.length > 0) { if (appointments.length > 0) {
@ -233,12 +233,12 @@
$("#modal").modal("show"); $("#modal").modal("show");
}); });
} }
else{ else{
$('#'+id+'-available-dates').html("No appointments available for " + "<b>"+formated_date+"</b>"); $('#'+id+'-available-dates').html("No appointments available for " + "<b>"+formated_date+"</b>");
} }
} }
function submitAppointment(event){ function submitAppointment(event){
@ -251,19 +251,19 @@
$("#modal").modal("hide"); $("#modal").modal("hide");
// var isAmStart = response.appointment.start_time < '12:00:00'; // var isAmStart = response.appointment.start_time < '12:00:00';
// var isAmEnd = response.appointment.end_time < '12:00:00'; // var isAmEnd = response.appointment.end_time < '12:00:00';
Swal.fire({ Swal.fire({
title: 'Booked!!', title: 'Booked!!',
text: 'Appointment Successfully Booked for '+response.appointment_detail['name']+' at '+response.formated_date +'('+response.appointment['start_time']+' - ' + response.appointment['end_time']+' )', text: 'Appointment Successfully Booked for '+response.appointment_detail['name']+' at '+response.formated_date +'('+response.appointment['start_time']+' - ' + response.appointment['end_time']+' )',
icon: 'success' icon: 'success'
}).then(function(){ }).then(function(){
location.reload(); location.reload();
} }
) )
} }
}); });
} }
</script> </script>
@endsection @endsection

@ -37,7 +37,7 @@
@if(!is_null($enquiry->stream)) @if(!is_null($enquiry->stream))
<b>Stream:</b> {{$enquiry->stream}}<br /><br /> <b>Stream:</b> {{$enquiry->stream}}<br /><br />
@endif @endif
<b>% or GPA</b> {{$enquiry->gpa}}<br /><br /> <b>% or GPA:</b> {{$enquiry->gpa}}<br /><br />
<b>Graduated year:</b> {{$enquiry->graduate_year}}<br /><br /> <b>Graduated year:</b> {{$enquiry->graduate_year}}<br /><br />
<b>Gap:</b> {{$enquiry->gap}}<br /><br /> <b>Gap:</b> {{$enquiry->gap}}<br /><br />
<b>Current Status:</b> {{$enquiry->current_status}}<br /><br /> <b>Current Status:</b> {{$enquiry->current_status}}<br /><br />

@ -254,8 +254,9 @@ Route::group(['middleware' => ['auth']], function () {
Route::get('contacts', [ContactUsController::class, 'index']); Route::get('contacts', [ContactUsController::class, 'index']);
Route::get('contacts/{id}/view', [ContactUsController::class, 'show']); Route::get('contacts/{id}/view', [ContactUsController::class, 'show']);
Route::get('enrollments', [EnrollmentController::class, 'index']); Route::get('enquiries', [EnquiryController::class, 'index']);
Route::get('enrollments/{id}/view', [EnrollmentController::class, 'show']); Route::get('enquiries/{id}/view', [EnquiryController::class, 'show']);
Route::get('enquiries/{id}/delete', [EnquiryController::class, 'delete']);
Route::get('teams', [TeamController::class, 'index']); Route::get('teams', [TeamController::class, 'index']);
Route::get('teams/create', [TeamController::class, 'create']); Route::get('teams/create', [TeamController::class, 'create']);

Loading…
Cancel
Save