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 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);
 }