@php $posts ??= []; $totalPosts ??= 0; $colDescBox = config('settings.list.display_mode') == 'make-compact' ? 'col-sm-9 col-12' : 'col-sm-7 col-12'; $colPriceBox = 'col-sm-3 col-12'; @endphp @if (!empty($posts) && $totalPosts > 0) @foreach ($posts as $key => $post)
@if (data_get($post, 'postType.has_badge') && !empty(data_get($post, 'postType.ribbon')))
{{ data_get($post, 'postType.short_name') }}
@endif
{{ str(data_get($post, 'title'))->limit(70) }}
@if (config('settings.single.show_listing_types')) @if (!empty(data_get($post, 'postType'))) {{ strtoupper(mb_substr(data_get($post, 'postType.name'), 0, 1)) }}   @endif @endif @if (!config('settings.list.hide_dates')) {!! data_get($post, 'created_at_formatted') !!} @endif   @if (!empty(data_get($post, 'category.parent'))) {{ data_get($post, 'category.parent.name') }}  »  @endif {{ data_get($post, 'category.name') }}   {{ data_get($post, 'city.name') }} {{ !empty(data_get($post, 'distance')) ? '- ' . round(data_get($post, 'distance'), 2) . getDistanceUnit() : '' }} @if (config('plugins.reviews.installed')) @if (view()->exists('reviews::ratings-list')) @include('reviews::ratings-list') @endif @endif

{!! data_get($post, 'price_formatted') !!}

{{-- @if (data_get($post, 'postType.has_badge') == 1) {{ data_get($post, 'postType.short_name') }}   @endif --}} @if (!empty(data_get($post, 'savedByLoggedUser'))) {{ t('Saved') }} @else {{ t('Save') }} @endif
@php $saleStatusTag = App\Helpers\SaleStatus::getSaleStatusOption(data_get($post, 'saleStatus')); $customStyle = $saleStatusTag && $saleStatusTag->banner_type === 'custom' ? 'color: ' . htmlspecialchars($saleStatusTag->banner_color) . '; background-color: ' . htmlspecialchars($saleStatusTag->banner_bgcolor) . ';' : ''; @endphp @if ($saleStatusTag && in_array($saleStatusTag->view, ['tilesListings', 'tilesOnly'])) {!! $saleStatusTag->abbr ?? $saleStatusTag->name !!} @endif
@if (data_get($post, 'negotiable') == 1) {{ t('negotiable') }} @endif
Listing ID: {{ hashId(data_get($post, 'id'), false, false) }}
@endforeach @else
{{ t('no_result_refine_your_search') }}
@endif @section('after_scripts') @parent @endsection