Пример #1
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function edit(Activity $activity)
 {
     // Edit an exisiting activity
     $statuses = Status::lists('name', 'id');
     $leads = Lead::lists('firstname', 'id');
     $types = Type::lists('name', 'id');
     $users = User::lists('name', 'id');
     return view('activities.edit', compact('activity', 'statuses', 'types', 'users', 'leads'));
 }