@lang('Contacted Properties')

@foreach ($contacts as $contact) @php $property = $contact->property; $routes = [ 'for_pg' => 'pg.details', 'for_rent' => 'rent.details', 'for_sell' => 'buy.details', 'plot' => 'plot.details', 'commercial' => 'commercial.details', ]; $propertyUrl = isset($routes[$property->looking_for]) ? route($routes[$property->looking_for], $property->slug) : '#'; @endphp
Property Image @if ($property->reviews->count() > 0)
@php $review = $property->reviews->sum('rate') / $property->reviews->count(); @endphp @for ($i = 1; $i <= $review; $i++) @endfor @if (is_float($review)) @endif
@endif @if ($property->looking_for == 'for_rent') {{ __('For Rent') }} @elseif ($property->looking_for == 'for_sell') {{ __('For Sell') }} @elseif ($property->looking_for == 'for_pg') {{ __('For PG') }} @else {{ __('Property') }} @endif
{{ $property->name ?? '' }}

{{ $property->locality ?? '' }}, {{ $property->location->name ?? '' }}

{{ $property->user->name ?? '' }}
{{ $property->user->user_type ?? '' }}
+91{{ $property->user->phone ?? '' }}
@php $features = []; if ($property->no_of_bhk) { $features[] = '

BHK
 ' . $property->no_of_bhk . '

'; } if ($property->construction_status == 'under-construction' && $property->possession_date) { $features[] = '

Possession Date
 ' . $property->possession_date . '

'; } elseif ($property->construction_status == 'ready-to-move' && $property->property_age) { $features[] = '

Age Of Property
 ' . $property->property_age . ' Years

'; } if ($property->construction_status) { $features[] = '

Construction Status
 ' . ucwords(str_replace('-', ' ', $property->construction_status)) . '

'; } if ($property->carpet_area) { $features[] = '

Carpet Area
 ' . $property->carpet_area . ' Sqft

'; } if ($property->price_per_sqft) { $features[] = '

Price Per Sqft
 ' . $property->price_per_sqft . ' Sqft

'; } if ($property->plot_area) { $features[] = '

Plot Area
 ' . $property->plot_area . ' ' . $property->area_unit . '

'; } if ($property->plot_length && $property->plot_width) { $features[] = '

Plot Dimensions
 ' . ucfirst($property->plot_length . ' X ' . $property->plot_width) . '

'; } if ($property->floors_allowed) { $features[] = '

Floors Allowed
 ' . $property->floors_allowed . ' ' . ($property->floors_allowed == 1 ? 'Floor' : 'Floors') . '

'; } if ($property->open_sides) { $features[] = '

No. Of Open Sides
 ' . $property->open_sides . ' ' . ($property->open_sides == 1 ? 'Side' : 'Sides') . '

'; } $features = array_slice($features, 0, 3); // Show only top 4 features @endphp @if (count($features) > 0)
@foreach ($features as $feature) {!! $feature !!} @endforeach
@endif
@endforeach
{{ $contacts->links() }}