public function postUpdatekyc()
 {
     $idproof = Input::file('Idproof');
     $addrproof = Input::file('addrproof');
     if ($idproof && $addrproof) {
         $date = getdate();
         $filename = $date[0] . $idproof->getClientOriginalName();
         echo $filename;
         $destinationPath = './assets/idproof/';
         $uploadSuccess = $idproof->move($destinationPath, $filename);
         $addressname = $date[0] . $addrproof->getClientOriginalName();
         //echo $filename;
         $destinationPath = './assets/addrproof/';
         $uploadSuccess = $addrproof->move($destinationPath, $addressname);
         $idpath = url('assets/idproof/' . $filename);
         echo $idpath;
         //exit;
         $addrpath = url('assets/addrproof/' . $addressname);
         //echo $addrpath; exit;
         $input = Xmlicash::kycupload(Input::get(), $idpath, $addrpath);
         $data = Icash::registerkyc($input);
         $output = Xmltoarray::arr($data);
         //print_r($output); exit;
         $city = $output['SOAP:ENVELOPE']['SOAP:BODY']['KYCUPLOADRESPONSE']['KYCUPLOADRESULT'];
         $output1 = Xmltoarray::arr($city);
         //print_r($output1); exit;
         if ($output1['KYCUPLOADRESPONSE']['STATUSCODE'] == 0) {
             //jsoninput=Jsonicash::kycupload(Input::get(),$idpath,$addrpath);
             //$jsonresult=Icash::kycupload($jsoninput);
             //print_r($jsoninput); exit;
             Session::put('NAME', $output1['KYCUPLOADRESPONSE']['NAME']);
             Session::put('MIDDLENAME', $output1['KYCUPLOADRESPONSE']['MIDDLENAME']);
             Session::put('LASTNAME', $output1['KYCUPLOADRESPONSE']['LASTNAME']);
             Session::put('DOB', $output1['KYCUPLOADRESPONSE']['DOB']);
             Session::put('EMAILID', $output1['KYCUPLOADRESPONSE']['EMAILID']);
             Session::put('PINCODE', $output1['KYCUPLOADRESPONSE']['PINCODE']);
             Session::put('ADDRESS', $output1['KYCUPLOADRESPONSE']['ADDRESS']);
             Session::put('CITY', $output1['KYCUPLOADRESPONSE']['CITY']);
             Session::put('STATE', $output1['KYCUPLOADRESPONSE']['STATE']);
             Session::put('MOBILE', $output1['KYCUPLOADRESPONSE']['MOBILE']);
             Session::put('MOTHERMAIDENNAME', $output1['KYCUPLOADRESPONSE']['MOTHERMAIDENNAME']);
             Session::put('TRANSACTIONLIMIT', $output1['KYCUPLOADRESPONSE']['TRANSACTIONLIMIT']);
             Session::put('MMID', $output1['KYCUPLOADRESPONSE']['MMID']);
             Session::put('KYCSTATUS', $output1['KYCUPLOADRESPONSE']['KYCSTATUS']);
             return Redirect::to('retailer/icash/manage')->with('success', $output1['KYCUPLOADRESPONSE']['STATUS']);
         } else {
             return Redirect::to('retailer/icash/kycupload')->with('failure', $output1['KYCUPLOADRESPONSE']['STATUS']);
         }
     }
 }