public function pareto(Request $request) { $this->jsVariables($request); $collections = ['table' => $this->pareto->selectCategory($request), 'SelectedYear' => $request->year ? $request->year : $this->year(), 'FailureModes' => Info::failureModeCategory(), 'DiscrepancyCategories' => Info::discrepancyCategory()]; return view('home.pareto', $collections); }