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

{{ \Carbon\Carbon::createFromDate($req->updated_at)->translatedFormat('M d') }}
@if(!empty($cit)) {{ $cit }} @endif
@php $slug = app()->getLocale() == 'ar' ? $req->slug_ar : $req->slug_en; @endphp

@if(app()->getLocale() == 'ar') {{ $req->metadata->title_ar ?? __('site.property_type') }} @else {{ $req->metadata->title_en ?? __('site.property_type') }} @endif

@if(app()->getLocale() == 'ar') {{ $req->locations[0]->city->city_name_ar }} @else {{ $req->locations[0]->city->city_name_en }} @endif

@lang('site.Area')

{{ $req->demandPropertyTypes->first()->surface_area_from ?? $req->demandPropertyTypes->first()->size_from ?? $req->demandPropertyTypes->first()->plot_area_from ?? $req->demandPropertyTypes->first()->farm_area_from }} - {{ $req->demandPropertyTypes->first()->surface_area_to ?? $req->demandPropertyTypes->first()->size_to ?? $req->demandPropertyTypes->first()->plot_area_to ?? $req->demandPropertyTypes->first()->farm_area_to }} @lang('site.SqFt')

@lang('site.Property_Type')

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

@lang('site.Property_For')

{{ $req->property_for }}

@if(!empty($req->demandPropertyTypes->first()->floor_no_to))

@lang('site.Floor_No_to')

{{ $req->demandPropertyTypes->first()->floor_no_to }}

@endif

@lang('site.client_budget')

@php $converter = App\CurrencyConverter::first(); $usd = $converter->usd; $eur = $converter->eur; $gbp = $converter->gbp; if ($req->property_for == 'Rent'){ $price_from = $req->demandPropertyTypes[0]->price_rent_from; $price_to = $req->demandPropertyTypes[0]->price_rent_to; $currency = $req->demandPropertyTypes[0]->price_rent_currency; } else { $price_from = $req->demandPropertyTypes[0]->price_buy_from; $price_to = $req->demandPropertyTypes[0]->price_buy_to; $currency = $req->demandPropertyTypes[0]->price_buy_currency; } @endphp @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
@if ($req->metadata->description)

{{ __('site.newrequest_desc') }}


@php // النص الأصلي $rawText = app()->getLocale() == 'ar' ? $req->metadata->description_ar : $req->metadata->description_en; // استبدال التاجز التي تفصل السطور بـ new lines $normalized = str_replace( ['
', '
', '
', '

', '

'], ["\n", "\n", "\n", "\n", ""], $rawText ); // إزالة التاجز + فك الـ entities $cleanText = html_entity_decode(strip_tags($normalized)); // إزالة المسافات الزايدة + ترتيب السطور $cleanText = preg_replace("/\n+/", "\n", $cleanText); // limit 200 حرف $text = \Illuminate\Support\Str::limit($cleanText, 250, '...'); @endphp {!! nl2br(e($text)) !!}

@endif