@php Theme::asset()->usePath()->add('leaflet-css', 'plugins/leaflet/leaflet.css'); Theme::asset()->container('footer')->usePath()->add('leaflet-js', 'plugins/leaflet/leaflet.js'); Theme::asset()->add('ckeditor-content-styles', 'vendor/core/core/base/libraries/ckeditor/content-styles.css'); $relatedProperties = app(\Botble\RealEstate\Repositories\Interfaces\PropertyInterface::class)->getRelatedProperties( $property->id, (int) theme_option('number_of_related_properties', 6), RealEstateHelper::getPropertyRelationsQuery(), RealEstateHelper::getReviewExtraData() ); @endphp
{!! Theme::partial('real-estate.properties.slider', ['item' => $property]) !!}

{{ $property->name }}

@if ($property->city->name || $property->state->name)

{{ $property->city->name }}{{ $property->city->name ? ', ' : '' }}{{ $property->state->name }}

@endif @if(setting('real_estate_display_views_count_in_detail_page', true))

{{ __(':count views', ['count' => number_format($property->views)]) }}

@endif

{{ $property->created_at->translatedFormat('M d, Y')}}

@if(RealEstateHelper::isEnabledReview()) @include(Theme::getThemeNamespace('views.real-estate.partials.review-star'), ['avgStar' => $property->reviews_avg_star, 'count' => $property->reviews_count]) @endif
    @if ($property->square)
  • {{ $property->square_text }}
  • @endif @if ($numberBedrooms = $property->number_bedroom)
  • {{ $numberBedrooms == 1 ? __('1 Bed') : __(':number Beds', ['number' => $numberBedrooms]) }}
  • @endif @if ($numberBathrooms = $property->number_bathroom)
  • {{ $numberBathrooms == 1 ? __('1 Bath') : __(':number Baths', ['number' => $numberBathrooms]) }}
  • @endif
{!! BaseHelper::clean($property->content) !!}
@if ($property->features->count())
{{ __('Features') }}
@foreach($property->features as $feature)
  • {{ $feature->name }}
  • @endforeach
    @endif @if ($property->facilities->count())
    {{ __('Distance key between facilities') }}
    @foreach($property->facilities as $facility)
  • @if ($facility->getMetaData('icon_image', true))

    {{ $facility->name }} {{ $facility->name }} - {{ $facility->pivot->distance }}

    @else {{ $facility->name }} - {{ $facility->pivot->distance }} @endif
  • @endforeach
    @endif @if ($property->project_id && $project = $property->project)
    {{ __("Project's information") }}
    {{ $project->name }}

    {!! BaseHelper::clean($project->name) !!}

    {!! BaseHelper::clean(Str::limit($project->description, 180)) !!}
    {{ __('View project') }}
    @endif @if ($property->latitude && $property->longitude)
    {{ __('Location') }}
    @endif
    {{ __('Price:') }}
    {{ $property->price_html }} {{ $property->type->label() }}
      @if ($uniqueId = $property->unique_id)
    • {{ __('ID') }} {{ $uniqueId }}
    • @endif @if ($property->square)
    • {{ __('Square') }} {{ $property->square_text }}
    • @endif @if ($bedrooms = $property->number_bedroom)
    • {{ __('Number of bedrooms') }} {{ $bedrooms }}
    • @endif @if ($bathrooms = $property->number_bathroom)
    • {{ __('Number of bathrooms') }} {{ $bathrooms }}
    • @endif @if ($floors = $property->number_floor)
    • {{ __('Number of floors') }} {{ $floors }}
    • @endif @if(RealestateHelper::isEnabledCustomFields()) @foreach($property->customFields as $customField)
    • {!! BaseHelper::clean($customField->name) !!} {!! BaseHelper::clean($customField->value) !!}
    • @endforeach @endif {!! apply_filters('property_details_extra_info', null, $property) !!}
    @if (! RealEstateHelper::hideAgentInfoInPropertyDetailPage() && ($author = $property->author) && $author->id)

    {{ __('Contact agency') }}

    {{ $author->name }}

    {{ $author->name }}

    @if(setting('real_estate_hide_agency_phone', 0)) {{ Str::mask($author->phone, '*', 3, -3) }} @else {{ $author->phone }} @endif

    @if(setting('real_estate_hide_agency_email', 0)) {{ Str::mask($author->email, '*', 4, -4) }} @else {{ $author->email }} @endif

    {{ __('View more') }}
    @endif
    {!! Theme::partial('consult-form', ['type' => 'property', 'data' => $property]) !!}
    {!! dynamic_sidebar('property_sidebar') !!}
    @if(RealEstateHelper::isEnabledReview()) @include(Theme::getThemeNamespace('views.real-estate.partials.reviews'), ['model' => $property]) @endif @if ($relatedProperties->count())
    {{ __('Related properties') }}
    {!! Theme::partial('real-estate.properties.items', ['properties' => $relatedProperties]) !!}
    @endif