fixing changes
This commit is contained in:
@@ -834,8 +834,20 @@ class DashboardController extends Controller
|
||||
->join('marketplace_aif_sellers', 'marketplace_buyer_forms.associated_id', 'marketplace_aif_sellers.id')
|
||||
->alernativeInvestmentFund()
|
||||
->where('listing_status', '!=', 'Hide')
|
||||
->select('name_of_the_aif_fund', 'fund_category', 'fund_strategy', 'type_of_fund', 'total_capital_commitment', 'uncalled_capital_commitment')
|
||||
->notSold()
|
||||
// ->select('name_of_the_aif_fund', 'fund_category', 'fund_strategy', 'type_of_fund', 'total_capital_commitment', 'uncalled_capital_commitment')
|
||||
->select(
|
||||
'marketplace_buyer_forms.*', // Select all columns from marketplace_aif_sellers
|
||||
'marketplace_aif_sellers.name_of_the_aif_fund',
|
||||
'marketplace_aif_sellers.fund_category',
|
||||
'marketplace_aif_sellers.fund_strategy',
|
||||
'marketplace_aif_sellers.type_of_fund',
|
||||
'marketplace_aif_sellers.total_capital_commitment',
|
||||
'marketplace_aif_sellers.uncalled_capital_commitment'
|
||||
)
|
||||
->get();
|
||||
// $data['data'] = MarketplaceBuyerForm::has('aifSellerData')->with('aifSellerData')->alernativeInvestmentFund()->notSold()->get();
|
||||
// dd($data['data']->toArray());
|
||||
return $data;
|
||||
}
|
||||
|
||||
@@ -847,7 +859,17 @@ class DashboardController extends Controller
|
||||
// ->with('compaines')
|
||||
->fractionalRealEstate()
|
||||
->where('listing_status', '!=', 'Hide')
|
||||
->select('property_name', 'property_address', 'property_grade', 'asset_type', 'fractional_real_estate_platform', 'expected_selling_price')
|
||||
->notSold()
|
||||
// ->select('property_name', 'property_address', 'property_grade', 'asset_type', 'fractional_real_estate_platform', 'expected_selling_price')
|
||||
->select(
|
||||
'marketplace_buyer_forms.*', // Select all columns from marketplace_aif_sellers
|
||||
'marketplace_fre_sellers.property_name',
|
||||
'marketplace_fre_sellers.property_address',
|
||||
'marketplace_fre_sellers.property_grade',
|
||||
'marketplace_fre_sellers.asset_type',
|
||||
'marketplace_fre_sellers.fractional_real_estate_platform',
|
||||
'marketplace_fre_sellers.expected_selling_price'
|
||||
)
|
||||
->get();
|
||||
$data['data']->each(function($value){
|
||||
if($value->fractional_real_estate_platform != null)
|
||||
|
||||
Reference in New Issue
Block a user