@if(\Request::get('offers') == 1)
@if($result->count()) @foreach ($result as $key=> $pr) @if($pr->deals_of_month == 1)
@php $db_image = App\Models\PropertyImage::where(["file_type"=>"jpg","property_id"=> $pr->property_id])->where('property_images_name' ,'!=',null)->orderBy('sort_order', 'asc')->first(); @endphp
@if(isset($db_image->property_images_name)) @endif
{{-- @if($db_image->count() > 0) @foreach($db_image as $key => $db_img) @endforeach @else
@endif --}}
@if($pr->property_price > 0 && $pr->offer_price > $pr->property_price)

{{ amount_currency($pr->property_price)}} /{{ $pr->deals_of_month == 1 ? 'Month' : 'Day'}}

@endif @if($pr->offer_price > 0)

{{ amount_currency($pr->offer_price)}} /{{ $pr->deals_of_month == 1 ? 'Month' : 'Day'}}

@endif
@endif @endforeach @else No record Found @endif
@else
@if($result->count()) @foreach ($result as $key=> $pr) @php $db_image = App\Models\PropertyImage::where(["file_type"=>"jpg","property_id"=> $pr->property_id])->orderBy('sort_order', 'asc')->first(); $image = isset($db_image->property_images_name) ? $db_image->property_images_name : ''; @endphp
@endforeach @else No record Found @endif
@endif