<script type="text/javascript" src="<?php echo base_url();?>assets/js/user.js"></script>
<aside class="right-side">
    <section class="content-header">
        <div class="title_bar">
            <h1 class="major_txt_color">User Edit</h1>
            <div class="breadcrumb_container"><?php echo breadcrumb_links();?></div>
        </div>
    </section>
    <section class="content">
        <div class="row">
            <div class="col-xs-12">
                <!-- general form elements -->
                <div class="box box-danger">
                    <span class="all_mandatory">All fields are mandatory</span>
                    <!-- form start -->
                    <div class="box-body form-box">
                        <form action="<?php echo $form_action;?>" method="post" name="user" id="user">
                            <input type="hidden" name="user_id" value="<?php echo $user->id; ?>" />
                            <div class="error_wrapper">
                                <span><ul class="error_container"></ul></span>
                            </div>
                            <div class="col-xs-12">
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <label>Name</label>
                                        <input type="text" class="form-control" name="name" value="<?php echo form_prep($user->name);?>" placeholder="Name" maxlength="20" autofocus />
                                    </div>
                                    
                                    <?php if ($user->role != 3) {?>
                                        <div class="form-group m-h30">
                                            <label class="leftcol">Role</label>
                                            <label class="radio_label" for="role">
                                                <input type="radio" name="role" value="2" <?php echo ($user->role == 2) ? 'checked' : '';?> /> &nbsp;&nbsp;Administrator
                                            </label> 
                                            <label class="radio_label" for="role">
                                                <input type="radio" name="role" value="1" <?php echo ($user->role == 1) ? 'checked' : '';?> /> &nbsp;&nbsp;User
                                            </label> 
                                        </div>
                                    <?php }
                                    else {?>
                                        <div class="form-group m-h30">
                                            <label class="leftcol">Role</label>
                                            <label class="radio_label" for="role" style="width: 161px;">
                                                <input type="radio" name="role" value="3" checked /> &nbsp;&nbsp;Super Administrator
                                            </label> 
                                        </div>
                                    <?php }?>
                                    
                                    <div class="form-group" style="clear: both;">
                                        <label>Contact No</label>
                                        <input type="text" class="form-control integer_value" name="contact_no" placeholder="Contact No" value="<?php echo $user->contact_no;?>" />
                                    </div>
                                    
                                    <div class="form-group m-h30">
                                        <label class="leftcol">Status</label>
                                        <label class="radio_label" for="status">
                                            <input type="radio" name="status" value="1" <?php echo ($user->status == 1) ? 'checked' : '';?> /> &nbsp;&nbsp;Confirmed
                                        </label> 
                                        <label class="radio_label" for="status">
                                            <input type="radio" name="status" value="0" <?php echo ($user->status == 0) ? 'checked' : '';?> /> &nbsp;&nbsp;Blocked
                                        </label> 
                                    </div>
                                    
                                </div>
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <label>User Name</label>
                                        <input type="text" class="form-control" name="user_name" value="<?php echo form_prep($user->user_name);?>" placeholder="Login user name" maxlength="50" />
                                    </div>
                                    
                                    <div class="form-group">
                                        <label>Password</label>
                                        <input type="password" class="form-control" name="password" placeholder="Login Password" maxlength="10" value= "<?php echo form_prep($user->password);?>" />
                                    </div>
                                    
                                    <div class="form-group">
                                        <label>Pass Code</label>
                                        <button class="btn btn-primary pass-code-generate-btn" data-id="<?php echo $user->id; ?>"><?php echo !empty( $user->pass_code ) ? 'Re-generate Now' : 'Generate Now'?></button>
                                    </div>
                                </div>
                            </div>
                            <?php $permission = unserialize($user->permissions);#echo '<pre>';print_r($permission);?>
                            <!-- Permission div Start-->
                                <div class="permission_container col-xs-12">
                                <br />
                                    <div class="permission_row col-xs-12 even" style="padding-left: 15px !important; padding-right: 15px !important;">
                                        <div class="panel panel-default">
                                            <div class="panel-heading">
                                                <label style="width: 24%;">
                                                    <input type="checkbox" name="permissions[check_all]" value="1" class="check_all" <?php echo (!empty($permission['check_all'])) ? 'checked' : '';?> />
                                                    <span class="permission_txt">Full Permissions</span>
                                                </label>

                                                <label style="width: 25%;">
                                                    <input type="checkbox" name="permissions[home][]" class="permission master" value="1" data-master="home" <?php echo (!empty($permission['home'])) ? 'checked' : '';?> />
                                                    <span class="permission_txt">Dashboard</span>
                                                </label>
                                                
                                                <label style="width: 24%;">
                                                    <input type="checkbox" name="permissions[sett][]" class="permission master" value="1" data-master="sett" <?php echo (!empty($permission['sett'])) ? 'checked' : '';?> />
                                                    <span class="permission_txt">Settings</span>
                                                </label>

                                                <label style="width: 24%;">
                                                    <input type="checkbox" name="permissions[otp][]" class="permission master" value="1" data-master="otp" <?php echo (!empty($permission['otp'])) ? 'checked' : '';?> />
                                                    <span class="permission_txt">OTP</span>
                                                </label>

                                                <label style="width: 24%;">
                                                    <input type="checkbox" name="permissions[sms][]" class="permission master" value="1" data-master="sms" <?php echo (!empty($permission['sms'])) ? 'checked' : '';?> />
                                                    <span class="permission_txt">Send SMS</span>
                                                </label>
                                                
                                                <label style="width: 25%; padding-top: 10px;">
                                                    <input type="checkbox" name="permissions[notification][]" class="permission master" value="1" data-master="notification" <?php echo (!empty($permission['notification'])) ? 'checked' : '';?> />
                                                    <span class="permission_txt">Notification</span>
                                                </label>
                                                
                                                <label style="width: 24%; padding-top: 10px;">
                                                    <input type="checkbox" name="permissions[day_end_report][]" class="permission master" value="1" data-master="day_end_report" <?php echo (!empty($permission['day_end_report'])) ? 'checked' : '';?> />
                                                    <span class="permission_txt">Day End Report</span>
                                                </label>
                                                
                                                <label style="width: 24%; padding-top: 10px;">
                                                    <input type="checkbox" name="permissions[daily_report][]" class="permission master" value="1" data-master="daily_report" <?php echo (!empty($permission['daily_report'])) ? 'checked' : '';?> />
                                                    <span class="permission_txt">Daily Report</span>
                                                </label>
                                                
                                                <label style="width: 24%;">
                                                    <input type="checkbox" name="permissions[prasadam_consolidate][]" class="permission master" value="1" data-master="prasadam_consolidate" <?php echo (!empty($permission['prasadam_consolidate'])) ? 'checked' : '';?> />
                                                    <span class="permission_txt">Prasadam Consolidated Report</span>
                                                </label>
                                                
                                                <label style="width: 25%; padding-top: 10px;">
                                                    <input type="checkbox" name="permissions[kattalai_archanai_report][]" class="permission master" value="1" data-master="kattalai_archanai_report" <?php echo (!empty($permission['kattalai_archanai_report'])) ? 'checked' : '';?> />
                                                    <span class="permission_txt">Kattalai Archanai Report</span>
                                                </label>
                                            </div>
                                                <!--<div class="form-group">
                                                    <div class="checkbox permission_div">
                                                        <label style="padding-left: 0px !important;">
                                                           <input type="checkbox" name="permissions[check_all]" value="1" class="check_all" <?php echo (!empty($permission['check_all'])) ? 'checked' : '';?> />
                                                            <span class="permission_txt"><b>Full Permissions</b></span>
                                                        </label>
                                                    </div>
                                                
                                                    <div class="checkbox permission_div">
                                                        <label style="padding-left: 0px !important;">
                                                           <input type="checkbox" name="permissions[home][]" class="permission" value="1" class="master" data-master="home" <?php echo (!empty($permission['home'])) ? 'checked' : '';?> />
                                                    <span class="permission_txt"><b>Dashboard</b></span>
                                                        </label>
                                                    </div>
                                                </div>-->
                                        </div>
                                    </div>
                                
                                <div class="permission_row col-xs-12 even" style="padding-left: 15px !important; padding-right: 15px !important;">
                                   <div class="panel panel-default">
                                        <div class="panel-heading">
                                            <label style="width: 25%;">
                                                <input type="checkbox" name="permissions[add_all]" value="1" class="add_all" <?php echo (!empty($permission['add_all'])) ? 'checked' : '';?> />
                                                <span class="permission_txt">Add All</span>
                                            </label>

                                            <label style="width: 25%;">
                                                <input type="checkbox" name="permissions[edit_all]" value="1" class="edit_all" <?php echo (!empty($permission['edit_all'])) ? 'checked' : '';?> />
                                                <span class="permission_txt">Edit All</span>
                                            </label>

                                            <label style="width: 24%;">
                                                <input type="checkbox" name="permissions[view_all]" value="1" class="view_all" <?php echo (!empty($permission['view_all'])) ? 'checked' : '';?> />
                                                <span class="permission_txt">View All</span>
                                            </label>

                                            <label style="width: 24%;">
                                                <input type="checkbox" name="permissions[delete_all]" value="1" class="delete_all" <?php echo (!empty($permission['delete_all'])) ? 'checked' : '';?> />
                                                <span class="permission_txt">Delete All</span>
                                            </label>
                                        </div>
                                    </div>
                                </div>
                                
                                
                                <?php $permission = unserialize($user->master_permissions); ?>
                                <div class="administrator permission_row col-xs-12 odd">
                                    <div class="panel panel-default master_container">
                                        <div class="panel-heading">
                                            <label>
                                                <input type="checkbox" name="master[masters]" value="1" class="master super_master" data-master="<?php echo $masters_str;?>" <?php echo (!empty($permission['masters'])) ? 'checked' : '';?> />
                                                <span class="permission_txt">Masters</span>
                                            </label>
                                            <div class="pull-right compress_btn compress">
                                                <span class="btn btn-success btn-sm">
                                                    <i class="fa fa-compress"></i>
                                                </span>
                                            </div>
                                        </div>
                                        <div class="panel-body">
                                        <?php foreach($masters as $key => $master) {?>
                                            <?php $controller_name = trim($master->controller_name);?>
                                            <div class="col-md-6 master_container">
                                                <div class="checkbox permission_div">
                                                    <label>
                                                        <h5>
                                                            <input type="checkbox" name="master[<?php echo $controller_name;?>][]" class="master" data-master="<?php echo $controller_name;?>" value="ALL" <?php echo ((!empty($permission[$controller_name])) && (in_array('ALL', $permission[$controller_name]))) ? 'checked' : '';?> />
                                                            <span class="permission_txt"><?php echo $master->master_name;?></span>
                                                        </h5>
                                                    </label>
                                                </div>
                                                
                                                <div class="form-group">
                                                    <div class="checkbox permission_div">
                                                        <label>
                                                            <input type="checkbox" name="master[<?php echo $controller_name;?>][]" class="permission view" value="1" <?php echo ((!empty($permission[$controller_name])) && (in_array('1', $permission[$controller_name]))) ? 'checked' : '';?> />
                                                            <span class="permission_txt">View</span>
                                                        </label>
                                                    </div>
                                                    
                                                    <div class="checkbox permission_div">
                                                        <label>
                                                            <input type="checkbox" name="master[<?php echo $controller_name;?>][]" class="permission add" value="2" <?php echo ((!empty($permission[$controller_name])) && (in_array('2', $permission[$controller_name]))) ? 'checked' : '';?> />
                                                            <span class="permission_txt">Add</span>
                                                        </label>
                                                    </div>
                                                    
                                                    <div class="checkbox permission_div">
                                                        <label>
                                                            <input type="checkbox" name="master[<?php echo $controller_name;?>][]" class="permission edit" value="3" <?php echo ((!empty($permission[$controller_name])) && (in_array('3', $permission[$controller_name]))) ? 'checked' : '';?> />
                                                            <span class="permission_txt">Edit</span>
                                                        </label>
                                                    </div>
                                                    
                                                    <div class="checkbox permission_div">
                                                        <label>
                                                            <input type="checkbox" name="master[<?php echo $controller_name;?>][]" class="permission delete" value="4" <?php echo ((!empty($permission[$controller_name])) && (in_array('4', $permission[$controller_name]))) ? 'checked' : '';?> />
                                                            <span class="permission_txt">Delete</span>
                                                        </label>
                                                    </div>
                                                </div>
                                            </div>
                                        <?php }?>
                                        </div>
                                    </div>
                                </div>
                                
                                <?php $permission = unserialize($user->inventory_permissions); ?>
                                <div class="administrator permission_row col-xs-12 even">
                                    <div class="panel panel-default master_container">
                                        <div class="panel-heading">
                                            <label>
                                                <input type="checkbox" name="inventory[inventory]" value="1" class="master super_master" data-master="<?php echo $inventory_str;?>" <?php echo (!empty($permission['inventory'])) ? 'checked' : '';?> />
                                                <span class="permission_txt">Inventory</span>
                                            </label>
                                            <div class="pull-right compress_btn compress">
                                                <span class="btn btn-success btn-sm">
                                                    <i class="fa fa-compress"></i>
                                                </span>
                                            </div>
                                        </div>
                                        <div class="panel-body">
                                        <?php foreach($inventories as $key => $inventory) {?>
                                            <?php $controller_name = trim($inventory->controller_name);?>
                                            <div class="col-md-6 master_container">
                                                <div class="checkbox permission_div">
                                                    <label>
                                                        <h5>
                                                            <input type="checkbox" name="inventory[<?php echo $controller_name;?>][]" class="master" data-master="<?php echo $controller_name;?>" value="ALL" <?php echo ((!empty($permission[$controller_name])) && (in_array('ALL', $permission[$controller_name]))) ? 'checked' : '';?> />
                                                            <span class="permission_txt"><?php echo $inventory->inventory_name;?></span>
                                                        </h5>
                                                    </label>
                                                </div>
                                                
                                                <div class="form-group">
                                                    <div class="checkbox permission_div">
                                                        <label>
                                                            <input type="checkbox" name="inventory[<?php echo $controller_name;?>][]" class="permission view" value="1" <?php echo ((!empty($permission[$controller_name])) && (in_array('1', $permission[$controller_name]))) ? 'checked' : '';?> />
                                                            <span class="permission_txt">View</span>
                                                        </label>
                                                    </div>
                                                    
                                                    <div class="checkbox permission_div">
                                                        <label>
                                                            <input type="checkbox" name="inventory[<?php echo $controller_name;?>][]" class="permission add" value="2" <?php echo ((!empty($permission[$controller_name])) && (in_array('2', $permission[$controller_name]))) ? 'checked' : '';?> />
                                                            <span class="permission_txt">Add</span>
                                                        </label>
                                                    </div>
                                                    
                                                    <div class="checkbox permission_div">
                                                        <label>
                                                            <input type="checkbox" name="inventory[<?php echo $controller_name;?>][]" class="permission edit" value="3" <?php echo ((!empty($permission[$controller_name])) && (in_array('3', $permission[$controller_name]))) ? 'checked' : '';?> />
                                                            <span class="permission_txt">Edit</span>
                                                        </label>
                                                    </div>
                                                    
                                                    <div class="checkbox permission_div">
                                                        <label>
                                                            <input type="checkbox" name="inventory[<?php echo $controller_name;?>][]" class="permission delete" value="4" <?php echo ((!empty($permission[$controller_name])) && (in_array('4', $permission[$controller_name]))) ? 'checked' : '';?> />
                                                            <span class="permission_txt">Delete</span>
                                                        </label>
                                                    </div>
                                                </div>
                                            </div>
                                        <?php }?>
                                        </div>
                                    </div>
                                </div>
                                
                                <?php $permission = unserialize($user->statue_permissions);?>
                                <div class="administrator permission_row col-xs-12 even">
                                    <div class="panel panel-default master_container">
                                        <div class="panel-heading">
                                            <label>
                                                <input type="checkbox" name="statue[statue]" value="1" class="master super_master" data-master="<?php echo $statues_str;?>" <?php echo (!empty($permission['statue'])) ? 'checked' : '';?> />
                                                <span class="permission_txt">Statue and Books</span>
                                            </label>
                                            <div class="pull-right compress_btn compress">
                                                <span class="btn btn-success btn-sm">
                                                    <i class="fa fa-compress"></i>
                                                </span>
                                            </div>
                                        </div>
                                        <div class="panel-body">
                                        <?php foreach($statues as $key => $statuebook) {?>
                                            <?php $controller_name = trim($statuebook->controller_name);?>
                                            <div class="col-md-6 master_container">
                                                <div class="checkbox permission_div">
                                                    <label>
                                                        <h5>
                                                            <input type="checkbox" name="statue[<?php echo $controller_name;?>][]" class="master" data-master="<?php echo $controller_name;?>" value="ALL" <?php echo ((!empty($permission[$controller_name])) && (in_array('ALL', $permission[$controller_name]))) ? 'checked' : '';?>/>
                                                            <span class="permission_txt"><?php echo $statuebook->menu_name;?></span>
                                                        </h5>
                                                    </label>
                                                </div>
                                                
                                                <div class="form-group">
                                                    <div class="checkbox permission_div">
                                                        <label>
                                                            <input type="checkbox" name="statue[<?php echo $controller_name;?>][]" class="permission view" value="1" <?php echo ((!empty($permission[$controller_name])) && (in_array('1', $permission[$controller_name]))) ? 'checked' : '';?> />
                                                            <span class="permission_txt">View</span>
                                                        </label>
                                                    </div>
                                                    
                                                    <div class="checkbox permission_div">
                                                        <label>
                                                            <input type="checkbox" name="statue[<?php echo $controller_name;?>][]" class="permission add" value="2" <?php echo ((!empty($permission[$controller_name])) && (in_array('2', $permission[$controller_name]))) ? 'checked' : '';?> />
                                                            <span class="permission_txt">Add</span>
                                                        </label>
                                                    </div>
                                                    
                                                    <div class="checkbox permission_div">
                                                        <label>
                                                            <input type="checkbox" name="statue[<?php echo $controller_name;?>][]" class="permission edit" value="3" <?php echo ((!empty($permission[$controller_name])) && (in_array('3', $permission[$controller_name]))) ? 'checked' : '';?> />
                                                            <span class="permission_txt">Edit</span>
                                                        </label>
                                                    </div>
                                                    
                                                    <div class="checkbox permission_div">
                                                        <label>
                                                            <input type="checkbox" name="statue[<?php echo $controller_name;?>][]" class="permission delete" value="4" <?php echo ((!empty($permission[$controller_name])) && (in_array('4', $permission[$controller_name]))) ? 'checked' : '';?> />
                                                            <span class="permission_txt">Delete</span>
                                                        </label>
                                                    </div>
                                                </div>
                                            </div>
                                        <?php }?>
                                        </div>
                                    </div>
                                </div>
                                
                                <?php $permission = unserialize($user->billing_permissions);?>
                                <div class="administrator user permission_row col-xs-12 odd">
                                    <div class="panel panel-default master_container">
                                        <div class="panel-heading">
                                            <label>
                                                <input type="checkbox" name="billing[billing]" value="1" class="master super_master" data-master="<?php echo $service_str;?>" <?php echo (!empty($permission['billing'])) ? 'checked' : '';?> />
                                                <span class="permission_txt">Billing</span>
                                            </label>
                                            <div class="pull-right compress_btn compress">
                                                <span class="btn btn-success btn-sm">
                                                    <i class="fa fa-compress"></i>
                                                </span>
                                            </div>
                                        </div>
                                        <div class="panel-body">
                                        <?php foreach($services as $key => $service) {?>
                                            <?php $controller_name = trim($service->controller_name);?>
                                            <div class="col-md-6 master_container">
                                                <div class="checkbox permission_div">
                                                    <label>
                                                        <h5>
                                                            <input type="checkbox" name="billing[<?php echo $controller_name;?>][]" class="master" data-master="<?php echo $controller_name;?>" value="ALL" <?php echo ((!empty($permission[$controller_name])) && (in_array('ALL', $permission[$controller_name]))) ? 'checked' : '';?> />
                                                            <span class="permission_txt"><?php echo $service->service_name;?></span>
                                                        </h5>
                                                    </label>
                                                </div>
                                                
                                                <div class="form-group">
                                                    <div class="checkbox permission_div">
                                                        <label>
                                                            <input type="checkbox" name="billing[<?php echo $controller_name;?>][]" class="permission view" value="1" <?php echo ((!empty($permission[$controller_name])) && (in_array('1', $permission[$controller_name]))) ? 'checked' : '';?> />
                                                            <span class="permission_txt">View</span>
                                                        </label>
                                                    </div>
                                                    
                                                    <div class="checkbox permission_div">
                                                        <label>
                                                            <input type="checkbox" name="billing[<?php echo $controller_name;?>][]" class="permission add" value="2" <?php echo ((!empty($permission[$controller_name])) && (in_array('2', $permission[$controller_name]))) ? 'checked' : '';?> />
                                                            <span class="permission_txt">Add</span>
                                                        </label>
                                                    </div>
                                                    
                                                    <div class="checkbox permission_div">
                                                        <label>
                                                            <input type="checkbox" name="billing[<?php echo $controller_name;?>][]" class="permission edit" value="3" <?php echo ((!empty($permission[$controller_name])) && (in_array('3', $permission[$controller_name]))) ? 'checked' : '';?> />
                                                            <span class="permission_txt">Edit</span>
                                                        </label>
                                                    </div>
                                                    
                                                    <div class="checkbox permission_div">
                                                        <label>
                                                            <input type="checkbox" name="billing[<?php echo $controller_name;?>][]" class="permission delete" value="4" <?php echo ((!empty($permission[$controller_name])) && (in_array('4', $permission[$controller_name]))) ? 'checked' : '';?> />
                                                            <span class="permission_txt">Delete</span>
                                                        </label>
                                                    </div>
                                                </div>
                                            </div>
                                        <?php }?>
                                        </div>
                                    </div>
                                </div>
                                
                                <?php $permission = unserialize($user->report_permissions); ?>
                                <div class="administrator permission_row col-xs-12 even">
                                    <div class="panel panel-default master_container">
                                        <div class="panel-heading">
                                            <label>
                                                <input type="checkbox" name="reports[reports]" value="1" class="master super_master" data-master="<?php echo $report_str;?>" <?php echo (!empty($permission['reports'])) ? 'checked' : '';?> />
                                                <span class="permission_txt">Reports</span>
                                            </label>
                                            <div class="pull-right compress_btn compress">
                                                <span class="btn btn-success btn-sm">
                                                    <i class="fa fa-compress"></i>
                                                </span>
                                            </div>
                                        </div>
                                        <div class="panel-body">
                                        <?php foreach($reports as $key => $report) {?>
                                            <?php $controller_name = trim($report->controller_name);?>
                                            <div class="col-md-6 master_container">
                                                <div class="checkbox permission_div">
                                                    <label>
                                                        <h5>
                                                            <input type="checkbox" name="reports[<?php echo $controller_name;?>][]" class="master" data-master="<?php echo $controller_name;?>" value="ALL" <?php echo ((!empty($permission[$controller_name])) && (in_array('ALL', $permission[$controller_name]))) ? 'checked' : '';?> />
                                                            <span class="permission_txt"><?php echo $report->report_name;?></span>
                                                        </h5>
                                                    </label>
                                                </div>
                                                
                                                <div class="form-group">
                                                    <div class="checkbox permission_div">
                                                        <label>
                                                            <input type="checkbox" name="reports[<?php echo $controller_name;?>][]" class="permission view" value="1" <?php echo ((!empty($permission[$controller_name])) && (in_array('1', $permission[$controller_name]))) ? 'checked' : '';?> />
                                                            <span class="permission_txt">View</span>
                                                        </label>
                                                    </div>
                                                    
                                                    <div class="checkbox permission_div">
                                                        <label>
                                                            <input type="checkbox" name="reports[<?php echo $controller_name;?>][]" class="permission add" value="2" <?php echo ((!empty($permission[$controller_name])) && (in_array('2', $permission[$controller_name]))) ? 'checked' : '';?> />
                                                            <span class="permission_txt">Add</span>
                                                        </label>
                                                    </div>
                                                    
                                                    <div class="checkbox permission_div">
                                                        <label>
                                                            <input type="checkbox" name="reports[<?php echo $controller_name;?>][]" class="permission edit" value="3" <?php echo ((!empty($permission[$controller_name])) && (in_array('3', $permission[$controller_name]))) ? 'checked' : '';?> />
                                                            <span class="permission_txt">Edit</span>
                                                        </label>
                                                    </div>
                                                    
                                                    <div class="checkbox permission_div">
                                                        <label>
                                                            <input type="checkbox" name="reports[<?php echo $controller_name;?>][]" class="permission delete" value="4" <?php echo ((!empty($permission[$controller_name])) && (in_array('4', $permission[$controller_name]))) ? 'checked' : '';?> />
                                                            <span class="permission_txt">Delete</span>
                                                        </label>
                                                    </div>
                                                </div>
                                            </div>
                                        <?php }?>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="box-footer" style="text-align:center;">
                                <input class="btn reset" type="reset" value="Reset" />
                                <input type="submit" name="submit" value="Update" class="btn btn-success btn-primary" style="margin-left: 50px;" />
                            </div>
                        </form>
                    </div>
                </div><!-- /.box -->
            </div><!-- /.col-xs-12 -->
        </div><!-- /.row -->
    </section><!-- /.content -->
</aside>