@foreach ($Requests->take(4) as $request) @php $demandType = $request->demandPropertyTypes->first(); if ($request->property_for == 'Rent') { $price_from = $demandType->price_rent_from ?? null; $price_to = $demandType->price_rent_to ?? null; $currency = $demandType->price_rent_currency ?? ''; } else { $price_from = $demandType->price_buy_from ?? null; $price_to = $demandType->price_buy_to ?? null; $currency = $demandType->price_buy_currency ?? ''; } if ( $request->property_for == 'Rent' || $request->property_for == 'للايجار' ) { $requestTypeLabel = app()->getLocale() == 'ar' ? 'طلب إيجار' : 'Rent Request'; } else { $requestTypeLabel = app()->getLocale() == 'ar' ? 'طلب شراء' : 'Buy Request'; } $areaFrom = $demandType->surface_area_from ?? null; $areaTo = $demandType->surface_area_to ?? null; $bedroomsFrom = $demandType->no_of_bedrooms_from ?? null; $bedroomsTo = $demandType->no_of_bedrooms_to ?? null; @endphp
{{ $requestTypeLabel }} ● @if(app()->getLocale() == 'ar') موثّق @else Verified @endif

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

@if(!empty($request->locations[0]->city->name)) {{ $request->locations[0]->city->name }} @endif @if(!empty($request->locations[0]->governorate->name)) · {{ $request->locations[0]->governorate->name }} @endif

@if(!empty($areaFrom) || !empty($areaTo))
@lang('site.Spaces') @if(!empty($areaFrom)) {{ $areaFrom }} @endif @if(!empty($areaFrom) && !empty($areaTo)) – @endif @if(!empty($areaTo)) {{ $areaTo }} @endif @lang('site.SqFt')
@elseif(!empty($price_from) || !empty($price_to))
@lang('site.price') @if(!empty($price_from)) {{ $price_from }} @endif @if(!empty($price_from) && !empty($price_to)) – @endif @if(!empty($price_to)) {{ $price_to }} @endif {{ $currency }}
@endif @if(!empty($bedroomsFrom) || !empty($bedroomsTo))
@lang('site.Bedrooms') @if(!empty($bedroomsFrom)) {{ $bedroomsFrom }} @endif @if(!empty($bedroomsFrom) && !empty($bedroomsTo)) – @endif @if(!empty($bedroomsTo)) {{ $bedroomsTo }} @endif
@elseif(!empty($request->property_types->first()))
@lang('site.Type') {{ $request->property_types->first()->label }}
@endif
@endforeach