diff --git a/app/Http/Controllers/GlobalPrivateCreditController.php b/app/Http/Controllers/GlobalPrivateCreditController.php index 6dedacf..555608a 100644 --- a/app/Http/Controllers/GlobalPrivateCreditController.php +++ b/app/Http/Controllers/GlobalPrivateCreditController.php @@ -16,9 +16,9 @@ class GlobalPrivateCreditController extends Controller $learnMore = (new FractionalRealEstateFrontendController)->globalPCFQuestionAndAnswer()->getData(); return view('Frontend.Pages.dummy.global-private-credit', [ 'learnMore' => $learnMore, - 'openGPCF' => Product::has('funds')->with('funds')->funds()->globalPrivateCreditFund()->open()->active()->latest()->get(), + 'openGPCF' => Product::has('funds')->with('funds','categorys')->funds()->globalPrivateCreditFund()->open()->active()->latest()->get(), // 'resaleGPCF' => Product::has('alternativeInvestmentFund')->with('alternativeInvestmentFund.companies', 'categorys')->globalPrivateCreditFund()->resale()->active()->latest()->get(), - 'resaleGPCF' => Product::has('funds')->with('funds')->funds()->globalPrivateCreditFund()->fullyFunded()->active()->latest()->get(), + 'resaleGPCF' => Product::has('funds')->with('funds','categorys')->funds()->globalPrivateCreditFund()->fullyFunded()->active()->latest()->get(), ]); } diff --git a/resources/views/Frontend/Pages/global-real-estate/industrial.blade.php b/resources/views/Frontend/Pages/global-real-estate/industrial.blade.php index f74a895..08ad776 100644 --- a/resources/views/Frontend/Pages/global-real-estate/industrial.blade.php +++ b/resources/views/Frontend/Pages/global-real-estate/industrial.blade.php @@ -184,7 +184,7 @@
- - + + @endsection \ No newline at end of file diff --git a/resources/views/components/global-private-credit-fund-product.blade.php b/resources/views/components/global-private-credit-fund-product.blade.php index 3dec832..648cc3e 100644 --- a/resources/views/components/global-private-credit-fund-product.blade.php +++ b/resources/views/components/global-private-credit-fund-product.blade.php @@ -1,8 +1,8 @@

{{ $type }}

- @if (count($gpcfAllData)) - {{-- @dd($gpcfAllData[0]) --}} + @if (count($gpcfAllData) && $gpcfAllData[0]->categorys->status == 1) + {{-- @dd($gpcfAllData[0]->categorys->status == 1) --}}
@foreach ($gpcfAllData as $data) {{-- @dd($data) --}} diff --git a/resources/views/components/global-private-equity-fund-product.blade.php b/resources/views/components/global-private-equity-fund-product.blade.php index 33ab361..c03ddb8 100644 --- a/resources/views/components/global-private-equity-fund-product.blade.php +++ b/resources/views/components/global-private-equity-fund-product.blade.php @@ -1,7 +1,7 @@

{{ $type }}

- @if(count($gpefAllData)) + @if(count($gpefAllData) && $gpefAllData[0]->categorys->status == 1)
@foreach ($gpefAllData as $gireData)