about-testimonial-page

et#6
Mahesh Sharma 2 years ago
parent b0b1b98da7
commit 5fc953dd42
  1. 14
      app/Http/Controllers/AboutUsController.php
  2. 26
      app/Http/Controllers/Admin/AboutUsController.php
  3. 59
      app/Http/Controllers/Admin/PageController.php
  4. 2
      app/Http/Controllers/Admin/TestimonialController.php
  5. 4
      app/Http/Controllers/HomeController.php
  6. 4
      app/Http/Controllers/StudyAbroadController.php
  7. 2
      app/Models/Page.php
  8. 1
      composer.json
  9. 50
      composer.lock
  10. 2
      config/custom.php
  11. 2
      database/migrations/2023_01_28_112013_add_bottom_description_to_about_us_table.php
  12. 37
      database/migrations/2023_01_30_094030_create_pages_table.php
  13. BIN
      public/265f9b86f1f2173dfba9df0c640c375f.png
  14. BIN
      public/444e7c4daeb60e097b604ecd0b82e72e.png
  15. BIN
      public/6258765774afe8ab2415e5132328ceb8.png
  16. BIN
      public/cd3ab551b8ba7b6b297a2aa9b7535059.png
  17. BIN
      public/fac5889d788c0726512ab7c5cdbd646b.png
  18. BIN
      public/images/testimonial/2023/01/30/08d40a87cc46342a5c3d128495be0a56.png
  19. BIN
      public/images/testimonial/2023/01/30/57bb88fa0d37d0e135588bdc228b50f7.png
  20. BIN
      public/images/testimonial/2023/01/30/658c37d4ece1f195cff777fb1990d795.png
  21. BIN
      public/images/testimonial/2023/01/30/aa1f95d63ec109d4951f893ed48e0ac2.png
  22. 20
      resources/views/about.blade.php
  23. 14
      resources/views/admin/about_us/create.blade.php
  24. 10
      resources/views/admin/about_us/edit.blade.php
  25. 2
      resources/views/admin/layouts/app.blade.php
  26. 4
      resources/views/admin/layouts/menubar.blade.php
  27. 73
      resources/views/admin/page/create.blade.php
  28. 0
      resources/views/admin/page/edit.blade.php
  29. 14
      resources/views/admin/page/index.blade.php
  30. 0
      resources/views/admin/page/show.blade.php
  31. 10
      resources/views/admin/slider/create.blade.php
  32. 10
      resources/views/admin/slider/edit.blade.php
  33. 13
      resources/views/admin/testimonial/create.blade.php
  34. 11
      resources/views/admin/testimonial/edit.blade.php
  35. 4
      resources/views/layout/app.blade.php
  36. 11
      resources/views/study-abroad.blade.php
  37. 8
      resources/views/visa.blade.php
  38. 16
      resources/views/welcome.blade.php
  39. 25
      routes/web.php

@ -0,0 +1,14 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\AboutUs;
class AboutUsController extends Controller
{
public function index(){
$about = AboutUs::where('status',true)->first();
return view('about',compact('about'));
}
}

