public function dashboard() { $venues = Venue::orderBy('name', 'asc')->get(); $bands = Band::orderBy('name', 'asc')->get(); $events = Event::orderBy('date', 'asc')->get(); $events_future = Event::futureEvents(); $events_past = Event::pastEvents(); return view('dashboard', compact('venues', 'events', 'events_future', 'events_past', 'bands')); }
public function viewAll() { $events_future = Event::futureEvents(); $events_past = Event::pastEvents(); return view('archive-event', compact('events_future', 'events_past')); }