public function getSearch() { $searchinput = Jsonhotel::search(Input::all()); $searchoutput = Hotel::search($searchinput); //print_r($searchinput); exit; if ($searchoutput && $searchoutput->HotelSearchResult->Error->ErrorCode == 0) { return View::make('retailer.hotel.roomdetails')->with('searchoutput', $searchoutput)->with('input', Input::all()); } else { return View::make('retailer.service'); } }