bugs solving

This commit is contained in:
cj201199
2024-05-14 12:50:39 +05:30
parent d72dec7a79
commit 890d1ffe45
3 changed files with 12 additions and 7 deletions

View File

@@ -33,6 +33,7 @@ class DashboardController extends Controller
{
$user = $this->getUser()->data;
$currentInvestmentProduct = $this->view_investors_details('Holding');
// dd($currentInvestmentProduct);
$reedemedInvestmentProduct = $this->view_investors_details('Reedemed');
// investment on watchlist
@@ -363,13 +364,13 @@ class DashboardController extends Controller
}
$dataArr = [
'id' => $singleMUM->id,
'company_logo' => Company::find($singleMUM->investment_platform)->value('company_logo'),
'company_logo' => Company::where('id',$singleMUM->investment_platform)->value('company_logo'),
'custom_id' => $singleMUM->custom_id,
'categories' => $categories,
'product_category' => $singleMUM->product_category,
'product_name' => $singleMUM->product_name,
'date_of_investment' => $singleMUM->created_at->format('d/m/y'),
'company_name' => Company::find($singleMUM->investment_platform)->value('company_name'),
'company_name' => Company::where('id',$singleMUM->investment_platform)->value('company_name'),
'route_id' => \Crypt::encrypt($singleMUM->custom_id)
];
$dataArr['total_investment_amount'] = $amount;
@@ -387,7 +388,7 @@ class DashboardController extends Controller
}
$dataArr = [
// 'id' => $singleMUM->id,
'company_logo' => Company::find($singleMUM->investment_platform)->value('company_logo'),
'company_logo' => Company::where('id',$singleMUM->investment_platform)->value('company_logo'),
'custom_id' => $singleMUM->custom_id,
'categories' => $singleMUM->categories,
// 'product_category' => $singleMUM->product_category,
@@ -405,6 +406,7 @@ class DashboardController extends Controller
{
// $customId = Crypt::decrypt($customId);
$data = $this->getInvestmentDetails($customId);
// dd($data);
return view('Frontend.Pages.profile.investment-details.index', compact('data'));
}
@@ -413,9 +415,10 @@ class DashboardController extends Controller
$data = array();
$customId = Crypt::decrypt($customId);
$monthlyUpdateMaster = MonthlyUpdateMaster::where('custom_id', $customId)->firstOrFail();
// dd($monthlyUpdateMaster);
$data['basic-details'] = $monthlyUpdateMaster;
$data['company_name'] = Company::find($monthlyUpdateMaster->investment_platform)->value('company_name');
$data['company_logo'] = Company::find($monthlyUpdateMaster->investment_platform)->value('company_logo');
$data['company_name'] = Company::where('id',$monthlyUpdateMaster->investment_platform)->value('company_name');
$data['company_logo'] = Company::where('id',$monthlyUpdateMaster->investment_platform)->value('company_logo');
if (MonthlyUpdateAlternativeInvestmentFund::where('custom_id', $customId)->exists()) {
$data['category'] = 'Alternative Investment Fund';
$data['data'] = MonthlyUpdateAlternativeInvestmentFund::where(['custom_id' => $customId, 'status' => true])->latest()->first();