diff --git a/app/Http/Controllers/Frontend/AlternativeInvestmentFundController.php b/app/Http/Controllers/Frontend/AlternativeInvestmentFundController.php index 37a287d..0174b7e 100644 --- a/app/Http/Controllers/Frontend/AlternativeInvestmentFundController.php +++ b/app/Http/Controllers/Frontend/AlternativeInvestmentFundController.php @@ -582,11 +582,11 @@ class AlternativeInvestmentFundController extends Controller // // ->where('categories_id',26) // ->get(); // $productData = AlternativeInvestmentFund::where('slug', '=', $slug)->first(); - $productData = Product::with('product_images')->where('id', '=', $longOnlyEquityFund->products_id)->first(); + $productData = Product::with('product_images','alternativeInvestmentFund')->where('id', $longOnlyEquityFund->products_id)->first(); $product = Product::with('product_images')->where('id', '=', $longOnlyEquityFund->products_id)->first(); - // dd($otherHF); - // dd($productData,$longOnlyEquityFund); + // dd($productData); + // dd($productData,$longOnlyEquityFund,$product); return view('Frontend.Pages.alternative-investment-fund.long-only-equity-fund-product', compact('longOnlyEquityFund', 'productData','product')); } public function privateCreditFund() diff --git a/public/assets/css/FrontendCss/style2.css b/public/assets/css/FrontendCss/style2.css index 4feb291..771baf7 100644 --- a/public/assets/css/FrontendCss/style2.css +++ b/public/assets/css/FrontendCss/style2.css @@ -809,7 +809,7 @@ a.golden-btn { padding: 20px; vertical-align: middle; border-radius: 10px; - height: 200px; + height: auto; display: flex; flex-direction: column; justify-content: center; diff --git a/resources/views/Frontend/Pages/alternative-investment-fund/long-only-equity-fund-product.blade.php b/resources/views/Frontend/Pages/alternative-investment-fund/long-only-equity-fund-product.blade.php index 58830eb..d096d43 100644 --- a/resources/views/Frontend/Pages/alternative-investment-fund/long-only-equity-fund-product.blade.php +++ b/resources/views/Frontend/Pages/alternative-investment-fund/long-only-equity-fund-product.blade.php @@ -413,7 +413,7 @@
Return on investment (IRR/DPI)
- {{ $longOnlyEquityFund->return_on_investment_irr_dpi_rvpi_tvpi ?? '--' }} + {{ $productData->alternativeInvestmentFund->return_on_investment_irr_dpi_rvpi_tvpi ?? '--' }}ISIN Code