From 1b88d93afdb63ae93607298f10009e7cbb15a2f7 Mon Sep 17 00:00:00 2001 From: meghamalore Date: Tue, 2 Jul 2024 15:42:29 +0530 Subject: [PATCH] bugs fixing --- .../MarketplaceFractionalRealEstateSeller.php | 5 +- public/assets/css/FrontendCss/style.css | 5 ++ public/assets/css/style1.css | 14 +++- .../manage_blog/edit_blog.blade.php | 22 +++--- .../manage_blog/show_blog.blade.php | 2 +- .../partial/transaction-row.blade.php | 4 +- .../transactions.blade.php | 26 ++++--- .../views/Admin/general-dashboard.blade.php | 1 - ...investment-public-equity-product.blade.php | 2 +- .../alternative-investment-fund.blade.php | 72 +++++++++++++------ .../profile/market-list/buyer-form.blade.php | 4 +- 11 files changed, 106 insertions(+), 51 deletions(-) diff --git a/app/Models/MarketplaceFractionalRealEstateSeller.php b/app/Models/MarketplaceFractionalRealEstateSeller.php index 5a6a277..8e24f5d 100644 --- a/app/Models/MarketplaceFractionalRealEstateSeller.php +++ b/app/Models/MarketplaceFractionalRealEstateSeller.php @@ -66,8 +66,9 @@ class MarketplaceFractionalRealEstateSeller extends Model $bidArr[] = round(($bid->getAttributes()['total_purchase_value'] - $this->current_market_value_of_the_property)/$this->current_market_value_of_the_property * 100,3); } if($bidArr){ - $bid = (int)max($bidArr); - return (string)$bid; + // $bid = (int)max($bidArr); + // return (string)$bid; + return (string)max($bidArr); } return (string)0; } diff --git a/public/assets/css/FrontendCss/style.css b/public/assets/css/FrontendCss/style.css index 4dc22aa..b528bd8 100644 --- a/public/assets/css/FrontendCss/style.css +++ b/public/assets/css/FrontendCss/style.css @@ -6658,4 +6658,9 @@ ul#user_notification { .product .drop-page p { text-align: left !important; +} + +.primary-investment .parimay-card .assets-card { + min-height: 480px; + margin-bottom: 30px; } \ No newline at end of file diff --git a/public/assets/css/style1.css b/public/assets/css/style1.css index c52d4e0..efba934 100644 --- a/public/assets/css/style1.css +++ b/public/assets/css/style1.css @@ -1072,4 +1072,16 @@ label.error { } #kt_profile_details_view svg.svg-inline--fa.fa-download:hover { color: #c18948; -} \ No newline at end of file +} + +#preview_image img#image_preview { + height: 100%; + object-fit: scale-down !important; + width: 100%; + object-fit: contain; + margin-top: 20px; +} + +div#preview_image { + height: 270px; +} diff --git a/resources/views/Admin/Pages/manage_cms/manage_blog/edit_blog.blade.php b/resources/views/Admin/Pages/manage_cms/manage_blog/edit_blog.blade.php index df66056..bb60755 100644 --- a/resources/views/Admin/Pages/manage_cms/manage_blog/edit_blog.blade.php +++ b/resources/views/Admin/Pages/manage_cms/manage_blog/edit_blog.blade.php @@ -28,23 +28,13 @@ @endforeach --}} -
+
-
- -
- - Preview Image -
-
+
+ +
+ + Preview Image +
+
diff --git a/resources/views/Admin/Pages/manage_cms/manage_blog/show_blog.blade.php b/resources/views/Admin/Pages/manage_cms/manage_blog/show_blog.blade.php index b70b746..5d5de62 100644 --- a/resources/views/Admin/Pages/manage_cms/manage_blog/show_blog.blade.php +++ b/resources/views/Admin/Pages/manage_cms/manage_blog/show_blog.blade.php @@ -36,7 +36,7 @@
--}} -
+
-
- +
+
-
- +
+
- +
- +
- +
- +
@@ -347,6 +347,16 @@ $('#edit-total_purchase_value').val($(this).data("total_purchase_value")); $('#edit-units_to_buy').val($(this).data("units_to_buy")); $('#edit-final_purchase_value').val($(this).data("final_purchase_value")); + category = $(this).data('category'); + if(category == 'Fractional Real Estate') + { + $('.final_unit_sold').addClass('d-none'); + $('.sale_value').addClass('d-none'); + } + else{ + $('.final_unit_sold').removeClass('d-none'); + $('.sale_value').removeClass('d-none'); + } $('#transactions_sold').modal('show'); }) diff --git a/resources/views/Admin/general-dashboard.blade.php b/resources/views/Admin/general-dashboard.blade.php index cceac1a..2e57898 100644 --- a/resources/views/Admin/general-dashboard.blade.php +++ b/resources/views/Admin/general-dashboard.blade.php @@ -292,7 +292,6 @@ to: $('#to-date').val() }, success: function(result) { - console.log(result); $('#total-investment-sum').html(result.total_investment); $('#total-gross-commission-sum').html(result.gross_commission); $('#total-net-commission-sum').html(result.net_commission); diff --git a/resources/views/Frontend/Pages/alternative-investment-fund/private-investment-public-equity-product.blade.php b/resources/views/Frontend/Pages/alternative-investment-fund/private-investment-public-equity-product.blade.php index cf41512..60d2eaa 100644 --- a/resources/views/Frontend/Pages/alternative-investment-fund/private-investment-public-equity-product.blade.php +++ b/resources/views/Frontend/Pages/alternative-investment-fund/private-investment-public-equity-product.blade.php @@ -360,7 +360,7 @@

Hurdle rate

- {{ $pipe->hurdle_rate ?? '--' }} + {{ isset($pipe->hurdle_rate) ? $pipe->hurdle_rate . '%' : '--' }}

Other expenses

diff --git a/resources/views/Frontend/Pages/profile/market-list/alternative-investment-fund.blade.php b/resources/views/Frontend/Pages/profile/market-list/alternative-investment-fund.blade.php index f5c34df..d39cc5d 100644 --- a/resources/views/Frontend/Pages/profile/market-list/alternative-investment-fund.blade.php +++ b/resources/views/Frontend/Pages/profile/market-list/alternative-investment-fund.blade.php @@ -20,7 +20,12 @@
- + @else + + @endif
@@ -43,6 +49,11 @@
+ {{-- @dd($aifProduct) --}} + @if($aifProduct->type_of_fund) + + @else + @endif
@@ -151,7 +163,7 @@
- +
@@ -195,29 +207,44 @@ @section('scripts') + @endsection diff --git a/resources/views/Frontend/Pages/profile/market-list/buyer-form.blade.php b/resources/views/Frontend/Pages/profile/market-list/buyer-form.blade.php index 0b60820..5d55b06 100644 --- a/resources/views/Frontend/Pages/profile/market-list/buyer-form.blade.php +++ b/resources/views/Frontend/Pages/profile/market-list/buyer-form.blade.php @@ -45,11 +45,11 @@
- +
- +