diff --git a/app/Http/Controllers/Frontend/GlobalHedgeFundController.php b/app/Http/Controllers/Frontend/GlobalHedgeFundController.php index 256253e..fece0f5 100644 --- a/app/Http/Controllers/Frontend/GlobalHedgeFundController.php +++ b/app/Http/Controllers/Frontend/GlobalHedgeFundController.php @@ -13,9 +13,9 @@ class GlobalHedgeFundController extends Controller { public function index(){ $hedgeFunds = $this->hedgeFundAllData()->getData(); - $openGHF = Product::has('funds')->with('funds','categorys')->globalHedgeFund()->open()->active()->latest()->get(); - $resaleGHF = Product::has('funds')->with('funds','categorys')->globalHedgeFund()->fullyFunded()->active()->latest()->get(); - $fullyFundedGHF = Product::has('funds')->with('funds','categorys')->globalHedgeFund()->fullyFunded()->active()->latest()->get(); + $openGHF = Product::has('funds')->with('funds.companies','categorys')->globalHedgeFund()->open()->active()->latest()->get(); + $resaleGHF = Product::has('funds')->with('funds.companies','categorys')->globalHedgeFund()->fullyFunded()->active()->latest()->get(); + $fullyFundedGHF = Product::has('funds')->with('funds.companies','categorys')->globalHedgeFund()->fullyFunded()->active()->latest()->get(); $learnMore = (new FractionalRealEstateFrontendController)->globalHedgeFundQuestionAndAnswer()->getData(); // $faqs = (new FractionalRealEstateFrontendController)->globalHedgeFundQuestionAndAnswerFaqs()->getData(); // dd($openGHF); diff --git a/app/Http/Controllers/Frontend/GlobalPrivateEquityFundController.php b/app/Http/Controllers/Frontend/GlobalPrivateEquityFundController.php index 5fb8ec4..fbfebdd 100644 --- a/app/Http/Controllers/Frontend/GlobalPrivateEquityFundController.php +++ b/app/Http/Controllers/Frontend/GlobalPrivateEquityFundController.php @@ -14,9 +14,9 @@ class GlobalPrivateEquityFundController extends Controller public function index() { $privateEquity = $this->privateEquityFundAllData()->getData(); - $openGPEF = Product::has('funds')->with('funds', 'categorys')->funds()->privateEquityFund()->open()->active()->latest()->get(); - $resaleGPEF = Product::has('funds')->with('funds', 'categorys')->funds()->privateEquityFund()->resale()->active()->latest()->get(); - $fullyFundedGPEF = Product::has('funds')->with('funds', 'categorys')->funds()->privateEquityFund()->fullyFunded()->active()->latest()->get(); + $openGPEF = Product::has('funds')->with('funds','companies', 'categorys')->funds()->privateEquityFund()->open()->active()->latest()->get(); + $resaleGPEF = Product::has('funds')->with('funds','companies', 'categorys')->funds()->privateEquityFund()->resale()->active()->latest()->get(); + $fullyFundedGPEF = Product::has('funds')->with('funds','companies', 'categorys')->funds()->privateEquityFund()->fullyFunded()->active()->latest()->get(); $learnMore = (new FractionalRealEstateFrontendController)->globalPrivateEquityFundQuestionAndAnswer()->getData(); // $faqs = (new FractionalRealEstateFrontendController)->globalPrivateEquityFundQuestionAndAnswerFaqs()->getData(); // dd($openGPEF); diff --git a/app/Http/Controllers/Frontend/IndianRealAssetController.php b/app/Http/Controllers/Frontend/IndianRealAssetController.php index fab305d..3c1b125 100644 --- a/app/Http/Controllers/Frontend/IndianRealAssetController.php +++ b/app/Http/Controllers/Frontend/IndianRealAssetController.php @@ -21,9 +21,9 @@ class IndianRealAssetController extends Controller public function industrial() { $realEstate = $this->indianIndustrialRealEstateAllData()->getData(); - $openIIRE = Product::has('realEstate')->with('realEstate','categorys')->indianIndustrialRealEstate()->open()->active()->get(); - $resaleIIRE = Product::has('realEstate')->with('realEstate','categorys')->indianIndustrialRealEstate()->resale()->active()->get(); - $fullyFundedIIRE = Product::has('realEstate')->with('realEstate','categorys')->indianIndustrialRealEstate()->fullyFunded()->active()->get(); + $openIIRE = Product::has('realEstate')->with('realEstate.companies','categorys')->indianIndustrialRealEstate()->open()->active()->get(); + $resaleIIRE = Product::has('realEstate')->with('realEstate.companies','categorys')->indianIndustrialRealEstate()->resale()->active()->get(); + $fullyFundedIIRE = Product::has('realEstate')->with('realEstate.companies','categorys')->indianIndustrialRealEstate()->fullyFunded()->active()->get(); $learnMore = (new FractionalRealEstateFrontendController)->indianIndustrialRealEstateQuestionAndAnswer()->getData(); // dd($realEstate); return view('Frontend.Pages.indian-real-estate.industrial', compact('realEstate', 'learnMore', 'openIIRE', 'resaleIIRE', 'fullyFundedIIRE')); @@ -33,8 +33,8 @@ class IndianRealAssetController extends Controller { $realEstate = $this->indianResidentialRealEstateAllData()->getData(); $openIRRE = Product::has('realEstate')->with('realEstate.companies','categorys')->indianResidentialRealEstate()->open()->active()->get(); - $resaleIRRE = Product::has('realEstate')->with('realEstate','categorys')->indianResidentialRealEstate()->resale()->active()->get(); - $fullyFundedIRRE = Product::has('realEstate')->with('realEstate','categorys')->indianResidentialRealEstate()->fullyFunded()->active()->get(); + $resaleIRRE = Product::has('realEstate')->with('realEstate.companies','categorys')->indianResidentialRealEstate()->resale()->active()->get(); + $fullyFundedIRRE = Product::has('realEstate')->with('realEstate.companies','categorys')->indianResidentialRealEstate()->fullyFunded()->active()->get(); $learnMore = (new FractionalRealEstateFrontendController)->indianResidentialRealEstateQuestionAndAnswer()->getData(); // dd($openIRRE); return view('Frontend.Pages.indian-real-estate.residential', compact('realEstate', 'learnMore', 'openIRRE', 'resaleIRRE', 'fullyFundedIRRE')); @@ -43,9 +43,9 @@ class IndianRealAssetController extends Controller public function commercial() { $realEstate = $this->indianCommercialRealEstateAllData()->getData(); - $openICRE = Product::has('realEstate')->with('realEstate','categorys')->indianCommercialRealEstate()->open()->active()->get(); - $resaleICRE = Product::has('realEstate')->with('realEstate','categorys')->indianCommercialRealEstate()->resale()->active()->get(); - $fullyFundedICRE = Product::has('realEstate')->with('realEstate','categorys')->indianCommercialRealEstate()->fullyFunded()->active()->get(); + $openICRE = Product::has('realEstate')->with('realEstate.companies','categorys')->indianCommercialRealEstate()->open()->active()->get(); + $resaleICRE = Product::has('realEstate')->with('realEstate.companies','categorys')->indianCommercialRealEstate()->resale()->active()->get(); + $fullyFundedICRE = Product::has('realEstate')->with('realEstate.companies','categorys')->indianCommercialRealEstate()->fullyFunded()->active()->get(); $learnMore = (new FractionalRealEstateFrontendController)->indianCommercialRealEstateQuestionAndAnswer()->getData(); // dd($openICRE); return view('Frontend.Pages.indian-real-estate.commercial', compact('realEstate', 'learnMore', 'openICRE', 'resaleICRE', 'fullyFundedICRE')); diff --git a/app/Http/Controllers/GlobalPrivateCreditController.php b/app/Http/Controllers/GlobalPrivateCreditController.php index 555608a..d242061 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','categorys')->funds()->globalPrivateCreditFund()->open()->active()->latest()->get(), + 'openGPCF' => Product::has('funds')->with('funds.companies','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','categorys')->funds()->globalPrivateCreditFund()->fullyFunded()->active()->latest()->get(), + 'resaleGPCF' => Product::has('funds')->with('funds.companies','categorys')->funds()->globalPrivateCreditFund()->fullyFunded()->active()->latest()->get(), ]); } diff --git a/app/Models/Fund.php b/app/Models/Fund.php index 5b9080d..7bc621c 100644 --- a/app/Models/Fund.php +++ b/app/Models/Fund.php @@ -18,4 +18,9 @@ class Fund extends Model { return $this->hasMany(FundReturn::class, 'funds_id', 'id'); } + + public function companies(){ + return $this->belongsTo(Company::class,'platform_partner'); + } + } diff --git a/app/Services/Frontend/GlobalRealEstateService.php b/app/Services/Frontend/GlobalRealEstateService.php index c6bb1d8..38425c0 100644 --- a/app/Services/Frontend/GlobalRealEstateService.php +++ b/app/Services/Frontend/GlobalRealEstateService.php @@ -13,47 +13,47 @@ class GlobalRealEstateService{ public function openGIRE() { - return $this->returnResponse(Product::has('realEstate')->with('realEstate','categorys')->globalIndustrialRealEstate()->open()->active()->get()); + return $this->returnResponse(Product::has('realEstate')->with('realEstate.companies','categorys')->globalIndustrialRealEstate()->open()->active()->get()); } public function fullyFundedGIRE() { - return $this->returnResponse(Product::has('realEstate')->with('realEstate','categorys')->globalIndustrialRealEstate()->open()->active()->get()); + return $this->returnResponse(Product::has('realEstate')->with('realEstate.companies','categorys')->globalIndustrialRealEstate()->open()->active()->get()); } public function resaleGIRE() { - return $this->returnResponse(Product::has('realEstate')->with('realEstate','categorys')->globalIndustrialRealEstate()->open()->active()->get()); + return $this->returnResponse(Product::has('realEstate')->with('realEstate.companies','categorys')->globalIndustrialRealEstate()->open()->active()->get()); } public function openGCRE() { - return $this->returnResponse(Product::has('realEstate')->with('realEstate','categorys')->globalCommercialRealEstate()->open()->active()->get()); + return $this->returnResponse(Product::has('realEstate')->with('realEstate.companies','categorys')->globalCommercialRealEstate()->open()->active()->get()); } public function fullyFundedGCRE() { - return $this->returnResponse(Product::has('realEstate')->with('realEstate','categorys')->globalCommercialRealEstate()->fullyFunded()->active()->get()); + return $this->returnResponse(Product::has('realEstate')->with('realEstate.companies','categorys')->globalCommercialRealEstate()->fullyFunded()->active()->get()); } public function resaleGCRE() { - return $this->returnResponse(Product::has('realEstate')->with('realEstate','categorys')->globalCommercialRealEstate()->resale()->active()->get()); + return $this->returnResponse(Product::has('realEstate')->with('realEstate.companies','categorys')->globalCommercialRealEstate()->resale()->active()->get()); } public function openGRRE() { - return $this->returnResponse(Product::has('realEstate')->with('realEstate','categorys')->globalResidentialRealEstate()->open()->active()->get()); + return $this->returnResponse(Product::has('realEstate')->with('realEstate.companies','categorys')->globalResidentialRealEstate()->open()->active()->get()); } public function fullyFundedGRRE() { - return $this->returnResponse(Product::has('realEstate')->with('realEstate','categorys')->globalResidentialRealEstate()->fullyFunded()->active()->get()); + return $this->returnResponse(Product::has('realEstate')->with('realEstate.companies','categorys')->globalResidentialRealEstate()->fullyFunded()->active()->get()); } public function resaleGRRE() { - return $this->returnResponse(Product::has('realEstate')->with('realEstate','categorys')->globalResidentialRealEstate()->resale()->active()->get()); + return $this->returnResponse(Product::has('realEstate')->with('realEstate.companies','categorys')->globalResidentialRealEstate()->resale()->active()->get()); } public function globalCommercialRealEstateLearnMore(){ diff --git a/resources/views/components/global-commercial-real-estate-product.blade.php b/resources/views/components/global-commercial-real-estate-product.blade.php index e12098b..1bb8027 100644 --- a/resources/views/components/global-commercial-real-estate-product.blade.php +++ b/resources/views/components/global-commercial-real-estate-product.blade.php @@ -8,7 +8,8 @@
+ {{--
--}}
+
+ {{--
--}}
+
+
+ {{--
--}}
+
+ {{--
--}}
+
+
+ {{--
--}}
+
+
+ {{--
--}}
+