<?php echo $__env->make('includes.header', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<div class="header">
<h1><u>Best Property Deals at BuySellHousing</u></h1>
  <p>Find the best place to live in your dream city.</p>
</div>
<div class="container marginbottom">
    <div class="row">
    <?php if($posts->count() > 0): ?>
    <?php $__currentLoopData = $posts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $post): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
    <div class="container marginbottom">
        <div class="mymargin">
        <a href="<?php echo e(route('post.single', ['slug' => $post->slug ])); ?>" target="_blank">
            <div class="card">
                <div class="card-body">
                    <div class="row">
                        <div class="col-md-4 col-xs-4">
                          <img src="<?php echo e($post->gallery_one); ?>" class="img-rounded" alt="Notebook" width="100%" height="150">
                        </div>
                    <div class="col-md-6 col-xs-4">
                    <h4 class="text-black"><?php echo e($post->title); ?></h4>
                    <p class="text-black"><?php echo e($post->city); ?></p>
                    <p class="text-black">Super Builtup Area: <?php echo e($post->builtuparea); ?>

                        <br/>Carpet Area: <?php echo e($post->carpetarea); ?>

                    </p>
                    <p class="text-black"><u><?php echo e($post->subcategory); ?>,  <?php echo e($post->bedrooms); ?> BHK/Bedrooms</u></p>
                    </div>
                    <div class="clo-md-2 col-xs-4">
                    <br/>
                    <p class="myprice text-black text-red">₹ <?php echo e($post->price); ?></p> 
                    <br/>
                    <p class="text-black"><?php echo e($post->furnishing); ?></p>
                    <p class="text-black">Listed By: <?php echo e($post->listedby); ?></p>
                    </div>
                </div>
            </div>
        </div>
        </div>
        </div> 
        </a>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    <?php else: ?> 
        <div class="col-md-12">
        <div class="mymargin">
            <div class="card">
                <div class="card-header text-center">
                    <h2>No Results Found!</h2>
                </div>
            </div>
        </div>
        </div>
    <?php endif; ?>     
    </div>
    <?php echo e($posts->links()); ?>

</div>    
<?php echo $__env->make('includes.footer', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>