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