
<div class="container padd_not marg_top ">




<div class="col-md-10 bor_rt   pull-right"   >




 <div class="col-md-12 tyos_us" >  Home&nbsp; >> <?php echo $title; ?></div>
 
 <?php if($product): foreach($product as $row_off):	?>
    
<div class="col-md-3 text-center">
<div class="product_outer">

<?php if($row_off['stock']=='2') {?>    <div class="out_of_stock"><img src="<?php echo base_url('assets/website/images/deli.png');?>"   class="max-width" />  </div>  <?php } ?>
<?php if($row_off['stock']=='1') {?>    <div class="out_of_stock"><img src="<?php echo base_url('assets/website/images/deli2.png');?>"   class="max-width" />  </div>  <?php } ?>
<?php if($row_off['code']=='1') {?>    <div class="out_of_stock"><img src="<?php echo base_url('assets/website/images/deli3.png');?>"   class="max-width" />  </div>  <?php } ?>

<div class="image_box">

 <?php if($row_off['img']!=''): ?>
        <img src="<?php echo base_url('assets/images/'.$row_off['img']) ; ?>"   class="max-width" />
        <?php else: ?>
        <img src="<?php echo base_url('assets/web_images/no_image.jpg') ; ?>"  class="max-width" />
        <?php endif; ?>
</div>
<p><b><a href="<?php echo site_url( 'Product/view/'.$row_off['aid'].'/'.$row_off['category_id'].'/'.$row_off['unit_id'].'/'.url_title($row_off['title'], '-', TRUE) ) ; ?>" >
 <?=$row_off['title']?></a></b></p>
<!--<p style="color:#999999; padding:0px 10px; margin:0px; margin-bottom:10px;"><?php echo (strlen(strip_tags($row_off['text']))>50)?substr(strip_tags($row_off['text']),0,50).'...':strip_tags($row_off['text']);?></p>-->




<p >



<?php if($row_off['uprice']!='') { ?> <span class="meroon2" >MRP  <i class="fa fa-inr" aria-hidden="true"></i><span class="text_over_line"> <?=$row_off['uprice']?> </span> </span><?php } ?>
<br />
<span class="meroon" >Selling Price  <span class="selling_price"> <i class="fa fa-inr" aria-hidden="true"></i> <?=$row_off['price']?> </span></span>
<br /><span class="for_text"> For <?php $uid=$row_off['unit_id']; 
$sql ="SELECT * FROM shop_unit where id=$uid";
$query = $this->db->query($sql);
if ($query->num_rows() > 0) {
  foreach ($query->result() as $row) {?>
<?php echo $row->title;?>
     
     
<?php }
}

	 
 ?>
</span>


</p>

<?php if($row_off['earliest']!='') { ?><span class="off_info"><?=$row_off['earliest']?>%<br />OFF <?php } ?></span>

<?php if($row_off['stock']=='2') { }
else {  ?>
<p> 
<?php $currentURL = current_url(); 
$url=urlencode(base64_encode($currentURL));
?>
<!--<a href="<?php echo site_url('Cart/insert/'.$row_off['aid'].'/1/'.$row_off['price'].'/'.$row_off['unit_id'].'/'.$url.'/'.url_title($row_off->title,'-',true)); ?>" class="read_more" > 
Add to Cart</a>-->

<a href="<?php echo site_url( 'Product/view/'.$row_off['aid'].'/'.$row_off['category_id'].'/'.$row_off['unit_id'].'/'.url_title($row_off['title'], '-', TRUE) ) ; ?>" class="read_more" >Read More</a>
</p>
<?php } ?>


</div>
</div>
<?php endforeach; endif; ?>   



</div>

<div class="clr2"></div>


<?php
  $this->load->view('website/side');
?>





</div>