2024-04-04 19:13:00 +05:30
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Http\Request;
|
|
|
|
|
use App\Http\Controllers\Admin\ManageFreeUInvestments\FractionalRealEstateController as FractionalRealEstateFrontendController;
|
2024-04-05 19:30:15 +05:30
|
|
|
use App\Models\Product;
|
2024-04-04 19:13:00 +05:30
|
|
|
|
|
|
|
|
class GlobalPrivateCreditController extends Controller
|
|
|
|
|
{
|
|
|
|
|
public function getGlobalPrivateCreditFundPage()
|
|
|
|
|
{
|
|
|
|
|
$learnMore = (new FractionalRealEstateFrontendController)->globalPCFQuestionAndAnswer()->getData();
|
|
|
|
|
return view('Frontend.Pages.dummy.global-private-credit',[
|
|
|
|
|
'learnMore'=>$learnMore,
|
2024-04-05 19:30:15 +05:30
|
|
|
'openGPCF'=> Product::has('alternativeInvestmentFund')->with('alternativeInvestmentFund.companies','categorys')->globalPrivateCreditFund()->open()->active()->latest()->get(),
|
|
|
|
|
'resaleGPCF'=> Product::has('alternativeInvestmentFund')->with('alternativeInvestmentFund.companies','categorys')->globalPrivateCreditFund()->resale()->active()->latest()->get(),
|
2024-04-04 19:13:00 +05:30
|
|
|
]);
|
|
|
|
|
}
|
|
|
|
|
}
|