Mahesh Sharma 2 years ago
parent ec8eb63e87
commit 5e9dc074f8
  1. 2
      app/Http/Controllers/Admin/AboutUsController.php
  2. 2
      app/Http/Controllers/Admin/NewsAndUpdateController.php
  3. 19
      app/Http/Controllers/BlogController.php
  4. 4
      app/Http/Controllers/HomeController.php
  5. BIN
      public/images/news_and_update/2023/01/31/cf96e89432529e97306608d4584773d9.png
  6. BIN
      public/images/news_and_update/2023/01/31/e52d135f8d454cc04cbf6250151e1c42.png
  7. 86
      resources/views/admin/about_us/edit.blade.php
  8. 2
      resources/views/admin/layouts/app.blade.php
  9. 4
      resources/views/admin/layouts/menubar.blade.php
  10. 6
      resources/views/admin/news_and_update/create.blade.php
  11. 8
      resources/views/admin/news_and_update/edit.blade.php
  12. 10
      resources/views/admin/news_and_update/index.blade.php
  13. 34
      resources/views/admin/page/edit.blade.php
  14. 4
      resources/views/admin/page/index.blade.php
  15. 25
      resources/views/blog-detail.blade.php
  16. 29
      resources/views/blogs.blade.php
  17. 60
      resources/views/layout/app.blade.php
  18. 49
      resources/views/welcome.blade.php
  19. 29
      routes/web.php

