{!! $property->markupSchema !!} {!! $property->RealestateListingSchema !!}
is_new == true) style="margin-top: -22px;" @endif> @if ($property->is_new == true) @lang('site.new') @endif @if ($property->sold == 1 && $property->property_for != 'Rent') @lang('site.Sold') @elseif($property->sold == 1 && $property->property_for == 'Rent') @lang('site.Rented') @endif @php $availableSoon = null; if ($property->property_for == 'Rent' && !empty($property->rent_ends)) { $end = \Carbon\Carbon::parse($property->rent_ends); $now = now(); if ($end->isFuture() && $now->diffInDays($end) <= 90) { $days = $now->diffInDays($end); $availableSoon = app()->getLocale() == 'ar' ? "متاح خلال $days يوم" : "Available in $days days"; } } @endphp @if($availableSoon) {{ $availableSoon }} @endif @if ($property->contract_agreement == 1 && Route::is('site.exclusive')) @lang('site.Exclusive') @endif {{ $property->property_type->label }} {{ $property->images()->first()->meta ?? 'image' }} @php $converter = App\CurrencyConverter::first(); $usd = $converter->usd; $eur = $converter->eur; $gbp = $converter->gbp; @endphp @if ($property->options->showPrice)

@if ($property->options->sale_currency_id == 2 || $property->options->rent_currency_id == 2) @php $currency = __('site.USD') @endphp @elseif($property->options->sale_currency_id == 3 || $property->options->rent_currency_id == 3) @php $currency = __('site.EUR') @endphp @elseif($property->options->sale_currency_id == 4 || $property->options->rent_currency_id == 4) @php $currency = __('site.GBP') @endphp @else @php $currency = __('site.EGP') @endphp @endif @if($property->options->sale_currency_id == 2 || $property->options->rent_currency_id == 2) {{ $property->price*$usd }} @lang('site.EGP') @elseif($property->options->sale_currency_id == 3 || $property->options->rent_currency_id == 3) {{ $property->price*$eur }} @lang('site.EGP') @elseif($property->options->sale_currency_id == 4 || $property->options->rent_currency_id == 4) {{ $property->price*$gbp }} @lang('site.EGP') @else {{ $property->price.' '.$currency}} @endif @if($currency != __('site.EGP') && $currency != null) ({{ $property->price.' '.$currency}}) @endif

@endif
@if(Route::is('site.exclusive'))

@php $lastEditDate = $property->created_at; if (!empty($property->updated_by)) { $updates = explode(',', $property->updated_by); $lastUpdate = end($updates); $parts = explode('|', $lastUpdate); if (isset($parts[1]) && !empty($parts[1])) { $lastEditDate = \Carbon\Carbon::createFromFormat('Y m d H:i:s', trim($parts[1])); } } @endphp {{ $lastEditDate->translatedFormat('M d') }}

@lang('site.Seen'): {{$property->views_count}}

@lang('site.listing_id'): {{ $property->id }}

@endif @if(!Route::is('site.exclusive'))

@php $lastEditDate = $property->created_at; if (!empty($property->updated_by)) { $updates = explode(',', $property->updated_by); $lastUpdate = end($updates); $parts = explode('|', $lastUpdate); if (isset($parts[1]) && !empty($parts[1])) { $lastEditDate = \Carbon\Carbon::createFromFormat('Y m d g:i:s', trim($parts[1])); } } @endphp {{ $lastEditDate->translatedFormat('M d') }}

@lang('site.Seen'): {{$property->views_count}}

@lang('site.listing_id') : {{ $property->id }}

@endif
{{-- @if (!Route::is('site.exclusive'))
{{ $property->property_type->label }}
@endif --}}
@if($property->property_type_id == 1) @if(!empty($property->options->no_of_bedrooms))
bedroom {{ $property->options->no_of_bedrooms }} @lang('site.Bedrooms')
@endif @if(!empty($property->options->floor_no))
floor number

{{ $property->options->floor_no }}

