function lockProduct($id)
 {
     $product = ProductProvider::find($id);
     if ($product->isActive) {
         $product->update(['isActive' => 0]);
     } else {
         $product->update(['isActive' => 1]);
     }
     return redirect()->route('newProduct');
 }