public function getForgetpinvalidate() { $input = Xmlicash::forgetpin(Input::all()); $data = Icash::registerkyc($input); $output = Xmltoarray::arr($data); $city = $output['SOAP:ENVELOPE']['SOAP:BODY']['FORGOTPINRESPONSE']['FORGOTPINRESULT']; $output1 = Xmltoarray::arr($city); //print_r($output1); if ($output1['FORGOTPINRESPONSE']['STATUSCODE'] == 0) { return Redirect::to('retailer/icash/forgetpin')->with('success', $output1['FORGOTPINRESPONSE']['STATUS']); } else { return Redirect::to('retailer/icash/forgetpin')->with('failure', $output1['FORGOTPINRESPONSE']['STATUS']); } }