From ee2b7e5046a8fe8c3ef043e220c8b00da0804617 Mon Sep 17 00:00:00 2001 From: cj201199 Date: Fri, 17 May 2024 11:42:58 +0530 Subject: [PATCH] fixing chnages --- app/Http/Controllers/Frontend/DashboardController.php | 6 ++++-- .../manage_investors/kyc-pages/partnership.blade.php | 8 ++++---- .../views/Frontend/Pages/profile/dashboard.blade.php | 2 ++ 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/app/Http/Controllers/Frontend/DashboardController.php b/app/Http/Controllers/Frontend/DashboardController.php index c5bf0ce..addf60f 100644 --- a/app/Http/Controllers/Frontend/DashboardController.php +++ b/app/Http/Controllers/Frontend/DashboardController.php @@ -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()) { diff --git a/resources/views/Admin/Pages/manage_investors/kyc-pages/partnership.blade.php b/resources/views/Admin/Pages/manage_investors/kyc-pages/partnership.blade.php index 4a5fae4..07ed677 100644 --- a/resources/views/Admin/Pages/manage_investors/kyc-pages/partnership.blade.php +++ b/resources/views/Admin/Pages/manage_investors/kyc-pages/partnership.blade.php @@ -569,7 +569,7 @@ @foreach($user_docs as $doc) @if($doc->doc_type == 'Pan') -
+ {{--
@@ -580,9 +580,9 @@
-
+ --}} @elseif($doc->doc_type == 'Aadhar') -
+ {{--
@@ -593,7 +593,7 @@
-
+ --}} @elseif($doc->doc_type == 'Passport')
diff --git a/resources/views/Frontend/Pages/profile/dashboard.blade.php b/resources/views/Frontend/Pages/profile/dashboard.blade.php index 9824242..97188f0 100644 --- a/resources/views/Frontend/Pages/profile/dashboard.blade.php +++ b/resources/views/Frontend/Pages/profile/dashboard.blade.php @@ -134,7 +134,9 @@ + {{-- @dd($reedemedInvestmentProduct['productDetails']); --}} @foreach ($reedemedInvestmentProduct['productDetails'] as $product) + @php($customId = \Crypt::encrypt($product['custom_id']))