/**
  * User chose single employee from dropdown to be edited
  *
  * @return mixed
  */
 public function doChooseEmployee()
 {
     $employee = Employee::find(Input::get('choose'));
     $dept = ['' => 'Choose...'] + Department::lists('name', 'id');
     $location = ['' => 'Choose...'] + Location::lists('name', 'id');
     return View::make('admin.edit-employee', compact('dept', 'location', 'employee'));
 }
 /**
  * Show the form for creating a new calendarevent
  *
  * @return Response
  */
 public function create()
 {
     $locations = ['-1' => 'none'] + Location::lists('name', 'id');
     // $locations = Location::lists('name', 'id');
     // $locations = array_add($locations, '-1', '');
     return View::make('makeEvent', compact('locations'));
 }
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $community_event = $this->community_event->find($id);
     $locations = Location::lists('location_name', 'id');
     if (is_null($community_event)) {
         return Redirect::route('community_events.index');
     }
     return View::make('community_events.edit', compact('community_event', 'locations'));
 }
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $opportunity = $this->opportunity->find($id);
     $locations = Location::lists('location_name', 'id');
     $group = Opportunity::find($id);
     $skills = Skill::all();
     $assigned = $group->skills->lists('id');
     if (is_null($opportunity)) {
         return Redirect::route('opportunities.index');
     }
     return View::make('opportunities.edit', compact('opportunity', 'locations', 'group', 'skills', 'assigned'));
 }