{!! apply_filters('before_single_content_detail', null, $project) !!}
{{ trans('plugins/real-estate::project.overview') }}
@if ($lastUpdated = $project->getMetaData('last_updated', true))
{{ trans('plugins/real-estate::project.last_updated') }}:  {{ rescue(fn () => Carbon\Carbon::parse($lastUpdated)->translatedFormat('M d, Y')) }}
@endif @if($project->unique_id)
{{ trans('plugins/real-estate::project.project_id') }}:  {{ $project->unique_id }}
@endif
{{ trans('plugins/real-estate::project.status') }}:  {!! BaseHelper::clean($project->status_html) !!}
@if ($project->categories->isNotEmpty())
{{ trans('plugins/real-estate::project.category') }}:  @foreach ($project->categories as $category) {{ $category->name }} @if (!$loop->last) ,  @endif @endforeach
@endif @if ($project->investor->name)
{{ trans('plugins/real-estate::project.investor') }}:  {{ $project->investor->name }}
@endif @if ($project->price_from || $project->price_to)
{{ trans('plugins/real-estate::project.price') }}:  {{ $project->formatted_price }}
@endif
@if ($project->number_block)
{{ trans('plugins/real-estate::project.number_of_blocks') }}:  {{ number_format($project->number_block) }}
@endif @if ($project->number_floor)
{{ trans('plugins/real-estate::project.number_of_floors') }}:  {{ number_format($project->number_floor) }}
@endif @if ($project->number_flat)
{{ trans('plugins/real-estate::project.number_of_flats') }}:  {{ number_format($project->number_flat) }}
@endif
@foreach ($project->customFields as $customField)
{!! BaseHelper::clean($customField->name) !!}:  {!! BaseHelper::clean($customField->value) !!}
@endforeach
{{ trans('plugins/real-estate::project.description') }}
@if ($project->content)
{!! BaseHelper::clean($project->content) !!}
@endif @if ($project->features->count())
{{ trans('plugins/real-estate::project.features') }}
@php $project->features->loadMissing('metadata'); @endphp @foreach ($project->features as $feature)
@if ($feature->getMetaData('icon_image', true))

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

@else

{{ $feature->name }}

@endif
@endforeach
@endif
@if ($project->facilities->isNotEmpty())
{{ trans('plugins/real-estate::project.distance_key_between_facilities') }}
@php $project->facilities->loadMissing('metadata'); @endphp @foreach ($project->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 ($project->latitude && $project->longitude) @include('plugins/real-estate::themes.partials.elements.traffic-map-modal', ['location' => $project->location]) @else @include('plugins/real-estate::themes.partials.elements.gmap-canvas', ['location' => $project->location]) @endif
@if ($project->video_url) @include('plugins/real-estate::themes.partials.elements.video', ['object' => $project, 'title' => trans('plugins/real-estate::project.project_video')]) @endif {!! apply_filters('after_single_content_detail', null, $project) !!}
{!! Theme::partial('share', ['title' => trans('plugins/real-estate::project.share_this_project'), 'description' => $project->description]) !!}
{!! apply_filters( BASE_FILTER_PUBLIC_COMMENT_AREA, theme_option('facebook_comment_enabled_in_project', 'yes') == 'yes' ? Theme::partial('comments') : null, ) !!}
@if (RealEstateHelper::isEnabledReview()) @include('plugins/real-estate::themes.partials.reviews', [ 'model' => $project, ]) @endif
{!! apply_filters('project_right_details_info', null, $project) !!}
{!! Theme::partial('consult-form', ['type' => 'project', 'data' => $project]) !!}
@php $propertiesForSale = app(\Botble\RealEstate\Repositories\Interfaces\PropertyInterface::class)->getPropertiesByConditions( [ 're_properties.project_id' => $project->id, 're_properties.type' => \Botble\RealEstate\Enums\PropertyTypeEnum::SALE, ], 8, \Botble\RealEstate\Facades\RealEstateHelper::getPropertyRelationsQuery(), ); @endphp @if ($propertiesForSale->isNotEmpty())

{{ trans('plugins/real-estate::project.properties_for_sale') }}

@foreach ($propertiesForSale as $propertyForSale)
@include('plugins/real-estate::themes.partials.properties.item', ['property' => $propertyForSale])
@endforeach
@endif
@php $propertiesForRent = app(\Botble\RealEstate\Repositories\Interfaces\PropertyInterface::class)->getPropertiesByConditions( [ 're_properties.project_id' => $project->id, 're_properties.type' => \Botble\RealEstate\Enums\PropertyTypeEnum::RENT, ], theme_option('number_of_related_projects', 8), \Botble\RealEstate\Facades\RealEstateHelper::getPropertyRelationsQuery(), ); @endphp @if ($propertiesForRent->isNotEmpty())

{{ trans('plugins/real-estate::project.properties_for_rent') }}

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