public function getTranshistory() { $input = Xmlicash::transhistory(Input::all()); $data = Icash::registerkyc($input); $output = Xmltoarray::arr($data); $city = $output['SOAP:ENVELOPE']['SOAP:BODY']['TRANSACTIONHISTORYRESPONSE']['TRANSACTIONHISTORYRESULT']; $output1 = Xmltoarray::arr($city); //print_r($input); exit; if ($output1['TRANSACTIONHISTORYRESPONSE']['STATUSCODE'] == 0) { return View::make('retailer.icashcard.transhistory')->with('transferdata', $output1['TRANSACTIONHISTORYRESPONSE']); } else { return Redirect::to('retailer/icash/viewtransaction')->with('failure', $output1['TRANSACTIONHISTORYRESPONSE']['STATUS']); } }