Esempio n. 1
0
 public function storeSession($reportid, Request $data)
 {
     $objReport = new report();
     $result = $objReport->getReportById($reportid);
     Session::forget('report');
     $reportstepone = array();
     $reportstepone['companyname'] = $result->company_or_individual_name;
     $reportstepone['aka'] = $result->company_or_individual_aka;
     $reportstepone['webaddress'] = $result->web_address;
     $reportstepone['locationtype'] = $result->location_type;
     $reportstepone['streetaddress'] = $result->street_address;
     $reportstepone['city'] = $result->city;
     $reportstepone['state'] = $result->state;
     $reportstepone['zipcode'] = $result->zip_code;
     $reportstepone['country'] = $result->country;
     $reportstepone['fax'] = $result->fax;
     $reportstepone['phone'] = $result->phone;
     $reportstepone['email'] = $result->email_address;
     Session::put('report.stepone', $reportstepone);
     Session::put('report.id', $reportid);
     $reportsteptwo = array();
     $reportsteptwo['title'] = $result->report_title;
     $reportsteptwo['category'] = $result->category_id;
     $reportsteptwo['subcategory'] = $result->subcategory_id;
     Session::put('report.steptwo', $reportsteptwo);
     $reportstepthree = array();
     $reportstepthree['report_text'] = $result->report_text;
     $reportstepthree['transaction'] = $result->is_online_transaction;
     $reportstepthree['card'] = $result->is_credit_card_used;
     $reportstepthree['reporter_displayname'] = $result->display_name;
     Session::put('report.stepthree', $reportstepthree);
     return redirect('/filereport');
     die;
 }