diff --git a/app/Http/Controllers/Frontend/MarketPlaceController.php b/app/Http/Controllers/Frontend/MarketPlaceController.php index 6ffd0e8..5290341 100644 --- a/app/Http/Controllers/Frontend/MarketPlaceController.php +++ b/app/Http/Controllers/Frontend/MarketPlaceController.php @@ -177,7 +177,7 @@ class MarketPlaceController extends Controller $ownProduct = $offering['own-product']; $logged_in = auth()->guard('users')->check() == true ? true : false; // dd($status); - // dd('offering',$offering['invested_data']); + // dd($offering); $investedData = $offering['invested_data']; @@ -207,7 +207,7 @@ class MarketPlaceController extends Controller if (MarketplaceFractionalRealEstateSeller::where('slug', $slug)->exists()) { // $bidFor .= 'fractional-real-estate'; $offering['type'] = 'fractional-real-estate'; - $marketFRE = MarketplaceFractionalRealEstateSeller::where('slug', $slug)->first(); + $marketFRE = MarketplaceFractionalRealEstateSeller::with('company')->where('slug', $slug)->first(); // if($user_id){ $offering['own-product'] = $user_id != null ? MarketplaceSellerForm::where(['id' => $marketFRE->seller_forms_id, 'users_id' => $user_id])->exists() : ''; // } diff --git a/resources/views/Frontend/Pages/marketplace/fractional-real-estate.blade.php b/resources/views/Frontend/Pages/marketplace/fractional-real-estate.blade.php index 3fc196a..1e6e245 100644 --- a/resources/views/Frontend/Pages/marketplace/fractional-real-estate.blade.php +++ b/resources/views/Frontend/Pages/marketplace/fractional-real-estate.blade.php @@ -7,15 +7,15 @@

Property Name

- {{$offering->property_name}} + {{$offering->property_name ?? 'N/A'}}

Property Address

- {{$offering->property_address}} + {{$offering->property_address ?? 'N/A'}}

Property Grade

- {{$offering->property_grade}} + {{$offering->property_grade ?? 'N/A'}}
@@ -25,15 +25,15 @@

Asset Type

- {{$offering->asset_type}} + {{$offering->asset_type ?? 'N/A'}}

Annual Rental Yield Earned

- {{$offering->annual_rental_yield_earned}} + {{$offering->annual_rental_yield_earned ?? 'N/A'}}

Rental Escalation

- {{$offering->rental_escalation}} + {{$offering->rental_escalation ?? 'N/A'}}
@@ -43,15 +43,15 @@

Fractional Real Estate Platform

- {{$offering->fractional_real_estate_platform}} + {{$offering->company == null ? 'N/A':$offering->company->company_name }}

Date Of Investment

- {{$offering->date_of_investment}} + {{$offering->date_of_investment ?? 'N/A'}}

Original Amount Invested

- {{$offering->original_amount_invested}} + {{$offering->original_amount_invested ?? 'N/A'}}
@@ -61,15 +61,15 @@

Current Market Value Of The Property

- {{$offering->current_market_value_of_the_property}} + {{$offering->current_market_value_of_the_property ?? 'N/A'}}

Expected Selling Price

- {{$offering->expected_selling_price}} + {{$offering->expected_selling_price ?? 'N/A'}}

Latest Valuation Date

- {{$offering->latest_valuation_date}} + {{$offering->latest_valuation_date ?? 'N/A'}}