@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(Theme::getThemeNamespace() . '::views.real-estate.includes.slider', ['object' => $property])

{{ $property->name }}

@if (RealEstateHelper::isEnabledReview())

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

@endif

@if ($address = implode(', ', array_filter([$property->city->name, $property->state->name]))) {{ $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::partial('breadcrumb') !!}

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

{!! apply_filters('before_single_content_detail', null, $property) !!}
{{ __('Overview') }}
@if ($property->categories()->count()) @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) !!}
{{ __('Category') }} @foreach ($property->categories()->get() 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 ($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) {!! Theme::partial('real-estate.elements.traffic-map-modal', ['location' => $property->location]) !!} @else {!! Theme::partial('real-estate.elements.gmap-canvas', ['location' => $property->location]) !!} @endif
@if ($property->video_url) {!! Theme::partial('real-estate.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(Theme::getThemeNamespace('views.real-estate.partials.reviews'), [ 'model' => $property, ]) @endif
@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 }}

@else

{{ theme_option('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, 8, \Botble\RealEstate\Facades\RealEstateHelper::getPropertyRelationsQuery()); @endphp @if ($relatedProperties->isNotEmpty())
{{ __('Related properties') }}
@foreach ($relatedProperties as $relatedProperty)
{!! Theme::partial('real-estate.properties.item', ['property' => $relatedProperty]) !!}
@endforeach
@endif