{!! apply_filters('before_single_content_detail', null, $project) !!}
{{ __('Overview') }}
@if ($lastUpdated = $project->getMetaData('last_updated', true))
{{ __('Last Updated') }}:  {{ rescue(fn () => Carbon\Carbon::parse($lastUpdated)->translatedFormat('M d, Y')) }}
@endif @if($project->unique_id)
{{ __('Project ID') }}:  {{ $project->unique_id }}
@endif
{{ __('Status') }}:  {!! BaseHelper::clean($project->status_html) !!}
@if ($project->categories->isNotEmpty())
{{ __('Category') }}:  @foreach ($project->categories as $category) {{ $category->name }} @if (!$loop->last) ,  @endif @endforeach
@endif @if ($project->investor->name)
{{ __('Investor') }}:  {{ $project->investor->name }}
@endif @if ($project->price_from || $project->price_to)
{{ __('Price') }}:  {{ $project->formatted_price }}
@endif
@if ($project->number_block)
{{ __('Number of blocks') }}:  {{ number_format($project->number_block) }}
@endif @if ($project->number_floor)
{{ __('Number of floors') }}:  {{ number_format($project->number_floor) }}
@endif @if ($project->number_flat)
{{ __('Number of flats') }}:  {{ number_format($project->number_flat) }}
@endif
@foreach ($project->customFields as $customField)
{!! BaseHelper::clean($customField->name) !!}:  {!! BaseHelper::clean($customField->value) !!}
@endforeach
{{ __('Description') }}
@if ($project->content)
{!! BaseHelper::clean($project->content) !!}
@endif @if ($project->features->count())
{{ __('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())
{{ __('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' => __('Project video')]) @endif {!! apply_filters('after_single_content_detail', null, $project) !!}
{!! Theme::partial('share', ['title' => __('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())

{{ __('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())

{{ __('Properties For Rent') }}

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