/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit(Name $name) { // Edit an exisiting name $brands = Brand::lists('short_name', 'id'); $statuses = Status::lists('name', 'id'); return view('names.edit', compact('name', 'brands', 'statuses')); }
/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit(Idea $idea) { // Edit an exisiting idea $brands = Brand::lists('short_name', 'id'); $industries = Industry::lists('name', 'id'); return view('ideas.edit', compact('idea', 'brands', 'industries')); }
/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $store = Store::find($id); $days = Day::all(); $brands = Brand::lists('brand_name', 'id')->all(); $payment_types = PaymentType::lists('type_name', 'id')->all(); return view('admin.stores.edit', compact('store', 'days', 'brands', 'payment_types')); }
/** * 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')); }
/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit(Director $director) { // Edit an exisiting director $brands = Brand::lists('short_name', 'id'); $statuses = Status::lists('name', 'id'); $genders = Gender::lists('name', 'id'); $titles = Title::lists('name', 'id'); return view('directors.edit', compact('director', 'brands', 'statuses', 'users', 'titles', 'genders')); }
/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $product_single = Product::find($id); $brands = Brand::lists('name', 'id'); $categories = Category::where('active', '=', 'Enable')->lists('name', 'id'); return view('admin.products.edit', compact('product_single', 'brands', 'categories')); }
/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($id) { $brands = Brand::lists('name', 'id'); $categorys = Category::lists('name', 'id'); $types = Type::lists('name', 'id'); $product = Product::find($id); return view('admin.product.edit', compact('categorys', 'brands', 'product', 'types')); }
/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $product = Product::find($id); $category = Category::lists('name', 'id'); $brand = Brand::lists('name', 'id'); $origin = Origin::lists('name', 'id'); return view('products.edit', compact('product', 'category', 'brand', 'origin')); }
public function store(ArticlesRequest $request) { // set the shop to the shop of the logged user $article = new Article($request->all()); $this->saveArticle($article); flash()->success('Article has been created. You can now enter the Pictures!'); $modelsList = BrandModel::lists('name', 'id')->prepend('(all)', ''); $brandsList = Brand::lists('name', 'id')->prepend('(all)', ''); $partsList = PartType::lists('name', 'id')->prepend('(all)', ''); $articleTypesList = ArticleType::lists('name', 'id')->prepend('(choose one)', ''); // get the brand pictures $articlePictures = $article->pictures()->get(); return view('backoffice.articles.edit')->with(compact('brandsList'))->with(compact('partsList'))->with(compact('modelsList'))->with(compact('article'))->with(compact('articlePictures'))->with(compact('articleTypesList')); }
/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($id) { $data = array('product' => Product::find($id), 'brand' => Brand::lists('nama_brand', 'id_brand'), 'categori' => Categori::lists('nama_kategori', 'id_kategori')); return view('admin.edit_product', compact('data')); }