/**
  * Remove multiple products from storage.
  * DELETE /products/{id}
  *
  * @internal param int $chk_activity (array of ids)
  * @param Request $request
  * @return Response
  */
 public function option_multiple(Request $request)
 {
     $products_id = $request->input('chk_product');
     $action = $request->input('select_action');
     foreach ($products_id as $id) {
         if ($action == "active") {
             $this->productRepository->update_state($id, 1);
         } elseif ($action == "inactive") {
             $this->productRepository->update_state($id, 0);
         }
         /*elseif($action == "delete")
           $this->productRepository->destroy($id);*/
     }
     return Redirect()->route('products');
 }
 /**
  * Mark selled a product.
  *
  * @param  int $id
  * @return Response
  */
 public function selled($id)
 {
     $this->productRepository->update_state($id, 4);
     Flash('Producto Vendido');
     return Redirect()->route('profile.show', Auth()->user()->username);
 }