@php Theme::asset() ->usePath() ->add('leaflet-css', 'libraries/leaflet/leaflet.css'); Theme::asset() ->container('footer') ->usePath() ->add('leaflet-js', 'libraries/leaflet/leaflet.js'); Theme::asset() ->usePath() ->add('magnific-css', 'libraries/magnific/magnific-popup.css'); Theme::asset() ->container('footer') ->usePath() ->add('magnific-js', 'libraries/magnific/jquery.magnific-popup.min.js'); Theme::asset() ->container('footer') ->usePath() ->add('property-js', 'js/property.js'); @endphp
@include('plugins/real-estate::themes.includes.slider', ['object' => $property])

{{ $property->name }}

@if (RealEstateHelper::isEnabledReview())

@include('plugins/real-estate::themes.partials.review-star', [ 'avgStar' => $property->reviews_avg_star, 'count' => $property->reviews_count, ])

@endif

@if ($property->short_address) {{ $property->short_address }} @endif @if (setting('real_estate_display_views_count_in_detail_page', 0) == 1) {{ number_format($property->views) }} {{ __('views') }} @endif {{ $property->created_at->translatedFormat('M d, Y') }}

{!! Theme::breadcrumb()->render() !!}

{{ $property->price_html }} {!! $property->status_html !!}

{!! apply_filters('before_single_content_detail', null, $property) !!}
{{ __('Overview') }}
@if ($lastUpdated = $property->getMetaData('last_updated', true)) @endif @if ($property->unique_id) @endif @if ($property->categories->isNotEmpty()) @endif @if ($property->square) @endif @if ($property->number_bedroom) @endif @if ($property->number_bathroom) @endif @if ($property->number_floor) @endif @foreach ($property->customFields as $customField) @endforeach {!! apply_filters('property_details_extra_info', null, $property) !!}
{{ __('Last Updated') }} {{ rescue(fn () => Carbon\Carbon::parse($lastUpdated)->translatedFormat('M d, Y')) }}
{{ __('Property ID') }} {{ $property->unique_id }}
{{ __('Category') }} @foreach ($property->categories as $category) {!! BaseHelper::clean($category->name) !!} @if (!$loop->last) ,  @endif @endforeach
{{ __('Square') }} {{ $property->square_text }}
{{ __('Number of bedrooms') }} {{ number_format($property->number_bedroom) }}
{{ __('Number of bathrooms') }} {{ number_format($property->number_bathroom) }}
{{ __('Number of floors') }} {{ number_format($property->number_floor) }}
{{ __('Price') }} {{ $property->price_html }}
{!! BaseHelper::clean($customField->name) !!} {!! BaseHelper::clean($customField->value) !!}
@if ($property->content)
{{ __('Description') }}
{!! BaseHelper::clean($property->content) !!}
@endif @if ($property->features->count())
{{ __('Features') }}
@php $property->features->loadMissing('metadata'); @endphp @foreach ($property->features as $feature)
@if ($feature->getMetaData('icon_image', true))

{{ $feature->name }} {{ $feature->name }}

@else

{{ $feature->name }}

@endif
@endforeach
@endif
@if ($property->facilities->isNotEmpty())
{{ __('Distance key between facilities') }}
@php $property->facilities->loadMissing('metadata'); @endphp @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 (RealEstateHelper::isEnabledProjects() && $property->project_id && ($project = $property->project))
{{ __("Project's information") }}
{!! BaseHelper::clean($project->name) !!}
{{ Str::limit($project->description, 120) }}

{{ __('Read more') }}

@endif
@if ($property->latitude && $property->longitude) @include('plugins/real-estate::themes.partials.elements.traffic-map-modal', ['location' => $property->location]) @else @include('plugins/real-estate::themes.partials.elements.gmap-canvas', ['location' => $property->location]) @endif
@if ($property->video_url) @include('plugins/real-estate::themes.partials.elements.video', ['object' => $property, 'title' => __('Property video')]) @endif {!! apply_filters('after_single_content_detail', null, $property) !!}
{{-- {!! Theme::partial('share', ['title' => __('Share this property'), 'description' => $property->description]) !!}--}}
{!! apply_filters( BASE_FILTER_PUBLIC_COMMENT_AREA, theme_option('facebook_comment_enabled_in_property', 'no') == 'yes' ? Theme::partial('comments') : null, ) !!} {!! apply_filters('after_property_detail_content', null, $property) !!}
@if (RealEstateHelper::isEnabledReview()) @include('plugins/real-estate::themes.partials.reviews', [ 'model' => $property, ]) @endif
{!! apply_filters('property_right_details_info', null, $property) !!} @if (!RealEstateHelper::hideAgentInfoInPropertyDetailPage() && ($account = $property->author))
{{ __('Contact agency') }}
@if ($account->url) @if ($account->avatar->url) {{ $account->name }} @else {{ $account->name }} @endif @else @if ($account->avatar->url) {{ $account->name }} @else {{ $account->name }} @endif @endif

@if ($account->url) {{ $account->name }} @else {{ $account->name }} @endif

@if ($account->phone && !setting('real_estate_hide_agency_phone', 0)) @php Theme::set('hotlineNumber', $account->phone); @endphp

{{ $account->phone }}

@elseif ($hotline = theme_option('hotline'))

{{ $hotline }}

@endif @if ($account->email && !setting('real_estate_hide_agency_email', 0))

{{ $account->email }}

@endif @if ($account->url)

{{ __('More properties by this agent') }}

@endif
@endif
{{-- {!! Theme::partial('consult-form', ['type' => 'property', 'data' => $property]) !!}--}}

@php $relatedProperties = app(\Botble\RealEstate\Repositories\Interfaces\PropertyInterface::class) ->getRelatedProperties( $property->id, theme_option('number_of_related_properties', 8), \Botble\RealEstate\Facades\RealEstateHelper::getPropertyRelationsQuery() ); @endphp @if ($relatedProperties->isNotEmpty())

{{ __('Related properties') }}

@foreach ($relatedProperties as $relatedProperty)
@include('plugins/real-estate::themes.partials.properties.item', ['property' => $relatedProperty])
@endforeach
@endif