










<section class="featured portfolio">
		<div class="container">
        
        

        
        
        
<div class="col-md-12 padd_not">			
<h3 class="recent_s">recent properties</h3>

			<div class="row portfolio-items">

                
                <?php $i=1; if($allproduct): foreach($allproduct as $property):?>
                
                <div class="item col-lg-4 col-md-6 col-xs-12 landscapes sale">
					<div class="project-single">
						<div class="project-inner project-head">
							<div class="project-bottom">
								<h4><a href="properties-details.html">View Property</a><span class="category">Real Estate</span></h4>
							</div>
						
							<div class="homes">
								<!-- homes img -->
								<a href="properties-details.html" class="homes-img">
<?php if($property->featured==1){ ?>
<div class="homes-tag button alt featured">Featured</div>
<?php  }?>
<?php if($property->code==1){ ?>
<div class="homes-tag button alt sale">For Sale</div>
<?php } ?>
<?php if($property->code==2){ ?>
<div class="homes-tag button alt sale rent" >For Rent</div>
<?php } ?>



									
									<div class="homes-price">
<?php
$subcat=$property->subcategory_id;
$sql1 ="SELECT * FROM shop_subcategory where id=$subcat";
$query1 = $this->db->query($sql1);
if ($query1->num_rows() > 0) {
foreach($query1->result() as $row1) {
echo $sub_title=$row1->title;
}
}
									
									
									
									?>
                                    
                                    
                                    
                                    </div>
									<img src="<?php echo base_url('assets/website/images/pro.jpg') ; ?>" alt="home-1" class="img-responsive">
								</a>
							</div>
						</div>
						<!-- homes content -->
						<div class="homes-content">
							<!-- homes address -->
							<h3><?=$property->title?></h3>
							<p class="homes-address mb-3">
								<a href="properties-details.html">
									<i class="fa fa-map-marker"></i><span><?=$property->locations?></span>
								</a>
							</p>
							<!-- homes List -->
							<ul class="homes-list clearfix">
								<li>
									<i class="fa fa-bed" aria-hidden="true"></i>
									<span><?=$property->bed?> Bedrooms</span>
								</li>
								<li>

                             <i class="fas fa-shower"></i>

									<span><?=$property->bath?> Bathrooms</span>
								</li>
								<li>
									<i class="fa fa-object-group" aria-hidden="true"></i>
									<span><?=$property['stock2']?> 
									<?php 
									if ($property['unit_id']==1) { echo "Sq-Ft";}
									if ($property['unit_id']==2) { echo "Sq-M";}
									if ($property['unit_id']==3) { echo "Sq-Yrd";}
									?></span>
								</li>
								<!--<li>
									<i class="fas fa-warehouse" aria-hidden="true"></i>
									<span>2 Garages</span>
								</li>-->
							</ul>
							<!-- Price -->
							<div class="price-properties">
								<h3 class="title mt-3">
                           <i class="fa fa-inr" aria-hidden="true"></i> 
<?php
echo $amount = $property['price'];
/*setlocale(LC_MONETARY, 'en_IN');
$amount = money_format('%!i', $amount);
echo $amount;*/

?> 
                                
                                
                        
                                </h3>
								<!--<div class="compare">
									<a href="#" title="Compare">
										<i class="fas fa-exchange-alt"></i>
									</a>
									<a href="#" title="Share">
										<i class="fas fa-share-alt"></i>
									</a>
									<a href="#" title="Favorites">
										<i class="fa fa-heart-o"></i>
									</a>
								</div>-->
							</div>
							<div class="footer">
								<!--<a href="agent-details.html" >
									<i class="fa fa-user"></i> 
                                    
                                    <?=$property['reg_user']?> 
                                    
                                    
								</a>-->
							
                                <i class="fa fa-calendar"></i> <?=$property['reg_date']?>
                        
							</div>
						</div>
					</div>
				</div>
				
                
                <?php $i++; endforeach; endif; ?>  
                
                
			</div>
		</div>
        </div>
        
        
	</section>













