fixing bugs

This commit is contained in:
meghamalore
2024-05-10 11:09:28 +05:30
parent 3268e32299
commit 2fde378902
16 changed files with 40 additions and 16 deletions

View File

@@ -73,9 +73,9 @@ class HandpickedInvestmentController extends Controller
];
$products = Product::query()
->select(DB::raw('products.id, products.categories_id as category_id, coalesce(fre.property_name_and_location,aif.fund_name,re.property_name,funds.fund_name) as product_name'), DB::raw('coalesce(companies.company_logo) as company_logo'), DB::raw('coalesce(fre.slug,aif.slug,re.slug, funds.slug) as slug'), DB::raw('coalesce(fre.geographic_focus,aif.geographic_focus,re.geographic_focus, funds.geographic_focus) as geographic_focus'), DB::raw('coalesce(aif.minimum_capital_commitment,fre.minimum_investment,funds.minimum_investment,re.total_price) as minimum_investment'),
->select(DB::raw('products.id,products.description, products.categories_id as category_id, coalesce(fre.property_name_and_location,aif.fund_name,re.property_name,funds.fund_name) as product_name'), DB::raw('coalesce(companies.company_logo) as company_logo'), DB::raw('coalesce(fre.slug,aif.slug,re.slug, funds.slug) as slug'), DB::raw('coalesce(fre.geographic_focus,aif.geographic_focus,re.geographic_focus, funds.geographic_focus) as geographic_focus'), DB::raw('coalesce(aif.minimum_capital_commitment,fre.minimum_investment,funds.minimum_investment,re.total_price) as minimum_investment'),
// DB::raw('coalesce(aif.description,fre.property_description,re.remarks,funds.fund_description) as description'),
DB::raw('coalesce(fre.property_description,products.description) as description'),
// DB::raw('coalesce(products.description) as description'),
// 'products.description',
DB::raw('coalesce(categories.category_name) as category_name'))
->leftJoin('fractional_real_estates as fre', 'products.id', 'fre.products_id')