@endif @if(!empty($property->options->building_area) || !empty($property->options->size) || !empty($property->options->surface_area) || !empty($property->options->plot_area))
size {{ $property->options->building_area ?? $property->options->size ?? $property->options->surface_area ?? $property->options->plot_area }} @lang('site.SqFt')
@endif @endif @if($property->property_type_id == 2 || $property->property_type_id == 5 || $property->property_type_id == 7) @if(!empty($property->options->no_of_bedrooms))
bedroom {{ $property->options->no_of_bedrooms }} @lang('site.Bedrooms')
@endif @if(!empty($property->options->no_of_bathrooms))
bathroom {{ $property->options->no_of_bathrooms }} @lang('site.Bathrooms')
@endif @if(!empty($property->options->building_area) || !empty($property->options->size) || !empty($property->options->surface_area) || !empty($property->options->plot_area))
size {{ $property->options->building_area ?? $property->options->size ?? $property->options->surface_area ?? $property->options->plot_area }} @lang('site.SqFt')
@endif @endif @if($property->property_type_id == 3) @php $result = new App\Helpers\StaticOptions(); $response = $result->static_options_handler(); $originalData = $response->getOriginalContent(); @endphp @if(!empty($property->options->water_sources))
water sources

@php $sources = collect($originalData['water_sources'])->whereIn('id',explode(',',$property->options->water_sources))->all(); $finalSources = ''; $index = 0; foreach ($sources as $source){ if($index != 0) $finalSources .= ','; $finalSources .= $source['value']; $index += 1; } @endphp {{ $finalSources }}

@endif @if(!empty($property->options->soil_type))
soil type

@php $soils = collect($originalData['soil_type'])->whereIn('id',explode(',',$property->options->soil_type))->all(); $finalSoils = ''; $index3 = 0; foreach ($soils as $soil){ if($index3 != 0) $finalSoils .= ','; $finalSoils .= $soil['value']; $index3 += 1; } @endphp {{ $finalSoils }}

@endif @if(!empty($property->options->building_area) || !empty($property->options->size) || !empty($property->options->surface_area) || !empty($property->options->plot_area))
size {{ $property->options->building_area ?? $property->options->size ?? $property->options->surface_area ?? $property->options->plot_area }} @lang('site.SqFt')
@endif @endif @if($property->property_type_id == 4 || $property->property_type_id == 6) @if(!empty($property->options->year_built))
year built

{{ $property->options->year_built }}

@endif @if(!empty($property->options->street_width))
street width

{{ $property->options->street_width }}

@endif @if(!empty($property->options->building_area) || !empty($property->options->size) || !empty($property->options->surface_area) || !empty($property->options->plot_area))
size {{ $property->options->building_area ?? $property->options->size ?? $property->options->surface_area ?? $property->options->plot_area }} @lang('site.SqFt')
@endif @endif @if($property->property_type_id == 8)
subtype

@if(LaravelLocalization::getCurrentLocale() == 'en') @foreach ($property->subtypes()->pluck('sub_type_name')->toArray() as $subt) @if ($loop->iteration > 1) , @endif {{ $subt }} @endforeach @else @foreach ($property->subtypes()->pluck('sub_type_name_ar')->toArray() as $subta) @if ($loop->iteration > 1) , @endif {{ $subta }} @endforeach @endif

@if(!empty($property->options->surface_area) || !empty($property->options->plot_area))
surface area {{ $property->options->surface_area ?? $property->options->plot_area }} @lang('site.SqFt')
@endif @if(!empty($property->options->building_area) || !empty($property->options->size))
building area {{ $property->options->building_area ?? $property->options->size }} @lang('site.SqFt')
@endif @endif @if($property->property_type_id == 9)
subtype

@if (LaravelLocalization::getCurrentLocale() == 'en') @foreach ($property->subtypes()->pluck('sub_type_name')->toArray() as $subt) @if ($loop->iteration > 1) , @endif {{ $subt }} @endforeach @else @foreach ($property->subtypes()->pluck('sub_type_name_ar')->toArray() as $subta) @if ($loop->iteration > 1) , @endif {{ $subta }} @endforeach @endif

