예제 #1
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function edit(Lead $lead)
 {
     // Edit an exisiting lead
     $stages = Stage::lists('name', 'id');
     $sources = Source::lists('name', 'id');
     $genders = Gender::lists('name', 'id');
     $titles = Title::lists('name', 'id');
     $users = User::lists('name', 'id');
     return view('leads.edit', compact('lead', 'stages', 'sources', 'users', 'titles', 'genders'));
 }