<style>
.table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td { padding:20px 0px;}
</style>

<div class="container">
<div class="container padd_not margicso">
<div class="col-md-12 registor" style="padding-top:10px;">
<br />
<h3>Your Properties</h3>
 <br />














<div class="item col-md-12 edit_pro_head">
<div class="row">
<div class="col-md-3">Prperty ID</div>
<div class="col-md-3">Property Title</div>
<div class="col-md-2">Enquiries</div>
<div class="col-md-2">Status</div>
<div class="col-md-2">Edit</div>

</div>
</div>




<?php $i=1; if($allproduct): foreach($allproduct as $property):?>



<div class="item col-md-12 edit_pro">
<div class="row">


<div class="mib_ds"><img src="<?php echo base_url('assets/images/'.$property['img']) ; ?>" width="100%"  /></div>
<div class="mib_ds3"><?=$property['reg_id']?><br /> <?=$property['title']?></div>


<div class="col-md-3 mib_ds2"><?=$property['reg_id']?></div>
<div class="col-md-3 mib_ds2"><?=$property['title']?></div>


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

<div class="col-md-2 mobi_widths">
      <a href="<?php echo site_url('Property/edit/'.$property['aid']) ; ?>" data-toggle="modal" data-target="#myModal" title="Enquiries"  > 
      <img src="<?php echo base_url('assets/web_images/web_icon.jpg'); ?>" width="30" title="Enquiries" />
      </a>
      
      
      
<!--<a href="#" class="read_more_2"  data-toggle="modal" data-target="#myModal" > View Contact Details </a>  -->


<!-- Button to Open the Modal -->

<!-- The Modal -->
<div class="modal" id="myModal">
  <div class="modal-dialog" style="max-width:70%;">
    <div class="modal-content">

      <!-- Modal Header -->
      <div class="modal-header">
        <h4 style="text-transform:lowercase; text-transform:capitalize;">Contact form</h4>
        <button type="button" class="close" data-dismiss="modal">&times;</button>
      </div>

      <!-- Modal body -->
      <div class="modal-body">
  <div class="col-md-12 mob_dis_non" style="background-color:#dddddd; padding:10px;">
  <div class="row">
<div class="col-md-3">Name</div>
<div class="col-md-3">Number</div>
<div class="col-md-3">Email</div>
<div class="col-md-3">Date</div>
</div>
</div>
    
      
<?php $reg_id=$property['reg_id'];
if($reg_id!=''){
$sql ="SELECT * FROM en_tab_list where `postid`='$reg_id'";
$query = $this->db->query($sql);
if ($query->num_rows() > 0) {
foreach($query->result() as $rows) { ?> 


<div class="col-md-12" style="padding:10px;">
 <div class="row">
<div class="col-md-3"><?php echo $title=$rows->name;  ?></div>
<div class="col-md-3"><?php echo $title=$rows->phone;  ?></div>
<div class="col-md-3"><?php echo $title=$rows->email;  ?></div>
<div class="col-md-3"><?php echo $title=$rows->dates;  ?></div>
</div>
</div>




<?php
}


}

else
{ echo "No Enquery";}
}
?>



      </div>


    </div>
  </div>
</div>


</div>



<div class="col-md-2 mobi_widths">
      <?php if($property['active']=="N" || $property['active']=="S" ): ?>

<img src="<?php echo base_url('assets/web_images/incorrect.png'); ?>" width="20" height="20" title="Change Status"  />
<a href="<?php echo site_url('Basic_functions/change_status/shop_product/active/Y/aid/'.$property['aid'].'/List_property' ); ?>"  title="Change Status" >Activate?</a>

<?php elseif($property['active']=="Y") : ?>

<img src="<?php echo base_url('assets/web_images/ok.png'); ?>" width="20" height="20"   title="Change Status" />
<a href="<?php echo site_url('Basic_functions/change_status/shop_product/active/S/aid/'.$property['aid'].'/List_property' ); ?>"  title="Change Status" >Suspend?</a>

<?php endif; ?>
</div>




<div class="col-md-2 mobi_widths">
<a href="<?php echo site_url('Property/edit/'.$property['aid']) ; ?>"  title="Edit Property" >
<img src="<?php echo base_url('assets/web_images/edit.png'); ?>" width="20" height="20" title="Edit Property" />
</a>
</div>





</div>		
</div>

 <?php $i++; endforeach; endif; ?>  




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


</div>
</div>
