From fe6aa25c1785073f474b1db4309151d85a309b99 Mon Sep 17 00:00:00 2001 From: Ritikesh yadav Date: Thu, 27 Jun 2024 19:31:14 +0530 Subject: [PATCH 1/2] fixing bugs --- ...MonthlyUpdateAlternativeInvestmentFund.php | 22 +++++++++---------- .../MonthlyUpdateFractionalRealEstate.php | 6 ++--- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/app/Models/MonthlyUpdateAlternativeInvestmentFund.php b/app/Models/MonthlyUpdateAlternativeInvestmentFund.php index 8950257..3831c3c 100644 --- a/app/Models/MonthlyUpdateAlternativeInvestmentFund.php +++ b/app/Models/MonthlyUpdateAlternativeInvestmentFund.php @@ -31,57 +31,57 @@ class MonthlyUpdateAlternativeInvestmentFund extends Model public function getCommitmentAmountAttribute($value) { - return $this->IND_money_format($value) ; + return $this->IND_money_format((int)$value) ; } public function getContributionAmountAttribute($value) { - return $this->IND_money_format($value) ; + return $this->IND_money_format((int)$value) ; } public function getContributionCalledAmountAttribute($value) { - return $this->IND_money_format($value) ; + return $this->IND_money_format((int)$value) ; } public function getContributionUncalledAmountAttribute($value) { - return $this->IND_money_format($value) ; + return $this->IND_money_format((int)$value) ; } public function getGrossIncomeAttribute($value) { - return $this->IND_money_format($value) ; + return $this->IND_money_format((int)$value) ; } public function getTotalFeesPaidAttribute($value) { - return $this->IND_money_format($value) ; + return $this->IND_money_format((int)$value) ; } public function getFaceValueNavPerUnitAttribute($value) { - return $this->IND_money_format($value) ; + return $this->IND_money_format((int)$value) ; } public function getPrincipalCapitalRepaidAttribute($value) { - return $this->IND_money_format($value) ; + return $this->IND_money_format((int)$value) ; } public function getNetIncomeAttribute($value) { - return $this->IND_money_format($value) ; + return $this->IND_money_format((int)$value) ; } public function getCurrentValuationAttribute($value) { - return $this->IND_money_format($value) ; + return $this->IND_money_format((int)$value) ; } public function getCurrentNavAttribute($value) { - return $this->IND_money_format($value) ; + return $this->IND_money_format((int)$value) ; } diff --git a/app/Models/MonthlyUpdateFractionalRealEstate.php b/app/Models/MonthlyUpdateFractionalRealEstate.php index 156c1e7..e9840b1 100644 --- a/app/Models/MonthlyUpdateFractionalRealEstate.php +++ b/app/Models/MonthlyUpdateFractionalRealEstate.php @@ -29,17 +29,17 @@ class MonthlyUpdateFractionalRealEstate extends Model public function getTotalValueOfThePropertyAttribute($value) { - return $this->IND_money_format($value) ; + return $this->IND_money_format((int)$value) ; } public function getInvestmentValueAttribute($value) { - return $this->IND_money_format($value) ; + return $this->IND_money_format((int)$value) ; } public function getAbsoluteReturnTillDateAttribute($value) { - return $this->IND_money_format($value) ; + return $this->IND_money_format((int)$value) ; } function IND_money_format($number) From 7aa4bc9692aff6468b586501dcbac575b567b7be Mon Sep 17 00:00:00 2001 From: Ritikesh yadav Date: Fri, 28 Jun 2024 12:50:03 +0530 Subject: [PATCH 2/2] fixing issues --- app/Http/Controllers/Frontend/LoginController.php | 2 +- resources/views/components/learn-more.blade.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Frontend/LoginController.php b/app/Http/Controllers/Frontend/LoginController.php index 008efc7..3575866 100644 --- a/app/Http/Controllers/Frontend/LoginController.php +++ b/app/Http/Controllers/Frontend/LoginController.php @@ -143,7 +143,7 @@ class LoginController extends Controller return response()->json([ 'status' => 200, 'user_id' => $user->id, - 'message' => 'logged in successfully', + 'message' => 'Logged in successfully', 'token' => $user->createToken("API TOKEN")->plainTextToken ], 200); } diff --git a/resources/views/components/learn-more.blade.php b/resources/views/components/learn-more.blade.php index b04b145..da4e309 100644 --- a/resources/views/components/learn-more.blade.php +++ b/resources/views/components/learn-more.blade.php @@ -5,7 +5,7 @@ @foreach($learnMore->data as $learn_more)

-