fixing product view issues

This commit is contained in:
Ritikesh yadav
2024-06-07 16:35:40 +05:30
parent f0f1c155a5
commit d42075a8fb
7 changed files with 98 additions and 128 deletions

View File

@@ -55,8 +55,8 @@ class IndianRealAssetController extends Controller
{
$realEstate = RealEstate::with('realEstatePhoto')->where('slug', $slug)->first();
$productData = RealEstate::where('slug', '=', $slug)->first();
$productData = Product::where('id', '=', $productData->products_id)->first();
// dd($realEstate);
$productData = Product::with('product_images')->where('id', '=', $productData->products_id)->first();
// dd($productData);
return view('Frontend.Pages.indian-real-estate.product', compact('realEstate', 'productData'));
}