fixed investment on sale api

This commit is contained in:
Ritikesh yadav
2024-04-29 17:15:31 +05:30
parent ee87cf2fd6
commit ac89b552f0
3 changed files with 12 additions and 5 deletions

View File

@@ -56,7 +56,7 @@ class DashboardController extends Controller
public function getMarketplaceAIFSellerData()
{
$id = auth()->guard('users')->user()->id;
$id = auth()->guard('users')->user()->id ?? request()->user()->id;
// $market_place_data = MarketplaceBuyerForm::where(['users_id' => $id, 'status' => 'Sold', 'table' => 'marketplace_aif_sellers'])->get();
// foreach ($market_place_data as $row) {
// $row['marketplace_aif_sellers_data'] = MarketplaceAlternativeInvestmentFundSeller::where('id', $row->associated_id)->first();
@@ -81,7 +81,7 @@ class DashboardController extends Controller
->join('marketplace_aif_sellers', 'marketplace_buyer_forms.associated_id', 'marketplace_aif_sellers.id')
->alernativeInvestmentFund()
->sold()
// ->where('listing_status', '!=', 'Hide')
->where('listing_status', '!=', 'Hide')
->select('name_of_the_aif_fund', 'fund_category', 'fund_strategy', 'type_of_fund', 'total_capital_commitment', 'uncalled_capital_commitment')
->get();
return $data;
@@ -113,7 +113,7 @@ class DashboardController extends Controller
public function getMarketplaceFRESellerData()
{
$id = auth()->guard('users')->user()->id;
$id = auth()->guard('users')->user()->id ?? request()->user()->id;
// $market_place_data = MarketplaceBuyerForm::where(['users_id' => $id, 'status' => 'Sold', 'table' => 'marketplace_fre_sellers'])->get();
// foreach ($market_place_data as $row) {
// $row['marketplace_fre_sellers_data'] = MarketplaceFractionalRealEstateSeller::where('id', $row->associated_id)->first();