@extends('layouts.user.layout') @section('title') {{ $property->seo_title }} @endsection @section('meta') @endsection @section('user-content')

{{ $menus->where('id',2)->first()->navbar }}

@foreach ($property->propertyImages as $imag_item)
property
@endforeach

{{ $property->propertyPurpose->custom_purpose }} @if ($property->urgent_property==1) {{ $websiteLang->where('lang_key','urgent')->first()->custom_text }} @endif

@if ($property->property_purpose_id==1) {{ $currency->currency_icon }}{{ $property->price }} @elseif ($property->property_purpose_id==2) {{ $currency->currency_icon }}{{ $property->price }} / @if ($property->period=='Daily') {{ $websiteLang->where('lang_key','daily')->first()->custom_text }} @elseif ($property->period=='Monthly') {{ $websiteLang->where('lang_key','monthly')->first()->custom_text }} @elseif ($property->period=='Yearly') {{ $websiteLang->where('lang_key','yearly')->first()->custom_text }} @endif @endif

{{ $property->title }}

@php $total_review=$property->reviews->where('status',1)->count(); if($total_review > 0){ $avg_sum=$property->reviews->where('status',1)->sum('avarage_rating'); $avg=$avg_sum/$total_review; $intAvg=intval($avg); $nextVal=$intAvg+1; $reviewPoint=$intAvg; $halfReview=false; if($intAvg < $avg && $avg < $nextVal){ $reviewPoint= $intAvg + 0.5; $halfReview=true; } } @endphp @if ($total_review > 0)

@for ($i = 1; $i <=5; $i++) @if ($i <= $reviewPoint) @elseif ($i> $reviewPoint ) @if ($halfReview==true) @php $halfReview=false @endphp @else @endif @endif @endfor {{ sprintf("%.1f", $reviewPoint) }}

@else

0.0

@endif

{{ $property->address.', '. $property->city->name.', '.$property->city->countryState->name.', '.$property->city->countryState->country->name }}

  • {{ $property->number_of_bedroom }} {{ $websiteLang->where('lang_key','bed')->first()->custom_text }}
  • {{ $property->number_of_bathroom }} {{ $websiteLang->where('lang_key','bath')->first()->custom_text }}
  • {{ $property->area }} {{ $websiteLang->where('lang_key','sqft_s')->first()->custom_text }}
{{ $websiteLang->where('lang_key','detail_and_feature')->first()->custom_text }}
{{ $websiteLang->where('lang_key','property_type_s')->first()->custom_text }}: {{ $property->propertyType->type }}
{{ $websiteLang->where('lang_key','area')->first()->custom_text }}: {{ $property->area }} {{ $websiteLang->where('lang_key','sqft_s')->first()->custom_text }}
{{ $websiteLang->where('lang_key','bedrooms')->first()->custom_text }}: {{ $property->number_of_bedroom }}
{{ $websiteLang->where('lang_key','bathrooms')->first()->custom_text }}: {{ $property->number_of_bathroom }}
{{ $websiteLang->where('lang_key','rooms')->first()->custom_text }}: {{ $property->number_of_room }}
{{ $websiteLang->where('lang_key','units')->first()->custom_text }}: {{ $property->number_of_unit }}
{{ $websiteLang->where('lang_key','floors')->first()->custom_text }}: {{ $property->number_of_floor }}
{{ $websiteLang->where('lang_key','kitchens')->first()->custom_text }}: {{ $property->number_of_kitchen }}
{{ $websiteLang->where('lang_key','parking_place_s')->first()->custom_text }}: {{ $property->number_of_parking }}
{{ $websiteLang->where('lang_key','des')->first()->custom_text }}
{!! clean($property->description) !!} @if ($property->file) {{ $websiteLang->where('lang_key','download_pdf')->first()->custom_text }} @endif
@if ($property->video_link) @php $video_id=explode("=",$property->video_link); @endphp
{{ $websiteLang->where('lang_key','property_video')->first()->custom_text }}
@endif @if ($property->propertyAminities->count() !=0)
{{ $websiteLang->where('lang_key','aminities')->first()->custom_text }}
    @foreach ($property->propertyAminities as $aminity_item)
  • {{ $aminity_item->aminity->aminity }}
  • @endforeach
@endif @if ($property->propertyNearestLocations->count() !=0)
{{ $websiteLang->where('lang_key','nearest_place')->first()->custom_text }}
    @foreach ($property->propertyNearestLocations as $item)
  • {{ $item->nearestLocation->location }}: {{ $item->distance }}{{ $websiteLang->where('lang_key','km')->first()->custom_text }}
  • @endforeach
@endif @if ($property->google_map_embed_code)
{!! $property->google_map_embed_code !!}
@endif @php $total_review=$property->reviews->where('status',1)->count(); if($total_review>0){ $avg_sum=$property->reviews->where('status',1)->sum('avarage_rating'); $service_sum=$property->reviews->where('status',1)->sum('service_rating'); $service_avg=$service_sum/$total_review; $service_progress= ($service_avg*100)/5; $location_sum=$property->reviews->where('status',1)->sum('location_rating'); $location_avg=$location_sum/$total_review; $location_progress= ($location_avg*100)/5; $money_sum=$property->reviews->where('status',1)->sum('money_rating'); $money_avg=$money_sum/$total_review; $money_progress= ($money_avg*100)/5; $clean_sum=$property->reviews->where('status',1)->sum('clean_rating'); $clean_avg=$clean_sum/$total_review; $clean_progress= ($clean_avg*100)/5; $avg=$avg_sum/$total_review; $intAvg=intval($avg); $nextVal=$intAvg+1; $reviewPoint=$intAvg; $halfReview=false; if($intAvg < $avg && $avg < $nextVal){ $reviewPoint= $intAvg + 0.5; $halfReview=true; } } @endphp @if ($total_review >0 )
{{ $total_review }} {{ $websiteLang->where('lang_key','review')->first()->custom_text }}
@foreach ($propertyReviews as $review_item)
comment img
@php $avg=$review_item->avarage_rating; $intAvg=intval($avg); $nextVal=$intAvg+1; $reviewPoint=$intAvg; $halfReview=false; if($intAvg < $avg && $avg < $nextVal){ $reviewPoint= $intAvg + 0.5; $halfReview=true; } @endphp

@for ($i = 1; $i <=5; $i++) @if ($i <= $reviewPoint) @elseif ($i> $reviewPoint ) @if ($halfReview==true) @php $halfReview=false @endphp @else @endif @endif @endfor

{{ $review_item->user->name }}

{{ $review_item->created_at->format('d M Y') }}

{{ $review_item->comment }}

@endforeach {{ $propertyReviews->links('user.paginator') }}
@endif
{{ $websiteLang->where('lang_key','write_review')->first()->custom_text }}
@csrf
  • {{ $websiteLang->where('lang_key','service')->first()->custom_text }} :
  • {{ $websiteLang->where('lang_key','location')->first()->custom_text }} :
  • {{ $websiteLang->where('lang_key','value_for_money')->first()->custom_text }} :
  • {{ $websiteLang->where('lang_key','clean_rat')->first()->custom_text }} :

5

{{ $websiteLang->where('lang_key','out_of_5')->first()->custom_text }}

{{ $websiteLang->where('lang_key','avg_rat')->first()->custom_text }}

@if($setting->allow_captcha==1)

@endif @auth @php $activeUser=Auth::guard('web')->user(); @endphp @if ($activeUser->id !=$property->user_id) @endif @else

{{ $websiteLang->where('lang_key','before_review')->first()->custom_text }}

@endauth
@endsection