Ejemplo n.º 1
0
 public function activityIndex()
 {
     $activities = Activity::orderBy('name')->get();
     $events = Event::orderBy('name')->get();
     $types = Activity::getTypes();
     return view('crud.activity', compact('activities', 'events', 'types'));
 }
Ejemplo n.º 2
0
 public function insc()
 {
     $events = Event::orderBy('name')->get();
     $activitiesNotInsc = Activity::orderBy('name')->get();
     $activitiesInsc = Activity::orderBy('name')->get();
     return view('activitiesevent', compact('events', 'activitiesInsc', 'activitiesNotInsc'));
 }
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function bancaIndex()
 {
     //
     $events = Event::orderBy('name')->get();
     $professors = Participant::where('type', 'like', 'professor')->orderBy('name')->get();
     $boards = BancaAvaliadora::orderBy('created_at')->get();
     return view('crud.banca', compact('events', 'professors', 'boards'));
 }