<div style="/*max-height: 465px; overflow: scroll*/">
    <table class="table table-striped table-bordered table-hover">
        <thead>
        <tr>
            <th style="text-align: center">TT</th>
            <th style="text-align: center">ID</th>
            <th style="text-align: center">Tên action</th>
            <th style="text-align: center">Mô tả</th>
            <th style="text-align: center">Đường dẫn controller/action</th>
            <th style="text-align: center">Trạng thái</th>
            <th style="text-align: center">Ngày tạo</th>
            <th style="text-align: center">Ngày cập nhật</th>
            <th style="text-align: center">Xử lý</th>
        </tr>
        </thead>
        <tbody>
        <?php foreach($listData as $key => $data): ?>
            <tr>
                <td style="text-align: center"><?php echo ($key+1+$offset); ?></td>
                <td style="text-align: center">#<?php echo $data['id']; ?></td>
                <td>
                    <a href="<?php echo base_url('backend/cmsSetting/editAccessAction/'.$data['id']); ?>" title="Chi tiết">
                        <?php echo $data['name']; ?>
                    </a>
                </td>
                <td><?php echo $data['description']; ?></td>
                <td><?php echo $data['controllerName'].' / '.$data['name']; ?></td>
                <td style="text-align: center">
                    <?php if($data['is_active'] == 1){
                        echo '<i class="ace-icon fa fa-unlock bigger-130" style="color: #428bca"></i>';
                    }else{
                        echo '<i class="ace-icon fa fa-lock bigger-130" style="color: red"></i>';
                    }?>
                </td>
                <td style="text-align: center"><?php echo MyHelper::reFormatDate($data['created_at']); ?></td>
                <td style="text-align: center"><?php echo MyHelper::reFormatDate($data['updated_at']); ?></td>
                <td style="text-align: center">
                    <a href="<?php echo base_url('backend/cmsSetting/editAccessAction/'.$data['id']); ?>" title="Chi tiết">
                        <i class="ace-icon fa fa-pencil bigger-130"></i>
                    </a>
                    <a href="<?php echo base_url('backend/cmsSetting/deleteAccessAction/'.$data['id']); ?>"
                       onclick="return confirm('Bạn có chắc chắn muốn xóa không?')" title="Xóa">
                        <i class="ace-icon red fa fa-trash-o bigger-130"></i>
                    </a>
                </td>
            </tr>
        <?php endforeach; ?>
        </tbody>
    </table>
</div>
<!-- /.row -->
<div style="text-align: center;"><?php echo $pagination; ?></div>