/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($id) { $warehouse = Warehouse::findOrFail($id); $activities = Activity::lists('name', 'id'); $types = Type::lists('name', 'id'); return view('warehouses.edit', compact('warehouse', 'activities', 'types')); }
/** * Show the form for editing the specified resource. * * @param Venue $venue * @return Response * @internal param int $id */ public function edit(Venue $venue) { $features = Feature::lists('feature', 'id'); $cities = City::lists('name', 'id'); $types = Type::lists('type', 'id'); return view('venues.edit', compact('venue', 'features', 'cities', 'types')); }
/** * 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')); }
/** * 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')); }
/** * Список организаций * @param Request $request * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View */ public function fetch(Request $request) { $organizations = Organization::filter($request->all())->with('status', 'city', 'opf', 'type', 'organizations', 'organizations.city', 'organizations.type', 'organizations.status', 'organizations.opf')->orderBy('id', 'desc')->get(); return view('admin.organization.list', ['organizations' => $organizations, 'statuses' => Status::lists('name', 'id'), 'opfs' => Opf::lists('name', 'id'), 'types' => Type::lists('name', 'id'), 'cities' => City::lists('name', 'id')]); }
/** * Show the form for creating a new resource. * * @return Response */ public function create() { $showDefault = cmsHelp('App\\Produk', 'produks'); $tipe = Type::lists('name', 'id'); return view('admin.addProduk', compact('tipe'))->with($showDefault); }