enquiry-backend

et#36
Mahesh Sharma 2 years ago
parent 948b076c03
commit 338d015069
  1. 2
      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. 51
      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. 32
      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. 2
      resources/views/appointment.blade.php
  16. 2
      resources/views/enquiry_mail.blade.php
  17. 5
      routes/web.php

@ -24,7 +24,7 @@ class AppointmentController extends Controller
$key = \request('status');
$appointments = $appointments->where('status',$key);
}
$appointments = $appointments->paginate(20);
$appointments = $appointments->paginate(30);
return view($this->view.'index',compact('appointments'));
}

@ -7,6 +7,9 @@ use App\Models\Country;
use App\Models\Enquiry;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Session;
class EnquiryController extends Controller
{
@ -42,4 +45,33 @@ class EnquiryController extends Controller
dispatch(new SendEnquiryMailJob($enquiry));
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="col-md-4">
<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 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="col-md-12">
<div class="card">
<div class="card-header">
<h3 class="card-title">Referrals</h3>
<div class="card-header d-flex flex-column">
<h3 class="card-title">Enquiries</h3>
<div class="card-tools">
{{-- <a class="btn btn-green" href="{{url('admin/projects/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="col-md-4">
<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 class="col-md-4">
<div class="input-group input-group-sm mb-3 table-search w-100">
<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>
<input type="search" name="email" class="form-control ds-input" placeholder="Search by email" aria-label="Small" aria-describedby="inputGroup-sizing-sm" onchange="filterList()">
</div>
</div>
</div>
@ -53,40 +50,36 @@
<thead>
<tr>
<th style="width: 10px">S.N.</th>
<th class="text-center">Participant Name</th>
<th class="text-center">Mobile</th>
<th class="text-center">Suburb</th>
<th class="text-center">Full Name</th>
<th class="text-center">Birth Date</th>
<th class="text-center">Email</th>
<th class="text-center">Phone</th>
<th class="text-center">Action</th>
</tr>
</thead>
<tbody>
@foreach($settings as $setting)
@foreach($enquiries as $enquiry)
<tr>
<th scope="row">{{$loop->iteration}}</th>
<td class="text-center">{{$setting->name}}</td>
<td class="text-center">{{$setting->mobile_no}}</td>
<td class="text-center">{{$setting->suburb}}</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="text-center">{{$enquiry->first_name . ' ' .(!is_null($enquiry->middle_name) ? $enquiry->middle_name .' ' :''). $enquiry->last_name}}</td>
<td class="text-center">{{$enquiry->dob}}</td>
<td class="text-center">{{$enquiry->email}}</td>
<td class="text-center">{{$enquiry->phone}}</td>
<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>
</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>
</tr>
@endforeach
</tbody>
</table>
<div class="pagination-default" style="margin-top: 30px;">
{!! $settings->links() !!}
<div class="pagination-default" style="margin-top: 10px;">
{!! $enquiries->links() !!}
</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

@ -102,9 +102,6 @@
</a>
</li>
<li class="nav-item">
<a href="{{url('admin/about_us')}}" class="nav-link {{(Request::segment(2) == 'about_us') ? 'active' : ''}}">
<i class="fa-solid fa-users"></i>
@ -157,38 +154,23 @@
</a>
</li>
<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>
<p>
Contact/Enquiry
Contact
</p>
</a>
</li>
<!-- <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>
<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>
<p>
Seo Titles
Enquiries
</p>
</a>
</li> -->
</li>
</ul>
</nav>
<!-- /.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

@ -74,7 +74,7 @@
</div>
<div class="modal-body">
<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>
<!-- Form with the fields name, email, phone, and notes -->
<form id ="appointment-form">

@ -37,7 +37,7 @@
@if(!is_null($enquiry->stream))
<b>Stream:</b> {{$enquiry->stream}}<br /><br />
@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>Gap:</b> {{$enquiry->gap}}<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/{id}/view', [ContactUsController::class, 'show']);
Route::get('enrollments', [EnrollmentController::class, 'index']);
Route::get('enrollments/{id}/view', [EnrollmentController::class, 'show']);
Route::get('enquiries', [EnquiryController::class, 'index']);
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/create', [TeamController::class, 'create']);

Loading…
Cancel
Save