public function getAddbene() { //print_r(Input::all()); $input = Xmlicash::addbene(Input::all()); $data = Icash::registerkyc($input); $output = Xmltoarray::arr($data); //print_r($output); $city = $output['SOAP:ENVELOPE']['SOAP:BODY']['ADDBENEFICIARYRESPONSE']['ADDBENEFICIARYRESULT']; $output1 = Xmltoarray::arr($city); //print_r($output1); if ($output1['ADDBENEFICIARYRESPONSE']['STATUSCODE'] == 0) { //$jsoninput=Jsonicash::addbene(Input::all(),$output1['ADDBENEFICIARYRESPONSE']['BENEID']); //$jsonresult=Icash::addbene($jsoninput); //print_r($jsoninput); exit; return Redirect::to('retailer/icash/benotp/' . $output1['ADDBENEFICIARYRESPONSE']['BENEID']); } else { return Redirect::to('retailer/icash/addbeneficiary')->with('failure', $output1['ADDBENEFICIARYRESPONSE']['STATUS']); } }