@extends('layout1') @section('title') {{ $property->seo_title }} @endsection @section('meta') @endsection @section('frontend-content')

{{ __('Our Property') }}

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

{{ $property->propertyPurpose->translation?->title }} @if ($property->urgent_property == 1) {{ __('Urgent') }} @endif

@if ($property->property_purpose_id == 1) {{ currency($property->price) }} @elseif ($property->property_purpose_id == 2) {{ currency($property->price) }} / @if ($property->period == 'Daily') {{ __('Daily') }} @elseif ($property->period == 'Monthly') {{ __('Monthly') }} @elseif ($property->period == 'Yearly') {{ __('Yearly') }} @endif @endif

{{ $property->translation?->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->translation?->address }} @if ($property->city) , {{ $property->city?->title }} @endif

  • {{ $property->number_of_bedroom }} {{ __('Bed') }}
  • {{ $property->number_of_bathroom }} {{ __('Bath') }}
  • {{ $property->area }} {{ __('Sqft') }}
{{ __('Details & Features') }}
{{ __('Property ID') }}: {{ $property->property_search_id }}
{{ __('Property Type') }}: {{ $property->propertyType->translation?->title }}
{{ __('Area') }}: {{ $property->area }} {{ __('Sqft') }}
{{ __('Bedrooms') }}: {{ $property->number_of_bedroom }}
{{ __('Bathrooms') }}: {{ $property->number_of_bathroom }}
{{ __('Rooms') }}: {{ $property->number_of_room }}
{{ __('Units') }}: {{ $property->number_of_unit }}
{{ __('Floors') }}: {{ $property->number_of_floor }}
{{ __('Kitchens') }}: {{ $property->number_of_kitchen ? $property->number_of_kitchen : 0 }}
{{ __('Parking Place') }}: {{ $property->number_of_parking ? $property->number_of_parking : 0 }}
{{ __('Description') }}
{!! clean($property->translation?->description) !!} @if ($property->file) {{ __('Download PDF') }} @endif
@if ($property->video_link)
{{ __('Property Video') }}
@endif @if ($property->propertyAminities->count() != 0)
{{ __('Amenities') }}
    @foreach ($property->propertyAminities as $aminity)
  • {{ $aminity->translation?->title }}
  • @endforeach
@endif @if ($property->propertyNearestLocations->count() != 0)
{{ __('Nearest Place') }}
    @foreach ($property->propertyNearestLocations as $propertyNearestLocation)
  • {{ $propertyNearestLocation->nearestLocation?->translation?->title }}: {{ $propertyNearestLocation->distance }}{{ __('KM') }}
  • @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 }} {{ __('Review') }}
@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('custom_paginator') }}
@endif
{{ __('Write A Review') }}
@csrf
  • {{ __('Service') }} :
  • {{ __('Location') }} :
  • {{ __('Value for Money') }} :
  • {{ __('Cleanliness') }} :

5

{{ __('Out Of 5.0') }}

{{ __('Average Rating') }}

@if ($setting->recaptcha_status == 'active')

@endif @auth('web') @php $activeUser = Auth::guard('web')->user(); $isExistReview = Modules\Property\app\Models\PropertyReview::where( [ 'user_id' => $activeUser->id, 'property_id' => $property->id, ], )->count(); @endphp @if ($activeUser->id != $property->user_id) @if ($isExistReview)

{{ __('Review already submitted') }}

@else @endif @endif @else

{{ __('Please Login To Write Review.') }}

@endauth
@endsection @push('js') @endpush