@forelse ($properties as $property_item)
@if ($property_item->purpose == 'rent') {{ __('user.For Rent') }} @else {{ __('user.For Sale') }} @endif
{{ $currency_icon }}{{ html_decode(num_format($property_item->price)) }} @if ($property_item->purpose == 'rent') /{{ $property_item->rent_period }} @endif

{{ html_decode($property_item->title) }}

address

{{ html_decode($property_item->address) }}

  • total_bedroom{{ $property_item->total_bedroom }} {{ __('user.Bed') }}
  • total_bathroom{{ $property_item->total_bathroom }} {{ __('user.Bath') }}
  • total_area{{ html_decode($property_item->total_area) }} {{ __('user.m2') }}
@empty

{{ __('user.Property not found!') }}

@endforelse
{{ $properties->links('ajax_custom_pagination') }}
@foreach ($properties as $property_item)
@if ($property_item->purpose == 'rent') {{ __('user.For Rent') }} @else {{ __('user.For Sale') }} @endif
{{ $currency_icon }}{{ html_decode(num_format($property_item->price)) }} @if ($property_item->purpose == 'rent') /{{ $property_item->rent_period }} @endif

{{ html_decode($property_item->title) }}

address

{{ html_decode($property_item->address) }}

  • total_bedroom{{ $property_item->total_bedroom }} {{ __('user.Bed') }}
  • total_bathroom{{ $property_item->total_bathroom }} {{ __('user.Bath') }}
  • total_area{{ html_decode($property_item->total_area) }} {{ __('user.m2') }}
@endforeach
{{ $properties->links('ajax_custom_pagination') }}
@php $initialMarkers = []; // Loop through each property and add to the array if lat and lon are not null foreach ($properties as $property_item) { if (!is_null($property_item->lat) && !is_null($property_item->lon)) { $initialMarkers[] = [ 'position' => [ 'lat' => $property_item->lat, 'lng' => $property_item->lon, ], 'draggable' => false, ]; } } @endphp