fixing chnages

This commit is contained in:
cj201199
2024-05-17 11:42:58 +05:30
parent f436ed89ce
commit ee2b7e5046
3 changed files with 10 additions and 6 deletions

View File

@@ -237,7 +237,8 @@ class DashboardController extends Controller
array_push($productDetails, $investmentArr);
} elseif (MonthlyUpdateFractionalRealEstate::where('custom_id', $singleMUM->custom_id)->first()) {
$data = MonthlyUpdateFractionalRealEstate::where('custom_id', $singleMUM->custom_id)->latest()->first();
$investmentArr = $this->totalInvestmentAmount_api($singleMUM, $data->getRawOriginal('absolute_return_till_date'));
// dd($data);
$investmentArr = $this->totalInvestmentAmount_api($singleMUM, $data->getRawOriginal('investment_value'));
array_push($productDetails, $investmentArr);
} elseif (MonthlyUpdatePeerToPeerLending::where('custom_id', $singleMUM->custom_id)->first()) {
$data = MonthlyUpdatePeerToPeerLending::where('custom_id', $singleMUM->custom_id)->latest()->first();
@@ -288,7 +289,8 @@ class DashboardController extends Controller
array_push($productDetails, $investmentArr);
} elseif (MonthlyUpdateFractionalRealEstate::where('custom_id', $singleMUM->custom_id)->first()) {
$data = MonthlyUpdateFractionalRealEstate::where('custom_id', $singleMUM->custom_id)->latest()->first();
$investmentArr = $this->totalInvestmentAmount($singleMUM, $data->getRawOriginal('absolute_return_till_date'));
// dd($data);
$investmentArr = $this->totalInvestmentAmount($singleMUM, $data->getRawOriginal('investment_value'));
array_push($productDetails, $investmentArr);
}
// elseif (MonthlyUpdatePeerToPeerLending::where('custom_id', $singleMUM->custom_id)->first()) {