public function getIndex() { $leads = Lead::orderBy('created_at', 'desc')->simplePaginate(25); return view('admin.leads.index', compact('leads')); }
public function getLeads() { $leads = $this->lead->orderBy('updated_at')->all(); return $leads; }
public function index() { $leads = Lead::orderBy('id', 'asc')->get(); return view('leads', ['leads' => $leads, 'loggedUser' => $this->user, 'hash' => $this->hash, 'title' => 'Dashboard - Leads']); }