@foreach ($listings as $listing)
    <div class="col-md-6 col-lg-6">
        <div data-listing-id="{{ $listing->p_id }}"
             data-listing-img="{{ $listing->getThumbImagePublicUrlAttribute() }}"
             data-listing-price="{{ $listing->price }}"
             data-listing-title="{{ $listing->title }}"
             class="feat_property feat_property_cus home7 style4">
            <div class="thumb">
                <img class="low-opacity img-whp view-property"
                     src="{{ $listing->getThumbImagePublicUrlAttribute() }}"
                     alt="{{ $listing->title }}">
                <div class="thmb_cntnt style2">
                    <ul class="tag mb0">
                        @if ($listing->is_featured == 1)
                            <li class="list-inline-item">Featured</li>
                        @endif
                        @if ($listing->sale_status)
                            <li class="list-inline-item">{{ $listing->sale_status->name }}
                            </li>
                        @endif
                        @if ($listing->cheque)
                            <li class="list-inline-item">{{ $listing->cheque->name }}
                            </li>
                        @endif
                    </ul>
                </div>
                <div class="thmb_cntnt style3">
                    @if ($listing->price)
                        <a class="fp_price">AED
                            {{ number_format($listing->price) }}
                            @if ($listing->purpose && $listing->purpose->id == 37 && $listing->rent_frequency)
                                / {{ $listing->rent_frequency->name }}
                            @endif
                        </a>
                    @endif
                </div>
            </div>
            <div class="details view-property">
                <div class="tc_content">
                    <h4>{!! $listing->title !!}</h4>
                    @if ($listing->getHK())
                        <p><span class="flaticon-placeholder"></span>
                            {{ $listing->getHK() }}
                        </p>
                    @endif
                </div>
                <div class="fp_footer">
                    <div class="fp_pdate float-right">
                        <a class="btn theme-btn-inverse cursor-pointer text-white">Details</a>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endforeach
