@extends('layouts.user') @push('css') @endpush @section('content')
Seen Properties

@lang('Seen Properties')

@if (empty($seenProperties)) No data Available @else @foreach ($seenProperties as $sProperty) @php $property = $sProperty->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) : '#'; // fallback @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 }}
Phone : +91{{ $property->user->phone }}

BHK
  {{ $property->no_of_bhk }}

@if ($property->construction_status == 'under-construction')

Possession Date
 {{ $property->possession_date }}

@elseif ($property->construction_status == 'ready-to-move')

Age Of Property
  {{ $property->property_age }} Years

@endif

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

Carpet Area
  {{ $property->carpet_area }} Sqft

Price Per Sqft
  {{ $property->price_per_sqft }} Sqft

@endforeach @endif
@endsection @push('js') @endpush