/** * Display the specified resource. * * @param int $id * @return Response */ public function show($id) { $user = Auth::user(); $criteria = array('report_date_id' => $id, 'institution_id' => $user->institution->id); $industry_extension2s = IndustryExtension2::where($criteria)->paginate(10); $report_date = ReportDate::findOrFail($id); return view('tviadmin.industry_extension2s.index2', array('industry_extension2s' => $industry_extension2s, 'report_date' => $report_date)); }