@php Theme::layout('full-width'); Theme::set('breadcrumbEnabled', 'no'); Theme::asset()->usePath()->add('fancybox', 'plugins/fancybox/jquery.fancybox.min.css'); Theme::asset()->container('footer')->usePath()->add('fancybox', 'plugins/fancybox/jquery.fancybox.min.js'); Theme::asset()->usePath()->add('leaflet', 'plugins/leaflet/leaflet.css'); Theme::asset()->container('footer')->usePath()->add('leaflet', 'plugins/leaflet/leaflet.js'); $style = theme_option('real_estate_property_detail_layout', 1); $style = in_array($style, range(1, 4)) ? $style : 1; @endphp @include(Theme::getThemeNamespace('views.real-estate.single-layouts.partials.gallery-slider'), ['model' => $unit])
{!! apply_filters('ads_render', null, 'detail_page_before') !!}
{!! BaseHelper::clean($unit->status_html) !!}

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

{{ $unit->sale_price }}

@include(Theme::getThemeNamespace('views.real-estate.partials.meta'), ['model' => $unit])
{!! apply_filters('before_single_content_detail', null, $unit) !!} @if ($unit->description)
{{ __('Description') }}
{!! BaseHelper::clean($unit->description) !!}
@endif
{{ __('Overview') }}
{{ __('Project ID:') }} {{ $unit->unique_id ?: $project->getKey() }}
@if($project->categories->isNotEmpty())
{{ __('Type:') }} {{ collect($project->categories)->pluck('name')->implode(', ') }}
@endif @if($project->investor->name)
{{ __('Investor:') }} {{ $project->investor->name }}
@endif @if($project->number_block)
{{ __('Blocks:') }} {{ number_format($project->number_block) }}
@endif @if($project->number_floor)
{{ __('Floors:') }} {{ number_format($project->number_floor) }}
@endif @if ($project->number_flat)
{{ __('Flats:') }} {{ number_format($project->number_flat) }}
@endif @if ($project->square)
{{ __('Square:') }} {{ $project->square_text }}
@endif
{{ __('Price:') }} {{ $unit->sale_price }}
@foreach ($project->customFields as $customField) @continue(! $customField->value) @php $decoded = json_decode($customField->value, true); $isJson = json_last_error() === JSON_ERROR_NONE && is_array($decoded); $label = \Illuminate\Support\Str::title(str_replace(['_', '-'], ' ', $customField->name)); @endphp
@if($label == 'Unitsavailable' || $label == 'Unittypes' || $label == 'Developerinfo') @elseif($label == 'Labels') @elseif($label == 'Attributes') @elseif($label == 'Carpetareamin') @else @endif
{{ $label != 'Attributes' ? $label : '' }} @if($isJson) {{-- Units Available --}} @if(isset($decoded['sale']) || isset($decoded['total']) || isset($decoded['available'])) @if(isset($decoded['sale']['price'])) Sale Price: {{ number_format($decoded['sale']['price']) }}
@endif @if(isset($decoded['sale']['count'])) Sale Count: {{ $decoded['sale']['count'] }}
@endif @if(isset($decoded['total'])) Total Units: {{ $decoded['total'] }}
@endif @if(isset($decoded['available'])) Available Units: {{ $decoded['available'] }} @endif @endif {{-- Labels (array of only name/type) --}} @if(isset($decoded[0]['name']) && isset($decoded[0]['type'])) @foreach($decoded as $label) @if(!empty($label['name'])) {{ $label['name'] }} @if(!empty($label['type'])) ({{ $label['type'] }}) @endif
@endif @endforeach @endif {{-- Attributes (array with key, name, value) --}} @if(isset($decoded[0]['key']) && isset($decoded[0]['value'])) @foreach($decoded as $attr) @if(!empty($attr['name'])) {{ $attr['name'] }} {{ $attr['value'] ?? 'N/A' }} @endif @endforeach @endif {{-- Developer Info --}} @if(!empty($decoded['logo']) || !empty($decoded['pinTextColor']) || !empty($decoded['pinBgColor']) || !empty($decoded['name'])) @if(!empty($decoded['name'])) Name: {{ $decoded['name'] }} @else N/A @endif @endif {{-- Unit Types (array with slug + id + name) --}} @if(isset($decoded[0]['slug'])) @foreach($decoded as $unit) @if(!empty($unit['name'])) {{ $unit['name'] ?? '' }} @endif @endforeach @endif @else {!! BaseHelper::clean($customField->value) !!} @endif
@endforeach
@if ($project->features->isNotEmpty())
{{ __('Amenities and features') }}
    @foreach ($project->features as $feature)
  • @if($feature->icon) {!! BaseHelper::renderIcon($feature->icon) !!} @endif {{ $feature->name }}
  • @endforeach
@endif @if ($project->facilities->isNotEmpty())
{{ __('What’s nearby?') }}

{{ __("Explore nearby amenities to precisely locate your property and identify surrounding conveniences, providing a comprehensive overview of the living environment and the property's convenience.") }}

    @foreach ($project->facilities as $facility)
  • @if($facility->icon) {!! BaseHelper::renderIcon($facility->icon) !!} @endif {{ $facility->name }}: {{ $facility->pivot->distance }}
  • @endforeach
@endif
{{ __('Location') }}
@if (theme_option('real_estate_show_map_on_single_detail_page', 'yes') === 'yes') @if ($project->latitude && $project->longitude)
@else @endif @endif @include(Theme::getThemeNamespace('views.real-estate.partials.social-sharing'), ['model' => $project])
{!! apply_filters('after_single_content_detail', null, $project) !!} {!! apply_filters(BASE_FILTER_PUBLIC_COMMENT_AREA, null, $project) !!} @include(Theme::getThemeNamespace('views.real-estate.single-layouts.partials.reviews'), ['model' => $project])
{{ __('Contact Agency') }}
@if (! RealEstateHelper::hideAgentInfoInPropertyDetailPage() && ($account = $project->author))
@if ($account->phone && ! setting('real_estate_hide_agency_phone', false)) {{ $account->phone }} @elseif($hotline = theme_option('hotline')) {{ $hotline }} @endif @if ($account->email && ! setting('real_estate_hide_agency_email', false)) {{ $account->email }} @endif
@endif {!! apply_filters('project_right_details_info', null, $project) !!} {!! apply_filters('before_consult_form', null, $project) !!} {!! \Botble\RealEstate\Forms\Fronts\ConsultForm::create() ->formClass('contact-form') ->setFormInputWrapperClass('ip-group') ->modify('content', 'textarea', ['attr' => ['class' => '']]) ->modify('submit', 'submit', ['attr' => ['class' => 'tf-btn primary w-100']]) ->add('type', 'hidden', ['attr' => ['value' => 'project']]) ->add('data_id', 'hidden', ['attr' => ['value' => $project->getKey()]]) ->addBefore('content', 'data_name', 'text', ['label' => false, 'attr' => ['value' => $project->name, 'disabled' => true]]) ->renderForm() !!} {!! apply_filters('after_consult_form', null, $project) !!}
@php $relatedProperties = app(\Botble\RealEstate\Repositories\Interfaces\PropertyInterface::class) ->getPropertiesByConditions( [ 're_properties.project_id' => $project->getKey(), ], 8, \Botble\RealEstate\Facades\RealEstateHelper::getPropertyRelationsQuery(), ); @endphp