/**
  * Display Registration Page
  * @param  [type] $id [description]
  * @return [type]     [description]
  */
 public function getRegistration($id)
 {
     $event = $this->eventRepo->findById($id);
     $hostOrg = $this->orgRepo->findById($event->organization_id);
     $partners = $event->partners()->get();
     $partners->prepend($hostOrg);
     $partners->prepend('');
     $organizations = $partners->lists('name', 'id');
     $states = States::all();
     $grades = Grades::all();
     $genders = Gender::all();
     $languages = Languages::all();
     $sweatshirt_sizes = SweatshirtSizes::all();
     if ($event->private) {
         Flash::overlay('Note: This is a private event.  Your email must be on the guest list to process registration.');
     }
     return view('public.events.registration', compact('event', 'organizations', 'states', 'languages', 'grades', 'sweatshirt_sizes', 'genders'));
 }
 public function edit($id)
 {
     $attendee = $this->attendees->findById($id);
     $event = $attendee->event()->first();
     $hostOrg = $event->organization()->first();
     $organizations = $event->partners()->get();
     $organizations->prepend($hostOrg);
     $attendee_organization = $attendee->organization()->first();
     $organizations->forget($attendee_organization->id);
     $organizations->prepend($attendee_organization);
     $organizations = $organizations->lists('name', 'id');
     $attendee_application_form = $attendee->application_form()->first();
     $attendee_health_release_form = $attendee->health_release_form()->first();
     $sweatshirt_sizes = SweatshirtSizes::all();
     $states = States::all();
     $genders = Gender::all();
     $languages = Languages::all();
     $grades = Grades::all();
     return view('attendees.edit', compact('attendee', 'attendee_application_form', 'attendee_health_release_form', 'sweatshirt_sizes', 'states', 'genders', 'languages', 'organizations', 'grades'));
 }