<div class="row">
    <div class="col-sm-12 col-md-12">
        <div class="panel panel-bd lobidrag">
            <div class="panel-heading">
                <div class="panel-title">
                    <h4><?php echo html_escape((!empty($title)?$title:null)) ?></h4>
                </div>
            </div>
            <div class="panel-body">

                    <div class="form-group row">
                        <label for="blood" class="col-sm-2"><?php echo display('username') ?> <span class="text-danger">*</span></label>
                        <div class="col-sm-10">
                            <?php if (!empty($permission[0])) ?>
                            <?php echo html_escape($permission[0]->user_name) ?> 
                        </div>
                    </div>

                    <table class="table table-bordered">
                        <thead>
                            <tr>
                                <th><?php echo display('sl_no') ?></th>
                                <th><?php echo display('module_name') ?></th>
                                <th><?php echo display('create') ?></th>
                                <th><?php echo display('read') ?></th>
                                <th><?php echo display('update') ?></th>
                                <th><?php echo display('delete') ?></th> 
                            </tr>
                        </thead>
                        <?php $sl = 1 ?>
                        <?php if (!empty($permission)) ?>
                        <?php foreach ($permission as $value) { ?> 
                        <tbody>
                            <tr>
                                <td><?php echo ($sl++) ?></td>
                                <td><?php echo html_escape($value->module_name) ?></td>
                                <td class="text-center"><?php echo (($value->create==1)?"<i class='fa fa-check text-success'></i>":"<i class='fa fa-times text-danger'></i>") ?></td> 
                                <td class="text-center"><?php echo (($value->read==1)?"<i class='fa fa-check text-success'></i>":"<i class='fa fa-times text-danger'></i>") ?></td> 
                                <td class="text-center"><?php echo (($value->update==1)?"<i class='fa fa-check text-success'></i>":"<i class='fa fa-times text-danger'></i>") ?></td> 
                                <td class="text-center"><?php echo (($value->delete==1)?"<i class='fa fa-check text-success'></i>":"<i class='fa fa-times text-danger'></i>") ?></td> 
                            </tr>
                        </tbody>
                        <?php } ?>
                    </table>
          
                <?php echo form_close() ?>

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

 