@ -54,6 +54,7 @@ class AboutUsController extends Controller
*/ */
public function store(Request $request) public function store(Request $request)
{ {
$this->validate(\request(),[ $this->validate(\request(),[
@ -147,6 +148,7 @@ class AboutUsController extends Controller
*/ */
public function update(Request $request, $id) public function update(Request $request, $id)
{ {
dd($request->all());
$setting=AboutUs::findorfail($id); $setting=AboutUs::findorfail($id);
$this->validate(\request(),[ $this->validate(\request(),[
@ -183,18 +185,18 @@ class AboutUsController extends Controller
// $requestData = $request->all(); // $requestData = $request->all();
// $setting->fill($requestData); // $setting->fill($requestData);
if($setting->update()){ if($setting->update()){
$points = $request->points; // $points = $request->points;
if((!empty($points)) && ($points[0] != null)){ // if((!empty($points)) && ($points[0] != null)){
$about_us_point = $setting->about_us_points(); // $about_us_point = $setting->about_us_points();
$about_us_point->delete(); // $about_us_point->delete();
foreach($points as $point){ // foreach($points as $point){
$about_us_point = new AboutUsPoint(); // $about_us_point = new AboutUsPoint();
$about_us_point->about_us_id = $id; // $about_us_point->about_us_id = $id;
$about_us_point->point = $point; // $about_us_point->point = $point;
$about_us_point->save(); // $about_us_point->save();
} // }
} // }
Session::flash('success','About Us has been Updated!'); Session::flash('success','About Us has been Updated!');
return redirect($this->redirect); return redirect($this->redirect);
} }

@ -4,17 +4,17 @@ namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller; use App\Http\Controllers\Controller;
use Illuminate\Http\Request; use Illuminate\Http\Request;
use App\Models\Partner; use App\Models\Page;
use App\Models\User; use App\Models\User;
use Illuminate\Support\Facades\Session; use Illuminate\Support\Facades\Session;
class PartnerController extends Controller class PageController extends Controller
{ {
protected $view = 'admin.partner.'; protected $view = 'admin.page.';
protected $redirect = 'admin/partners'; protected $redirect = 'admin/pages';
public function index() public function index()
{ {
$settings = Partner::orderBy('id','DESC'); $settings = Page::orderBy('id','DESC');
// if(\request('title')){ // if(\request('title')){
// $key = \request('title1'); // $key = \request('title1');
// $settings = $settings->where('title1','like','%'.$key.'%'); // $settings = $settings->where('title1','like','%'.$key.'%');
@ -38,57 +38,58 @@ class PartnerController extends Controller
$this->validate(\request(), [ $this->validate(\request(), [
// 'title' => 'required', 'title' => 'required',
'status' => 'required', 'status' => 'required',
'image' => 'required|file|mimes:jpeg,png,jpg' 'banner_image' => 'file|mimes:jpeg,png,jpg'
]); ]);
if($request->hasFile('image')){ if($request->hasFile('banner_image')){
$extension = \request()->file('image')->getClientOriginalExtension(); $extension = \request()->file('banner_image')->getClientOriginalExtension();
$image_folder_type = array_search('partner',config('custom.image_folders')); //for image saved in folder $image_folder_type = array_search('page',config('custom.image_folders')); //for image saved in folder
$count = rand(100,999); $count = rand(100,999);
$out_put_path = User::save_image(\request('image'),$extension,$count,$image_folder_type); $out_put_path = User::save_image(\request('banner_image'),$extension,$count,$image_folder_type);
$image_path1 = $out_put_path[0]; $image_path1 = $out_put_path[0];
} }
$requestData = $request->all(); $requestData = $request->all();
if(isset($image_path1)){ if(isset($image_path1)){
$requestData['image'] = $image_path1; $requestData['banner_image'] = $image_path1;
} }
// $requestData['slug'] = Setting::create_slug($requestData['keyword']); // $requestData['slug'] = Setting::create_slug($requestData['keyword']);
$setting = Partner::create($requestData); $setting = Page::create($requestData);
Session::flash('success','Partner successfully created'); Session::flash('success','Page successfully created');
return redirect($this->redirect); return redirect($this->redirect);
} }
public function edit($id) public function edit($id)
{ {
$setting = Partner::findorfail($id); $setting = Page::findorfail($id);
return view($this->view.'edit',compact('setting')); return view($this->view.'edit',compact('setting'));
} }
public function update(Request $request, $id){ public function update(Request $request, $id){
$setting =Partner::findorfail($id); $setting =Page::findorfail($id);
$this->validate(\request(), [ $this->validate(\request(), [
// 'name' => 'required', 'title' => 'required',
'status' => 'required', 'status' => 'required',
'image' => 'file|mimes:jpeg,png,jpg,pdf'
]); ]);
if(\request('image')){ if(\request('image')){
$this->validate(\request(),[ $this->validate(\request(),[
'image' => 'file|mimes:jpeg,png,jpg,pdf' 'banner_image' => 'file|mimes:jpeg,png,jpg'
]); ]);
if($request->hasFile('image')){ if($request->hasFile('banner_image')){
$extension = \request()->file('image')->getClientOriginalExtension(); $extension = \request()->file('banner_image')->getClientOriginalExtension();
$image_folder_type = array_search('partner',config('custom.image_folders')); //for image saved in folder $image_folder_type = array_search('page',config('custom.image_folders')); //for image saved in folder
$count = rand(100,999); $count = rand(100,999);
$out_put_path = User::save_image(\request('image'),$extension,$count,$image_folder_type); $out_put_path = User::save_image(\request('banner_image'),$extension,$count,$image_folder_type);
$image_path1 = $out_put_path[0]; $image_path1 = $out_put_path[0];
if (is_file(public_path().'/'.$setting->image) && file_exists(public_path().'/'.$setting->image)){ if (is_file(public_path().'/'.$setting->banner_image) && file_exists(public_path().'/'.$setting->banner_image)){
unlink(public_path().'/'.$setting->image); unlink(public_path().'/'.$setting->banner_image);
} }
} }
} }
@ -97,25 +98,25 @@ class PartnerController extends Controller
$requestData = $request->all(); $requestData = $request->all();
// $requestData['slug'] = Setting::create_slug($requestData['keyword']); // $requestData['slug'] = Setting::create_slug($requestData['keyword']);
if(isset($image_path1)){ if(isset($image_path1)){
$requestData['image'] = $image_path1; $requestData['banner_image'] = $image_path1;
} }
$setting->fill($requestData); $setting->fill($requestData);
$setting->save(); $setting->save();
Session::flash('success','Partner succesffuly updated.'); Session::flash('success','Page succesffuly updated.');
return redirect($this->redirect); return redirect($this->redirect);
} }
public function delete($id){ public function delete($id){
$setting=Partner::findorfail($id); $setting=Page::findorfail($id);
if($setting->delete()){ if($setting->delete()){
if (is_file(public_path().'/'.$setting->image) && file_exists(public_path().'/'.$setting->image)){ if (is_file(public_path().'/'.$setting->image) && file_exists(public_path().'/'.$setting->image)){
unlink(public_path().'/'.$setting->image); unlink(public_path().'/'.$setting->image);
} }
} }
Session::flash('success','Partner is deleted !'); Session::flash('success','Page is deleted !');
return redirect($this->redirect); return redirect($this->redirect);
} }
} }

@ -31,7 +31,7 @@ class TestimonialController extends Controller
{ {
$this->validate(\request(),[ $this->validate(\request(),[
'heading' =>'required', // 'heading' =>'required',
// 'title' =>'required', // 'title' =>'required',
'image' =>'required|file|mimes:jpeg,png,jpg,pdf', 'image' =>'required|file|mimes:jpeg,png,jpg,pdf',
'review' =>'required', 'review' =>'required',

@ -4,11 +4,13 @@ namespace App\Http\Controllers;
use Illuminate\Http\Request; use Illuminate\Http\Request;
use App\Models\Slider; use App\Models\Slider;
use App\Models\Testimonial;
class HomeController extends Controller class HomeController extends Controller
{ {
public function index(){ public function index(){
$sliders = Slider::where('status',1)->get(); $sliders = Slider::where('status',1)->get();
return view('welcome',compact('sliders')); $testimonials = Testimonial::where('status',1)->get();
return view('welcome',compact('sliders','testimonials'));
} }
} }

@ -4,12 +4,14 @@ namespace App\Http\Controllers;
use Illuminate\Http\Request; use Illuminate\Http\Request;
use App\Models\Service; use App\Models\Service;
use App\Models\Page;
class StudyAbroadController extends Controller class StudyAbroadController extends Controller
{ {
public function study_abroad(){ public function study_abroad(){
$page = Page::where(['title' => 'Study Abroad','status' => 1])->first();
$services = Service::with('service_sections')->get(); $services = Service::with('service_sections')->get();
return view('study-abroad',compact('services')); return view('study-abroad',compact('services','page'));
} }
public function details($slug){ public function details($slug){

@ -5,7 +5,7 @@ namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Model;
class Partner extends Model class Page extends Model
{ {
use HasFactory; use HasFactory;

@ -6,6 +6,7 @@
"license": "MIT", "license": "MIT",
"require": { "require": {
"php": "^8.0.2", "php": "^8.0.2",
"ckeditor/ckeditor": "^4.20",
"guzzlehttp/guzzle": "^7.2", "guzzlehttp/guzzle": "^7.2",
"laravel/framework": "^9.19", "laravel/framework": "^9.19",
"laravel/sanctum": "^3.0", "laravel/sanctum": "^3.0",

50
composer.lock generated

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "f70c81adf2990f185a8632535bd08631", "content-hash": "dee6185e5e08740c0389af948f15bb03",
"packages": [ "packages": [
{ {
"name": "brick/math", "name": "brick/math",
@ -62,6 +62,54 @@
], ],
"time": "2022-08-10T22:54:19+00:00" "time": "2022-08-10T22:54:19+00:00"
}, },
{
"name": "ckeditor/ckeditor",
"version": "4.20.1",
"source": {
"type": "git",
"url": "https://github.com/ckeditor/ckeditor4-releases.git",
"reference": "d519387a9448cbb66a5091361ddf665fd8728743"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/ckeditor/ckeditor4-releases/zipball/d519387a9448cbb66a5091361ddf665fd8728743",
"reference": "d519387a9448cbb66a5091361ddf665fd8728743",
"shasum": ""
},
"type": "library",
"notification-url": "https://packagist.org/downloads/",
"license": [
"GPL-2.0+",
"LGPL-2.1+",
"MPL-1.1+"
],
"authors": [
{
"name": "CKSource",
"homepage": "https://cksource.com"
}
],
"description": "JavaScript WYSIWYG web text editor.",
"homepage": "https://ckeditor.com/ckeditor-4/",
"keywords": [
"CKEditor",
"ckeditor4",
"editor",
"fckeditor",
"html",
"javascript",
"richtext",
"text",
"wysiwyg"
],
"support": {
"forum": "https://stackoverflow.com/tags/ckeditor",
"issues": "https://github.com/ckeditor/ckeditor4/issues",
"source": "https://github.com/ckeditor/ckeditor4",
"wiki": "https://ckeditor.com/docs/ckeditor4/latest/"
},
"time": "2022-11-30T15:28:41+00:00"
},
{ {
"name": "dflydev/dot-access-data", "name": "dflydev/dot-access-data",
"version": "v3.0.2", "version": "v3.0.2",

@ -50,7 +50,7 @@ return [
'9' => 'testimonial', '9' => 'testimonial',
'10' => 'visa_service', '10' => 'visa_service',
'11'=>'applicant', '11'=>'applicant',
'12'=>'partner' '12'=>'page'
], ],
'course_types'=>[ 'course_types'=>[

@ -14,7 +14,7 @@ return new class extends Migration
public function up() public function up()
{ {
Schema::table('about_us', function (Blueprint $table) { Schema::table('about_us', function (Blueprint $table) {
$table->string('bottom_description')->nullable(); $table->longText('bottom_description')->nullable();
}); });
} }

@ -0,0 +1,37 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('pages', function (Blueprint $table) {
$table->id();
$table->string('banner_image')->nullable();
$table->string('title');
$table->string('sub_title')->nullable();
$table->longText('description')->nullable();
$table->longText('sub_description')->nullable();
$table->enum('status',['1','2']);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('pages');
}
};

Binary file not shown.

After

Width:  |  Height:  |  Size: 460 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 460 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 460 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 460 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

@ -11,34 +11,24 @@
@section('content') @section('content')
<section class="about-header-section"> <section class="about-header-section">
<div class="about-banner-header"> <div class="about-banner-header">
<h1>Making your <span>Dream</span> come true.</h1> {!!$about->description!!}
<p>As our services are power-packed with the best you can find,
your path to a bright future will be set in stone.
</p>
</div> </div>
<div class="about-banner-img"> <div class="about-banner-img">
<img src="{{url('frontend/images/about-banner.png')}}" class="img-fluid" alt=""> <img src="{{url('frontend/images/about-banner.png')}}" class="img-fluid" alt="">
</div> </div>
</section> </section>
<section class="overseas-section"> <section class="overseas-section">
<h1>Let’s plan your overseas career together</h1> {!!$about->sub_description!!}
<p>We provide honest, credible, and authentic counselling for studying or migrating to Australia.
At ET Education, you will meet a qualified circle of consultants offering access to our
global education partners.</p>
<div class="overseas-img"> <div class="overseas-img">
<img src="{{url('frontend/images/australia-map.png')}}" class="img-fluid" alt=""> <img src="{{url('frontend/images/australia-map.png')}}" class="img-fluid" alt="">
</div> </div>
</section> </section>
<section class="why-et"> <section class="why-et">
<div class="why-et-header"> <div class="why-et-header">
<h1>Why ET Education & Visa</h1> {!!$about->bottom_description!!}
<p>We provide honest, credible, and authentic counselling for studying or migrating to Australia.
At ET Education, you will meet a qualified circle of consultants offering access to our
global education partners.
</p>
</div> </div>
<div class="et-cards"> <div class="et-cards">
<div class="et-card"> <!-- <div class="et-card">
<div class="et-card-img"> <div class="et-card-img">
<img src="{{url('frontend/images/user.png')}}" class="img-fluid" alt=""> <img src="{{url('frontend/images/user.png')}}" class="img-fluid" alt="">
</div> </div>
@ -73,7 +63,7 @@
<h2>15+</h2> <h2>15+</h2>
<p>Registered Migration Agents</p> <p>Registered Migration Agents</p>
</div> </div>
</div> </div> -->
</div> </div>
</section> </section>
<section class="lets-chat-section"> <section class="lets-chat-section">

@ -39,19 +39,19 @@
<div class="col-md-12" > <div class="col-md-12" >
<div class="form-group" > <div class="form-group" >
<label>Top Description <span style="color: red";> * </span></label> <label>Top Description <span style="color: red";> * </span></label>
<textarea name="description" id="body" rows="5" required style="height: 658px;" >{{old('description')}}</textarea> <textarea name="description" id="body" rows="5" style="height: 658px;">{{old('description')}}</textarea>
</div> </div>
</div> </div>
<div class="col-md-12" > <div class="col-md-12" >
<div class="form-group" > <div class="form-group" >
<label>Middle Description <span style="color: red";> * </span></label> <label>Middle Description <span style="color: red";> * </span></label>
<textarea name="sub_description" id="body1" rows="5" required style="height: 658px;" >{{old('sub_description')}}</textarea> <textarea name="sub_description" id="body1" rows="5">{{old('sub_description')}}</textarea>
</div> </div>
</div> </div>
<div class="col-md-12" > <div class="col-md-12" >
<div class="form-group" > <div class="form-group" >
<label>Bottom Description <span style="color: red";> * </span> </label> <label>Bottom Description <span style="color: red";> * </span> </label>
<textarea name="bottom_description" id="body2" rows="5" required style="height: 658px;" >{{old('bottom_description')}} <textarea name="bottom_description" id="body2" rows="5" >{{old('bottom_description')}}
</textarea> </textarea>
</div> </div>
</div> </div>
@ -78,15 +78,9 @@
<div class="col-md-6"> <div class="col-md-6">
<div class="form-group"> <div class="form-group">
<label>Meta Keyword</label> <label>Meta Keyword</label>
<textarea id="body4" name="meta_keyword" >{{old('meta_keyword')}}</textarea> <textarea id="body4" name="meta_keyword">{{old('meta_keyword')}}</textarea>
</div> </div>
</div> </div>
</div>
<div class="col-md-6"> <div class="col-md-6">
<div class="form-group"> <div class="form-group">
<label>Status <span style="color: red";> * </span> </label> <label>Status <span style="color: red";> * </span> </label>

@ -44,21 +44,21 @@
<div class="col-md-12" > <div class="col-md-12" >
<div class="form-group" > <div class="form-group" >
<label>Top Description <span style="color: red";> * </span></label> <label>Top Description <span style="color: red";> * </span></label>
<textarea name="description" id="body1" rows="5" style="height: 658px;" >{{$about_us->description}} <textarea name="description" id="body" rows="5" style="height: 658px;" >{{$about_us->description}}
</textarea> </textarea>
</div> </div>
</div> </div>
<div class="col-md-12" > <div class="col-md-12" >
<div class="form-group" > <div class="form-group" >
<label>Middle Description <span style="color: red";> * </span> </label> <label>Middle Description <span style="color: red";> * </span> </label>
<textarea name="sub_description" id="body2" rows="5" style="height: 658px;" >{{$about_us->sub_description}} <textarea name="sub_description" id="body1" rows="5" style="height: 658px;" >{{$about_us->sub_description}}
</textarea> </textarea>
</div> </div>
</div> </div>
<div class="col-md-12" > <div class="col-md-12" >
<div class="form-group" > <div class="form-group" >
<label>Bottom Description <span style="color: red";> * </span> </label> <label>Bottom Description <span style="color: red";> * </span> </label>
<textarea name="bottom_description" id="body3" rows="5" required style="height: 658px;" >{{old('bottom_description')}} <textarea name="bottom_description" id="body2" rows="5" required style="height: 658px;" >{{$about_us->bottom_description}}
</textarea> </textarea>
</div> </div>
</div> </div>
@ -80,13 +80,13 @@
<div class="col-md-6"> <div class="col-md-6">
<div class="form-group"> <div class="form-group">
<label>Seo Description</label> <label>Seo Description</label>
<textarea id="body4" name="seo_description">{{$about_us->seo_description}}</textarea> <textarea id="body3" name="seo_description">{{$about_us->seo_description}}</textarea>
</div> </div>
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<div class="form-group"> <div class="form-group">
<label>Meta Keyword</label> <label>Meta Keyword</label>
<textarea id="body5" name="meta_keyword" >{{$about_us->meta_keyword}}</textarea> <textarea id="body4" name="meta_keyword" >{{$about_us->meta_keyword}}</textarea>
</div> </div>
</div> </div>

@ -35,6 +35,8 @@
{{-- <link rel="stylesheet" href="plugins/summernote/summernote-bs4.min.css">--}} {{-- <link rel="stylesheet" href="plugins/summernote/summernote-bs4.min.css">--}}
<!-- {!! Html::style('admin/plugins/summernote/summernote-bs4.min.css') !!} --> <!-- {!! Html::style('admin/plugins/summernote/summernote-bs4.min.css') !!} -->
{!! Html::style('admin/flatpickr/dist/flatpickr.min.css') !!} {!! Html::style('admin/flatpickr/dist/flatpickr.min.css') !!}
<!-- {!! Html::script('admin/plugins/ckeditor/ckeditor.js') !!} -->
<script src="{{ asset('admin/plugins/ckeditor/ckeditor.js') }}"></script>
<script src="https://cdn.ckeditor.com/ckeditor5/23.0.0/classic/ckeditor.js"></script> <script src="https://cdn.ckeditor.com/ckeditor5/23.0.0/classic/ckeditor.js"></script>
<!-- fontawesome link --> <!-- fontawesome link -->
<script src="https://kit.fontawesome.com/794cc97646.js" crossorigin="anonymous"></script> <script src="https://kit.fontawesome.com/794cc97646.js" crossorigin="anonymous"></script>

@ -115,10 +115,10 @@
</li> </li>
<li class="nav-item"> <li class="nav-item">
<a href="{{url('admin/partners')}}" class="nav-link {{(Request::segment(2) == 'partners') ? 'active' : ''}}"> <a href="{{url('admin/pages')}}" class="nav-link {{(Request::segment(2) == 'pages') ? 'active' : ''}}">
<i class="fa fa-quote-right" aria-hidden="true"></i> <i class="fa fa-quote-right" aria-hidden="true"></i>
<p> <p>
Partners Pages
</p> </p>
</a> </a>
</li> </li>

@ -1,5 +1,6 @@
@extends('admin.layouts.app') @extends('admin.layouts.app')
@section('content') @section('content')
<!-- Content Wrapper. Contains page content --> <!-- Content Wrapper. Contains page content -->
<div class="content-wrapper"> <div class="content-wrapper">
<!-- Content Header (Page header) --> <!-- Content Header (Page header) -->
@ -19,36 +20,48 @@
<!-- SELECT2 EXAMPLE --> <!-- SELECT2 EXAMPLE -->
<div class="card card-default"> <div class="card card-default">
<div class="card-header"> <div class="card-header">
<h3 class="card-title">Create Partner</h3> <h3 class="card-title">Create Page</h3>
<a href="{{url('admin/ndis_pricing')}}" class="back-button btn-green">List</a> <a href="{{url('admin/pages')}}" class="back-button btn-green">List</a>
</div> </div>
<div class="card-body"> <div class="card-body">
@include('success.success') @include('success.success')
@include('errors.error') @include('errors.error')
{!! Form::open(['url' => '/admin/partners', 'class' => 'form-horizontal', 'method'=> 'POST','files' => true]) !!} {!! Form::open(['url' => '/admin/pages', 'class' => 'form-horizontal', 'method'=> 'POST','files' => true]) !!}
<div class="row"> <div class="row">
<div class="col-md-6"> <div class="col-md-6">
<div class="form-group"> <div class="form-group">
<label>Name </label> <label>Title </label>
<input type="text" class="form-control" id="inputPassword3" name="name" value="{{old('name')}}" required> <input type="text" class="form-control" id="inputPassword3" name="title" value="{{old('title')}}" required>
</div> </div>
</div> </div>
<!-- <div class="col-md-6"> <div class="col-md-6">
<div class="form-group"> <div class="form-group">
<label>Sub Title</label> <label>Sub Title</label>
<input type="text" class="form-control" id="inputPassword3" name="sub_title" value="{{old('sub_title')}}"> <input type="text" class="form-control" id="inputPassword3" name="sub_title" value="{{old('sub_title')}}">
</div> </div>
</div> --> </div>
<div class="col-md-6"> <div class="col-md-6">
<div class="form-group"> <div class="form-group">
<label>Image</label> <label>Banner Image</label>
<input type="file" class="form-control" name="image" required> <input type="file" class="form-control" name="banner_image" required>
</div> </div>
</div> </div>
<div class="col-md-12" >
<div class="form-group" >
<label>Description <span style="color: red";> * </span></label>
<textarea name="description" id="body" rows="5">{{old('description')}}</textarea>
</div>
</div>
<div class="col-md-12" >
<div class="form-group" >
<label>Sub Description <span style="color: red";> * </span></label>
<textarea name="sub_description" id="body1" rows="5">{{old('sub_description')}}</textarea>
</div>
</div>
@ -86,8 +99,46 @@
@endsection @endsection
@section('script') @section('script')
<script> <script>
$(document).ready(function() { ClassicEditor
$('.summernote_class').summernote() .create( document.querySelector( '#body' ),
{
ckfinder: {
uploadUrl: '{{route('image.upload').'?_token='.csrf_token()}}',
},
fontColor:{
colors: [
{
color: 'hsl(0, 0%, 0%)',
label: 'Black'
},
{
color: 'hsl(0, 0%, 30%)',
label: 'Dim grey'
},
{
color: 'hsl(0, 0%, 60%)',
label: 'Grey'
},
{
color: 'hsl(0, 0%, 90%)',
label: 'Light grey'
},
{
color: 'hsl(0, 0%, 100%)',
label: 'White',
hasBorder: true
}
],
columns: 5
}
})
ClassicEditor
.create( document.querySelector( '#body1' ),
{
ckfinder: {
uploadUrl: '{{route('image.upload').'?_token='.csrf_token()}}',
}
}) })

@ -20,9 +20,9 @@
<div class="col-md-12"> <div class="col-md-12">
<div class="card"> <div class="card">
<div class="card-header"> <div class="card-header">
<h3 class="card-title">Partners</h3> <h3 class="card-title">Pages</h3>
<div class="card-tools"> <div class="card-tools">
<a class="btn btn-green" href="{{url('admin/partners/create')}}" role="button">Create</a> <a class="btn btn-green" href="{{url('admin/pages/create')}}" role="button">Create</a>
</div> </div>
</div> </div>
<!-- /.card-header --> <!-- /.card-header -->
@ -52,8 +52,8 @@
<thead> <thead>
<tr> <tr>
<th scope="col" style="width:10px">S.N.</th> <th scope="col" style="width:10px">S.N.</th>
<th scope="col" class="text-center">Name</th> <th scope="col" class="text-center">Title</th>
<th scope="col" class="text-center">Image</th> <th scope="col" class="text-center">Banner Image</th>
<th scope="col" class="text-center">Status</th> <th scope="col" class="text-center">Status</th>
<!-- <th scope="col" class="text-center">ImageAlt</th> --> <!-- <th scope="col" class="text-center">ImageAlt</th> -->
@ -64,10 +64,10 @@
@foreach($settings as $setting) @foreach($settings as $setting)
<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">{{$setting->title}}</td>
<td class="text-center"> <td class="text-center">
<a href="{{url($setting->image)}}" target="_blank"> <a href="{{url($setting->banner_image)}}" target="_blank">
<img src="{{url($setting->image)}}" alt="" style="width: 100px;"> <img src="{{url($setting->banner_image)}}" alt="" style="width: 100px;">
</a> </a>
</td> </td>
<td class="text-center"> {{config('custom.status')[$setting->status]}}</td> <td class="text-center"> {{config('custom.status')[$setting->status]}}</td>

@ -60,7 +60,7 @@
<div class="col-md-12" > <div class="col-md-12" >
<div class="form-group" > <div class="form-group" >
<label>Description</label> <label>Description</label>
<textarea name="description" class="summernote_class" rows="5" style="height: 658px;" >{{old('description')}}</textarea> <textarea name="description" id="body" rows="5" style="height: 658px;" >{{old('description')}}</textarea>
</div> </div>
</div> </div>
@ -104,8 +104,12 @@
@endsection @endsection
@section('script') @section('script')
<script> <script>
$(document).ready(function() { ClassicEditor
$('.summernote_class').summernote() .create( document.querySelector( '#body' ),
{
ckfinder: {
uploadUrl: '{{route('image.upload').'?_token='.csrf_token()}}',
}
}) })

@ -81,7 +81,7 @@
<div class="col-md-12" > <div class="col-md-12" >
<div class="form-group" > <div class="form-group" >
<label>Description</label> <label>Description</label>
<textarea name="description" class="summernote_class" rows="5" style="height: 658px;" >{{$setting->description}} </textarea> <textarea name="description" id="body" rows="5" style="height: 658px;" >{{$setting->description}} </textarea>
</div> </div>
</div> </div>
@ -105,8 +105,12 @@
@endsection @endsection
@section('script') @section('script')
<script> <script>
$(document).ready(function() { ClassicEditor
$('.summernote_class').summernote() .create( document.querySelector( '#body' ),
{
ckfinder: {
uploadUrl: '{{route('image.upload').'?_token='.csrf_token()}}',
}
}) })

@ -29,7 +29,7 @@
<div class="col-md-4"> <div class="col-md-4">
<div class="form-group"> <div class="form-group">
<label>Heading <span style="color: red">*</span></label> <label>Heading <span style="color: red">*</span></label>
<input type="text" class="form-control" id="heading" name="heading" required value="{{old('heading')}}"> <input type="text" class="form-control" id="heading" name="heading"value="{{old('heading')}}">
</div> </div>
</div> </div>
<!-- <div class="col-md-4"> <!-- <div class="col-md-4">
@ -49,7 +49,7 @@
<div class="col-md-12"> <div class="col-md-12">
<div class="form-group"> <div class="form-group">
<label>Review <span style="color: red">*</span> </label> <label>Review <span style="color: red">*</span> </label>
<textarea class="summernote_class" name="review" required >{{old('review')}}</textarea> <textarea id="body" name="review">{{old('review')}}</textarea>
</div> </div>
</div> </div>
</div> </div>
@ -95,9 +95,12 @@
@endsection @endsection
@section('script') @section('script')
<script> <script>
$(function () { ClassicEditor
// Summernote .create( document.querySelector( '#body' ),
$('.summernote_class').summernote() {
ckfinder: {
uploadUrl: '{{route('image.upload').'?_token='.csrf_token()}}',
}
}) })
</script> </script>

@ -56,7 +56,7 @@
<div class="col-md-12"> <div class="col-md-12">
<div class="form-group"> <div class="form-group">
<label>Review <span style="color: red">*</span> </label> <label>Review <span style="color: red">*</span> </label>
<textarea class="summernote_class" name="review" required >{{$setting->review}}</textarea> <textarea id="body" name="review">{{$setting->review}}</textarea>
</div> </div>
</div> </div>
</div> </div>
@ -102,9 +102,12 @@
@endsection @endsection
@section('script') @section('script')
<script> <script>
$(function () { ClassicEditor
// Summernote .create( document.querySelector( '#body' ),
$('.summernote_class').summernote() {
ckfinder: {
uploadUrl: '{{route('image.upload').'?_token='.csrf_token()}}',
}
}) })
</script> </script>

@ -33,12 +33,16 @@
@php @php
$phone = \App\Models\Setting::where('slug','phone')->get('value')->first()->value ?? ''; $phone = \App\Models\Setting::where('slug','phone')->get('value')->first()->value ?? '';
$email = \App\Models\Setting::where('slug','email')->get('value')->first()->value ?? ''; $email = \App\Models\Setting::where('slug','email')->get('value')->first()->value ?? '';
$facebook = \App\Models\Setting::where('slug','facebook')->get('value')->first()->value ?? '';
$instagram = \App\Models\Setting::where('slug','instagram')->get('value')->first()->value ?? '';
$linkedin = \App\Models\Setting::where('slug','linkedin')->get('value')->first()->value ?? '';
$logo = \App\Models\Setting::where('slug','logo')->get('value')->first()->value ?? ''; $logo = \App\Models\Setting::where('slug','logo')->get('value')->first()->value ?? '';
$white_logo = \App\Models\Setting::where('slug','white-logo')->get('value')->first()->value ?? ''; $white_logo = \App\Models\Setting::where('slug','white-logo')->get('value')->first()->value ?? '';
@endphp @endphp
<!-- Top section --> <!-- Top section -->
<section id="topbar" class="d-flex justify-content-center justify-content-md-between align-items-center"> <section id="topbar" class="d-flex justify-content-center justify-content-md-between align-items-center">
<div class="contact-info"> <div class="contact-info">
@if($email != '') @if($email != '')
<div> <div>
<img src="{{url('frontend/icons/email.svg')}}" class="img-fluid"/> <img src="{{url('frontend/icons/email.svg')}}" class="img-fluid"/>

@ -10,20 +10,19 @@
@endsection @endsection
@section('content') @section('content')
<section class="abroad-banner-section" style="background: url('frontend/images/study-abroad-banner.png')"> <section class="abroad-banner-section" style="background: url('frontend/images/study-abroad-banner.png')">
<nav aria-label="breadcrumb"> <!-- <nav aria-label="breadcrumb">
<ol class="breadcrumb"> <ol class="breadcrumb">
<li class="breadcrumb-item"><a href="/">Home</a></li> <li class="breadcrumb-item"><a href="/">Home</a></li>
<li class="breadcrumb-item active" aria-current="page">name</li> <li class="breadcrumb-item active" aria-current="page">name</li>
</ol> </ol>
</nav> </nav> -->
<div class="studyabroad-banner-header"> <div class="studyabroad-banner-header">
<h1>Study Abroad</h1> <h1>{{$page->title}}</h1>
<h5>Take a Right Step Towards Better Future</h5> <h5>{{$page->sub_title}}</h5>
</div> </div>
</section> </section>
<section class="study-australia-desc"> <section class="study-australia-desc">
<h1>Study in Australia</h1> {!!$page->description!!}
<p>Studying abroad really is the opportunity of a lifetime. It’s your chance to start your journey. You’ll also get to continue your education abroad at some of the world’s best universities. At ET Education & Visa, we work closely and diligently with students throughout the entire preparation process to significantly increase their chances of getting into their dream school, rather than just helping students choose a few universities & colleges in Australia for international students based on their interests and giving a brief overview of the admissions procedure.</p>
</section> </section>
@foreach($services as $service) @foreach($services as $service)

@ -26,11 +26,11 @@
<div class="d-flex align-items-start mt-5"> <div class="d-flex align-items-start mt-5">
<div class="nav flex-column nav-pills visa-table me-5 col-md-4 col-sm-12" id="v-pills-tab" role="tablist" aria-orientation="vertical"> <div class="nav flex-column nav-pills visa-table me-5 col-md-4 col-sm-12" id="v-pills-tab" role="tablist" aria-orientation="vertical">
@foreach($visas as $visa) @foreach($visas as $visa)
<button class="nav-link {{$loop->iteration == 1 ? 'active' : ''}} d-flex justify-content-between align-items-center" id="{{$visa->id}}" data-bs-toggle="pill" data-bs-target="#{{$visa->id}}" type="button" role="tab" aria-controls="{{$visa->id}}" aria-selected="true"> <button class="nav-link {{$loop->iteration == 1 ? 'active' : ''}} d-flex justify-content-between align-items-center" id="v-pills-profile-tab{{$visa->id}}" data-bs-toggle="pill" data-bs-target="#v-pills-profile{{$visa->id}}" type="button" role="tab" aria-controls="v-pills-profile{{$visa->id}}" aria-selected="{{$loop->iteration == 1 ? true : false}}">
{{$visa->name}} <i class="fa-solid fa-angle-right"></i> {{$visa->name}} <i class="fa-solid fa-angle-right"></i>
</button> </button>
@endforeach @endforeach
<!-- <button class="nav-link d-flex justify-content-between align-items-center" id="v-pills-profile-tab" data-bs-toggle="pill" data-bs-target="#v-pills-profile" type="button" role="tab" aria-controls="v-pills-profile" aria-selected="false"> <!-- <button class="nav-link d-flex justify-content-between align-items-center" id="v-pills-profile-tab{{$visa->id}}" data-bs-toggle="pill" data-bs-target="#v-pills-profile{{$visa->id}}" type="button" role="tab" aria-controls="v-pills-profile{{$visa->id}}" aria-selected="false">
Student VISA <i class="fa-solid fa-angle-right"></i> Student VISA <i class="fa-solid fa-angle-right"></i>
</button> </button>
<button class="nav-link d-flex justify-content-between align-items-center" id="v-pills-messages-tab" data-bs-toggle="pill" data-bs-target="#v-pills-messages" type="button" role="tab" aria-controls="v-pills-messages" aria-selected="false"> <button class="nav-link d-flex justify-content-between align-items-center" id="v-pills-messages-tab" data-bs-toggle="pill" data-bs-target="#v-pills-messages" type="button" role="tab" aria-controls="v-pills-messages" aria-selected="false">
@ -45,11 +45,11 @@
</div> </div>
<div class="tab-content col-md-8 col-sm-12" id="v-pills-tabContent"> <div class="tab-content col-md-8 col-sm-12" id="v-pills-tabContent">
@foreach($visas as $visa) @foreach($visas as $visa)
<div class="tab-pane fade {{$loop->iteration == 1 ? 'show active' : ''}}" id="{{$visa->id}}" role="tabpanel" aria-labelledby="{{$visa->id}}-tab" tabindex="0"> <div class="tab-pane fade {{$loop->iteration == 1 ? 'show active' : ''}}" id="v-pills-profile{{$visa->id}}" role="tabpanel" aria-labelledby="v-pills-profile-tab{{$visa->id}}" tabindex="0">
{!!$visa->short_description!!} {!!$visa->short_description!!}
</div> </div>
@endforeach @endforeach
<!-- <div class="tab-pane fade" id="v-pills-profile" role="tabpanel" aria-labelledby="v-pills-profile-tab" tabindex="0"> --> <!-- <div class="tab-pane fade" id="v-pills-profile" role="tabpanel" aria-labelledby="v-pills-profile-tab{{$visa->id}}" tabindex="0"> -->
<!-- <h2 class="visa-para-title"><img src="{{url('frontend/icons/side-bars.svg')}}" class="me-2" alt=""> Subclass 500</h2> <!-- <h2 class="visa-para-title"><img src="{{url('frontend/icons/side-bars.svg')}}" class="me-2" alt=""> Subclass 500</h2>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
<br><br> <br><br>

@ -167,30 +167,32 @@
<div class="testimonials-desc"> <div class="testimonials-desc">
<h1>Words from Our Happy Customers</h1> <h1>Words from Our Happy Customers</h1>
<p>We believe customer satisfaction is a great compliment so we always work hard to achieve your success.</p> <p>We believe customer satisfaction is a great compliment so we always work hard to achieve your success.</p>
<a href="">View More</a> <!-- <a href="">View More</a> -->
</div> </div>
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<div class="row g-4 review-row"> <div class="row g-4 review-row">
<div class="review-cards"> <div class="review-cards">
@foreach($testimonials as $testimonial)
<div class="col-md-6"> <div class="col-md-6">
<div class="review-card"> <div class="review-card">
<div class="review-profile"> <div class="review-profile">
<img src="{{url('frontend/images/user.png')}}" class="img-fluid" alt=""> <img src="{{url($testimonial->image)}}" class="img-fluid" alt="">
<div class="quote-icon"> <div class="quote-icon">
<img src="{{url('frontend/icons/quote.svg')}}" class="img-fluid" alt=""> <img src="{{url('frontend/icons/quote.svg')}}" class="img-fluid" alt="">
</div> </div>
</div> </div>
<div class="review-desc"> <div class="review-desc">
<p>The best, if not, one the best education and visa service providers for Australia along with expert, qualified and friendly staff.</p> <p>{{$testimonial->review}}</p>
</div> </div>
<div class="review-detail text-center"> <div class="review-detail text-center">
<h4>Sujita Bhandari</h4> <h4>{{$testimonial->author_name}}</h4>
<h6>Scholars, MIT</h6> <h6>{{$testimonial->author_designation}}</h6>
</div> </div>
</div> </div>
</div> </div>
<div class="col-md-6"> @endforeach
<!-- <div class="col-md-6">
<div class="review-card"> <div class="review-card">
<div class="review-profile"> <div class="review-profile">
<img src="{{url('frontend/images/user.png')}}" class="img-fluid" alt=""> <img src="{{url('frontend/images/user.png')}}" class="img-fluid" alt="">
@ -223,7 +225,7 @@
<h6>Scholars, MIT</h6> <h6>Scholars, MIT</h6>
</div> </div>
</div> </div>
</div> </div> -->
</div> </div>
</div> </div>
</div> </div>

@ -4,9 +4,11 @@ use Illuminate\Support\Facades\Route;
use App\Http\Controllers\Admin\SettingController; use App\Http\Controllers\Admin\SettingController;
use App\Http\Controllers\Admin\ServiceController; use App\Http\Controllers\Admin\ServiceController;
use App\Http\Controllers\Admin\AboutUsController; use App\Http\Controllers\Admin\AboutUsController;
use App\Http\Controllers\Admin\PageController;
use App\Http\Controllers\ServiceController as FrontendServiceController; use App\Http\Controllers\ServiceController as FrontendServiceController;
use App\Http\Controllers\Admin\ReferralController as ReferralAdminController; use App\Http\Controllers\Admin\ReferralController as ReferralAdminController;
use App\Http\Controllers\RecruitmentController; use App\Http\Controllers\RecruitmentController;
use App\Http\Controllers\AboutUsController as FrontendAboutUsController;
use App\Http\Controllers\Admin\ServiceSectionController; use App\Http\Controllers\Admin\ServiceSectionController;
use App\Http\Controllers\Admin\AccomodationController; use App\Http\Controllers\Admin\AccomodationController;
use App\Http\Controllers\Admin\ContactUsController; use App\Http\Controllers\Admin\ContactUsController;
@ -62,9 +64,8 @@ Route::get('/contact', function () {
return view('contact'); return view('contact');
}); });
Route::post('contact', [ContactController::class,'post_contact']); Route::post('contact', [ContactController::class,'post_contact']);
Route::get('/about', function () { Route::get('about', [FrontendAboutUsController::class,'index']);
return view('about');
});
Route::post('image-upload', [ImageUploadController::class, 'storeImage'])->name('image.upload'); //upload image in CkEditor Route::post('image-upload', [ImageUploadController::class, 'storeImage'])->name('image.upload'); //upload image in CkEditor
Route::group(['middleware'=>['auth']],function (){ Route::group(['middleware'=>['auth']],function (){
@ -104,13 +105,13 @@ Route::group(['middleware'=>['auth']],function (){
Route::resource('about_us',AboutUsController::class); Route::resource('about_us',AboutUsController::class);
Route::get('partners',[PartnerController::class,'index']); Route::get('pages',[PageController::class,'index']);
Route::get('partners/create',[PartnerController::class,'create']); Route::get('pages/create',[PageController::class,'create']);
Route::post('partners',[PartnerController::class,'store']); Route::post('pages',[PageController::class,'store']);
Route::get('partners/{id}/view',[PartnerController::class,'show']); Route::get('pages/{id}/view',[PageController::class,'show']);
Route::get('partners/{id}/edit',[PartnerController::class,'edit']); Route::get('pages/{id}/edit',[PageController::class,'edit']);
Route::post('partners/{id}',[PartnerController::class,'update']); Route::post('pages/{id}',[PageController::class,'update']);
Route::get('partners/{id}/delete',[PartnerController::class,'destroy']); Route::get('pages/{id}/delete',[PageController::class,'destroy']);
Route::get('news_and_updates',[NewsAndUpdateController::class,'index']); Route::get('news_and_updates',[NewsAndUpdateController::class,'index']);
@ -292,6 +293,4 @@ Route::get('/visa', function () {
Route::get('/contact', function () { Route::get('/contact', function () {
return view('contact'); return view('contact');
}); });
Route::get('/about', function () {
return view('about');
});

Loading…
Cancel
Save