Ejemplo n.º 1
0
 public function reportStepThree(Request $data)
 {
     if (Session::has('report.user_id')) {
         $userid = Session::get('report.user_id');
     } else {
         $userid = Auth::user()->id;
     }
     if ($data->isMethod('post')) {
         $stepthreereport = $data->input('stepthreereport');
         $stepthreecard = $data->input('stepthreecard');
         $stepthreetransaction = $data->input('stepthreetransaction');
         $stepthreedisplayname = $data->input('stepthreedisplayname');
         $stepthreecity = $data->input('stepthreecity');
         $stepthreestate = $data->input('stepthreestate');
         $stepthreecountry = $data->input('stepthreecountry');
         $reportstepthree = array();
         $reportstepthree['report_text'] = $stepthreereport;
         $reportstepthree['transaction'] = $stepthreecard;
         $reportstepthree['card'] = $stepthreetransaction;
         $reportstepthree['reporter_displayname'] = $stepthreedisplayname;
         $reportstepthree['reporter_city'] = $stepthreecity;
         $reportstepthree['reporter_state'] = $stepthreestate;
         $reportstepthree['reporter_country'] = $stepthreecountry;
         Session::forget('report.stepthree');
         Session::put('report.stepthree', $reportstepthree);
         if (Session::has('report.id')) {
             $reportid = Session::get('report.id');
         } else {
             return redirect('/filereport');
         }
         $reportdata = array();
         $reportdata['report_text'] = $stepthreereport;
         $reportdata['is_credit_card_used'] = $stepthreecard;
         $reportdata['is_online_transaction'] = $stepthreetransaction;
         $reportdata['display_name'] = $stepthreedisplayname;
         $objReport = new report();
         $reportresponse = $objReport->insertReportStepThree($reportdata, $reportid, $userid);
         return redirect('/filereport?step=4');
     }
 }