<ul class="breadcrumb">
    <li><a href="<?= site_url('admin/dashboard') ?>">Home</a></li>
    <li class="active"><?php echo $breadcum ?></li> 
</ul>
<div class="page-content-wrap">                
                  <div class="row">
                        <div class="col-md-12">
                            <div class="panel panel-default">
                                <div class="panel-heading">
                                    <h3 class="panel-title">Manage Blog Comment</h3>
                                </div>
                                <div class="panel-body panel-body-table">
                                    <div class="table-responsive">
                                        <table class="table datatable">
                                            <thead>
                                                <tr>
                                                    <th>Comment By</th>
                                                    <th>Email</th>                                                  
                                                    <th>Status</th>
                                                    <th>Action</th>   
                                                </tr>
                                            </thead>
                                            <tbody>   
                                                   <?php                                                   
                                                        foreach ($comment_data as $comment) {
                                                            ?>
                                                <tr id="trow">
                                                   
                                                    <td><strong><?php echo (isset($comment['comment_by'])) ? $comment['comment_by'] : '-'; ?></strong></td>
                                                    <td><strong><?php echo (isset($comment['email'])) ? $comment['email'] : '-'; ?></strong></td>                                                   
                                                    <td><?php echo (isset($comment['status'])) && $comment['status'] == 'active' ? "<span class='label label-success'>Active" : "<span class='label label-danger'>Inactive"; ?></td>
                                                    <td>
                                           
                                                <?php if ($comment['status'] == 'active') { ?>
                                                        <a href="javascript:" data-href="<?= base_url() . 'admin/comment-status/' . $comment['bg_cmt_id'] . '/inactive' ?>" class="btn btn-default btn-rounded btn-condensed btn-sm changestatus"><span class="fa fa-ban" title="Inactive"></span></a>
                                                <?php } else { ?>    
                                                    <a href="javascript:" data-href="<?= base_url() . 'admin/comment-status/' . $comment['bg_cmt_id'] . '/active' ?>" class="btn btn-default btn-rounded btn-condensed btn-sm changestatus"><span class="fa fa-check-circle-o" title="Active"></span></a>
                                                <?php } ?>
                                                <a href="javascript:" data-href="<?= base_url() . 'admin/comment-delete/' . $comment['bg_cmt_id'] ?>" class="btn btn-danger btn-rounded btn-condensed btn-sm delete"><span class="fa fa-times" title="delete"></span></a>
                                         
                                        </td> 
                                    </tr>    
                                                  <?php }?>
             
                                            </tbody>
                                        </table>
                                    </div>                                

                                </div>
                            </div>                                                

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

                        