public function getRoomdescription() { $searchinput = Jsonhotel::hotelinfo(Input::get('hotelcode'), Input::get('resultindex'), Input::get('traceid')); $hotelinfo = Hotel::hotelinfo($searchinput); $roominfo = Hotel::roominfo($searchinput); //print_r($searchinput); //print_r($hotelinfo); //echo "<pre>"; //print_r($roominfo); //exit; if ($hotelinfo && $hotelinfo->HotelInfoResult->Error->ErrorCode == 0) { return View::make('retailer.hotel.roomdescription')->with('hotelinfo', $hotelinfo)->with('roominfo', $roominfo)->with('input', Input::all()); } else { return View::make('retailer.service'); } }