fixing changes and product delete issue
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user