/** * 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')); }
/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $organization = $this->organizations->findById($id); $info = $organization->info()->first(); $states = States::all(); return view('organizations.edit', compact('organization', 'states', 'info')); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $organization = $this->organizations->findById(Auth::user()->organization_id); $states = States::all(); return view('profile.index', compact('states', 'organization')); }
/** * Show the main Event Form * This form consists of Event and Attendee interface * * @param int $id * @return Response */ public function manage($id) { $event = $this->eventRepo->findById($id); $eventsite = $event->eventsite()->first(); $selectedPartners = $event->partners()->get(); $selectedPartnersId = $selectedPartners->lists('id')->toArray(); $searchLastName = Input::get('search_last_name'); $searchFirstName = Input::get('search_first_name'); $searchFeeStatus = Input::get('search_payment_status'); $search_conditions = array('firstname' => $searchFirstName, 'lastname' => $searchLastName, 'fee_status' => $searchFeeStatus); $attendees = $this->attendees->search($id, $search_conditions); $guests = $this->eventGuestRepo->findAllPaginatedByEvent($event->id); $states = States::all(); $partners = $this->orgRepo->getPartnerOrganizations(Auth::user()->organization_id); return view('events.manage', compact('event', 'eventsite', 'partners', 'selectedPartnersId', 'states', 'guests', 'attendees')); }