fixing changes and product delete issue

This commit is contained in:
Ritikesh yadav
2024-05-17 16:47:12 +05:30
parent 71bf0b4afd
commit edbbc6972e
5 changed files with 57 additions and 4 deletions

View File

@@ -385,10 +385,11 @@ class DashboardController extends Controller
public function getProductDetail(Request $request)
{
$id = $request->id;
// dd($id);
if($id)
{
$product_id = MonthlyUpdateMaster::where('id',$id)->value('products_id');
// dd($product_id);
// dd(FractionalRealEstate::where('products_id',$product_id)->exists());
if(AlternativeInvestmentFund::where('products_id',$product_id)->exists())
{
$data = Product::with('alternativeInvestmentFund','categorys')->where('id',$product_id)->first();