fixed api of watchlist and bought where value is null

This commit is contained in:
Ritikesh yadav
2024-06-25 13:21:07 +05:30
parent 279d933a12
commit 19ee88b7b5

View File

@@ -865,7 +865,15 @@ class DashboardController extends Controller
->get();
// $data['data'] = MarketplaceBuyerForm::has('aifSellerData')->with('aifSellerData')->alernativeInvestmentFund()->notSold()->get();
// dd($data['data']->toArray());
Log::info("Data Fetch Sucesfully");
// Log::info("Data Fetch Sucesfully");
if($data['data']->isNotEmpty())
{
$data['data']->each(function($value){
$value->fund_category_value = $value->getOriginal('fund_category');
});
return $data;
}
return $data;
} catch (\Exception $e) {
@@ -928,7 +936,17 @@ class DashboardController extends Controller
// ->where('marketplace_aif_sellers.listing_status', 'Hide')
->select('name_of_the_aif_fund', 'fund_category', 'fund_strategy', 'type_of_fund', 'total_capital_commitment', 'uncalled_capital_commitment')
->get();
// ->getRawOriginal()['fund_category'];
// dd($data);
if($data['data']->isNotEmpty())
{
$data['data']->each(function($value){
$value->fund_category_value = $value->getOriginal('fund_category');
});
return $data;
}
return $data;
}