/** * Display a listing of the resource. * * @param ReportingRepo $reporting * @return Response */ public function dashboard(ReportingRepo $reporting) { $lead_sources = $reporting->leads_by_source(); $leads = Lead::where('is_scrubbed', 0)->paginate(10); $pending_leads = PendingLead::orderBy('est_closing_date', 'ASC')->get(); return view('admin.leadrouter.dashboard', compact('leads', 'pending_leads', 'lead_sources')); }