<?php echo $__env->make('includes.header', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<div class="header">
  <h1>Best Property Deals</h1>
  <p>We provide 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="col-md-6">
        <div class="mymargin">
            <div class="card">
                <div class="card-body">
                <img src="<?php echo e($post->gallery_one); ?>" class="img-rounded" alt="Notebook" width="100%" height="300">
                </div>
                <div class="card-footer">
                <h4><?php echo e($post->project_name); ?></h4>
                <p><?php echo e($post->city); ?>, <?php echo e($post->state); ?></p>
                   <p><?php echo e($post->subcategory); ?>, <?php echo e($post->type); ?> BHK/Bedrooms</p>
                   <p class="myprice">₹ <?php echo e($post->price); ?></p>
                   <a href="<?php echo e(route('post.single', ['slug' => $post->slug ])); ?>">
                   <button class="btn btn-danger">See Details</button></a>      
                </div>
            </div>
        </div>
        </div> 
    <?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(); ?>