Esempio n. 1
0
 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'));
 }
Esempio n. 2
0
 public function viewAll()
 {
     $events_future = Event::futureEvents();
     $events_past = Event::pastEvents();
     return view('archive-event', compact('events_future', 'events_past'));
 }