public function getBookfinal()
 {
     //print_r(Input::all());
     $input = Xmlbus::book(Input::all());
     $data = Bus::destinationcities($input);
     $output = Xmltoarray::arr($data);
     //echo "<pre>";
     //print_r($output);
     return View::make('retailer.bus.sucess')->with('bookroomoutput', $output);
 }
 public function getSample()
 {
     $input = Xmlbus::city();
     $data = Bus::cities($input);
     $output = Xmltoarray::arr($data);
     $city = $output['SOAP:ENVELOPE']['SOAP:BODY']['GETALLCITIESRESPONSE']['GETALLCITIESRESULT']['WSBUSCITYLIST']['WSBUSCITYLIST'];
     foreach ($city as $cities) {
         print_r($cities);
         echo "<pre>";
     }
 }
 public function getSeatlayout()
 {
     $input = Xmlbus::seatlayout(Input::all());
     //print_r($input); exit;
     $data = Bus::destinationcities($input);
     $output = Xmltoarray::arr($data);
     $html = $output['SOAP:ENVELOPE']['SOAP:BODY']['GETSEATLAYOUTRESPONSE']['GETSEATLAYOUTRESULT']['WSNEWSEATLAYOUTDETAILS']['HTMLLAYOUT'];
     //echo $html;
     $seatlayout = $output['SOAP:ENVELOPE']['SOAP:BODY']['GETSEATLAYOUTRESPONSE']['GETSEATLAYOUTRESULT']['WSNEWSEATLAYOUTDETAILS']['WSSEATLAYOUTSTRUCTURE']['OBJSTRUCTSEATDETAILS']['ARRAYOFWSBUSSEATDETAIL'];
     //echo json_encode($seatlayout);
     echo json_encode($seatlayout);
 }