image set and relation in product

This commit is contained in:
Shailesh-1981
2024-06-11 13:44:05 +05:30
parent 638f39f884
commit 7af95bf96b
14 changed files with 53 additions and 35 deletions

View File

@@ -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'));