$testimonial, 'gallery' => $gallery, 'destination' => $destination, ]); } public function search(Request $request){ $data=$request->input('search'); $record=DB::table('destinations')->where('name','like','%' .$data . '%')->orderby('updated_at','DESC')->get(); $destination = Destination::all(); $testimonial = Testimonial::all(); $gallery = Gallery::all(); return view('destination', [ 'record'=>$record, 'destination' => $destination, 'testimonial' => $testimonial, 'gallery' => $gallery, ]); } public function about() { $testimonial = Testimonial::all(); $destination = Destination::all(); $gallery = Gallery::all(); return view('about', [ 'testimonial' => $testimonial, 'gallery' => $gallery, 'destination'=>$destination, ]); } public function destination(){ $destination=Destination::all(); return view('destination',[ 'destination'=>$destination ]); } public function destination_detail($url){ $destination = Destination::where('url',$url)->firstOrFail(); return view('destinationdetail',[ 'destination'=>$destination, ]); } public function gallery() { $gallery = Gallery::all(); $destination = Destination::all(); return view('gallery', [ 'gallery' => $gallery, 'destination'=>$destination ]); } public function contact() { $destination = Destination::all(); return view('contact',[ 'destination'=>$destination ]); } }