public function postPurchaseDueReportResult() { $date1 = Input::get('from_date'); $date2 = Input::get('to_date'); $branch_id = Input::get('branch_id'); $report = new Report(); $results = $report->getPurchaseDueReport($date1, $date2, $branch_id); return view('Reports.purchaseDueReportResult', compact('results'))->with('branch_id', $branch_id)->with('date1', $date1)->with('date2', $date2); }