layou-and-welcome

et#18
Mahesh Sharma 2 years ago
parent 42cf230d1f
commit d356110d68
  1. 68
      app/Http/Controllers/Admin/VisaServiceSectionController.php
  2. BIN
      public/images/service/2023/02/03/8c16a496cc63310feabed2f322bb37d4.png
  3. BIN
      public/images/visa_service/2023/02/01/532f0d3ebffd9da0dc5139849e941b27.png
  4. 4
      resources/views/layout/app.blade.php
  5. 2
      resources/views/welcome.blade.php

@ -181,66 +181,20 @@ class VisaServiceSectionController extends Controller
$service_section->status = \request('status'); $service_section->status = \request('status');
$service_section->order_by = \request('order_by'); $service_section->order_by = \request('order_by');
// if($request->hasFile('image')){ if($request->hasFile('image')){
// $extension = \request()->file('image')->getClientOriginalExtension(); $extension = \request()->file('image')->getClientOriginalExtension();
// $image_folder_type = array_search('service',config('custom.image_folders')); //for image saved in folder $image_folder_type = array_search('service',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('image'),$extension,$count,$image_folder_type);
// $image_path = $out_put_path[0]; $image_path = $out_put_path[0];
// if (is_file(public_path().'/'.$service_section->image) && file_exists(public_path().'/'.$service_section->image)){ if (is_file(public_path().'/'.$service_section->image) && file_exists(public_path().'/'.$service_section->image)){
// unlink(public_path().'/'.$service_section->image); unlink(public_path().'/'.$service_section->image);
// }
// $service_section->image = $image_path;
// }
if($service_section->update()){
$points = $request->points;
if($points[0] != null){
if($request['point_ids'] !== null){
foreach($request['point_ids'] as $key => $pid){
$service_section_point = new VisaServiceSectionPoint();
$service_section_point = $service_section_point->find($pid);
// $service_section_point = ServiceSectionPoint::find($id);
$service_section_point->point = $points[$key];
$service_section_point->update();
}
}else{
foreach($points as $key => $point){
$service_section_point = new VisaServiceSectionPoint();
$service_section_point->visa_service_section_id = $service_section->id;
$service_section_point->point = $point;
$service_section_point->save();
}
}
} }
$service_point = $service_section->service_section_point(); $service_section->image = $image_path;
$service_point->delete(); }
foreach($points as $key => $point){ if($service_section->update()){
$service_section_point = new ServiceSectionPoint();
$service_section_point->service_section_id = $service_section->id;
if(array_key_exists($key,$point_descriptions)){
$service_section_point->point_description = $point_descriptions[$key];
}
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->point = $point;
$service_section_point->update();
}
Session::flash('success','Visa Service Section has been successfully updated!'); Session::flash('success','Visa Service Section has been successfully updated!');
return redirect('admin/visa_services/'.$id.'/sections'); return redirect('admin/visa_services/'.$id.'/sections');

Binary file not shown.

After

Width:  |  Height:  |  Size: 389 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 500 KiB

@ -148,7 +148,7 @@
<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="{{$phone}}" class="text-decoration-none"> <a href="tel:{{$phone}}" class="text-decoration-none">
<p>{{$phone}}</p> <p>{{$phone}}</p>
</a> </a>
</div> </div>
@ -158,7 +158,7 @@
<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=""/>
</div> </div>
<a href="mailto:admin@eteducation.com.au" class="text-decoration-none"> <a href="mailto: admin@eteducation.com.au" class="text-decoration-none">
<p>admin@eteducation.com.au</p> <p>admin@eteducation.com.au</p>
</a> </a>
</div> </div>

@ -128,7 +128,7 @@
</div> </div>
<h2>Student Visa</h2> <h2>Student Visa</h2>
<p>Visit Australia to participate in the course of study.</p> <p>Visit Australia to participate in the course of study.</p>
<a href="{{url('/visa/study-visa')}}">Learn More</a> <a href="{{url('/visa/student-visa')}}">Learn More</a>
</div> </div>
<div class="service-card"> <div class="service-card">
<div class="service-icon"> <div class="service-icon">

Loading…
Cancel
Save