et#16
Mahesh Sharma 2 years ago
parent 80deba7807
commit bce3f03aec
  1. 22
      app/Http/Controllers/Admin/ServiceSectionController.php
  2. 7
      app/Http/Controllers/ContactController.php
  3. 2
      app/Http/Controllers/HomeController.php
  4. 1
      database/migrations/2022_12_13_043239_create_visa_service_section_points_table.php
  5. BIN
      public/images/service/2023/02/03/53c597800859eecbd02152173ef7e5ea.png
  6. BIN
      public/images/service/2023/02/03/7828e9cb9849dde1b7bb0bf28800a922.jpg
  7. BIN
      public/images/service/2023/02/03/8f73e3d409f73c909efbbed65cb95346.png
  8. BIN
      public/images/service/2023/02/03/d93a341002e7fba2be18147c85359f9b.jpg
  9. 6
      resources/views/admin/service_section/create.blade.php
  10. 52
      resources/views/admin/service_section/edit.blade.php
  11. 4
      resources/views/faq.blade.php
  12. 26
      resources/views/study-abroad-detail.blade.php
  13. 11
      resources/views/welcome.blade.php
  14. 6
      routes/web.php

@ -235,12 +235,22 @@ class ServiceSectionController extends Controller
} }
} }
else{ else{
// foreach($points as $key => $point){ foreach($points as $key => $point){
// $service_section_point = new ServiceSectionPoint(); $service_section_point = new ServiceSectionPoint();
// $service_section_point->service_section_id = $service_section->id; $service_section_point->service_section_id = $service_section->id;
// $service_section_point->point = $point; $service_section_point->point = $point;
// $service_section_point->save(); if(array_key_exists($key,$icons)){
// } $extension = $icons[$key]->getClientOriginalExtension();
$image_folder_type = array_search('service',config('custom.image_folders')); //for image saved in folder
$count = rand(100,999);
$out_put_path = User::save_image($icons[$key],$extension,$count,$image_folder_type);
is_array($out_put_path) ? $service_section_point->icon = $out_put_path[0] : $service_section_point->icon = $out_put_path;
// $service_section_point->icon = $points_descriptions[$key];
}
$service_section_point->save();
}
} }
// $service_point = $service_section->service_section_point(); // $service_point = $service_section->service_section_point();
// $service_point->delete(); // $service_point->delete();

@ -51,10 +51,9 @@ class ContactController extends Controller
), function($message) use ($subject){ ), function($message) use ($subject){
// $subject=($service!= '') ? 'Enquiry for '.$service : 'Contact/Feedback'; // $subject=($service!= '') ? 'Enquiry for '.$service : 'Contact/Feedback';
$message->subject($subject); $message->subject($subject);
// $message->to('info@agilityhomecare.com.au', 'AgilityHomeCare')->subject($subject); $message->to('admin@eteducation.com.au', 'Et-Visa')->subject($subject);
$message->to('mahesh@extratechs.com.au', 'Extratech')->subject($subject); $message->cc('extratechweb@gmail.com', 'Extratech')->subject($subject);
// $message->cc('suman@extratechs.com.u', 'Extratech')->subject($subject); $message->cc('suman@extratechs.com.au', 'Extratech')->subject($subject);
}); });
// }); // });

@ -45,6 +45,6 @@ class HomeController extends Controller
}); });
return response()->json(['success' => 'Successfully subscribed!','status' =>'Ok'],200); return response()->json(['success' => 'Thank You for Subscribing!','status' =>'Ok'],200);
} }
} }

@ -18,6 +18,7 @@ return new class extends Migration
$table->bigInteger('visa_service_section_id')->unsigned(); $table->bigInteger('visa_service_section_id')->unsigned();
$table->foreign('visa_service_section_id')->references('id')->on('visa_service_sections')->onDelete('cascade'); $table->foreign('visa_service_section_id')->references('id')->on('visa_service_sections')->onDelete('cascade');
$table->text('point'); $table->text('point');
$table->string('image')->nullable();
$table->timestamps(); $table->timestamps();
}); });
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 500 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 389 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 932 KiB

