public function storeList($productGroup) { // $data = $this->userData($request); // $data['title'] = 'Economix Video Bio-Gas Digestors'; // $data['description'] = 'Video Bio-Gas Digestors'; // // return view('linksbiogas',$data); return UserStores::where('product_group', $productGroup)->orderBy('name')->get(); }
public function multikindproduct($productId, Request $request) { $product = Products::find($productId); $store = UserStores::find($product->store_id); $user = Users::find($store->user_id); $data = $this->userData($request); $data['store'] = $store; $data['user'] = $user; $data['ItemCount'] = $this->itemCount($request); $data['title'] = $store->product_name; $data['Product'] = $product; return view('store_product', $data); }