@foreach($properties_sales as $index=>$property) @php $property->property_for == 'FOR RENT' || $property->property_for == 'للايجار' ? ($price = $property->options->per_month) : ($price = $property->options->sale_price); $property->property_for == 'FOR RENT' || $property->property_for == 'للايجار' ? ($currency = $property->options->rent_currency) : ($currency = $property->options->sale_currency); $mon = ''; if ($property->property_for == 'FOR RENT') { $mon = '/month'; } if ($property->property_for == 'للايجار') { $mon = '/شهر'; } if($property->property_for == 'Rent') { $property_for = 'Rent'; } else { $property_for = 'Sale'; } $converter = App\CurrencyConverter::first(); $usd = $converter->usd; $eur = $converter->eur; $gbp = $converter->gbp; if ( $property->options->sale_currency_id == 2 || $property->options->rent_currency_id == 2 ) { $currency = __('site.USD'); } elseif ( $property->options->sale_currency_id == 3 || $property->options->rent_currency_id == 3 ) { $currency = __('site.EUR'); } elseif ( $property->options->sale_currency_id == 4 || $property->options->rent_currency_id == 4 ) { $currency = __('site.GBP'); } else { $currency = __('site.EGP'); } $area = $property->options->size ?? $property->options->surface_area ?? $property->options->plot_area; if ( $property->property_for == 'Rent' || $property->property_for == 'FOR RENT' || $property->property_for == 'للايجار' ) { $cardTag = __('site.For_Rent'); } elseif ( $property->property_for == 'Sale' || $property->property_for == 'FOR SALE' || $property->property_for == 'للبيع' ) { $cardTag = __('site.For_Sale'); } else { $cardTag = $property->property_type->label; } @endphp

{{ $property->metadata->title }}

{{ $property->location->full_location }}

@if(!empty($property->options->no_of_bedrooms)) {{ $property->options->no_of_bedrooms }} @lang('site.Bedrooms') @endif @if(!empty($property->options->no_of_bathrooms)) {{ $property->options->no_of_bathrooms }} @lang('site.Bathrooms') @endif @if(!empty($area)) {{ $area }} @lang('site.SqFt') @endif
@if($property->options->showPrice) @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(!empty($mon)) {{ $mon }} @endif @else @if(app()->getLocale() == 'ar') السعر عند الطلب @else Price on request @endif @endif @if(app()->getLocale() == 'ar') ← التفاصيل @else Details → @endif
@endforeach