@ -148,7 +148,7 @@ class AboutUsController extends Controller
*/ */
public function update(Request $request, $id) public function update(Request $request, $id)
{ {
dd($request->all()); // dd($request->all());
$setting=AboutUs::findorfail($id); $setting=AboutUs::findorfail($id);
$this->validate(\request(),[ $this->validate(\request(),[

@ -17,7 +17,7 @@ use function GuzzleHttp\Promise\all;
class NewsAndUpdateController extends Controller class NewsAndUpdateController extends Controller
{ {
protected $view = 'admin.news_and_update.'; protected $view = 'admin.news_and_update.';
protected $redirect = 'admin/news_and_updates'; protected $redirect = 'admin/blogs';
public function index() public function index()
{ {

@ -0,0 +1,19 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\NewsAndUpdate;
class BlogController extends Controller
{
public function index(){
$blogs = NewsAndUpdate::where('status',1)->get();
return view('blogs',compact('blogs'));
}
public function blog_detail($slug){
$blog = NewsAndUpdate::where(['slug' => $slug, 'status' => 1])->first();
return view('blog-detail',compact('blog'));
}
}

@ -5,12 +5,14 @@ namespace App\Http\Controllers;
use Illuminate\Http\Request; use Illuminate\Http\Request;
use App\Models\Slider; use App\Models\Slider;
use App\Models\Testimonial; use App\Models\Testimonial;
use App\Models\NewsAndUpdate;
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();
$testimonials = Testimonial::where('status',1)->get(); $testimonials = Testimonial::where('status',1)->get();
return view('welcome',compact('sliders','testimonials')); $blogs = NewsAndUpdate::where('status',1)->get();
return view('welcome',compact('sliders','testimonials','blogs'));
} }
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

@ -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="body" rows="5" style="height: 658px;" >{{$about_us->description}} <textarea name="description" class = "summernote_class" 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="body1" rows="5" style="height: 658px;" >{{$about_us->sub_description}} <textarea name="sub_description" class = "summernote_class" 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="body2" rows="5" required style="height: 658px;" >{{$about_us->bottom_description}} <textarea name="bottom_description" id="body2" class = "summernote_class" 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="body3" name="seo_description">{{$about_us->seo_description}}</textarea> <textarea id="body3" class = "summernote_class" 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="body4" name="meta_keyword" >{{$about_us->meta_keyword}}</textarea> <textarea id="body4" class = "summernote_class" name="meta_keyword" >{{$about_us->meta_keyword}}</textarea>
</div> </div>
</div> </div>
@ -124,43 +124,47 @@
} }
}); });
ClassicEditor $(document).ready(function() {
.create( document.querySelector( '#body' ), $('.summernote_class').summernote()
{
ckfinder: {
uploadUrl: '{{route('image.upload').'?_token='.csrf_token()}}',
}
})
ClassicEditor
.create( document.querySelector( '#body1' ),
{
ckfinder: {
uploadUrl: '{{route('image.upload').'?_token='.csrf_token()}}',
}
})
ClassicEditor
.create( document.querySelector( '#body2' ),
{
ckfinder: {
uploadUrl: '{{route('image.upload').'?_token='.csrf_token()}}', }
}) })
ClassicEditor
.create( document.querySelector( '#body3' ), // ClassicEditor
{ // .create( document.querySelector( '#body' ),
ckfinder: { // {
uploadUrl: '{{route('image.upload').'?_token='.csrf_token()}}', } // ckfinder: {
}) // uploadUrl: '{{route('image.upload').'?_token='.csrf_token()}}',
ClassicEditor // }
.create( document.querySelector( '#body4' ),
{ // })
ckfinder: { // ClassicEditor
uploadUrl: '{{route('image.upload').'?_token='.csrf_token()}}', } // .create( document.querySelector( '#body1' ),
}) // {
.catch( error => // ckfinder: {
{ console.error( error ); // uploadUrl: '{{route('image.upload').'?_token='.csrf_token()}}',
} // }
); // })
// ClassicEditor
// .create( document.querySelector( '#body2' ),
// {
// ckfinder: {
// uploadUrl: '{{route('image.upload').'?_token='.csrf_token()}}', }
// })
// ClassicEditor
// .create( document.querySelector( '#body3' ),
// {
// ckfinder: {
// uploadUrl: '{{route('image.upload').'?_token='.csrf_token()}}', }
// })
// ClassicEditor
// .create( document.querySelector( '#body4' ),
// {
// ckfinder: {
// uploadUrl: '{{route('image.upload').'?_token='.csrf_token()}}', }
// })
// .catch( error =>
// { console.error( error );
// }
// );
</script> </script>

@ -33,7 +33,7 @@
{!! Html::style('admin/plugins/daterangepicker/daterangepicker.css') !!} {!! Html::style('admin/plugins/daterangepicker/daterangepicker.css') !!}
<!-- summernote --> <!-- summernote -->
{{-- <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') !!} --> <!-- {!! Html::script('admin/plugins/ckeditor/ckeditor.js') !!} -->
<script src="{{ asset('admin/plugins/ckeditor/ckeditor.js') }}"></script> <script src="{{ asset('admin/plugins/ckeditor/ckeditor.js') }}"></script>

@ -124,10 +124,10 @@
</li> </li>
<li class="nav-item"> <li class="nav-item">
<a href="{{url('admin/news_and_updates')}}" class="nav-link {{(Request::segment(2) == 'news_and_updates') ? 'active' : ''}}"> <a href="{{url('admin/blogs')}}" class="nav-link {{(Request::segment(2) == 'news_and_updates') ? 'active' : ''}}">
<i class="fa fa-quote-right" aria-hidden="true"></i> <i class="fa fa-quote-right" aria-hidden="true"></i>
<p> <p>
News and Updates Blogs
</p> </p>
</a> </a>
</li> </li>

@ -19,14 +19,14 @@
<!-- 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 News and Update</h3> <h3 class="card-title">Create Blog</h3>
<a href="{{url('admin/news_and_updates')}}" class="back-button btn-green">List</a> <a href="{{url('admin/blogs')}}" 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/news_and_updates', 'class' => 'form-horizontal', 'method'=> 'POST','files' => true]) !!} {!! Form::open(['url' => '/admin/blogs', 'class' => 'form-horizontal', 'method'=> 'POST','files' => true]) !!}
<div class="row"> <div class="row">
<div class="col-md-4"> <div class="col-md-4">
<div class="form-group"> <div class="form-group">

@ -19,15 +19,15 @@
<!-- 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">Edit NewsAndUpdate</h3> <h3 class="card-title">Edit Blog</h3>
<a href="{{url('admin/news_and_updates')}}" class="back-button btn-green">List</a> <a href="{{url('admin/blogs')}}" class="back-button btn-green">List</a>
<a href="{{url('admin/news_and_updates/create')}}" class="back-button btn-green mx-2">Create</a> <a href="{{url('admin/blogs/create')}}" class="back-button btn-green mx-2">Create</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/news_and_updates/'.$setting->id, 'class' => 'form-horizontal', 'method'=> 'POST','files' => true]) !!} {!! Form::open(['url' => '/admin/blogs/'.$setting->id, 'class' => 'form-horizontal', 'method'=> 'POST','files' => true]) !!}
<div class="row"> <div class="row">
<div class="col-md-4"> <div class="col-md-4">
<div class="form-group"> <div class="form-group">

@ -21,9 +21,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">NewsAndUpdate</h3> <h3 class="card-title">Blogs</h3>
<div class="card-tools"> <div class="card-tools">
<a class="btn btn-green" href="{{url('admin/news_and_updates/create')}}" role="button">Create</a> <a class="btn btn-green" href="{{url('admin/blogs/create')}}" role="button">Create</a>
</div> </div>
</div> </div>
@ -107,13 +107,13 @@
</td> --> </td> -->
<td class="d-flex justify-content-center action-icons"> <td class="d-flex justify-content-center action-icons">
<a href="{{url('admin/news_and_updates/'.$setting->id)}}" class="btn btn-sm" data-bs-toggle="tooltip" data-bs-placement="top" title="view"> <a href="{{url('admin/blogs/'.$setting->id)}}" 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/news_and_updates/'.$setting->id.'/edit')}}" class="btn btn-sm" data-bs-toggle="tooltip" data-bs-placement="top" title="edit"> <a href="{{url('admin/blogs/'.$setting->id.'/edit')}}" class="btn btn-sm" data-bs-toggle="tooltip" data-bs-placement="top" title="edit">
<i class="fas fa-pencil-alt"></i> <i class="fas fa-pencil-alt"></i>
</a> </a>
<a href="{{url('admin/news_and_updates/delete/'.$setting->id)}}" class="btn btn-sm" data-bs-toggle="tooltip" data-bs-placement="top" title="delete" onclick="return confirm('Are you sure want to delete?')"> <a href="{{url('admin/blogs/delete/'.$setting->id)}}" class="btn btn-sm" data-bs-toggle="tooltip" data-bs-placement="top" title="delete" onclick="return confirm('Are you sure want to delete?')">
<i class="fas fa-trash"></i> <i class="fas fa-trash"></i>
</a> </a>
</td> </td>

@ -20,40 +20,54 @@
<div class="card card-default"> <div class="card card-default">
<div class="card-header"> <div class="card-header">
<h3 class="card-title"> Partner Edit</h3> <h3 class="card-title"> Partner Edit</h3>
<a href="{{url('admin/partners')}}" class="back-button btn-green">List</a> <a href="{{url('admin/pages')}}" class="back-button btn-green">List</a>
<a href="{{url('admin/partners/create')}}" class="back-button btn-green mx-2">Create</a> <a href="{{url('admin/pages/create')}}" class="back-button btn-green mx-2">Create</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/'.$setting->id, 'class' => 'form-horizontal', 'method'=> 'POST','files' => true]) !!} {!! Form::open(['url' => '/admin/pages/'.$setting->id, '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="{{$setting->name}}" required> <input type="text" class="form-control" id="inputPassword3" name="title" value="{{$setting->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="{{$setting->sub_title}}"> <input type="text" class="form-control" id="inputPassword3" name="sub_title" value="{{$setting->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"> <input type="file" class="form-control" name="image">
<span style="margin-left: 100px;"> <span style="margin-left: 100px;">
<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>
</span> </span>
</div> </div>
</div> </div>
<div class="col-md-12" >
<div class="form-group" >
<label>Description <span style="color: red";> * </span></label>
<textarea name="description" class="summernote_class" rows="5">{{$setting->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" class="summernote_class" rows="5">{{$setting->sub_description}}</textarea>
</div>
</div>
<div class="col-md-6"> <div class="col-md-6">
<div class="form-group"> <div class="form-group">
<label>Status</label> <label>Status</label>

@ -73,10 +73,10 @@
<td class="text-center"> {{config('custom.status')[$setting->status]}}</td> <td class="text-center"> {{config('custom.status')[$setting->status]}}</td>
<td class="action-icons d-flex justify-content-center"> <td class="action-icons d-flex justify-content-center">
<a href="{{url('admin/partners/'.$setting->id.'/edit')}}" class="btn btn-sm" data-bs-toggle="tooltip" data-bs-placement="top" title="edit"> <a href="{{url('admin/pages/'.$setting->id.'/edit')}}" class="btn btn-sm" data-bs-toggle="tooltip" data-bs-placement="top" title="edit">
<i class="fas fa-pencil-alt"></i> <i class="fas fa-pencil-alt"></i>
</a> </a>
<a href="{{url('admin/partners/'.$setting->id.'/delete')}}" class="btn btn-sm" data-bs-toggle="tooltip" data-bs-placement="top" title="delete" onclick="return confirm('Are you sure want to delete?')"> <a href="{{url('admin/pages/'.$setting->id.'/delete')}}" class="btn btn-sm" data-bs-toggle="tooltip" data-bs-placement="top" title="delete" onclick="return confirm('Are you sure want to delete?')">
<i class="fas fa-trash"></i> <i class="fas fa-trash"></i>
</a> </a>
</td> </td>

@ -16,31 +16,36 @@
<div class="blog-detail-img"> <div class="blog-detail-img">
<img src="{{url('frontend/images/blogs-detail.png')}}" class="w-100" alt=""> <img src="{{url('frontend/images/blogs-detail.png')}}" class="w-100" alt="">
</div> </div>
<h6>Dec 09, 2022, 2 mins read</h6> @php $date = Carbon\Carbon::createFromFormat('Y-m-d', $blog->publish_date);@endphp
<h2>Ten Reasons that make Australia the Best Destination </h2> <h6>{{$date->format('j M, Y')}}</h6>
<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. It was popularized in the 1960s with the release of Letterset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. 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. It was popularized in the 1960s with the release of Letterset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. Lorem Ipsum is simply dummy text of the printing and typesetting industry. <h2>{{$blog->title}} </h2>
{!!$blog->description!!}
<!-- <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. It was popularized in the 1960s with the release of Letterset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. 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. It was popularized in the 1960s with the release of Letterset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. Lorem Ipsum is simply dummy text of the printing and typesetting industry.
<br><br> <br><br>
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. It was popularized in the 1960s with the release of Letterset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. 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. It was popularized in the 1960s with the release of Letterset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. Lorem Ipsum is simply dummy text of the printing and typesetting industry. 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. It was popularized in the 1960s with the release of Letterset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. 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. It was popularized in the 1960s with the release of Letterset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. Lorem Ipsum is simply dummy text of the printing and typesetting industry.
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. It was popularized in the 1960s with the release of Letterset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. 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. It was popularized in the 1960s with the release of Letterset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. Lorem Ipsum is simply dummy text of the printing and typesetting industry. 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. It was popularized in the 1960s with the release of Letterset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. 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. It was popularized in the 1960s with the release of Letterset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. Lorem Ipsum is simply dummy text of the printing and typesetting industry.
<br><br> <br><br>
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. It was popularized in the 1960s with the release of Letterset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. 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. It was popularized in the 1960s with the release of Letterset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. Lorem Ipsum is simply dummy text of the printing and typesetting industry. 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. It was popularized in the 1960s with the release of Letterset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. 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. It was popularized in the 1960s with the release of Letterset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. Lorem Ipsum is simply dummy text of the printing and typesetting industry.
</p> </p> -->
</div> </div>
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<div class="recent-card"> <div class="recent-card">
<h1>Recent Posts</h1> <h1>Recent Posts</h1>
<a href="blog-detail" class="recent-card-content"> @foreach(App\Models\NewsAndUpdate::where('id','!=',$blog->first()->id)->where('status','1')->get() as $recent)
<a href="{{url('blog/'.$recent->slug)}}" class="recent-card-content">
<div class="recent-card-img"> <div class="recent-card-img">
<img src="{{url('frontend/images/blank.png')}}" class="w-100" alt=""> <img src="{{url($recent->thumbnail ?? $recent->image)}}" class="w-100" alt="">
</div> </div>
<div class="recent-post-desc"> <div class="recent-post-desc">
<h5>25/01/2023</h5> @php $date = Carbon\Carbon::createFromFormat('Y-m-d', $recent->publish_date);@endphp
<h5>{{$date->format('j M, Y')}}</h5>
<h5>2 min read</h5> <h5>2 min read</h5>
<h2>Best ways to settle your career in Australia</h2> <h2>{{$recent->title}}</h2>
</div> </div>
</a> </a>
<a href="blog-detail" class="recent-card-content"> @endforeach
<!-- <a href="blog-detail" class="recent-card-content">
<div class="recent-card-img"> <div class="recent-card-img">
<img src="{{url('frontend/images/blank.png')}}" class="w-100" alt=""> <img src="{{url('frontend/images/blank.png')}}" class="w-100" alt="">
</div> </div>
@ -59,7 +64,7 @@
<h5>2 min read</h5> <h5>2 min read</h5>
<h2>Best ways to settle your career in Australia</h2> <h2>Best ways to settle your career in Australia</h2>
</div> </div>
</a> </a> -->
</div> </div>
</div> </div>
</div> </div>

@ -26,32 +26,39 @@
<img src="{{url('frontend/icons/side-bars.svg')}}" class="me-2" alt=""> <img src="{{url('frontend/icons/side-bars.svg')}}" class="me-2" alt="">
Latest Articles Latest Articles
</h2> </h2>
@php
$blog = $blogs->where('blog_type',1)->first();
@endphp
<div class="row"> <div class="row">
<div class="col-md-5"> <div class="col-md-5">
<div class="featured-article"> <div class="featured-article">
<img src="{{url('frontend/images/sydney-opera-house.png')}}" class="w-100" alt=""> <img src="{{url($blog->image )}}" class="w-100" alt="">
<h3>Study in Australia</h3> <h3>Study in Australia</h3>
<h6>Dec 09, 2022, 2 mins read</h6> @php $date = Carbon\Carbon::createFromFormat('Y-m-d', $blog->publish_date);@endphp
<h2>Ten Reasons that make Australia the Best Destination </h2> <h6>{{$date->format('j M, Y')}}</h6>
<p>If you want to study in a city surrounded by lush greenery and a pleasant atmosphere..</p> <h2>{{$blog->title}} </h2>
<a href="blog-detail">Read More <i class="fa-solid fa-arrow-right-long ms-2 fa-sm"></i></a> <p>{!!(\Illuminate\Support\Str::limit($blog->description, 200, $end='...'))!!}</p>
<a href="{{url('/blog/'.$blog->slug)}}">Read More <i class="fa-solid fa-arrow-right-long ms-2 fa-sm"></i></a>
</div> </div>
</div> </div>
<div class="col-md-7"> <div class="col-md-7">
<div class="related-articles"> <div class="related-articles">
@foreach($blogs->where('blog_type','!=',1) as $blog)
<div class="article-card"> <div class="article-card">
<div class="article-img"> <div class="article-img">
<img src="{{url('frontend/images/student-studying.png')}}" class="w-100" alt=""> <img src="{{url($blog->thumbnail ?? $blog->image)}}" class="w-100" alt="">
</div> </div>
<div class="article-desc"> <div class="article-desc">
<h3>Study in Australia</h3> <h3>Study in Australia</h3>
<h6>Dec 09, 2022, 2 mins read</h6> <h6>{{$blog->publish_date}}</h6>
<h2>Ten Reasons that make Australia the Best Destination </h2> <h2>{{$blog->title}} </h2>
<p>If you want to study in a city surrounded by lush greenery and a pleasant atmosphere..</p> <p>{!!(\Illuminate\Support\Str::limit($blog->description, 200, $end='...'))!!}</p>
<a href="blog-detail">Read More <i class="fa-solid fa-arrow-right-long ms-2 fa-xs"></i></a> <a href="blog-detail">Read More <i class="fa-solid fa-arrow-right-long ms-2 fa-xs"></i></a>
</div> </div>
</div> </div>
<div class="article-card"> @endforeach
<!-- <div class="article-card">
<div class="article-img"> <div class="article-img">
<img src="{{url('frontend/images/blog-passport.png')}}" class="w-100" alt=""> <img src="{{url('frontend/images/blog-passport.png')}}" class="w-100" alt="">
</div> </div>
@ -74,7 +81,7 @@
<p>If you want to study in a city surrounded by lush greenery and a pleasant atmosphere..</p> <p>If you want to study in a city surrounded by lush greenery and a pleasant atmosphere..</p>
<a href="blog-detail">Read More <i class="fa-solid fa-arrow-right-long ms-2 fa-xs"></i></a> <a href="blog-detail">Read More <i class="fa-solid fa-arrow-right-long ms-2 fa-xs"></i></a>
</div> </div>
</div> </div> -->
</div> </div>
</div> </div>
</div> </div>

@ -33,6 +33,8 @@
@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 ?? '';
$address = \App\Models\Setting::where('slug','address')->get('value')->first()->value ?? '';
$twitter = \App\Models\Setting::where('slug','twitter')->get('value')->first()->value ?? '';
$facebook = \App\Models\Setting::where('slug','facebook')->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 ?? ''; $instagram = \App\Models\Setting::where('slug','instagram')->get('value')->first()->value ?? '';
$linkedin = \App\Models\Setting::where('slug','linkedin')->get('value')->first()->value ?? ''; $linkedin = \App\Models\Setting::where('slug','linkedin')->get('value')->first()->value ?? '';
@ -43,7 +45,7 @@
<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"/>
<span><a href="mailto:{{$email}}" class="text-decoration-none">{{$email}}</a></span></i> <span><a href="mailto:{{$email}}" class="text-decoration-none">{{$email}}</a></span></i>
@ -54,7 +56,7 @@
<img src="{{url('frontend/icons/phone.svg')}}" class="img-fluid"/> <img src="{{url('frontend/icons/phone.svg')}}" class="img-fluid"/>
<span><a href="tel:{{$phone}}" class="text-decoration-none">{{$phone}}</a></span></i> <span><a href="tel:{{$phone}}" class="text-decoration-none">{{$phone}}</a></span></i>
</div> </div>
@endif @endif
</div> </div>
<div class="social-links d-none d-md-flex align-items-center"> <div class="social-links d-none d-md-flex align-items-center">
<div class="top-links"> <div class="top-links">
@ -108,14 +110,17 @@
</a> </a>
<h4 class='text-white mb-5 footer-description'>ET Education and Visa Services, presented by Extratech, is an adept provider of excellent education consultation, information, and visa guidance solution to students seeking schooling abroad.</h4> <h4 class='text-white mb-5 footer-description'>ET Education and Visa Services, presented by Extratech, is an adept provider of excellent education consultation, information, and visa guidance solution to students seeking schooling abroad.</h4>
<div class="footer-contact"> <div class="footer-contact">
@if($phone != '')
<div class="contact-information"> <div class="contact-information">
<div class="contact-img"> <div class="contact-img">
<img src="{{url('frontend/icons/footer-phone.svg')}}" alt=""/> <img src="{{url('frontend/icons/footer-phone.svg')}}" alt=""/>
</div> </div>
<a href="tel:+61 405 978 6722" class="text-decoration-none"> <a href="{{$phone}}" class="text-decoration-none">
<p>+61 405 978 6722</p> <p>{{$phone}}</p>
</a> </a>
</div> </div>
@endif
@if($email != '')
<div class="contact-information"> <div class="contact-information">
<div class="contact-img"> <div class="contact-img">
<img src="{{url('frontend/icons/footer-email.svg')}}" alt=""/> <img src="{{url('frontend/icons/footer-email.svg')}}" alt=""/>
@ -124,6 +129,8 @@
<p>admin@eteducation.com.au</p> <p>admin@eteducation.com.au</p>
</a> </a>
</div> </div>
@endif
@if($address != '')
<div class="contact-information"> <div class="contact-information">
<div class="contact-img"> <div class="contact-img">
<img src="{{url('frontend/icons/footer-location.svg')}}" alt=""/> <img src="{{url('frontend/icons/footer-location.svg')}}" alt=""/>
@ -133,6 +140,7 @@
Park Road, Hurstville NSW 2220</p> Park Road, Hurstville NSW 2220</p>
</a> </a>
</div> </div>
@endif
</div> </div>
</div> </div>
<div class="col-lg-3 col-md-6 mb-4 footer-links"> <div class="col-lg-3 col-md-6 mb-4 footer-links">
@ -141,18 +149,11 @@
<div class="lists-links"> <div class="lists-links">
<ul class="list-unstyled"> <ul class="list-unstyled">
<li> <li>
<a href="/service" target="_blank" rel='noreferrer' class=' footer-link'> @foreach(App\Models\Service::where('status',1)->get() as $service)
Student Admission <a href="{{url('education/'.$service->slug)}}" target="_blank" rel='noreferrer' class=' footer-link'>
</a> {{$service->name}}
<a href="/service" target="_blank" rel='noreferrer' class=' footer-link'>
Visa Processing
</a>
<a href="/service" target="_blank" rel='noreferrer' class=' footer-link'>
Health Insurance
</a>
<a href="/service" target="_blank" rel='noreferrer' class=' footer-link'>
Accommodation
</a> </a>
@endforeach
</li> </li>
</ul> </ul>
</div> </div>
@ -163,18 +164,11 @@
<div class="lists-links"> <div class="lists-links">
<ul class="list-unstyled"> <ul class="list-unstyled">
<li> <li>
<a href="/service" target="_blank" rel='noreferrer' class=' footer-link'> @foreach(App\Models\VisaService::where('status',1)->get() as $visa_service)
Parent Visa <a href="{{url('/visas')}}" target="_blank" rel='noreferrer' class=' footer-link'>
</a> {{$visa_service->name}}
<a href="/service" target="_blank" rel='noreferrer' class=' footer-link'>
Global Talent Visa Program
</a>
<a href="/service" target="_blank" rel='noreferrer' class=' footer-link'>
Employer Nomination Visa
</a>
<a href="/service" target="_blank" rel='noreferrer' class=' footer-link'>
Skilled Employer
</a> </a>
@endforeach
</li> </li>
</ul> </ul>
</div> </div>
@ -185,7 +179,7 @@
<h1 class="mb-20 text-white link-title">Free Newsletter</h1> <h1 class="mb-20 text-white link-title">Free Newsletter</h1>
<p>Subscribe for our free newsletter</p> <p>Subscribe for our free newsletter</p>
<div class="custom-search"> <div class="custom-search">
<input type="text" id = "subscribe_email" class="custom-search-input" placeholder="Email address" required> <input type="text" name = "email" id = "subscribe_email" class="custom-search-input" placeholder="Email address" required>
<button class="custom-search-botton" onclick="subscribe()">Subscribe</button> <button class="custom-search-botton" onclick="subscribe()">Subscribe</button>
</div> </div>
<p id = "success-message"></p> <p id = "success-message"></p>
@ -194,18 +188,26 @@
<h1 class='text-white link-title'>Join Our Social Community</h1> <h1 class='text-white link-title'>Join Our Social Community</h1>
<p class='box'></p> <p class='box'></p>
<div class="socials-icons"> <div class="socials-icons">
<a href="" target="_blank" class="text-white" rel="noreferrer"> @if($twitter != '')
<a href="{{$twitter}}" target="_blank" class="text-white" rel="noreferrer">
<i class="fa-brands fa-twitter fa-xl"></i> <i class="fa-brands fa-twitter fa-xl"></i>
</a> </a>
<a href="" target="_blank" class="text-white" rel="noreferrer"> @endif
@if($facebook != '')
<a href="{{$facebook}}" target="_blank" class="text-white" rel="noreferrer">
<i class="fa-brands fa-facebook fa-xl"></i> <i class="fa-brands fa-facebook fa-xl"></i>
</a> </a>
@endif
@if($instagram != '')
<a href="" target="_blank" class="text-white" rel="noreferrer"> <a href="" target="_blank" class="text-white" rel="noreferrer">
<i class="fa-brands fa-instagram fa-xl"></i> <i class="fa-brands fa-instagram fa-xl"></i>
</a> </a>
@endif
@if($linkedin != '')
<a href="" target="_blank" class="text-white" rel="noreferrer"> <a href="" target="_blank" class="text-white" rel="noreferrer">
<i class="fa-brands fa-linkedin fa-xl"></i> <i class="fa-brands fa-linkedin fa-xl"></i>
</a> </a>
@endif
</div> </div>
</div> </div>
</div> </div>

@ -240,57 +240,28 @@
<p>Get the updates about moving to Australia with the right guidance and information from our experts.</p> <p>Get the updates about moving to Australia with the right guidance and information from our experts.</p>
</div> </div>
<div class="row"> <div class="row">
@foreach($blogs as $blog)
<div class="col-md-4 col-sm-12"> <div class="col-md-4 col-sm-12">
<a href="" class="text-decoration-none"> <a href="{{url('blog/'.$blog->slug)}}" class="text-decoration-none">
<div class="blog-card"> <div class="blog-card">
<div class="blog-img"> <div class="blog-img">
<img src="{{url('frontend/images/opera-house.png')}}" class="w-100" alt=""> <img src="{{url($blog->thumbnail ?? $blog->image)}}" class="w-100" alt="">
<div class="blog-date"> <div class="blog-date">
<h5>6 DEC</h5> @php $date = Carbon\Carbon::createFromFormat('Y-m-d', $blog->publish_date);@endphp
<h5>{{$date->format('j M')}}</h5>
</div> </div>
</div> </div>
<div class="blog-desc"> <div class="blog-desc">
<h5>EDUCATION | 5 MIN READING</h5> <h5>EDUCATION | 5 MIN READING</h5>
<h2>Ten Reasons that make Australia the Best Destination </h2> <h2>{{$blog->title}}</h2>
<p>If you want to study in a city surrounded by lush greenery and a pleasant atmosphere..</p> {!!(\Illuminate\Support\Str::limit($blog->description, 150, $end='...'))!!}
</div> <!-- <p>If you want to study in a city surrounded by lush greenery and a pleasant atmosphere..</p> -->
</div>
</a>
</div>
<div class="col-md-4 col-sm-12">
<a href="" class="text-decoration-none">
<div class="blog-card">
<div class="blog-img">
<img src="{{url('frontend/images/pexels-andrea-piacquadio.png')}}" class="w-100" alt="">
<div class="blog-date">
<h5>6 DEC</h5>
</div>
</div>
<div class="blog-desc">
<h5>EDUCATION | 7 MIN READING</h5>
<h2>Top six benefits of studying in regional Australia  </h2>
<p>If you want to study in a city surrounded by lush greenery and a pleasant atmosphere..</p>
</div>
</div>
</a>
</div>
<div class="col-md-4 col-sm-12">
<a href="" class="text-decoration-none">
<div class="blog-card">
<div class="blog-img">
<img src="{{url('frontend/images/passport-img.png')}}" class="w-100" alt="">
<div class="blog-date">
<h5>6 DEC</h5>
</div>
</div>
<div class="blog-desc">
<h5>EDUCATION | 5 MIN READING</h5>
<h2>Best ways to Settle your career in Australia</h2>
<p>If you want to study in a city surrounded by lush greenery and a pleasant atmosphere..</p>
</div> </div>
</div> </div>
</a> </a>
</div> </div>
@endforeach
</div> </div>
</section> </section>
@endsection @endsection

@ -8,6 +8,7 @@ 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\BlogController;
use App\Http\Controllers\AboutUsController as FrontendAboutUsController; 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;
@ -69,12 +70,8 @@ Route::get('about', [FrontendAboutUsController::class,'index']);
// Route::get('/about', function () { // Route::get('/about', function () {
// return view('about'); // return view('about');
// }); // });
Route::get('/blogs', function () { Route::get('blogs', [BlogController::class,'index']);
return view('blogs'); Route::get('blog/{slug}', [BlogController::class,'blog_detail']);
});
Route::get('/blog-detail', function () {
return view('blog-detail');
});
Route::get('/faq', function () { Route::get('/faq', function () {
return view('faq'); return view('faq');
}); });
@ -126,13 +123,13 @@ Route::group(['middleware'=>['auth']],function (){
Route::get('pages/{id}/delete',[PageController::class,'destroy']); Route::get('pages/{id}/delete',[PageController::class,'destroy']);
Route::get('news_and_updates',[NewsAndUpdateController::class,'index']); Route::get('blogs',[NewsAndUpdateController::class,'index']);
Route::get('news_and_updates/create',[NewsAndUpdateController::class,'create']); Route::get('blogs/create',[NewsAndUpdateController::class,'create']);
Route::post('news_and_updates',[NewsAndUpdateController::class,'store']); Route::post('blogs',[NewsAndUpdateController::class,'store']);
Route::get('news_and_updates/{id}',[NewsAndUpdateController::class,'show']); Route::get('blogs/{id}',[NewsAndUpdateController::class,'show']);
Route::get('news_and_updates/{id}/edit',[NewsAndUpdateController::class,'edit']); Route::get('blogs/{id}/edit',[NewsAndUpdateController::class,'edit']);
Route::post('news_and_updates/{id}',[NewsAndUpdateController::class,'update']); Route::post('blogs/{id}',[NewsAndUpdateController::class,'update']);
Route::get('news_and_updates/delete/{id}',[NewsAndUpdateController::class,'delete']); Route::get('blogs/delete/{id}',[NewsAndUpdateController::class,'delete']);
// Route::get('blog_point/{blog_point_id}',[BlogController::class,'blog_point']); // Route::get('blog_point/{blog_point_id}',[BlogController::class,'blog_point']);
Route::get('galleries',[GalleryController::class,'index']); Route::get('galleries',[GalleryController::class,'index']);
@ -299,9 +296,9 @@ Route::group(['middleware'=>['auth']],function (){
Route::get('/study-abroad-detail', function () { Route::get('/study-abroad-detail', function () {
return view('study-abroad-detail'); return view('study-abroad-detail');
}); });
Route::get('/visa', function () { // Route::get('/visa', function () {
return view('visa'); // return view('visa');
}); // });
Route::get('/contact', function () { Route::get('/contact', function () {
return view('contact'); return view('contact');
}); });

Loading…
Cancel
Save