public function getDestinationcity($id) { $cityinput = Jsonhotel::city($id); $cityoutput = Hotel::destinationcities($cityinput); $citydata = Xmltoarray::arr($cityoutput->DestinationCityList); //print_r($citydata['CITIES']['CITY']); exit; foreach ($citydata['CITIES']['CITY'] as $cities) { echo "<option value=" . $cities['CITYID'] . ">" . $cities['CITYNAME'] . "</option>"; } }
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 getDestinationcity($id) { $input = Xmlhotel::city($id); $data = Hotel::destinationcities($input); $output = Xmltoarray::arr($data); $city = $output['SOAP:ENVELOPE']['SOAP:BODY']['GETDESTINATIONCITYLISTRESPONSE']['GETDESTINATIONCITYLISTRESULT']['CITYLIST']['WSCITY']; //print_r($city); exit; foreach ($city as $cities) { echo "<option value=" . $cities['CITYCODE'] . ">" . $cities['CITYNAME'] . "</option>"; } }
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); }
public function getBalance() { $xmlinput = Xmlicash::channelpartnerlimit(); $jsonresult = Icash::registerkyc($xmlinput); $output = Xmltoarray::arr($jsonresult); $city = $output['SOAP:ENVELOPE']['SOAP:BODY']['CHANNELPARTNERLIMITRESPONSE']['CHANNELPARTNERLIMITRESULT']; $output1 = Xmltoarray::arr($city); //print_r($output1); exit; if ($output1 && $output1['CHANNELPARTNERLIMITRESPONSE']['STATUSCODE'] == 0) { $admin = Icash::updatebalance($output1['CHANNELPARTNERLIMITRESPONSE']['LIMIT']); //print_r($admin); } else { return Redirect::to('admin/noservice'); } }
public function getNeftcanceltran() { $input = Xmlicash::neftcancel(Input::all()); $data = Icash::registerkyc($input); $output = Xmltoarray::arr($data); $city = $output['SOAP:ENVELOPE']['SOAP:BODY']['NEFTCANCELTRANSACTIONRESPONSE']['NEFTCANCELTRANSACTIONRESULT']; $output1 = Xmltoarray::arr($city); //print_r($output1); exit; if ($output1['NEFTCANCELTRANSACTIONRESPONSE']['STATUSCODE'] == 0) { $jsoninput = Jsonicash::neftcancel(Input::all(), $output1['NEFTCANCELTRANSACTIONRESPONSE']['STATUSCODE']); $jsonresult = Icash::neftcancel($jsoninput); return Redirect::to('retailer/icash/viewtransaction')->with('success', $output1['NEFTCANCELTRANSACTIONRESPONSE']['STATUS']); } else { $jsoninput = Jsonicash::neftcancel(Input::all(), $output1['NEFTCANCELTRANSACTIONRESPONSE']['STATUSCODE']); $jsonresult = Icash::neftcancel($jsoninput); //print_r($jsoninput); exit; return Redirect::to('retailer/icash/viewtransaction')->with('failure', $output1['NEFTCANCELTRANSACTIONRESPONSE']['STATUS']); } }