@ -83,7 +83,7 @@
</br> </br>
<!-- <div class="row" id="point_dom"> <div class="row" id="point_dom">
<div class="col-md-6 rel-close" id="point_row_1"> <div class="col-md-6 rel-close" id="point_row_1">
<div class="dom-box"> <div class="dom-box">
<div class="add-points card"> <div class="add-points card">
@ -91,6 +91,7 @@
<div id="point1" class="point1" > <div id="point1" class="point1" >
<label> Section Points</label><br> <label> Section Points</label><br>
<input type="text" class="point" name="points[]" placeholder="Point"> <br> <input type="text" class="point" name="points[]" placeholder="Point"> <br>
<input type="file" class="form-control" name="icons[]" placeholder="Point"> <br>
<button class="close-point" onclick="deletePoint(1)" type="button"><i class="fa fa-trash" aria-hidden="true"></i></button> <button class="close-point" onclick="deletePoint(1)" type="button"><i class="fa fa-trash" aria-hidden="true"></i></button>
</div> </div>
@ -99,7 +100,7 @@
</div> </div>
</div> </div>
</div> </div>
</div> --> </div>
<div class="form-group row create-button"> <div class="form-group row create-button">
<div class="col-sm-10 col-md-12"> <div class="col-sm-10 col-md-12">
@ -137,6 +138,7 @@
debugger; debugger;
var html = '<div id="point'+point_count+'" class="point1">'+ var html = '<div id="point'+point_count+'" class="point1">'+
'<input type="text" class="point" name="points[]" placeholder="Point"> <br>'+ '<input type="text" class="point" name="points[]" placeholder="Point"> <br>'+
'<input type="file" class="form-control" name="icons[]" placeholder="Point"> <br>'+
'<button type="button" class="close-point" onclick="deletePoint('+point_count+')"><i class="fa fa-trash" aria-hidden="true"></i></button>'+ '<button type="button" class="close-point" onclick="deletePoint('+point_count+')"><i class="fa fa-trash" aria-hidden="true"></i></button>'+
'</div>'; '</div>';
$('#point_g_1').append(html); $('#point_g_1').append(html);

