public function getNeftcancelotp($tranid, $date) { $input = Xmlicash::neftcancelotp($tranid, $date); $data = Icash::registerkyc($input); $output = Xmltoarray::arr($data); //print_r(date('m/d/Y',$date)); $city = $output['SOAP:ENVELOPE']['SOAP:BODY']['NEFTCANCELOTPRESPONSE']['NEFTCANCELOTPRESULT']; $output1 = Xmltoarray::arr($city); //print_r($output1); exit; if ($output1['NEFTCANCELOTPRESPONSE']['STATUSCODE'] == 0) { return Redirect::to('retailer/icash/neftcancel/' . $tranid . '/' . $date)->with('success', $output1['NEFTCANCELOTPRESPONSE']['STATUS']); } else { return Redirect::to('retailer/icash/viewtransaction')->with('failure', $output1['NEFTCANCELOTPRESPONSE']['STATUS']); } }