            <div class="row">
                <div class="col-md-12">
                    <?php if(isset($success_msg) && $success_msg!=NULL){ ?>
                    <div class="alert alert-success"><?php echo $success_msg; ?></div>
                    <?php } ?>
                    <div class="alert alert-success" id="err_module_type"><?php echo $this->session->flashdata('msg'); ?></div>
                    <!-- BEGIN EXAMPLE TABLE PORTLET-->
                    <div class="portlet box grey-cascade">
                        <div class="portlet-title">
                            <div class="caption">
                                <i class="fa fa-user"></i>User Module Privileges
                            </div>
                        </div>
                        <div class="portlet-body">
                            <table class="table table-striped table-bordered table-hover">
                                <thead>
                                    <tr>
                                        <th>Modules</th>
                                        <th>Administrator</th>
                                        <th>Accountant</th>
                                        <th>Auditor</th>
                                        <th>Director</th>
                                        <th>Sales Manager</th>
                                        <th>Salesmen</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <?php foreach ($user_privileges as $user_privilege) { ?>
                                        <tr>
                                            <td><?php echo $user_privilege['module_name']; ?></td>
                                            <td>
                                                <input type="checkbox" title="<?php echo $user_privilege['module_name']; ?>" itemid="super_admin" privilage_name="Super Admin"  <?php if ($user_privilege['super_admin'] == '1') { ?> checked <?php } ?> id="<?php echo $user_privilege['module_id']; ?>" class="module_type">
                                            </td>
                                            <td>
                                                <input type="checkbox" title="<?php echo $user_privilege['module_name']; ?>" itemid="accountant" privilage_name="Accountant" <?php if ($user_privilege['accountant'] == '1') { ?> checked <?php } ?> id="<?php echo $user_privilege['module_id']; ?>" class="module_type">
                                            </td>
                                            <td>
                                                <input type="checkbox" title="<?php echo $user_privilege['module_name']; ?>" itemid="auditor" privilage_name="Auditor" <?php if ($user_privilege['auditor'] == '1') { ?> checked <?php } ?> id="<?php echo $user_privilege['module_id']; ?>" class="module_type">
                                            </td>
                                            <td>
                                                <input type="checkbox" title="<?php echo $user_privilege['module_name']; ?>" itemid="director" privilage_name="Director" <?php if ($user_privilege['director'] == '1') { ?> checked <?php } ?> id="<?php echo $user_privilege['module_id']; ?>" class="module_type">
                                            </td>
                                            <td>
                                                <input type="checkbox" title="<?php echo $user_privilege['module_name']; ?>" itemid="sales_manager" privilage_name="Sales Manager" <?php if ($user_privilege['sales_manager'] == '1') { ?> checked <?php } ?> id="<?php echo $user_privilege['module_id']; ?>" class="module_type">
                                            </td>
                                            <td>
                                                <input type="checkbox" title="<?php echo $user_privilege['module_name']; ?>" itemid="salesmen" privilage_name="Salesmen" <?php if ($user_privilege['salesmen'] == '1') { ?> checked <?php } ?> id="<?php echo $user_privilege['module_id']; ?>" class="module_type">
                                            </td>
                                        </tr>
                                    <?php } ?>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div> 
            </div>
            <!-- END DASHBOARD STATS -->
        </div>
    </div>
    <!-- END CONTENT -->
</div>
<!-- END CONTAINER -->