@if(!empty($property->options->no_of_bedrooms))
bedroom {{ $property->options->no_of_bedrooms }} @lang('site.Bedrooms')
@endif @if(!empty($property->options->surface_area) || !empty($property->options->plot_area))
surface area {{ $property->options->surface_area ?? $property->options->plot_area }} @lang('site.SqFt')
@endif @endif @if($property->property_type_id == 10) @if(!empty($property->options->street_width))
street width

{{ $property->options->street_width }}

@endif @if(!empty($property->options->allowed_height))
allowable height

{{ $property->options->allowed_height }}

@endif @if(!empty($property->options->building_area) || !empty($property->options->size) || !empty($property->options->surface_area) || !empty($property->options->plot_area))
size {{ $property->options->building_area ?? $property->options->size ?? $property->options->surface_area ?? $property->options->plot_area }} @lang('site.SqFt')
@endif @endif @if($property->property_type_id == 11) @if(!empty($property->options->the_number_of_classes))
classes count

{{ $property->options->the_number_of_classes }}

@endif @if(!empty($property->options->surface_area) || !empty($property->options->plot_area))
surface area {{ $property->options->surface_area ?? $property->options->plot_area }} @lang('site.SqFt')
@endif @if(!empty($property->options->building_area) || !empty($property->options->size))
building area {{ $property->options->building_area ?? $property->options->size }} @lang('site.SqFt')
@endif @endif @if($property->property_type_id == 12) @if(!empty($property->options->floor_no))
floor number

{{ $property->options->floor_no }}

@endif @if(!empty($property->options->street_width))
allowable height

{{ $property->options->street_width }}

@endif @if(!empty($property->options->building_area) || !empty($property->options->size) || !empty($property->options->surface_area) || !empty($property->options->plot_area))
size {{ $property->options->building_area ?? $property->options->size ?? $property->options->surface_area ?? $property->options->plot_area }} @lang('site.SqFt')
@endif @endif @if($property->property_type_id == 13)
subtype

@if (LaravelLocalization::getCurrentLocale() == 'en') @foreach ($property->subtypes()->pluck('sub_type_name')->toArray() as $subt) @if ($loop->iteration > 1) , @endif {{ $subt }} @endforeach @else @foreach ($property->subtypes()->pluck('sub_type_name_ar')->toArray() as $subta) @if ($loop->iteration > 1) , @endif {{ $subta }} @endforeach @endif

@if(!empty($property->options->year_built))
year built

{{ $property->options->year_built }}

@endif @if(!empty($property->options->building_area) || !empty($property->options->size) || !empty($property->options->surface_area) || !empty($property->options->plot_area))
size {{ $property->options->building_area ?? $property->options->size ?? $property->options->surface_area ?? $property->options->plot_area }} @lang('site.SqFt')
@endif @endif @if($property->property_type_id == 14) @if(!empty($property->options->no_of_bedrooms))
bedroom {{ $property->options->no_of_bedrooms }} @lang('site.Bedrooms')
@endif @if(!empty($property->options->no_of_bathrooms))
bathroom {{ $property->options->no_of_bathrooms }} @lang('site.Bathrooms')
@endif @if(!empty($property->options->building_area) || !empty($property->options->size) || !empty($property->options->surface_area) || !empty($property->options->plot_area))
size {{ $property->options->building_area ?? $property->options->size ?? $property->options->surface_area ?? $property->options->plot_area }} @lang('site.SqFt')
@endif @endif @if($property->property_type_id == 15) @if(!empty($property->options->dimensions_height))
allowable height

{{ $property->options->dimensions_height }}

@endif @if(!empty($property->options->street_width))
street width

{{ $property->options->street_width }}

@endif @if(!empty($property->options->building_area) || !empty($property->options->size) || !empty($property->options->surface_area) || !empty($property->options->plot_area))
size {{ $property->options->building_area ?? $property->options->size ?? $property->options->surface_area ?? $property->options->plot_area }} @lang('site.SqFt')
@endif @endif
{{--
{{$property->views_count}}
--}}
@if ($property->request_owner) @if ($property->request_owner->agent->id) @endif @endif