<div class="row">
    
<div class="span12" style="margin-top:10px;">
   <?php $this->load->view('includes/userheader.php');?>  
     <h3>Inbox</h3>
<table class="table table-bordered">
	
<?php 
if(count($replies)>0){?>
    <thead>
		<tr>
                    <th>Ad Title</th>
                    <th>Comment</th>
                    <th>Date</th>
                    <!--<th>Status</th>-->
		    <th>&nbsp;</th>
		</tr>
	</thead>
	<tbody>
 <?php
foreach($replies as $reply){ 
		$listing=$this->postings_model->getDetails($reply->listing_id);
		?>
		<tr>
                 <?php if(empty($listid)){?>
                    <td><a title="<?php echo $listing->title;?>" href="<?php echo base_url();?>details/<?php echo formatText($listing->title);?>/<?php echo $listing->id;?>" ><?php echo substr($listing->title,0,15).'...';?></a></td>
                        <?php } ?>
                    <td><?php echo $reply->comment;?></td>
                    <td><?php echo formatDate($reply->dt_created);?></td>
                   <!-- <td><?php if($reply->view_status==0){ echo 'Unread';}else{ echo 'Read';};?></td>-->
        <td class="action">
        	<!--<a class="btn btn-primary viewEnquiry" title="View complete response" href="" id="<?php echo $reply->id;?>">
            	<i class="icon-edit icon-white"></i>
            </a>-->
             <!--           <a class="btn btn-warning" onclick="return confirm('Deactivate?');" href="#deactivate">
            	<i class="icon-remove icon-white"></i>
            </a> -->
            
                        <a class="btn btn-danger" title="Delete Reply" onclick="return deleteReply(<?php echo $reply->id;?>);" 
            	href="#delete">
            	<i class="icon-trash icon-white"></i>
            </a>
        </td>
        	
	</tr>
 <?php } 
}else{ ?>
        <tbody>
    <tr><td align="center">There are no message in your inbox.</td></tr>
<?php }
?>
	    </tbody>
</table>
</div>
</div>