@ -88,7 +88,56 @@
</div> </div>
</br> </br>
@if($service_section->service_section_point)
<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="">Service Section Points <span style="color: red">*</span></label>
<br>
@foreach($service_section->service_section_point as $section_point)
<input type = "hidden" name = "point_ids[]" value = "{{$section_point->id}}"/>
<div id="point_old{{$section_point->id}}" class="point1" >
<input type="text" class="point" name="points[]" value="{{$section_point->point}}" placeholder="points"> <br>
<label>Image</label><br>
@if($section_point->icon != null)
<img src = "{{url($section_point->icon)}}">
@endif
<input type="file" class="form-control" name="icons[]" placeholder="Point"> <br>
<button class="close-point" onclick="deletePointPermanently({{$section_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-green" onclick="getPoint(1)">Add Points</button>
</div>
</div>
</div>
</div>
@else
<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" >
<div id="point1" class="point1" >
<label> Section Points</label><br>
<input type="text" class="point" name="points[]" placeholder="Point"> <br>
<!-- <button class="close-point" onclick="deletePoint(1)" type="button"><i class="fa fa-trash" aria-hidden="true"></i></button> -->
<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-green" onclick="getPoint(1)">Add Points</button>
</div>
</div>
</div>
</div>
@endif
@ -144,7 +193,7 @@
point_count = point_count +1; point_count = point_count +1;
var html = '<div id="point'+point_count+'" class="point1">'+ var html = '<div id="point'+point_count+'" class="point1">'+
'<input type="text" class="point" name="points[]" placeholder="Point"> <br>'+ '<input type="text" class="point" name="points[]" placeholder="Point"> <br>'+
'<textarea class="summernote_class" name="point_descriptions[]"> </textarea> <br>'+
'<input type="file" class="form-control" name="icons[]" placeholder="Point"> <br>'+ '<input type="file" class="form-control" name="icons[]" placeholder="Point"> <br>'+
'<button type="button" class="close-point" onclick="deletePoint('+point_count+')"><i class="fa fa-trash" aria-hidden="true"></i></button>'+ '<button type="button" class="close-point" onclick="deletePoint('+point_count+')"><i class="fa fa-trash" aria-hidden="true"></i></button>'+
'</div>'; '</div>';
@ -157,6 +206,7 @@
} }
function deletePointPermanently(id){ function deletePointPermanently(id){
alert(Laravel.url);
if($('.point').length > 1){ if($('.point').length > 1){
if (confirm("Are you sure Delete?")) { if (confirm("Are you sure Delete?")) {
$.ajax({ $.ajax({

@ -29,12 +29,12 @@
<div class="accordion-item"> <div class="accordion-item">
<h2 class="accordion-header" id="heading{{$faq->id}}"> <h2 class="accordion-header" id="heading{{$faq->id}}">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapse{{$faq->id}}" aria-expanded="false" aria-controls="collapse{{$faq->id}}"> <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapse{{$faq->id}}" aria-expanded="false" aria-controls="collapse{{$faq->id}}">
<img src="{{url('frontend/images/faq-lists.png')}}" class="mx-2" alt=""> {{$faq->question}} <img src="{{url('frontend/images/faq-lists.png')}}" class="mx-2" alt=""> {!!$faq->question!!}
</button> </button>
</h2> </h2>
<div id="collapse{{$faq->id}}" class="accordion-collapse collapse" aria-labelledby="heading{{$faq->id}}" data-bs-parent="#accordionExample"> <div id="collapse{{$faq->id}}" class="accordion-collapse collapse" aria-labelledby="heading{{$faq->id}}" data-bs-parent="#accordionExample">
<div class="accordion-body"> <div class="accordion-body">
{{$faq->answer}} {!!$faq->answer!!}
</div> </div>
</div> </div>
</div> </div>

@ -35,30 +35,16 @@
{!!$second_section->description!!} {!!$second_section->description!!}
</div> </div>
<div class="row"> <div class="row">
@foreach($second_section->service_section_point as $point)
<div class="col-md-3"> <div class="col-md-3">
<div class="universities-card"> <div class="universities-card">
<!-- <img src="{{url('frontend/images/university0fsydney.png')}}" class="w-100" alt=""> --> <img src="{{url($point->icon ?? '')}}" class="w-100" alt="">
<h5>University of Sydney</h5> <h5>{{$point->point}}</h5>
</div>
</div>
<div class="col-md-3">
<div class="universities-card">
<!-- <img src="{{url('frontend/images/university0fsydney.png')}}" class="w-100" alt=""> -->
<h5>University of Sydney</h5>
</div>
</div>
<div class="col-md-3">
<div class="universities-card">
<!-- <img src="{{url('frontend/images/university0fsydney.png')}}" class="w-100" alt=""> -->
<h5>University of Sydney</h5>
</div>
</div>
<div class="col-md-3">
<div class="universities-card">
<!-- <img src="{{url('frontend/images/university0fsydney.png')}}" class="w-100" alt=""> -->
<h5>University of Sydney</h5>
</div> </div>
</div> </div>
@endforeach
{!!$second_section->sub_description!!} {!!$second_section->sub_description!!}
</div> </div>
</section> </section>

@ -152,15 +152,15 @@
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<div class="why-us-desc"> <div class="why-us-desc">
<h1>Why Choose Us</h1> {!!$about_us->skip(1)->first()->description!!}
<p>A remarkable number of Nepalese students from across the world, from diverse backgrounds, have achieved their international education goals successfully through us, the best Study Abroad Consultants in Nepal.</p> <!-- <h1>Why Choose Us</h1>
<p>A remarkable number of Nepalese students from across the world, from diverse backgrounds, have achieved their international education goals successfully through us, the best Study Abroad Consultants in Nepal.</p> -->
<div class="why-us-lists"> <div class="why-us-lists">
<div class="lists-icons"> <div class="lists-icons">
<img src="{{url('frontend/icons/exclusive.svg')}}" class="img-fluid" alt=""> <img src="{{url('frontend/icons/exclusive.svg')}}" class="img-fluid" alt="">
</div> </div>
<div class="list-des"> <div class="list-des">
<h3>Certified and Registered Counsellors</h3> {!!$about_us->skip(1)->first()->sub_description!!}
<p>To ensure that your process adheres to the industry’s standard and is performed safely and in a trustworthy manner.</p>
</div> </div>
</div> </div>
<div class="why-us-lists"> <div class="why-us-lists">
@ -168,8 +168,7 @@
<img src="{{url('frontend/icons/coin.svg')}}" class="img-fluid" alt=""> <img src="{{url('frontend/icons/coin.svg')}}" class="img-fluid" alt="">
</div> </div>
<div class="list-des"> <div class="list-des">
<h3>Affordable Services for Wide Ranging Courses and Visa</h3> {!!$about_us->skip(1)->first()->bottom_description!!}
<p>Provide all the options available for your study or migration pathway conveniently and within reasonable amounts.</p>
</div> </div>
</div> </div>
<!--<div class="why-us-lists">--> <!--<div class="why-us-lists">-->

@ -178,7 +178,7 @@ Route::group(['middleware'=>['auth']],function (){
Route::get('services/{id}/view',[ServiceController::class,'show']); Route::get('services/{id}/view',[ServiceController::class,'show']);
Route::post('services/{id}',[ServiceController::class,'update']); Route::post('services/{id}',[ServiceController::class,'update']);
Route::get('services/{id}/delete',[ServiceController::class,'delete']); Route::get('services/{id}/delete',[ServiceController::class,'delete']);
Route::get('service_point/{service_point_id}',[ServiceController::class,'service_point']); // Route::get('service_point/{service_point_id}',[ServiceController::class,'service_point']);
Route::get('services/{id}/sections',[ServiceSectionController::class,'index']); Route::get('services/{id}/sections',[ServiceSectionController::class,'index']);
Route::get('services/{id}/section/create',[ServiceSectionController::class,'create']); Route::get('services/{id}/section/create',[ServiceSectionController::class,'create']);
@ -196,7 +196,7 @@ Route::group(['middleware'=>['auth']],function (){
Route::get('visa_services/{id}/view',[VisaServiceController::class,'show']); Route::get('visa_services/{id}/view',[VisaServiceController::class,'show']);
Route::post('visa_services/{id}',[VisaServiceController::class,'update']); Route::post('visa_services/{id}',[VisaServiceController::class,'update']);
Route::get('visa_services/{id}/delete',[VisaServiceController::class,'delete']); Route::get('visa_services/{id}/delete',[VisaServiceController::class,'delete']);
Route::get('service_point/{service_point_id}',[VisaServiceController::class,'service_point']); // Route::get('service_section_point/{service_point_id}',[VisaServiceController::class,'service_point']);
Route::get('visa_services/{id}/sections',[VisaServiceSectionController::class,'index']); Route::get('visa_services/{id}/sections',[VisaServiceSectionController::class,'index']);
Route::get('visa_services/{id}/section/create',[VisaServiceSectionController::class,'create']); Route::get('visa_services/{id}/section/create',[VisaServiceSectionController::class,'create']);
@ -205,7 +205,7 @@ Route::group(['middleware'=>['auth']],function (){
Route::get('visa_services/{id}/section/{secId}/view',[VisaServiceSectionController::class,'show']); Route::get('visa_services/{id}/section/{secId}/view',[VisaServiceSectionController::class,'show']);
Route::post('visa_services/{id}/section/{secId}',[VisaServiceSectionController::class,'update']); Route::post('visa_services/{id}/section/{secId}',[VisaServiceSectionController::class,'update']);
Route::get('visa_services/{id}/section/delete',[VisaServiceSectionController::class,'delete']); Route::get('visa_services/{id}/section/delete',[VisaServiceSectionController::class,'delete']);
Route::get('service_point/{service_point_id}',[VisaServiceSectionController::class,'service_point']); // Route::get('service_point/{service_point_id}',[VisaServiceSectionController::class,'service_point']);
Route::get('testimonials',[TestimonialController::class,'index']); Route::get('testimonials',[TestimonialController::class,'index']);
Route::get('testimonials/create',[TestimonialController::class,'create']); Route::get('testimonials/create',[TestimonialController::class,'create']);

Loading…
Cancel
Save