<?php
    if(!empty($latest_project)){ ?>  
     <section id="latest-project" class="latest-project  section-new-instructions desk-pad-20" style="background:#fff;">

      <div class="blog blg-home blg-home-3 full-width-htm container" data-aos="fade-up">
        <div class="featured-title-hold text-center clearfix" style="position:relative;">
                <h3 class="site-h1 animate  "><span class="title">Latest Off-plan Projects </span>
                <p class="site-h4">Explore our offplan real estate properties, that ready to book now </p>
                </h3>
                <a href="<?php echo $this->createUrl('listings/index');?>" class="font-weight-bold font-size-normal text-right" style="display:none!important;font-size:16px;flex: 1;justify-content: end;display: flex;min-width: 125px;position: absolute;right: 0;top: 25px;color: #102448;text-decoration: underline;font-weight: 500;">View All</a>
              </div>

        

        <div class="row  properties posts-list">
            <?php
            foreach($latest_project as $k=>$v){  $image =  $v->OffplanImage; ?>
              <div class="col-lg-4">
                <article class="d-flex flex-column">

                  <div class="post-img lozad" style="position:relative;" data-background-image="<?php echo  $image ;?>">
                         <ul class="attrribute-ul">
                          <?php echo $v->AtttributePropertyDetails;?>
                      </ul>
                       <a href="<?php echo $v->DetailUrl;?>">
                    
                  </div>
                 <div class="abs-conten">
                     <div class="row">
                         <div class="col-sm-9">
                             <div>
                  <h2 class="title mt-1">
                    <a href="<?php echo $v->DetailUrl;?>"><?php echo $v->adTitle;?></a>
                  </h2>
                  </div>
                  <div class="loc-d" style="    margin-top: 7px;">
                      <i class="bi bi-geo-alt"style="     position: relative;    top: -4px;"></i> <?php echo $v->CommunityTitle;?>
                  </div>
                  </div>
                  <div class="col-sm-3">
                      
                            <span class="dev_logo" title="<?php echo $v->developer_name;?>"><img src="<?php echo $v->bgImage;?>" alt="<?php echo $v->developer_name;?>"></span>
             
                      
                  </div>
                </div>
                  <div class="meta-top mt-1">
                    <ul class="d-block"> 
                      <li class="d-block p-0 price-text at-latest"><?php if($v->p_o_r !='1'){ ?> <span class="startingfrom">Starting From</span> <?php } echo $v->PriceTitleDetail;?></li>
 
                    </ul>
                  </div>

               </div>
                </article>
              </div><!-- End post list item -->
            <?php } ?> 
        </div>

      </div>

    </section><!-- End Recent Blog Posts Section -->
  <?php } ?> 
      