@extends('site.layouts.master') @section('seoTags') @seoTags() @endsection @php $seo = SEO\Models\Page::where('path',URL::full())->first(); @endphp @if(empty($seo)) @section('title') {{$demand->metadata->title ?? __('site.property_type')}} @endsection @endif @section('metatags') @if(!empty($seo)) @endif @php if(empty($demand->slug_ar)) $demand->slug_ar = ''; if(empty($demand->slug_en)) $demand->slug_en = ''; @endphp @endsection @php if (isset($_COOKIE['windowWidth'])) { $windowWidth = $_COOKIE['windowWidth']; $sm = $windowWidth < 992; } else { $sm = false; // Default value if cookie is not set } @endphp @section('content')
{{ Breadcrumbs::render('Request',$demand) }}
{!! $breadcrumbSchema !!} {!! $RealestateListingSchema !!}
@if (app()->getLocale() == 'ar') @else @endif @lang('site.Back') |

@if($demand->locations->first()) @if ($demand->locations->first()->governorate->name) {{ $demand->locations->first()->governorate->name }} @endif @if ($demand->locations->first()->city->name) @if (app()->getLocale() == 'ar') @else @endif {{ $demand->locations->first()->city->name }} @endif @if ($demand->locations->first()->district->name) @if (app()->getLocale() == 'ar') @else @endif {{ $demand->locations->first()->district->name }} @endif @if ($demand->locations->first()->compound->name) @if (app()->getLocale() == 'ar') @else @endif {{ $demand->locations->first()->compound->name }} @endif @endif

@if (app()->getLocale() == 'ar') {{ \Carbon\Carbon::createFromDate($demand->updated_at)->translatedFormat('M d ' . __('site.at') . ' h:i A') }} @else {{ \Carbon\Carbon::createFromDate($demand->updated_at)->translatedFormat('M d \a\t h:i A') }} @endif
@php $converter = App\CurrencyConverter::first(); $usd = $converter->usd; $eur = $converter->eur; $gbp = $converter->gbp; if ($demand->property_for == 'Rent'){ $price_from = $demand->demandPropertyTypes[0]->price_rent_from; $price_to = $demand->demandPropertyTypes[0]->price_rent_to; $currency = $demand->demandPropertyTypes[0]->price_rent_currency; }else{ $price_from = $demand->demandPropertyTypes[0]->price_buy_from; $price_to = $demand->demandPropertyTypes[0]->price_buy_to; $currency = $demand->demandPropertyTypes[0]->price_buy_currency; } @endphp @if($sm)

@lang('site.Request ID') : {{ $demand->id }}

@if(!empty($demand->locations[0]->city->name)) {{ $demand->locations[0]->city->name ?? '' }} @endif

{{ $demand->metadata->title ?? __('site.property_type') }}

marker {{ $demand->locations[0]->country->name ?? '' }} @if($demand->locations[0]->governorate) / {{ $demand->locations[0]->governorate->name }} @endif @lang('site.In') : @foreach ($demand->locations as $loc) @if($loc->district) / {{ $loc->district->name }} @endif @if($loc->compound) / {{ $loc->compound->name }} @endif @endforeach

@foreach ($demand->locations as $loc)

@if ($loc->district) {{ $loc->district->name ? '/' . $loc->district->name : '' }} @endif @if ($loc->compound) {{ $loc->compound->name ? '/' . $loc->compound->name : '' }} @endif

@endforeach @php $surface_from = $demand->demandPropertyTypes->first()->surface_area_from ?? $demand->demandPropertyTypes->first()->size_from ?? $demand->demandPropertyTypes->first()->plot_area_from ?? $demand->demandPropertyTypes->first()->farm_area_from; $surface_to = $demand->demandPropertyTypes->first()->surface_area_to ?? $demand->demandPropertyTypes->first()->size_to ?? $demand->demandPropertyTypes->first()->plot_area_to ?? $demand->demandPropertyTypes->first()->farm_area_to; @endphp @if($surface_from || $surface_to)

size {{ $surface_from }} - {{ $surface_to }} @lang('site.SqFt')

@endif @foreach ($demand->demandPropertyTypes as $request) @php $bathrooms = ($request->no_of_bathrooms_from || $request->no_of_bathrooms_to) && ($request->no_of_bathrooms_from != 0 || $request->no_of_bathrooms_to != 0); $bedrooms = ($request->no_of_bedrooms_from || $request->no_of_bedrooms_to) && ($request->no_of_bedrooms_from != 0 || $request->no_of_bedrooms_to != 0); $plot_area = ($request->plot_area_from || $request->plot_area_to) && ($request->plot_area_from != 0 || $request->plot_area_to != 0); $building_area = ($request->building_area_from || $request->building_area_to) && ($request->building_area_from != 0 || $request->building_area_to != 0); $floor_no = ($request->floor_no_from || $request->floor_no_to) && ($request->floor_no_from != 0 || $request->floor_no_to != 0); $farm_area = ($request->farm_area_from || $request->farm_area_to) && ($request->farm_area_from != 0 || $request->farm_area_to != 0); @endphp

@lang('site.Property_Types')

{{ $request->propertyTypes->label }}

@if ($demand->property_for)

@lang('site.Property_For')

{{ __("site.$demand->property_for") }}

@endif @if ($request->price_buy_type)

@lang('site.payment_type')

{{ __('site.demand_payment_method_' . strtolower($request->price_buy_type)) }}

@endif @if ($request->finishing_status)

@lang('site.finishing_status')

@foreach ($request->finishing_status as $finishing) {{ \App\FinishingType::find($finishing)->finishing_type ?? '' }}@if (!$loop->last), @endif @endforeach

@endif @if ($bathrooms)

@lang('site.No_of_Bathrooms')

{{ $request->no_of_bathrooms_from }} - {{ $request->no_of_bathrooms_to }}

@endif @if ($bedrooms)

@lang('site.no_bed_rooms')

{{ $request->no_of_bedrooms_from }} - {{ $request->no_of_bedrooms_to }}

@endif @if ($plot_area)

@lang('site.Plot_Area')

{{ $request->plot_area_from }} - {{ $request->plot_area_to }} @lang('site.SqFt')

@endif @if ($building_area)

@lang('site.building_area')

{{ $request->building_area_from }} - {{ $request->building_area_to }} @lang('site.SqFt')

@endif @if ($floor_no)

@lang('site.Floor_No')

{{ $request->floor_no_from }} - {{ $request->floor_no_to }}

@endif @if ($farm_area)

@lang('site.Farm_Area')

{{ $request->farm_area_from }} - {{ $request->farm_area_to }} @lang('site.SqFt')

@endif @if ($request->furniture_status)

@lang('site.Furniture_Status')

@foreach ($request->furniture_status as $furniture) {{ __("site.$furniture") }}@if (!$loop->last), @endif @endforeach

@endif @endforeach

@lang('site.budget')

@if($currency == __('site.USD')) {{ $price_from*$usd }} @lang('site.EGP') @elseif($currency == __('site.EUR')) {{ $price_from*$eur }} @lang('site.EGP') @elseif($currency == __('site.GBP')) {{ $price_from*$gbp }} @lang('site.EGP') @else {{ $price_from.' '.$currency }} @endif @if($currency != __('site.EGP') && $currency != null) ({{ $price_from.' '.$currency }}) @endif @if($currency == __('site.USD')) {{ $price_to*$usd }} @lang('site.EGP') @elseif($currency == __('site.EUR')) {{ $price_to*$eur }} @lang('site.EGP') @elseif($currency == __('site.GBP')) {{ $price_to*$gbp }} @lang('site.EGP') @else {{ $price_to.' '.$currency }} @endif @if($currency != __('site.EGP') && $currency != null) ({{ $price_to.' '.$currency }}) @endif
@lang('site.Agent')
@if ($agent->id) {{ $agent->username ?? 'image' }} @endif
@if ($agent->id) {{ $agent->username }} @endif

@lang('site.agent')

@if ($agent->profile->phone != null) @lang('site.Call') {{ $agent->profile->phone }} @php $mon = ''; $priceTypeFrom = 'price_buy_from'; $priceTypeTo = 'price_buy_to'; if ($demand->property_for == 'Rent') { if (LaravelLocalization::getCurrentLocale() == 'en') { $mon = '/month'; } if (LaravelLocalization::getCurrentLocale() == 'ar') { $mon = '/شهر'; } $priceTypeFrom = 'price_rent_from'; $priceTypeTo = 'price_rent_to'; } if ($demand->property_for == 'للايجار') { if (LaravelLocalization::getCurrentLocale() == 'en') { $mon = '/month'; } if (LaravelLocalization::getCurrentLocale() == 'ar') { $mon = '/شهر'; } $priceTypeFrom = 'price_rent_from'; $priceTypeTo = 'price_rent_to'; } if ($demand->property_for == 'Buy & Rent' && $demand->demandPropertyTypes[0]->$priceTypeFrom == null) { if (LaravelLocalization::getCurrentLocale() == 'en') { $mon = '/month'; } if (LaravelLocalization::getCurrentLocale() == 'ar') { $mon = '/شهر'; } $priceTypeFrom = 'price_rent_from'; $priceTypeTo = 'price_rent_to'; } if ($request->property_for == 'Rent') { $request_for = 'Rent-Request'; } else { $request_for = 'Buy'; } @endphp @lang('site.WhatsAppMe') @endif
@else

@lang('site.Request_Id'): {{ $demand->id }}

{{$demand->metadata->title ?? __('site.property_type')}}

marker @lang('site.Location')
@if(!empty($demand->locations[0]))

{{ $demand->locations[0]->country->name ?? '' }} {{ '/' . $demand->locations[0]->governorate->name ?? '' }} @lang('site.In') : {{ $demand->locations[0]->city->name ?? '' }}

@endif
@lang('site.Property_Type')
@if(!empty($demand->property_types->first()->label))

{{ $demand->property_types->first()->label }}

@endif
@lang('site.Property_For')
@if(!empty($demand->property_for))

@lang('site.'.$demand->property_for)

@endif
@php $propertyType = $demand->demandPropertyTypes->first(); @endphp @if(($propertyType->surface_area_from ?? 0) > 0 || ($propertyType->surface_area_to ?? 0) > 0)
@lang('site.Spaces')

{{ $propertyType->surface_area_from ?? '' }} - {{ $propertyType->surface_area_to ?? '' }} @lang('site.SqFt')

@endif @if(($propertyType->floor_no_to ?? 0) > 0)
@lang('site.Floor_No_to')

{{ $propertyType->floor_no_to }}

@endif @if(($price_from ?? 0) > 0 || ($price_to ?? 0) > 0)
@lang('site.client_budget')
@if(($price_from ?? 0) > 0)

{{ $price_from }} {{ $currency }}

@endif @if(($price_from ?? 0) > 0 && ($price_to ?? 0) > 0) @endif @if(($price_to ?? 0) > 0)

{{ $price_to }} {{ $currency }}

@endif
@endif
@if(!empty($demand->locations[0]->city->name)) {{ $demand->locations[0]->city->name ?? '' }} @endif
@lang('site.Agent')
@if ($agent->id) {{ $agent->username ?? 'image' }} @endif
@if ($agent->id) {{ $agent->username }} @endif

@lang('site.agent')

@if ($agent->profile->phone != null) @lang('site.Call') {{ $agent->profile->phone }} @php $mon = ''; $priceTypeFrom = 'price_buy_from'; $priceTypeTo = 'price_buy_to'; if ($demand->property_for == 'Rent') { if (LaravelLocalization::getCurrentLocale() == 'en') { $mon = '/month'; } if (LaravelLocalization::getCurrentLocale() == 'ar') { $mon = '/شهر'; } $priceTypeFrom = 'price_rent_from'; $priceTypeTo = 'price_rent_to'; } if ($demand->property_for == 'للايجار') { if (LaravelLocalization::getCurrentLocale() == 'en') { $mon = '/month'; } if (LaravelLocalization::getCurrentLocale() == 'ar') { $mon = '/شهر'; } $priceTypeFrom = 'price_rent_from'; $priceTypeTo = 'price_rent_to'; } if ($demand->property_for == 'Buy & Rent' && $demand->demandPropertyTypes[0]->$priceTypeFrom == null) { if (LaravelLocalization::getCurrentLocale() == 'en') { $mon = '/month'; } if (LaravelLocalization::getCurrentLocale() == 'ar') { $mon = '/شهر'; } $priceTypeFrom = 'price_rent_from'; $priceTypeTo = 'price_rent_to'; } if ($demand->property_for == 'Rent') { $request_for = 'Rent-Request'; } else { $request_for = 'Buy'; } @endphp @lang('site.WhatsAppMe') @endif
@endif

@lang('site.similar_requests')

@include('site.template.similarRequest', ['requests' => $related_requests])

@lang('site.How Do Requests Works'):

video_placeholder

@lang('site.Owners / Brokers')

@lang('site.I have a property that fits your request')

@include('site.pages.forms.contactAgentForm',[ 'gtoken' => 'gtokenmai', 'title' => $demand->metadata->title, 'agent' => $demand->request_owner->agent, 'demand' => $demand, 'request' => $demand->demandPropertyTypes[0], ])
@if ($seo != null) @php if (LaravelLocalization::getCurrentLocale() == 'ar') { $content = $seo->content_ar; } else { $content = $seo->content; } @endphp @if (isset($content)) @endif @endif
@endsection @section('script') @endsection