{!! $property->markupSchema !!} {!! $property->RealestateListingSchema !!}
@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
@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 }}
{{ $property->location->full_location }}
@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 }}
@if ($property->location->governorate->name) {{ $property->location->governorate->name }} @endif @if ($property->location->city->name) - {{ $property->location->city->name }} @endif @if ($property->location->district->name) - {{ $property->location->district->name }} @endif @if ($property->location->compound->name) - {{ $property->location->compound->name }} @endif
{{ $property->options->floor_no }}
@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 }}
@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 }}
{{ $property->options->year_built }}
{{ $property->options->street_width }}
@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 (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
{{ $property->options->street_width }}
{{ $property->options->allowed_height }}
{{ $property->options->the_number_of_classes }}
{{ $property->options->floor_no }}
{{ $property->options->street_width }}
@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
{{ $property->options->year_built }}
{{ $property->options->dimensions_height }}
{{ $property->options->street_width }}
@endif
@if ($agent->id)
{{ $agent->username }}
@endif
@endif
@if ($agent->id)
{{ $agent->username }}
@endif