Пример #1
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function edit(Brand $brand)
 {
     // Edit an exisiting brand
     $statuses = Status::lists('name', 'id');
     $types = Type::whereIn('tablename', ['all', 'brands'])->lists('name', 'id');
     $users = User::lists('name', 'id');
     return view('brands.edit', compact('brand', 'statuses', 'users', 'types'));
 }
Пример #2
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function edit(Stack $stack)
 {
     // Edit an exisiting stack
     $brands = Brand::lists('short_name', 'id');
     $banks = Bank::lists('name', 'id');
     $types = Type::whereIn('tablename', ['all', 'stacks'])->lists('name', 'id');
     return view('stacks.edit', compact('stack', 'brands', 'banks', 'users', 'types'));
 }
Пример #3
0
 /**
  * Show the form for creating a new resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function create()
 {
     // Create new activity
     $statuses = Status::lists('name', 'id');
     $leads = Lead::lists('firstname', 'id');
     $types = Type::whereIn('tablename', ['all', 'activities'])->lists('name', 'id');
     $users = User::lists('name', 'id');
     return view('activities.create', compact('statuses', 'types', 'users', 'leads'));
 }