<script>
    $(document).ready(function () {

        var id = $('#MasUserGroup_id').val();
        if (id > 0) {
            var hid_models = $('#hid_model').val();
            if (hid_models != "") {
                var hid = JSON.parse(hid_models);
                $.each(hid, function (key, val) {
                    $("#usergroup-form #MasUserGroup_" + key).val(val);
                });
                $("#usergroup-form input:checkbox").prop("checked", false);
                if (hid != "")
                    $.each((hid), function (iteration, item) {
                        $(".permissions input[value=\'" + iteration + "\']").prop("checked", true);
                    });
            }
        }
    });
    $(".employeetabselect").multiselect({
      enableFiltering: true,
      includeSelectAllOption:true,
      enableCaseInsensitiveFiltering: true,
    });
</script>

<?php
//echo $model->hr_permissions;
$form = $this->beginWidget('CActiveForm', array(
    'id' => 'usergroup-form',
    'enableAjaxValidation' => false,
    'enableClientValidation' => false,
        ));
$model_settings_calendar_ = HrGenerelSettings::model()->find();
$model_module_employee = HrModules::model()->findByPK(1);
$model_module_attendance = HrModules::model()->findByPK(2);
$model_module_leave = HrModules::model()->findByPK(3); 
$model_module_leave_encashment= HrModules::model()->findByPK(4);
$model_module_salary_advance= HrModules::model()->findByPK(5);
$model_module_loan= HrModules::model()->findByPK(6);
$model_module_payroll= HrModules::model()->findByPK(7);
$model_module_ticket= HrModules::model()->findByPK(8);
$model_module_ticket_encashment= HrModules::model()->findByPK(9);
$model_module_doc_request= HrModules::model()->findByPK(10);
$model_module_expense= HrModules::model()->findByPK(11); 
$model_module_appraisal= HrModules::model()->findByPK(12);
$model_module_recruitment = HrModules::model()->findByPK(13);
$model_module_resignation= HrModules::model()->findByPK(14);
$model_module_training = HrModules::model()->findByPK(15);
$model_module_purchase = HrModules::model()->findByPK(16);
$model_module_eos = HrModules::model()->findByPK(17);
$model_module_circular = HrModules::model()->findByPK(18);
$model_company_expense= HrModules::model()->findByPK(19);
$model_module_room= HrModules::model()->findByPK(20);
$model_module_catalogue= HrModules::model()->findByPK(21);
$model_module_staffboard= HrModules::model()->findByPK(22);
$model_module_notes= HrModules::model()->findByPK(23);
$model_notice_conduct= HrModules::model()->findByPK(24);
$model_calender_notification= HrModules::model()->findByPK(25);
$model_module_template= HrModules::model()->findByPK(26);
$model_pdf_settings= HrModules::model()->findByPK(27);
$model_mail_settings= HrModules::model()->findByPK(28);
$model_module_app= HrModules::model()->findByPK(29);
$model_module_asset= HrModules::model()->findByPK(30);
$model_request_service= HrModules::model()->findByPK(31);
$model_module_flexitime= HrModules::model()->findByPK(32);
$model_module_snapshot= HrModules::model()->findByPK(34);
$model_module_org_chart= HrModules::model()->findByPK(35);
$model_module_company= HrModules::model()->findByPK(36);
$model_module_admin= HrModules::model()->findByPK(37);
?>
<!--<div class="permissions vertical-tab" style="background-color:#F6F3EE;">-->
    <!--<ul class="nav nav-tabs nav-vertical nav-tab-theme" style="margin-top: 0">-->
<div class="permissions popup_inner_element">
    <ul class="nav nav-tabs company-nav-tabs nav-tab-theme">
        <li class="active"><a href="#hr_menu_tab" data-toggle="tab" aria-expanded="true">Menus</a></li>
        <li><a href="#dashboard_tab" data-toggle="tab" >DashBoard</a></li>
       <?php  if ($model_module_org_chart->grant_access == 1 && $model_module_org_chart->isActive == 'Y') {  ?>
        <li><a href="#snapshot_tab" data-toggle="tab" >SnapShot</a></li>
       <?php }?>
        <li><a href="#employee_tab" data-toggle="tab">Employee Details</a></li>
        <li><a href="#employee_details_tab" data-toggle="tab">Employee Tab</a></li>
        <li><a href="#payroll_tab" data-toggle="tab">Payroll </a></li>
        <li><a href="#payroll_checker_tab" data-toggle="tab" >Payroll Checker</a></li>
        <li><a href="#hrsettings_tab" data-toggle="tab">Settings</a></li>
        <li><a href="#others_tab" data-toggle="tab">Others</a></li>     
        <li><a href="#hrreports_tab" data-toggle="tab">Reports</a></li>             
        <li><a href="#hrmasters_tab" data-toggle="tab">Masters</a></li>
       <?php if($model_module_admin->grant_access == 1 && $model_module_admin->isActive == 'Y') {  ?>
        <li><a href="#admin_tab" data-toggle="tab">Admin</a></li>
       <?php } ?>
        <li><a href="#confidential_tab" data-toggle="tab">Permission</a></li>
    </ul>
    <div class="tab-content">
        <!--<hr class="theme-divider">-->
        <div class="tab-pane active" id="hr_menu_tab">
            <ul class="material clearfix form-ul">
                <li class="col-sm-4">
                    <input type="hidden" name="hid_model" id="hid_model" value=<?php echo $model->hr_permissions; ?>>
                    <?php
                    echo $form->hiddenField($model, 'id');
                    echo $form->textField($model, 'group_name', array('data-label' => 'User Group'));
                    ?>
                </li>
                <li class="col-sm-3">
                    <?php echo $form->checkBoxList($model, 'permissions[hr_checkall]', array('hr_checkall' => ''), array('class' => 'main_check', 'data-label' => 'Select All', 'onclick' => ' $("#usergroup-form input:checkbox").prop("checked", $(this).prop("checked"));')); ?>
                </li>
            </ul>
            <div class="table-responsive" style="min-height: .01%;height: 600px;overflow-y: scroll;">
                <table class="table table-hover table-bordered table-theme table-permission">
                    <thead>
                        <tr>
                            <th width="80%" class="text-right"><?php echo $form->checkBoxList($model, 'permissions[hr_menu_check_all]', array('hr_menu_check_all' => ''), array('data-label' => 'Check All', 'onclick' => ' $("#hr_menu_tab input:checkbox").prop("checked", $(this).prop("checked"));')); ?> Select all</th>
                            <th class="text-center">View Menu</th>
                        </tr>
                    </thead>
                    <tbody>
                    <?php    if (($model_module_employee->grant_access == 1 && $model_module_employee->isActive == 'Y') || 
                    ($model_pdf_settings->grant_access == 1 && $model_pdf_settings->isActive == 'Y') ||
                    ($model_mail_settings->grant_access == 1 && $model_mail_settings->isActive == 'Y') || 
                    ($model_module_attendance->grant_access == 1 && $model_module_attendance->isActive == 'Y') || 
                    ($model_module_doc_request->grant_access == 1 && $model_module_doc_request->isActive == 'Y')||
                    ($model_module_resignation->grant_access == 1 && $model_module_resignation->isActive == 'Y')||
                    ($model_request_service->grant_access == 1 && $model_request_service->isActive == 'Y')||
                    ($model_module_appraisal->grant_access == 1 && $model_module_appraisal->isActive == 'Y')||
                    ($model_module_asset->grant_access == 1 && $model_module_asset->isActive == 'Y')||
                    ($model_module_payroll->grant_access == 1 && $model_module_payroll->isActive == 'Y')||
                    ($model_module_eos->grant_access == 1 && $model_module_eos->isActive == 'Y')||
                    ($model_module_ticket->grant_access == 1 && $model_module_ticket->isActive == 'Y')||
                    ($model_module_ticket_encashment->grant_access == 1 && $model_module_ticket_encashment->isActive == 'Y')||
                    ($model_module_org_chart->grant_access == 1 && $model_module_org_chart->isActive == 'Y')||
                    ($model_module_expense->grant_access == 1 && $model_module_expense->isActive == 'Y')||
                    ($model_module_loan->grant_access == 1 && $model_module_loan->isActive == 'Y')||
                    ($model_module_recruitment->grant_access == 1 && $model_module_recruitment->isActive == 'Y')||
                    ($model_module_training->grant_access == 1 && $model_module_training->isActive == 'Y') ||
                    ($model_module_salary_advance->grant_access == 1 && $model_module_salary_advance->isActive == 'Y')||
                    ($model_module_leave_encashment->grant_access == 1 && $model_module_leave_encashment->isActive == 'Y')||
                    ($model_module_leave->grant_access == 1 && $model_module_leave->isActive == 'Y')||
                    ($model_module_catalogue->grant_access == 1 && $model_module_catalogue->isActive == 'Y') ||
                    ($model_module_circular->grant_access == 1 && $model_module_circular->isActive == 'Y') ||
                    ($model_module_staffboard->grant_access == 1 && $model_module_staffboard->isActive == 'Y') ||
                    ($model_module_notes->grant_access == 1 && $model_module_notes->isActive == 'Y') ||
                    ($model_calender_notification->grant_access == 1 && $model_calender_notification->isActive == 'Y') ||
                    ($model_module_notice_conduct->grant_access == 1 && $model_module_notice_conduct->isActive == 'Y') ||
                    ($model_module_template->grant_access == 1 && $model_module_template->isActive == 'Y') ||
                    ($model_module_room->grant_access == 1 && $model_module_room->isActive == 'Y') ||
                    ($model_module_purchase->grant_access == 1 && $model_module_purchase->isActive == 'Y') ||
                    ($model_module_app->grant_access == 1 && $model_module_app->isActive == 'Y')) { ?>
                        <tr>     
                            <td class='text-bold bg-success'>HR - Menu</td>     
                            <td class='text-center bg-success'><?php echo $form->checkBoxList($model, 'permissions[hr_whole_menu]', array('hr_whole_menu' => ''), array('title' => 'Menu')); ?>
                            </td>
                        </tr>
                        <tr>     
                            <td class='text-bold bg-success'>Make HR Dashboard As Default</td>     
                            <td class='text-center bg-success'><?php echo $form->checkBoxList($model, 'permissions[hr_dashboard_as_default_menu]', array('hr_dashboard_as_default_menu' => ''), array('title' => 'Menu')); ?>
                            </td>
                        </tr>
                        <tr>     
                            <td class='text-bold bg-success'>HR - Notification</td>     
                            <td class='text-center bg-success'><?php echo $form->checkBoxList($model, 'permissions[hr_notification_menu]', array('hr_notification_menu' => ''), array('title' => 'Notification Bell')); ?>
                            </td>
                        </tr>
                        <?php }
                                if(($model_module_employee->grant_access == 1 && $model_module_employee->isActive == 'Y')||
                                ($model_calender_notification->grant_access == 1 && $model_calender_notification->isActive == 'Y') ||
                                ($model_module_snapshot->grant_access == 1 && $model_module_snapshot->isActive == 'Y'))        
                                { ?>
                        <tr>     
                            <td class='text-bold bg-success'>MIS</td>     
                            <td class='text-center bg-success'><?php echo $form->checkBoxList($model, 'permissions[hr_mis_menu]', array('hr_mis_menu' => ''), array('title' => 'MIS Menu')); ?>
                            </td>
                        </tr>
                                <?php }
                                if($model_module_employee->grant_access == 1 && $model_module_employee->isActive == 'Y') { ?>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Dashboard </td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_dashboard_menu]', array('hr_dashboard_menu' => ''), array('title' => 'Dashboard Menu')); ?></td>
                        </tr>
                        <?php } ?>
                        <?php if($model_calender_notification->grant_access == 1 && $model_calender_notification->isActive == 'Y') { ?>
                        <tr class="bg-warning">     
                            <td style="padding-left: 45px;">Calendar</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_calendar_menu]', array('hr_calendar_menu' => ''), array('title' => 'Calendar Menu')); ?>
                            </td>
                        </tr>
                        <?php }
                        if($model_module_employee->grant_access == 1 && $model_module_employee->isActive == 'Y') { ?>
                        <tr class="bg-warning">     
                            <td style="padding-left: 45px;">Representation</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_graph_menu]', array('hr_graph_menu' => ''), array('title' => 'Representation Menu')); ?>
                            </td>
                        </tr>
                        <tr class="bg-warning">     
                            <td style="padding-left: 45px;">Employee Analysis</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_analysis_menu]', array('hr_analysis_menu' => ''), array('title' => 'Employee Analysis Menu')); ?>
                            </td>
                        </tr>
                        <?php } if($model_module_snapshot->grant_access == 1 && $model_module_snapshot->isActive == 'Y') { ?>
                        <tr class="bg-warning">     
                            <td style="padding-left: 45px;">Snapshot</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_representation_menu]', array('hr_representation_menu' => ''), array('title' => 'Snapshot Menu')); ?>
                            </td>
                        </tr>
                       <?php } if($model_module_employee->grant_access == 1 && $model_module_employee->isActive == 'Y') { ?>
                        <tr>
                            <td class="text-bold bg-success">EMPLOYEE</td>
                            <td class='text-center bg-success'><?php echo $form->checkBoxList($model, 'permissions[hr_employee_menu]', array('hr_employee_menu' => ''), array('title' => 'Employee Menu')); ?></td>
                        </tr>
                        <tr>
                            <td class="text-bold bg-danger"  style="padding-left: 20px;">Employee Details</td>
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_details_menu]', array('hr_emp_details_menu' => ''), array('title' => 'Employee Details Menu')); ?></td>
                        </tr>
                        <?php 
                        }
                        if (($model_module_flexitime->grant_access == 1 && $model_module_flexitime->isActive == 'Y')||($model_module_attendance->grant_access == 1 && $model_module_attendance->isActive == 'Y')) { ?>
                        <tr>
                            <td class="text-bold bg-danger" style="padding-left: 20px;">Attendance</td>
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_attendance_menu]', array('hr_emp_attendance_menu' => ''), array('title' => 'Attendance Menu')); ?></td>
                        </tr>
                       <?php if($model_module_attendance->grant_access == 1 && $model_module_attendance->isActive == 'Y'){ ?>     
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Biometric Exclude List </td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_empatt_biometric_exclude_menu]', array('hr_empatt_biometric_exclude_menu' => ''), array('title' => 'Biometric Exclude List Menu')); ?></td>
                        </tr>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Employee Shift</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_empatt_shift_menu]', array('hr_empatt_shift_menu' => ''), array('title' => 'Employee Shift Menu')); ?></td>
                        </tr>
                        <!-- <tr class="bg-warning">
                            <td style="padding-left: 45px;">Lock Salary Attendance</td>
                            <td class='text-center'><?php //echo $form->checkBoxList($model, 'permissions[hr_lock_salary_attendance_menu]', array('hr_lock_salary_attendance_menu' => ''), array('title' => 'Lock Salary Attendance Menu')); ?></td>
                        </tr> -->
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Upload Attendance</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_empatt_uploadattendance_menu]', array('hr_empatt_uploadattendance_menu' => ''), array('title' => 'Upload Attendance Menu')); ?></td>
                        </tr>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Daily Attendance</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_empatt_daily_att_menu]', array('hr_empatt_daily_att_menu' => ''), array('title' => 'Daily Attendance Menu')); ?></td>
                        </tr>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Employee Attendance</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_empatt_add_emp_att_menu]', array('hr_empatt_add_emp_att_menu' => ''), array('title' => 'Employee Attendance Menu')); ?></td>
                        </tr>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Monthly Attendance</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_empatt_monthly_att_menu]', array('hr_empatt_monthly_att_menu' => ''), array('title' => 'Monthly Attendance Menu')); ?></td>
                        </tr>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Delete Attendance</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_empatt_delete_att_menu]', array('hr_empatt_delete_att_menu' => ''), array('title' => 'Delete Attendance Menu')); ?></td>
                        </tr>

                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Attendance List</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_empatt_att_list_menu]', array('hr_empatt_att_list_menu' => ''), array('title' => 'Attendance List Menu')); ?></td>
                        </tr>
<!--                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Late Notice</td>
                            <td class='text-center'><?php //echo $form->checkBoxList($model, 'permissions[hr_empatt_late_notice_menu]', array('hr_empatt_late_notice_menu' => ''), array('title' => 'Late Notice Menu')); ?></td>
                        </tr>-->
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Mark Attendance(After Current Date)</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_attendance_current_date_menu]', array('hr_attendance_current_date_menu' => ''), array('title' => 'Mark Attendance(After Current Date) Menu')); ?></td>
                        </tr>
                       <?php }?>
                        <?php if($model_module_flexitime->grant_access == 1 && $model_module_attendance->isActive == 'Y'){ ?>  
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Meeting / Flexi Time Request</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_attendance_excuse_menu]', array('hr_attendance_excuse_menu' => ''), array('title' => 'Official/Flexi Time Excuse Menu')); ?></td>
                        </tr>
                        <?php } ?>
                        
                        <?php }  
                        if ($model_module_recruitment->grant_access == 1 && $model_module_recruitment->isActive == 'Y') { ?>
                        <tr>
                            <td class="text-bold bg-danger" style="padding-left: 20px;"> Recruitment</td>
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_recruitmnt_menu]', array('hr_emp_recruitmnt_menu' => ''), array('title' => 'Recruitment Menu')); ?></td>
                        </tr>
                        <?php }
                        
                        if ($model_module_appraisal->grant_access == 1 && $model_module_appraisal->isActive == 'Y') { ?>
                        <tr>
                            <td class="text-bold bg-danger" style="padding-left: 20px;">Appraisal</td>
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_main_appraisal_menu]', array('hr_emp_main_appraisal_menu' => ''), array('title' => 'Appraisal Main Menu')); ?></td>
                        </tr>
                <!--    <tr class="bg-warning">
                            <td style="padding-left: 45px;">Appraisal Objective </td>
                            <td class='text-center'><?php //echo $form->checkBoxList($model, 'permissions[hr_emp_appraisal_questions_menu]', array('hr_emp_appraisal_questions_menu' => ''), array('title' => 'Appraisal Objective Menu')); ?></td>
                        </tr>-->
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Appraisal </td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_appraisal_menu]', array('hr_emp_appraisal_menu' => ''), array('title' => 'Appraisal Menu')); ?></td>
                        </tr>
                        <?php  }
                       if(($model_module_leave->grant_access == 1 && $model_module_leave->isActive == 'Y') ||($model_module_leave_encashment->grant_access == 1 && $model_module_leave_encashment->isActive == 'Y')) {  ?>
                        <tr>
                            <td class="text-bold bg-danger" style="padding-left: 20px;">Leave</td>
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_leave_menu]', array('hr_emp_leave_menu' => ''), array('title' => 'Leave Menu')); ?></td>
                        </tr>
                         <?php 
                       }
                        if($model_module_leave->grant_access == 1 && $model_module_leave->isActive == 'Y') { 
                            ?>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Leave Details</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_empleave_leavedetails_menu]', array('hr_empleave_leavedetails_menu' => ''), array('title' => 'Leave Details Menu')); ?></td>
                        </tr>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Add/Reduce Leave</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_empleave_addreduceleave_menu]', array('hr_empleave_addreduceleave_menu' => ''), array('title' => 'Add/Reduce Leave Menu')); ?></td>
                        </tr>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Leave Balance</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_empleave_leavebalance_menu]', array('hr_empleave_leavebalance_menu' => ''), array('title' => 'Leave Balance Menu')); ?></td>
                        </tr>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Leave Settlement</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_empleave_settlemnt_menu]', array('hr_empleave_settlemnt_menu' => ''), array('title' => 'Leave Settlement Menu')); ?></td>
                        </tr>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Leave Settlement List</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_empleave_settlemntlist_menu]', array('hr_empleave_settlemntlist_menu' => ''), array('title' => 'Leave Settlement List Menu')); ?></td>
                        </tr>
                        <?php 
                            }
                            
                        if ($model_module_leave_encashment->grant_access == 1 && $model_module_leave_encashment->isActive == 'Y') {   ?>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Leave Encashment</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_empleave_encash_menu]', array('hr_empleave_encash_menu' => ''), array('title' => 'Leave Encashment Menu')); ?></td>
                        </tr>
                        <?php }  
                        if($model_module_leave->grant_access == 1 && $model_module_leave->isActive == 'Y') { 
                            ?> 
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Leave Migration</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_empleavemigration_leavedetails_menu]', array('hr_empleavemigration_leavedetails_menu' => ''), array('title' => 'Leave Migration Menu')); ?></td>
                        </tr>
                        <?php } 
                  
                         if ($model_module_loan->grant_access == 1 && $model_module_loan->isActive == 'Y') { ?>
                        <tr>
                            <td class="text-bold bg-danger" style="padding-left: 20px;">Loan</td>
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_loan_menu]', array('hr_emp_loan_menu' => ''), array('title' => 'Loan Menu')); ?></td>
                        </tr>
                         <?php }
                         if (($model_module_attendance->grant_access == 1 && $model_module_attendance->isActive == 'Y')||($model_module_doc_request->grant_access == 1 && $model_module_doc_request->isActive == 'Y') || ($model_module_resignation->grant_access == 1 && $model_module_resignation->isActive == 'Y')|| ($model_request_service->grant_access == 1 && $model_request_service->isActive == 'Y') ) {?>
                        <tr>
                            <td class="text-bold bg-danger" style="padding-left: 20px;">Request</td>
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_request_menu]', array('hr_emp_request_menu' => ''), array('title' => 'Request Menu')); ?></td>
                        </tr>
                        <?php 
                         }
                        if ($model_module_doc_request->grant_access == 1 && $model_module_doc_request->isActive == 'Y') { ?>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Document</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_emprequest_docmnt_menu]', array('hr_emprequest_docmnt_menu' => ''), array('title' => 'Document Menu')); ?></td>
                        </tr>
                        <?php } 
                        
                        if ($model_module_resignation->grant_access == 1 && $model_module_resignation->isActive == 'Y') {?>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Resignation</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_emprequest_resigntn_menu]', array('hr_emprequest_resigntn_menu' => ''), array('title' => 'Resignation Menu')); ?></td>
                        </tr>
                        <?php }
                        if ($model_module_attendance->grant_access == 1 && $model_module_attendance->isActive == 'Y') {?>
                        
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Late In/Early Out</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_emprequest_meeting_menu]', array('hr_emprequest_meeting_menu' => ''), array('title' => 'Late In/Early Out Menu')); ?></td>
                        </tr>
                        <?php }
                        if ($model_request_service->grant_access == 1 && $model_request_service->isActive == 'Y') {?>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Complaints/Suggestions</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_emprequest_complaint_menu]', array('hr_emprequest_complaint_menu' => ''), array('title' => 'Complaints/Suggestions Menu')); ?></td>
                        </tr>
                        <?php }
                        if ($model_module_eos->grant_access == 1 && $model_module_eos->isActive == 'Y') {?>
                        <tr>
                            <td class="text-bold bg-danger" style="padding-left: 20px;">End Of Service</td>
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_eos_menu]', array('hr_emp_eos_menu' => ''), array('title' => 'End Of Service Menu')); ?></td>
                        </tr>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">EOS Settlement</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_empeos_settlement_menu]', array('hr_empeos_settlement_menu' => ''), array('title' => 'EOS Settlement Menu')); ?></td>
                        </tr>
                         <tr class="bg-warning">
                            <td style="padding-left: 45px;">EOS Clearance</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_empeos_clearance_menu]', array('hr_empeos_clearance_menu' => ''), array('title' => 'EOS Clearance Menu')); ?></td>
                        </tr>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Gratuity List</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_empeos_gratuity_list_menu]', array('hr_empeos_gratuity_list_menu' => ''), array('title' => 'Gratuity List Menu')); ?></td>
                        </tr>
                        
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Off Boarding</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_off_boarding_menu]', array('hr_off_boarding_menu' => ''), array('title' => 'Off Boarding Menu')); ?></td>
                        </tr>
                        <?php } ?>
                        <?php if ($model_module_training->grant_access == 1 && $model_module_training->isActive == 'Y') { ?>
                        <tr>
                            <td class="text-bold bg-danger" style="padding-left: 20px;">Training</td>
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hr_training_menu]', array('hr_training_menu' => ''), array('title' => 'Training Menu')); ?></td>
                        </tr>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Training Detail</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_training_details]', array('hr_emp_training_details' => ''), array('title' => 'Training Detail Menu')); ?></td>
                        </tr>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Training Matrix</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_training_matrix]', array('hr_emp_training_matrix' => ''), array('title' => 'Training Matrix Menu')); ?></td>
                        </tr>
                        <?php  }
                        
                        if ($model_module_ticket->grant_access == 1 && $model_module_ticket->isActive == 'Y') { ?>

                        <tr>
                            <td class="text-bold bg-danger" style="padding-left: 20px;">Tickets</td>
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_ticket_menu]', array('hr_emp_ticket_menu' => ''), array('title' => 'Tickets Menu')); ?></td>
                        </tr>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Family Tickets</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_family_ticket_menu]', array('hr_emp_family_ticket_menu' => ''), array('title' => 'Family Tickets Menu')); ?></td>
                        </tr>
                            <?php }
                            if ($model_module_ticket_encashment->grant_access == 1 && $model_module_ticket_encashment->isActive == 'Y') { ?>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Ticket Encashment</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_ticket_encash_menu]', array('hr_emp_ticket_encash_menu' => ''), array('title' => 'Ticket Encashment Menu')); ?></td>
                        </tr>
                        <?php } 
                        if ($model_module_ticket->grant_access == 1 && $model_module_ticket->isActive == 'Y') { ?>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Add/Change Ticket Detail</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_add_ticket_menu]', array('hr_emp_add_ticket_menu' => ''), array('title' => 'Add/Change Ticket Detail Menu')); ?></td>
                        </tr>
                        <?php } 
                        if ($model_module_org_chart->grant_access == 1 && $model_module_org_chart->isActive == 'Y') { 
                        ?>
                        <tr>
                            <td class="text-bold bg-danger" style="padding-left: 20px;">Organization Chart</td>
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_organization_chart_menu]', array('hr_emp_organization_chart_menu' => ''), array('title' => 'Organization Chart Menu')); ?></td>
                        </tr>
                        <?php }
                        if (($model_module_payroll->grant_access == 1 && $model_module_payroll->isActive == 'Y') ||
                                ($model_module_salary_advance->grant_access == 1 && $model_module_salary_advance->isActive == 'Y')||
                                ($model_module_loan->grant_access == 1 && $model_module_loan->isActive == 'Y')||
                                ($model_module_eos->grant_access == 1 && $model_module_eos->isActive == 'Y')||
                                ($model_module_leave_encashment->grant_access == 1 && $model_module_leave_encashment->isActive == 'Y')||
                                ($model_module_leave->grant_access == 1 && $model_module_leave->isActive == 'Y')||
                                ($model_module_expense->grant_access == 1 && $model_module_expense->isActive == 'Y')||
                                ($model_module_ticket_encashment->grant_access == 1 && $model_module_ticket_encashment->isActive == 'Y')) {
                        ?>
                        <tr>
                            <td class="text-bold bg-success">PAYROLL</td>
                            <td class='text-center bg-success'><?php echo $form->checkBoxList($model, 'permissions[hr_payroll_menu]', array('hr_payroll_menu' => ''), array('title' => 'Payroll Menu')); ?></td>
                        </tr>
                                
                        <tr>
                            <td class="text-bold bg-danger"  style="padding-left: 20px;">Payments</td>
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hr_payroll_payments_menu]', array('hr_payroll_payments_menu' => ''), array('title' => 'Payments Menu')); ?></td>
                        </tr>
                        <?php }?>
                      <?php  if ($model_module_payroll->grant_access == 1 && $model_module_payroll->isActive == 'Y') { ?>
                        <tr>
                            <td class="text-bold bg-danger"  style="padding-left: 20px;">Salary Calculation</td>
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hr_payroll_salcalc_menu]', array('hr_payroll_salcalc_menu' => ''), array('title' => 'Salary Calculation Menu')); ?></td>
                        </tr>
                        <tr>
                            <td class="text-bold bg-danger"  style="padding-left: 20px;">Uploaded Salary Component List</td>
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hr_salary_component_menu]', array('hr_salary_component_menu' => ''), array('title' => 'Uploaded Salary Component List Menu')); ?></td>
                        </tr>
                        <tr>
                            <td class="text-bold bg-danger"  style="padding-left: 20px;">Salary List</td>
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hr_payroll_sallist_menu]', array('hr_payroll_sallist_menu' => ''), array('title' => 'Salary List Menu')); ?></td>
                        </tr>
                        <tr>
                            <td class="text-bold bg-danger"  style="padding-left: 20px;">Salary Payment</td>
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hr_payroll_salary_payment_menu]', array('hr_payroll_salary_payment_menu' => ''), array('title' => 'Salary Payment Menu')); ?></td>
                        </tr>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Cash</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_payroll_cash_menu]', array('hr_payroll_cash_menu' => ''), array('title' => 'Cash Menu')); ?></td>
                        </tr>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Cheque</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_payroll_cheque_menu]', array('hr_payroll_cheque_menu' => ''), array('title' => 'Cheque Menu')); ?></td>
                        </tr>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">SIF</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_payroll_siffile_menu]', array('hr_payroll_siffile_menu' => ''), array('title' => 'SIF Menu')); ?></td>
                        </tr>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Exchange</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_payroll_exchange_menu]', array('hr_payroll_exchange_menu' => ''), array('title' => 'Exchange Menu')); ?></td>
                        </tr>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Bank</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_payroll_bank_menu]', array('hr_payroll_bank_menu' => ''), array('title' => 'Bank Menu')); ?></td>
                        </tr>
                      <?php }
                       if ($model_module_salary_advance->grant_access == 1 && $model_module_salary_advance->isActive == 'Y') { ?>
                        <tr>
                            <td class="text-bold bg-danger"  style="padding-left: 20px;">Salary Advance</td>
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hr_payroll_saladvance_menu]', array('hr_payroll_saladvance_menu' => ''), array('title' => 'Salary Advance Menu')); ?></td>
                        </tr>
                       <?php }
                       if($model_module_payroll->grant_access == 1 && $model_module_payroll->isActive == 'Y'){ ?>
                        <tr>
                            <td class="text-bold bg-danger"  style="padding-left: 20px;">Preview Salary Slip</td>
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hr_payroll_salslippreview_menu]', array('hr_payroll_salslippreview_menu' => ''), array('title' => 'Preview Salary Slip Menu')); ?></td>
                        </tr>
                        <tr>
                            <td class="text-bold bg-danger"  style="padding-left: 20px;">Print Salary Slip</td>
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hr_payroll_salslip_menu]', array('hr_payroll_salslip_menu' => ''), array('title' => 'Print Salary Slip Menu')); ?></td>
                        </tr>
                        <tr>
                            <td class="text-bold bg-danger"  style="padding-left: 20px;">Salary Transfer File</td>
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hr_payroll_salary_transfer_file_menu]', array('hr_payroll_salary_transfer_file_menu' => ''), array('title' => ' Salary Transfer File Menu')); ?></td>
                        </tr>
                        <tr>
                            <td class="text-bold bg-danger"  style="padding-left: 20px;">Salary Checker</td>
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hr_payroll_salary_checking_menu]', array('hr_payroll_salary_checking_menu' => ''), array('title' => ' Salary Checker')); ?></td>
                        </tr> 
                        <tr>
                            <td class="text-bold bg-danger"  style="padding-left: 20px;">Disable Pay Slip</td>
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hr_payroll_disable_ess_salary_slip_menu]', array('hr_payroll_disable_ess_salary_slip_menu' => ''), array('title' => ' Disable Slip Menu')); ?></td>
                        </tr>
<!--                        <tr>
                            <td class="text-bold bg-danger"  style="padding-left: 20px;">Monthly Deduction</td>
                            <td class='text-center bg-danger'><?php //echo $form->checkBoxList($model, 'permissions[hr_payroll_monthly_menu]', array('hr_payroll_monthly_menu' => ''), array('title' => 'Monthly Deduction Menu')); ?></td>
                        </tr>-->
                        <tr>
                            <td class="text-bold bg-danger"  style="padding-left: 20px;">Overtime Sheet</td>
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hr_overtime_sheet_menu]', array('hr_overtime_sheet_menu' => ''), array('title' => 'Overtime Sheet Menu')); ?></td>
                        </tr>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Upload Overtime Sheet</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_overtime_sheet_upload_menu]', array('hr_overtime_sheet_upload_menu' => ''), array('title' => 'Upload Overtime Sheet Menu')); ?></td>
                        </tr>
                        <tr  class="bg-warning">
                            <td style="padding-left: 45px;">Update Overtime Sheet</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_overtime_sheet_update_menu]', array('hr_overtime_sheet_update_menu' => ''), array('title' => 'Update Overtime Sheet Menu')); ?></td>
                        </tr>
                       <?php } 
                        if (($model_module_employee->grant_access == 1 && $model_module_employee->isActive == 'Y') || 
                            ($model_pdf_settings->grant_access == 1 && $model_pdf_settings->isActive == 'Y') ||
                            ($model_mail_settings->grant_access == 1 && $model_mail_settings->isActive == 'Y') || 
                            ($model_module_attendance->grant_access == 1 && $model_module_attendance->isActive == 'Y') || 
                            ($model_module_payroll->grant_access == 1 && $model_module_payroll->isActive == 'Y')) { ?>
                        <tr>
                            <td class="text-bold bg-success">SETTINGS</td>
                            <td class='text-center bg-success'><?php echo $form->checkBoxList($model, 'permissions[hr_settings_menu]', array('hr_settings_menu' => ''), array('title' => 'Settings Menu')); ?></td>
                        </tr>
                            <?php } 
                            if (($model_module_employee->grant_access == 1 && $model_module_employee->isActive == 'Y') || 
                                    ($model_module_attendance->grant_access == 1 && $model_module_attendance->isActive == 'Y') || 
                                    ($model_module_payroll->grant_access == 1 && $model_module_payroll->isActive == 'Y')) { ?>
                        <tr>
                            <td class="text-bold bg-danger"  style="padding-left: 20px;">Changes</td>
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hr_changes_menu]', array('hr_changes_menu' => ''), array('title' => 'Changes Menu')); ?></td>
                        </tr>
                        <?php }
                            if ($model_module_employee->grant_access == 1 && $model_module_employee->isActive == 'Y') { ?>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Username/Password</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_settings_resetusernamepass_menu]', array('hr_settings_resetusernamepass_menu' => ''), array('title' => 'Reset Username/Password Menu')); ?></td>
                        </tr>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Password(Initial Reset Only)</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_settings_initial_password_menu]', array('hr_settings_initial_password_menu' => ''), array('title' => 'Password(Initial Reset Only)')); ?></td>
                        </tr>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Branch</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_settings_change_branch_menu]', array('hr_settings_change_branch_menu' => ''), array('title' => 'Branch Menu')); ?></td>
                        </tr>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Department</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_settings_change_department_menu]', array('hr_settings_change_department_menu' => ''), array('title' => 'Department Menu')); ?></td>
                        </tr>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Designation</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_settings_change_designation_menu]', array('hr_settings_change_designation_menu' => ''), array('title' => 'Designation Menu')); ?></td>
                        </tr>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Reporting Manager</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_settings_addreportmanager_menu]', array('hr_settings_addreportmanager_menu' => ''), array('title' => 'Reporting Manager Menu')); ?></td>
                        </tr>
                            <?php }
                            if ($model_module_attendance->grant_access == 1 && $model_module_attendance->isActive == 'Y') { ?>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Attendance Manager</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_settings_addattendancemanager_menu]', array('hr_settings_addattendancemanager_menu' => ''), array('title' => 'Attendance Manager Menu')); ?></td>
                        </tr>
                        
                         <tr class="bg-warning">
                            <td style="padding-left: 45px;">Weekend</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_settings_addweekend_menu]', array('hr_settings_addweekend_menu' => ''), array('title' => 'Weekend Menu')); ?></td>
                        </tr>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Overtime</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_settings_addovertime_menu]', array('hr_settings_addovertime_menu' => ''), array('title' => 'Overtime Menu')); ?></td>
                        </tr>
                        <?php }?>
                        <?php if ($model_module_employee->grant_access == 1 && $model_module_employee->isActive == 'Y') { ?>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Biometric No</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_settings_addbiometricno_menu]', array('hr_settings_addbiometricno_menu' => ''), array('title' => 'Biometric No Menu')); ?></td>
                        </tr>
                        <?php }
                        if ($model_module_payroll->grant_access == 1 && $model_module_payroll->isActive == 'Y') {  ?>
                         <tr class="bg-warning">
                            <td style="padding-left: 45px;">Salary Transfer Mode</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_settings_adddsalarytransfer_menu]', array('hr_settings_adddsalarytransfer_menu' => ''), array('title' => 'Salary Transfer Mode Menu')); ?></td>
                        </tr>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Salary Calculation Method</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_settings_addsalarycalculation_menu]', array('hr_settings_addsalarycalculation_menu' => ''), array('title' => 'Salary Calculation Method Menu')); ?></td>
                        </tr>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Threshold Salary</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_settings_addthreshold_menu]', array('hr_settings_addthreshold_menu' => ''), array('title' => 'Threshold Salary Menu')); ?></td>
                        </tr>
                       
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Bank Details</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_settings_changebankdetails_menu]', array('hr_settings_changebankdetails_menu' => ''), array('title' => 'Bank Details')); ?></td>
                        </tr>
                        <?php } ?>
                        <?php if ($model_module_employee->grant_access == 1 && $model_module_employee->isActive == 'Y') { ?>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Date of Birth</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_settings_changedob_menu]', array('hr_settings_changedob_menu' => ''), array('title' => 'Date of Birth')); ?></td>
                        </tr>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Date of Joining</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_settings_changedoj_menu]', array('hr_settings_changedoj_menu' => ''), array('title' => 'Date of Joining')); ?></td>
                        </tr>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Marital Status</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_settings_marital_status_menu]', array('hr_settings_marital_status_menu' => ''), array('title' => 'Marital Status')); ?></td>
                        </tr>
                        <?php } ?>
                        <?php 
                        if ($model_module_payroll->grant_access == 1 && $model_module_payroll->isActive == 'Y') {  ?>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Pension Scheme</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_settings_change_pension_menu]', array('hr_settings_change_pension_menu' => ''), array('title' => 'Pension Scheme')); ?></td>
                        </tr>
                        <?php } ?>
                        <?php if ($model_module_employee->grant_access == 1 && $model_module_employee->isActive == 'Y') { ?>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Team</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_settings_change_team_menu]', array('hr_settings_change_team_menu' => ''), array('title' => 'Team')); ?></td>
                        </tr>

                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Nationality</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_settings_nationality_menu]', array('hr_settings_nationality_menu' => ''), array('title' => 'Nationality')); ?></td>
                        </tr>


                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Contract Type</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_settings_contracttype_menu]', array('hr_settings_contracttype_menu' => ''), array('title' => 'Contract Type Menu')); ?></td>
                        </tr>


                        <?php }
                        if ($model_module_attendance->grant_access == 1 && $model_module_attendance->isActive == 'Y') { ?>
                        <tr>
                            <td class="text-bold bg-danger"  style="padding-left: 20px;">Attendance Manager</td>
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hr_settings_attend_manager_menu]', array('hr_settings_attend_manager_menu' => ''), array('title' => 'Attendance Manager Menu')); ?></td>
                        </tr>
                        <?php }?>
                        <?php if ($model_module_employee->grant_access == 1 && $model_module_employee->isActive == 'Y') { ?>
                        <tr>
                            <td class="text-bold bg-danger"  style="padding-left: 20px;">Reporting Manager</td>
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hr_settings_report_manager_menu]', array('hr_settings_report_manager_menu' => ''), array('title' => 'Reporting Manager Menu')); ?></td>
                        </tr>
                        <?php } ?>
                        <?php 
                            if ($model_pdf_settings->grant_access == 1 && $model_pdf_settings->isActive == 'Y') { ?>
                        <tr>
                            <td class="text-bold bg-danger"  style="padding-left: 20px;">PDF Settings</td>
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hr_settings_pdf_menu]', array('hr_settings_pdf_menu' => ''), array('title' => 'PDF Settings Menu')); ?></td>
                        </tr>
                            <?php }
                            if ($model_mail_settings->grant_access == 1 && $model_mail_settings->isActive == 'Y') {
                            ?>
                        <tr>
                            <td class="text-bold bg-danger"  style="padding-left: 20px;">Mail Settings</td>
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hr_settings_mail_menu]', array('hr_settings_mail_menu' => ''), array('title' => 'Mail Settings Menu')); ?></td>
                        </tr>
                            <?php }?>
                        
                        <?php 
                            if(($model_module_payroll->grant_access == 1 && $model_module_payroll->isActive == 'Y') ||
                                        ($model_module_catalogue->grant_access == 1 && $model_module_catalogue->isActive == 'Y') ||
                                        ($model_module_circular->grant_access == 1 && $model_module_circular->isActive == 'Y') ||
                                        ($model_module_employee->grant_access == 1 && $model_module_employee->isActive == 'Y') ||
                                        ($model_module_expense->grant_access == 1 && $model_module_expense->isActive == 'Y') ||
                                        ($model_module_staffboard->grant_access == 1 && $model_module_staffboard->isActive == 'Y') ||
                                        ($model_module_notes->grant_access == 1 && $model_module_notes->isActive == 'Y') ||
                                        ($model_calender_notification->grant_access == 1 && $model_calender_notification->isActive == 'Y') ||
                                        ($model_notice_conduct->grant_access == 1 && $model_notice_conduct->isActive == 'Y') ||
                                        ($model_module_template->grant_access == 1 && $model_module_template->isActive == 'Y') ||
                                        ($model_module_app->grant_access == 1 && $model_module_app->isActive == 'Y')) { ?>
                        <tr>
                            <td class="text-bold bg-success">OTHERS</td>
                            <td class='text-center bg-success'><?php echo $form->checkBoxList($model, 'permissions[hr_others_menu]', array('hr_others_menu' => ''), array('title' => 'Others Menu')); ?></td>
                        </tr>
                            <?php }
                            if ($model_module_payroll->grant_access == 1 && $model_module_payroll->isActive == 'Y') { ?>
                        <tr>
                            <td  class="text-bold bg-danger"  style="padding-left: 20px;">Assign Visa Entity</td>
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_assigncompanywps_menu]', array('hr_emp_assigncompanywps_menu' => ''), array('title' => 'Assign Visa Entity Menu')); ?></td>
                        </tr>
                        <?php } 
                        if ($model_module_catalogue->grant_access == 1 && $model_module_catalogue->isActive == 'Y') { 
                        ?>
                        <tr>
                            <td  class="text-bold bg-danger"  style="padding-left: 20px;">Catalogue</td>
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hr_catalogue_menu]', array('hr_catalogue_menu' => ''), array('title' => 'Catalogue Menu')); ?></td>
                        </tr>
                        <?php }
                        if ($model_module_circular->grant_access == 1 && $model_module_circular->isActive == 'Y') {?>
                            <tr>
                                <td  class="text-bold bg-danger"  style="padding-left: 20px;">Circular</td>
                                <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hr_others_circular_menu]', array('hr_others_circular_menu' => ''), array('title' => 'Circular Menu')); ?></td>
                            </tr>
                            <tr class="bg-warning">
                                <td style="padding-left: 45px;">Indoor Circular</td>
                                <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_others_incircular_menu]', array('hr_others_incircular_menu' => ''), array('title' => 'Indoor Circular Menu')); ?></td>
                            </tr>
                            <tr class="bg-warning">
                                <td style="padding-left: 45px;">Outdoor Circular</td>
                                <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_others_outcircular_menu]', array('hr_others_outcircular_menu' => ''), array('title' => 'Outdoor Circular Menu')); ?></td>
                            </tr>
                       <?php } 
                        if($model_module_employee->grant_access == 1 && $model_module_employee->isActive == 'Y') { ?>
                        <tr>
                            <td  class="text-bold bg-danger"  style="padding-left: 20px;">Documents</td>
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hr_employee_document_expiry_menu]', array('hr_employee_document_expiry_menu' => ''), array('title' => 'Document Expire Menu')); ?></td>
                        </tr>

                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Employee Document</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_others_employee_expire_document_menu]', array('hr_others_employee_expire_document_menu' => ''), array('title' => 'Employee Document Expire Menu')); ?></td>
                        </tr>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Depandant Document</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_others_depandant_document_expire_menu]', array('hr_others_depandant_document_expire_menu' => ''), array('title' => 'Depandant Dpcument Expire Menu')); ?></td>
                        </tr>
                        <?php 
                        }
                        if ($model_module_expense->grant_access == 1 && $model_module_expense->isActive == 'Y') { ?>
                        <tr>
                            <td  class="text-bold bg-danger"  style="padding-left: 20px;">Expense Submission </td>
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hr_emprequest_exp_menu]', array('hr_emprequest_exp_menu' => ''), array('title' => 'Expense Submission Menu')); ?></td>
                        </tr>
                        <?php } 
                        if ($model_company_expense->grant_access == 1 && $model_company_expense->isActive == 'Y') { ?>
                        <tr>
                            <td  class="text-bold bg-danger"  style="padding-left: 20px;">Employee Expense</td>
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hr_expense_menu]', array('hr_expense_menu' => ''), array('title' => 'Employee Expense Menu')); ?></td>
                        </tr>
                        <?php }
                        if ($model_module_staffboard->grant_access == 1 && $model_module_staffboard->isActive == 'Y') { ?>
                        <tr>
                            <td class="text-bold bg-danger"  style="padding-left: 20px;">Staff Board</td>
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_notification_menu]', array('hr_emp_notification_menu' => ''), array('title' => 'Staff Board Menu')); ?></td>
                        </tr>
                        <?php }
                        if($model_settings_calendar_->consider_sale_target == 'Y') {?>
                        <tr>
                            <td class="text-bold bg-danger"  style="padding-left: 20px;">Incentive</td>
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hr_incentive_menu]', array('hr_incentive_menu' => ''), array('title' => 'Incentive Menu')); ?></td>
                        </tr>
                        <tr>
                            <td class="text-bold bg-danger"  style="padding-left: 20px;">Target</td>
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hr_target_menu]', array('hr_target_menu' => ''), array('title' => 'Target Menu')); ?></td>
                        </tr>
                        <?php }?>
<!--                        <tr>
                            <td class="text-bold bg-danger"  style="padding-left: 20px;">Public Holiday Allowance</td>
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hr_allowance_menu]', array('hr_allowance_menu' => ''), array('title' => 'Public Holiday Allowance Menu')); ?></td>
                        </tr>-->
                        <?php if ($model_module_notes->grant_access == 1 && $model_module_notes->isActive == 'Y') { ?>
                        <tr>
                            <td class="text-bold bg-danger"  style="padding-left: 20px;">Notes</td>
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_notes_menu]', array('hr_emp_notes_menu' => ''), array('title' => 'Notes Menu')); ?></td>
                        </tr>
                        <?php }
                        if ($model_notice_conduct->grant_access == 1 && $model_notice_conduct->isActive == 'Y') { 
                        ?>
                        <tr>
                            <td class="text-bold bg-danger"  style="padding-left: 20px;">Notice of Conduct</td>
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_noticeofconduct_menu]', array('hr_emp_noticeofconduct_menu' => ''), array('title' => 'Notice of Conduct Menu')); ?></td>
                        </tr>
                        <?php }
                        if ($model_calender_notification->grant_access == 1 && $model_calender_notification->isActive == 'Y') { 
                        ?>
                        <tr>
                            <td class="text-bold bg-danger"  style="padding-left: 20px;">Calendar Notification</td>
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hr_calendar_notification_menu]', array('hr_calendar_notification_menu' => ''), array('title' => 'Calendar Notification Menu')); ?></td>
                        </tr>
                        <?php
                        }
                        if ($model_module_purchase->grant_access == 1 && $model_module_purchase->isActive == 'Y') { ?>
                        <tr>
                            <td class="text-bold bg-danger"  style="padding-left: 20px;">Purchase Request</td>
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_product_purchase_menu]', array('hr_emp_product_purchase_menu' => ''), array('title' => 'Purchase Request Menu')); ?></td>
                        </tr>
                        <?php }
                        if ($model_module_template->grant_access == 1 && $model_module_template->isActive == 'Y') { 
                        ?>
                        <tr>
                            <td class="text-bold bg-danger"  style="padding-left: 20px;">Templates</td>
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hr_template_view]', array('hr_template_view' => ''), array('title' => 'Templates Menu')); ?></td>
                        </tr>
                        <?php }
                        if ($model_module_app->grant_access == 1 && $model_module_app->isActive == 'Y') {  ?>
                        <tr>
                            <td class="text-bold bg-danger"  style="padding-left: 20px;">Employee Device Details</td>
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hr_empployee_device_view]', array('hr_empployee_device_view' => ''), array('title' => 'Employee device')); ?></td>
                        </tr>
                        <?php }
                        if ($model_module_employee->grant_access == 1 && $model_module_employee->isActive == 'Y') { ?>
                        <tr>
                            <td  class="text-bold bg-danger"  style="padding-left: 20px;">Approve Hierarchy</td>
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hr_approve_hierarcy_menu]', array('hr_approve_hierarcy_menu' => ''), array('title' => 'Approve Hierarchy Menu')); ?></td>
                        </tr>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Approve Level</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_hierarcy_level_menu]', array('hr_hierarcy_level_menu' => ''), array('title' => 'Approve Level Menu')); ?></td>
                        </tr>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Branch Level(Same for All)</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_hierarcy_level_same_menu]', array('hr_hierarcy_level_same_menu' => ''), array('title' => 'Branch Level(Same for All) Menu')); ?></td>
                        </tr>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Change Approver</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_hierarcy_level_change_menu]', array('hr_hierarcy_level_change_menu' => ''), array('title' => 'Change Approver Menu')); ?></td>
                        </tr>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Report</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_hierarcy_report_menu]', array('hr_hierarcy_report_menu' => ''), array('title' => 'Report Menu')); ?></td>
                        </tr>
                        <?php }
                        if ($model_module_room->grant_access == 1 && $model_module_room->isActive == 'Y') { 
                        ?>
                        <tr>
                            <td class="text-bold bg-danger"  style="padding-left: 20px;">Room</td>
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hr_room_menu]', array('hr_room_menu' => ''), array('title' => 'Room Menu')); ?></td>
                        </tr>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Room Setting</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_room_setting_menu]', array('hr_room_setting_menu' => ''), array('title' => 'Room Setting Menu')); ?></td>
                        </tr>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Bed Space</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_bedspace_menu]', array('hr_bedspace_menu' => ''), array('title' => 'Bed Space Menu')); ?></td>
                        </tr>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Room Allocation</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_room_allocation_menu]', array('hr_room_allocation_menu' => ''), array('title' => 'Room Allocation Menu')); ?></td>
                        </tr>
                        <?php } 
                        if (($model_module_employee->grant_access == 1 && $model_module_employee->isActive == 'Y') || 
                                ($model_pdf_settings->grant_access == 1 && $model_pdf_settings->isActive == 'Y') ||
                                ($model_mail_settings->grant_access == 1 && $model_mail_settings->isActive == 'Y') || 
                                ($model_module_attendance->grant_access == 1 && $model_module_attendance->isActive == 'Y') || 
                                ($model_module_payroll->grant_access == 1 && $model_module_payroll->isActive == 'Y')||
                                ($model_module_appraisal->grant_access == 1 && $model_module_appraisal->isActive == 'Y')||
                                ($model_module_asset->grant_access == 1 && $model_module_asset->isActive == 'Y')||
                                ($model_module_payroll->grant_access == 1 && $model_module_payroll->isActive == 'Y')||
                                ($model_module_eos->grant_access == 1 && $model_module_eos->isActive == 'Y')||
                                ($model_module_expense->grant_access == 1 && $model_module_expense->isActive == 'Y')||
                                ($model_module_loan->grant_access == 1 && $model_module_loan->isActive == 'Y')||
                                ($model_module_purchase->grant_access == 1 && $model_module_purchase->isActive == 'Y')||
                                ($model_module_recruitment->grant_access == 1 && $model_module_recruitment->isActive == 'Y')||
                                ($model_module_leave->grant_access == 1 && $model_module_leave->isActive == 'Y')||
                                ($model_module_app->grant_access == 1 && $model_module_app->isActive == 'Y')||    
                                ($model_module_training->grant_access == 1 && $model_module_training->isActive == 'Y')) {
                        ?>
                        <tr>
                            <td class="text-bold bg-success">REPORTS</td>
                            <td class='text-center bg-success'><?php echo $form->checkBoxList($model, 'permissions[hr_reports_menu]', array('hr_reports_menu' => ''), array('title' => 'Reports Menu')); ?></td>
                        </tr>
                            <?php }
                                if (($model_module_appraisal->grant_access == 1 && $model_module_appraisal->isActive == 'Y')||
                                    ($model_module_app->grant_access == 1 && $model_module_app->isActive == 'Y')||
                                    ($model_module_employee->grant_access == 1 && $model_module_employee->isActive == 'Y') ||
                                    ($model_module_purchase->grant_access == 1 && $model_module_purchase->isActive == 'Y')||
                                    ($model_module_recruitment->grant_access == 1 && $model_module_recruitment->isActive == 'Y') ||
                                    ($model_module_training->grant_access == 1 && $model_module_training->isActive == 'Y') ||
                                    ($model_module_expense->grant_access == 1 && $model_module_expense->isActive == 'Y')||
                                    ($model_module_attendance->grant_access == 1 && $model_module_attendance->isActive == 'Y')||
                                    ($model_module_payroll->grant_access == 1 && $model_module_payroll->isActive == 'Y')||
                                    ($model_module_company->grant_access == 1 && $model_module_company->isActive == 'Y')||
                                    ($model_module_leave->grant_access == 1 && $model_module_leave->isActive == 'Y')||
                                    ($model_module_eos->grant_access == 1 && $model_module_eos->isActive == 'Y')||
                                    ($model_module_asset->grant_access == 1 && $model_module_asset->isActive == 'Y')||
                                    ($model_module_doc_request->grant_access == 1 && $model_module_doc_request->isActive == 'Y') )  { ?>
                        <tr>
                            <td class="text-bold bg-success">MASTERS</td>
                            <td class='text-center bg-success'><?php echo $form->checkBoxList($model, 'permissions[hr_master_menu]', array('hr_master_menu' => ''), array('title' => 'Master Menu')); ?></td>
                        </tr>
                        <?php } 
                            if (($model_module_employee->grant_access == 1 && $model_module_employee->isActive == 'Y') ||
                                   ($model_module_appraisal->grant_access == 1 && $model_module_appraisal->isActive == 'Y')|| 
                                    ($model_module_expense->grant_access == 1 && $model_module_expense->isActive == 'Y')||
                                    ($model_module_purchase->grant_access == 1 && $model_module_purchase->isActive == 'Y')||
                                    ($model_module_recruitment->grant_access == 1 && $model_module_recruitment->isActive == 'Y')||
                                   ($model_module_app->grant_access == 1 && $model_module_app->isActive == 'Y')) {
                                 ?>
                        <tr>
                            <td class="text-bold bg-danger"  style="padding-left: 20px;">General </td>
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hr_master_general_menu]', array('hr_master_general_menu' => ''), array('title' => 'General Menu')); ?></td>
                        </tr>
                        <?php if ($model_module_appraisal->grant_access == 1 && $model_module_appraisal->isActive == 'Y') { ?>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Appraisal</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_appraisal_menu]', array('hr_master_appraisal_menu' => ''), array('title' => 'Appraisal Menu')); ?></td>
                        </tr>
                         <tr class="bg-info">
                            <td style="text-align: right">Appraisal Department</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_appraisal_department_menu]', array('hr_master_appraisal_department_menu' => ''), array('title' => 'Appraisal Department Menu')); ?></td>
                        </tr>
                        <tr class="bg-info">
                            <td style="text-align: right">Appraisal Type</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_appraisal_type_menu]', array('hr_master_appraisal_type_menu' => ''), array('title' => 'Appraisal Type Menu')); ?></td>
                        </tr>
                        <tr class="bg-info">
                            <td style="text-align: right">Appraisal Question</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_appraisal_question_menu]', array('hr_master_appraisal_question_menu' => ''), array('title' => 'Appraisal Question Menu')); ?></td>
                        </tr>
                        <?php }
                        if ($model_module_app->grant_access == 1 && $model_module_app->isActive == 'Y') {
                        ?>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">App Menu</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_app_menu]', array('hr_master_app_menu' => ''), array('title' => 'App Permission Menu')); ?></td>
                        </tr>
                        <?php }
                        if ($model_module_employee->grant_access == 1 && $model_module_employee->isActive == 'Y') {
                        ?>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Approval Scheme</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_scheme_level_menu]', array('hr_master_scheme_level_menu' => ''), array('title' => 'Approval Scheme Menu')); ?></td>
                        </tr>
                        <?php }
                        if ($model_module_company->grant_access == 1 && $model_module_company->isActive == 'Y') { ?>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Color Scheme Menu</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_color_scheme_menu]', array('hr_master_color_scheme_menu' => ''), array('title' => 'Color Scheme Menu')); ?></td>
                        </tr>
                        <?php }
                        if ($model_module_employee->grant_access == 1 && $model_module_employee->isActive == 'Y') {
                        ?>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Country</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_country_menu]', array('hr_master_country_menu' => ''), array('title' => 'Country Menu')); ?></td>
                        </tr>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Department</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_general_depatmnt_menu]', array('hr_master_general_depatmnt_menu' => ''), array('title' => 'Department Menu')); ?></td>
                        </tr>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Designation</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_general_desgn_menu]', array('hr_master_general_desgn_menu' => ''), array('title' => 'Designation Menu')); ?></td>
                        </tr>
                        <?php }
                        if ($model_module_expense->grant_access == 1 && $model_module_expense->isActive == 'Y') { ?>
                         <tr class="bg-warning">
                            <td style="padding-left: 45px;">Employee Expense Component Menu</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_empexpense_menu]', array('hr_master_empexpense_menu' => ''), array('title' => 'Employee Expense Component Menu')); ?></td>
                        </tr>
                       <?php } ?>
                        <?php if ($model_module_employee->grant_access == 1 && $model_module_employee->isActive == 'Y') {
                        ?>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Employee Panel Menu</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_general_emppanelpermission_menu]', array('hr_master_general_emppanelpermission_menu' => ''), array('title' => 'Employee Panel Menu')); ?></td>
                        </tr>
                         <tr class="bg-warning">

                            <td style="padding-left: 45px;">Grade</td>

                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_grade_menu]', array('hr_master_grade_menu' => ''), array('title' => 'Grade Menu')); ?></td>

                        </tr>
                       
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Holiday</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_general_holiday_menu]', array('hr_master_general_holiday_menu' => ''), array('title' => 'Holiday Menu')); ?></td>
                        </tr>
                        <?php }
                        if ($model_module_purchase->grant_access == 1 && $model_module_purchase->isActive == 'Y') { ?>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Product</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_product_menu]', array('hr_master_product_menu' => ''), array('title' => 'Product Menu')); ?></td>
                        </tr>
                        <?php }
                        if ($model_module_recruitment->grant_access == 1 && $model_module_recruitment->isActive == 'Y') { ?>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Recruitment</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_recruit_menu]', array('hr_master_recruit_menu' => ''), array('title' => 'Recruitment Menu')); ?></td>
                        </tr>
                        
                        <tr class="bg-info">
                            <td style="text-align: right">Department</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_dept_rect]', array('hr_master_dept_rect' => ''), array('title' => 'Department Menu')); ?></td>
                        </tr>
                        <tr class="bg-info">
                            <td style="text-align: right">Question</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_questions]', array('hr_master_questions' => ''), array('title' => 'Question Menu')); ?></td>
                        </tr>
                        <tr class="bg-info">
                            <td style="text-align: right">On-Boarding</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_onboard_add]', array('hr_master_onboard_add' => ''), array('title' => 'OnBoarding Menu')); ?></td>
                        </tr>
                        <tr class="bg-info">
                            <td style="text-align: right">Off-Boarding</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_offboard_add]', array('hr_master_offboard_add' => ''), array('title' => 'OffBoarding Menu')); ?></td>
                        </tr>
                                   <?php } } 
                        if (($model_module_attendance->grant_access == 1 && $model_module_attendance->isActive == 'Y')||
                            ($model_module_leave->grant_access == 1 && $model_module_leave->isActive == 'Y')||
                            ($model_module_payroll->grant_access == 1 && $model_module_payroll->isActive == 'Y')) { ?>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Settings</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_general_settings_menu]', array('hr_master_general_settings_menu' => ''), array('title' => 'Settings Menu')); ?></td>
                        </tr>
                       <?php }
                        if ($model_module_employee->grant_access == 1 && $model_module_employee->isActive == 'Y') {
                       ?>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Team Name</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_teamname_menu]', array('hr_master_teamname_menu' => ''), array('title' => 'Team Name Menu')); ?></td>
                        </tr>
                        <?php
                        }
                        if ($model_module_training->grant_access == 1 && $model_module_training->isActive == 'Y') { ?>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Training Course</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_course_menu]', array('hr_master_course_menu' => ''), array('title' => 'Training Course Menu')); ?></td>
                        </tr>
                        <?php } ?>
                        <?php if (($model_module_payroll->grant_access == 1 && $model_module_payroll->isActive == 'Y') ||
                                    ($model_company_expense->grant_access == 1 && $model_company_expense->isActive == 'Y')||
                                    ($model_module_eos->grant_access == 1 && $model_module_eos->isActive == 'Y')||
                                    ($model_module_payroll->grant_access == 1 && $model_module_payroll->isActive == 'Y') )  { ?>
                        <tr>
                            <td class="text-bold bg-danger"  style="padding-left: 20px;">Finance</td>
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hr_master_finance_menu]', array('hr_master_finance_menu' => ''), array('title' => 'Finance Menu')); ?></td>
                        </tr>
                        <?php }
                        if ($model_module_payroll->grant_access == 1 && $model_module_payroll->isActive == 'Y') { ?>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Bank</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_bank_menu]', array('hr_master_bank_menu' => ''), array('title' => 'Bank Menu')); ?></td>
                        </tr>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Currency</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_currency_menu]', array('hr_master_currency_menu' => ''), array('title' => 'Currency Menu')); ?></td>
                        </tr>
                        <?php }
                        if ($model_company_expense->grant_access == 1 && $model_company_expense->isActive == 'Y') { ?>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Expense</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_expense_menu]', array('hr_master_expense_menu' => ''), array('title' => 'Expense Menu')); ?></td>
                        </tr>
                        <?php }
                        if ($model_module_eos->grant_access == 1 && $model_module_eos->isActive == 'Y') {?>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">EOS</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_eos_menu]', array('hr_master_eos_menu' => ''), array('title' => 'EOS Menu')); ?></td>
                        </tr>
                        <tr class="bg-info">
                            <td style="text-align: right">EOS Clearance</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_eos_clearance_menu]', array('hr_master_eos_clearance_menu' => ''), array('title' => 'EOS Clearance Menu')); ?></td>
                        </tr>
                        <tr class="bg-info">
                            <td style="text-align: right">Gratuity</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_eos_gratuity_menu]', array('hr_master_eos_gratuity_menu' => ''), array('title' => 'Gratuity Menu')); ?></td>
                        </tr>
                        <tr class="bg-info">
                            <td style="text-align: right">EOS Payment</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_eos_payment_menu]', array('hr_master_eos_payment_menu' => ''), array('title' => 'EOS Payment Menu')); ?></td>
                        </tr>
                         <?php }
                         if($model_settings_calendar_->consider_sale_target == 'Y'){
                         ?>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Incentive Structure</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_incentive]', array('hr_master_incentive' => ''), array('title' => 'Incentive Structure Menu')); ?></td>
                        </tr>
                         <?php  }
                         if ($model_module_payroll->grant_access == 1 && $model_module_payroll->isActive == 'Y') { ?>
                            <tr class="bg-warning">
                                <td style="padding-left: 45px;">Salary</td>
                                <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_salary_menu]', array('hr_master_salary_menu' => ''), array('title' => 'Salary Menu')); ?></td>
                            </tr>
                            <tr class="bg-info">
                                <td style="text-align: right">Salary Type</td>
                                <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_sal_type_menu]', array('hr_master_sal_type_menu' => ''), array('title' => 'Salary Type Menu')); ?></td>
                            </tr>
                            <tr class="bg-info">
                                <td style="text-align: right">Salary Lock Month</td>
                                <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_sal_lockmonth_menu]', array('hr_master_sal_lockmonth_menu' => ''), array('title' => 'Salary Lock Month Menu')); ?></td>
                            </tr>
                            <tr class="bg-info">
                                <td style="text-align: right">Salary Date Settings</td>
                                <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_sal_datesetting_menu]', array('hr_master_sal_datesetting_menu' => ''), array('title' => 'Salary Date Settings Menu')); ?></td>
                            </tr>
                         <?php } ?>
                            
                         <?php if (($model_module_employee->grant_access == 1 && $model_module_employee->isActive == 'Y') ||
                                    ($model_module_company->grant_access == 1 && $model_module_company->isActive == 'Y')||
                                    ($model_module_doc_request->grant_access == 1 && $model_module_doc_request->isActive == 'Y')){?>   
                        <tr>
                            <td class="text-bold bg-danger"  style="padding-left: 20px;">Contract</td>
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hr_master_contract_menu]', array('hr_master_contract_menu' => ''), array('title' => 'Contract Menu')); ?></td>
                        </tr>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Document</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_doc_menu]', array('hr_master_doc_menu' => ''), array('title' => 'Document Menu')); ?></td>
                        </tr>
                        <?php if ($model_module_company->grant_access == 1 && $model_module_company->isActive == 'Y') { ?>
                        <tr class="bg-info">
                            <td style="text-align: right">Company Document</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_company_doc_menu]', array('hr_master_company_doc_menu' => ''), array('title' => 'Company Document Menu')); ?></td>
                        </tr>
                        <?php }
                        if ($model_module_employee->grant_access == 1 && $model_module_employee->isActive == 'Y'){ ?>
                        <tr class="bg-info">
                            <td style="text-align: right">Document Type</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_doc_type_menu]', array('hr_master_doc_type_menu' => ''), array('title' => 'Document Menu')); ?></td>
                        </tr>
                        <tr class="bg-info">
                            <td style="text-align: right">Document Expiry Status</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_doc_expiry_menu]', array('hr_master_doc_expiry_menu' => ''), array('title' => 'Document Expiry Status')); ?></td>
                        </tr>
                        <tr class="bg-info">
                            <td style="text-align: right">In-Out Document</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_inout_doc_menu]', array('hr_master_inout_doc_menu' => ''), array('title' => 'In-Out Document Menu')); ?></td>
                        </tr>
                        <?php 
                        }
                        if ($model_module_doc_request->grant_access == 1 && $model_module_doc_request->isActive == 'Y') { ?>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Certificate</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_general_certificate_menu]', array('hr_master_general_certificate_menu' => ''), array('title' => 'Certificate Menu')); ?></td>
                        </tr>
                        <?php }
                        if ($model_module_employee->grant_access == 1 && $model_module_employee->isActive == 'Y'){ ?> 
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Job Contract</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_jobcontract_menu]', array('hr_master_jobcontract_menu' => ''), array('title' => 'Job Contract Menu')); ?></td>
                        </tr>
                                    <?php } }?>
                        
                        <?php 
                            if (($model_module_employee->grant_access == 1 && $model_module_employee->isActive == 'Y')||
                                    ($model_module_app->grant_access == 1 && $model_module_app->isActive == 'Y')||
                                    ($model_module_leave->grant_access == 1 && $model_module_leave->isActive == 'Y')||
                                    ($model_module_eos->grant_access == 1 && $model_module_eos->isActive == 'Y')||
                                    ($model_module_attendance->grant_access == 1 && $model_module_attendance->isActive == 'Y')||
                                    ($model_module_asset->grant_access == 1 && $model_module_asset->isActive == 'Y')||
                                    ($model_module_payroll->grant_access == 1 && $model_module_payroll->isActive == 'Y')||
                                    ($model_module_doc_request->grant_access == 1 && $model_module_doc_request->isActive == 'Y') ) { ?>
                        <tr>
                            <td class="text-bold bg-danger"  style="padding-left: 20px;">Settings</td>
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hr_master_settings_menu]', array('hr_master_settings_menu' => ''), array('title' => 'Settings Menu')); ?></td>
                        </tr>
                        <?php } if ($model_module_attendance->grant_access == 1 && $model_module_attendance->isActive == 'Y') { ?>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Attendance Format(CSV Column)</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_attendance_format_menu]', array('hr_master_attendance_format_menu' => ''), array('title' => 'Attendance Format(CSV Column) Menu')); ?></td>
                        </tr>
                        <?php }?>
                        <?php if ($model_module_asset->grant_access == 1 && $model_module_asset->isActive == 'Y'){ ?>
                         <tr class="bg-warning">
                            <td style="padding-left: 45px;">Asset</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_asset_menu]', array('hr_master_asset_menu' => ''), array('title' => 'Asset Menu')); ?></td>
                        </tr>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Asset Details</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_asset_details_menu]', array('hr_master_asset_details_menu' => ''), array('title' => 'Asset Details Menu')); ?></td>
                        </tr>
                        <?php } 
                        if ($model_module_employee->grant_access == 1 && $model_module_employee->isActive == 'Y'){ ?> 
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Branch</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_branch_menu]', array('hr_master_branch_menu' => ''), array('title' => 'Branch Menu')); ?></td>
                        </tr>
                        <?php } ?>
<!--                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Business Unit</td>
                            <td class='text-center'><?php //echo $form->checkBoxList($model, 'permissions[hr_master_business_menu]', array('hr_master_business_menu' => ''), array('title' => 'Business Unit Menu')); ?></td>
                        </tr>-->
                        <?php if ($model_module_app->grant_access == 1 && $model_module_app->isActive == 'Y'){ ?> 
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Geocode Location</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_geo_location_menu]', array('hr_master_geo_location_menu' => ''), array('title' => 'Geocode  Location Menu')); ?></td>
                        </tr>
                         <tr class="bg-warning">
                            <td style="padding-left: 45px;">Geocode</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_geocode_menu]', array('hr_master_geocode_menu' => ''), array('title' => 'Geocode  Menu')); ?></td>
                        </tr>
                        <?php }
                        if($model_module_leave->grant_access == 1 && $model_module_leave->isActive == 'Y') {  ?>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Leave Type</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_leave_type_menu]', array('hr_master_leave_type_menu' => ''), array('title' => 'Leave Type Menu')); ?></td>
                        </tr>
                        <?php } ?>
                        <?php
                         if ($model_module_eos->grant_access == 1 && $model_module_eos->isActive == 'Y') { ?>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Notice Period</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_noticeperiod_menu]', array('hr_master_noticeperiod_menu' => ''), array('title' => 'Notice Period Menu')); ?></td>
                        </tr>
                         <?php }
                        if ($model_module_attendance->grant_access == 1 && $model_module_attendance->isActive == 'Y') { ?>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Over Time Type</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_sal_overtimetype_menu]', array('hr_master_sal_overtimetype_menu' => ''), array('title' => 'Over Time Type Menu')); ?></td>
                        </tr>
                        <?php }?>
                        <?php 
                            if ($model_module_payroll->grant_access == 1 && $model_module_payroll->isActive == 'Y') {   ?> 
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Pension Settings</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_sal_pensionsetting_menu]', array('hr_master_sal_pensionsetting_menu' => ''), array('title' => 'Pension Settings Menu')); ?></td>
                        </tr>
                            <?php }
                        if ($model_module_employee->grant_access == 1 && $model_module_employee->isActive == 'Y'){ ?> 
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Relation Type</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_relation_menu]', array('hr_master_relation_menu' => ''), array('title' => 'Relation Type Menu')); ?></td>
                        </tr>
                        <?php }
                        if ($model_module_attendance->grant_access == 1 && $model_module_attendance->isActive == 'Y') { ?>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Shift Timings</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_shifttimings_menu]', array('hr_master_shifttimings_menu' => ''), array('title' => 'Shift Timings Menu')); ?></td>
                        </tr>
                        <?php } 
                        if ($model_module_doc_request->grant_access == 1 && $model_module_doc_request->isActive == 'Y') { ?>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Signature</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_sig_auth_menu]', array('hr_master_sig_auth_menu' => ''), array('title' => 'Signature Menu')); ?></td>
                        </tr>
                        <?php } 
                        if ($model_module_payroll->grant_access == 1 && $model_module_payroll->isActive == 'Y') { ?>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">WPS Entity</td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_companywps_menu]', array('hr_master_companywps_menu' => ''), array('title' => 'WPS Entity Menu')); ?></td>
                        </tr>
                        <?php } 
                        if (($model_module_company->grant_access == 1 && $model_module_company->isActive == 'Y')||
                           ($model_module_admin->grant_access == 1 && $model_module_admin->isActive == 'Y')) { ?>
                        <tr>
                            <td class="text-bold bg-success">ADMIN</td>
                            <td class='text-center bg-success'><?php echo $form->checkBoxList($model, 'permissions[hr_admin_menu]', array('hr_admin_menu' => ''), array('title' => 'Admin Menu')); ?></td>
                        </tr>
                        <?php if ($model_module_company->grant_access == 1 && $model_module_company->isActive == 'Y') { ?>
                        <tr>
                            <td class="text-bold bg-danger"  style="padding-left: 20px;">Company Details </td>
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hr_admin_company_menu]', array('hr_admin_company_menu' => ''), array('title' => 'Company Details Menu')); ?></td>
                        </tr>
                           <?php } } ?>
                    </tbody>
                </table>
            </div>
        </div>
        <div class="tab-pane" id="dashboard_tab">
            <div class="table-responsive" style="min-height: .01%;height: 350px;overflow-y: scroll;">
                <table class="table table-hover table-bordered table-theme table-permission">
                    <thead>
                        <tr>
                            <th width="60%" class="text-right"><?php echo $form->checkBoxList($model, 'permissions[dashboard_check_all]', array('dashboard_check_all' => ''), array('data-label' => 'Check All', 'onclick' => ' $("#dashboard_tab input:checkbox").prop("checked", $(this).prop("checked"));')); ?> Select all</th>
                            <th class="text-center">View List</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php if ($model_module_employee->grant_access == 1 && $model_module_employee->isActive == 'Y') { ?>
                        <tr>     
                            <td class="text-bold bg-danger"  style="padding-left: 20px;">Employee Document Expiry</td>     
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hrdash_document_expiry]', array('hrdash_document_expiry' => ''), array('title' => 'Employee Document Expiry View')); ?></td>
                        </tr>
                        <?php } ?>
                        <!-- <tr>     
                            <td class="text-bold bg-danger"  style="padding-left: 20px;">Inprocessed Employee Documents</td>     
                            <td class='text-center bg-danger'><?php //echo $form->checkBoxList($model, 'permissions[hrdash_inprocessed_employee_documents]', array('hrdash_inprocessed_employee_documents' => ''), array('title' => 'Inprocessed Employee Documents View')); ?></td>
                        </tr> -->
                        <?php if ($model_module_company->grant_access == 1 && $model_module_company->isActive == 'Y') { ?>
                        <tr>     
                            <td class="text-bold bg-danger"  style="padding-left: 20px;">Company/Vendor/Partner Document Expiry</td>     
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hrdash_company_document_expiry]', array('hrdash_company_document_expiry' => ''), array('title' => 'Company/Vendor/Partner Document Expiry View')); ?></td>                        
                        </tr>
                        <?php } ?>
                       <!--  <tr>     
                            <td class="text-bold bg-danger"  style="padding-left: 20px;">Inprocessed Company/Vendor/Partner Documents</td>     
                            <td class='text-center bg-danger'><?php //echo $form->checkBoxList($model, 'permissions[hrdash_inprocessed_company_documents]', array('hrdash_inprocessed_company_documents' => ''), array('title' => 'Inprocessed Company/Vendor/Partner Documents View')); ?></td>                        
                        </tr> -->
<!--                        <tr>     
                            <td class="text-bold bg-danger"  style="padding-left: 20px;">Morning Late</td>     
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hrdash_morning_late]', array('hrdash_morning_late' => ''), array('title' => 'Morning Late View')); ?></td>                        
                        </tr>-->
                        <?php if($model_module_attendance->grant_access == 1 && $model_module_attendance->isActive == 'Y') {  ?>
                        <tr>     
                            <td class="text-bold bg-danger"  style="padding-left: 20px;">Daily Attendance</td>     
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hrdash_daily_attendance]', array('hrdash_daily_attendance' => ''), array('title' => 'Daily Attendance View')); ?></td>                        
                        </tr>
                        <?php } 
                            if($model_module_leave->grant_access == 1 && $model_module_leave->isActive == 'Y') {  ?>
                        <tr>     
                            <td class="text-bold bg-danger"  style="padding-left: 20px;">Employee Leave Type</td>     
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hrdash_employee_leaves]', array('hrdash_employee_leaves' => ''), array('title' => 'Employee Leave Type View')); ?></td>                        
                        </tr>
                        <?php } ?> 
                        <?php if ($model_module_employee->grant_access == 1 && $model_module_employee->isActive == 'Y') { ?>
                        <tr>     
                            <td class="text-bold bg-danger"  style="padding-left: 20px;">Birthdays</td>     
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hrdash_birthdays]', array('hrdash_birthdays' => ''), array('title' => 'Birthdays View')); ?></td>                        
                        </tr>
                        <?php }?>
                        <?php if($model_module_leave->grant_access == 1 && $model_module_leave->isActive == 'Y') {  ?>
                        <tr>     
                            <td class="text-bold bg-danger"  style="padding-left: 20px;">Leave Approved</td>     
                            <td class='text-center bg-danger'><?php echo $form->checkBoxList($model, 'permissions[hrdash_Leave_Approved]', array('hrdash_Leave_Approved' => ''), array('title' => 'Leave Approved View')); ?></td>
                        </tr>
                        <?php } ?>
<!--                        <tr>     
                            <td width='60%' class='text-bold'>Leave Status</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hrdash_leave_status]', array('hrdash_leave_status' => ''), array('title' => 'View')); ?></td>                        
                        </tr>
                        
                        <tr>     
                            <td width='60%' class='text-bold'>On leave (Today)</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hrdash_on_leave_today]', array('hrdash_on_leave_today' => ''), array('title' => 'View')); ?></td>
                        </tr>
                        <tr>     
                            <td width='60%' class='text-bold'>New Employees</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hrdash_new_employees]', array('hrdash_new_employees' => ''), array('title' => 'View')); ?></td>                        
                        </tr>
                        
                        <tr>     
                            <td width='60%' class='text-bold'>Years of Service</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hrdash_years_of_service]', array('hrdash_years_of_service' => ''), array('title' => 'View')); ?></td>   
                        </tr>-->
                    </tbody>
                </table>
            </div>
        </div>
        <div class="tab-pane" id="snapshot_tab">
            <div class="table-responsive" style="min-height: .01%;height: 600px;overflow-y: scroll;">
                <table class="table table-hover table-bordered table-theme table-permission">
                    <thead>
                        <tr>
                            <th width="60%" class="text-right"><?php echo $form->checkBoxList($model, 'permissions[snapshot_check_all]', array('snapshot_check_all' => ''), array('data-label' => 'Check All', 'onclick' => ' $("#snapshot_tab input:checkbox").prop("checked", $(this).prop("checked"));')); ?> Select all</th>
                            <th class="text-center">View List</th>
                        </tr>
                    </thead>
                    <tbody>
                         <?php if ($model_module_employee->grant_access == 1 && $model_module_employee->isActive == 'Y') { ?>
                        <tr>     
                            <td class='text-bold bg-success'>Employee</td>     
                            <td class='text-center bg-success'><?php echo $form->checkBoxList($model, 'permissions[hr_dashboard_analysis_menu_employee]', array('hr_dashboard_analysis_menu_employee' => ''), array('title' => 'Employee')); ?>
                            </td>
                        </tr>
                         <?php }
                         if ($model_module_payroll->grant_access == 1 && $model_module_payroll->isActive == 'Y') { ?>
                        <tr>     
                            <td class='text-bold bg-success'>Salary</td>     
                            <td class='text-center bg-success'><?php echo $form->checkBoxList($model, 'permissions[hr_dashboard_analysis_menu_salary]', array('hr_dashboard_analysis_menu_salary' => ''), array('title' => 'Salary')); ?>
                            </td>
                        </tr>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Salary Increment </td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_dashboard_analysis_menu_salary_increment]', array('hr_dashboard_analysis_menu_salary_increment' => ''), array('title' => 'Salary Increment')); ?></td>
                        </tr>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Advance Salary </td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_dashboard_analysis_menu_salary_advance]', array('hr_dashboard_analysis_menu_salary_advance' => ''), array('title' => 'Advance Salary')); ?></td>
                        </tr>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Monthly Payable </td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_dashboard_analysis_menu_monthly_pay]', array('hr_dashboard_analysis_menu_monthly_pay' => ''), array('title' => 'Monthly Payable')); ?></td>
                        </tr>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Allowance Change </td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_dashboard_analysis_menu_allowance_change]', array('hr_dashboard_analysis_menu_allowance_change' => ''), array('title' => 'Allowance Change')); ?></td>
                        </tr>
                        <?php } ?>
                         <?php if ($model_module_attendance->grant_access == 1 && $model_module_attendance->isActive == 'Y') { ?>
                        <tr>     
                            <td class='text-bold bg-success'>Attendance</td>     
                            <td class='text-center bg-success'><?php echo $form->checkBoxList($model, 'permissions[hr_dashboard_analysis_menu_attendance]', array('hr_dashboard_analysis_menu_attendance' => ''), array('title' => 'Attendance')); ?>
                            </td>
                        </tr>
                        
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Attendance Details </td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_dashboard_analysis_menu_attendance_subtype]', array('hr_dashboard_analysis_menu_attendance_subtype' => ''), array('title' => 'Attendance Details')); ?></td>
                        </tr>
                         <?php } ?>
                        <?php if ($model_module_leave->grant_access == 1 && $model_module_leave->isActive == 'Y') { ?>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Leave </td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_dashboard_analysis_menu_leave_subtype]', array('hr_dashboard_analysis_menu_leave_subtype' => ''), array('title' => 'Leave')); ?></td>
                        </tr>
                        <?php } ?>
                        <?php if ($model_module_attendance->grant_access == 1 && $model_module_attendance->isActive == 'Y') { ?>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Punctuality </td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_dashboard_analysis_menu_punctuality]', array('hr_dashboard_analysis_menu_punctuality' => ''), array('title' => 'Punctuality')); ?></td>
                        </tr>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Absent Details </td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_dashboard_analysis_menu_absent_details]', array('hr_dashboard_analysis_menu_absent_details' => ''), array('title' => 'Absent Details')); ?></td>
                        </tr>
                        <?php } ?>
                         <?php if ($model_module_asset->grant_access == 1 && $model_module_asset->isActive == 'Y') { ?>
                        <tr>     
                            <td class='text-bold bg-success'>Company Assets</td>     
                            <td class='text-center bg-success'><?php echo $form->checkBoxList($model, 'permissions[hr_dashboard_analysis_menu_assets]', array('hr_dashboard_analysis_menu_assets' => ''), array('title' => 'Company Assets')); ?>
                            </td>
                        </tr>
                         <?php } ?>
                        <?php if ($model_module_employee->grant_access == 1 && $model_module_employee->isActive == 'Y') { ?>
                        <tr>     
                            <td class='text-bold bg-success'>Documents</td>     
                            <td class='text-center bg-success'><?php echo $form->checkBoxList($model, 'permissions[hr_dashboard_analysis_menu_documents]', array('hr_dashboard_analysis_menu_documents' => ''), array('title' => 'Documents')); ?>
                            </td>
                        </tr>
                        <?php }
                        if ($model_module_leave->grant_access == 1 && $model_module_leave->isActive == 'Y') { ?>
                        <tr>     
                            <td class='text-bold bg-success'>Leave</td>     
                            <td class='text-center bg-success'><?php echo $form->checkBoxList($model, 'permissions[hr_dashboard_analysis_menu_leave]', array('hr_dashboard_analysis_menu_leave' => ''), array('title' => 'Leave')); ?>
                            </td>
                        </tr>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Leave History </td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_dashboard_analysis_menu_leave_history]', array('hr_dashboard_analysis_menu_leave_history' => ''), array('title' => 'Leave History')); ?></td>
                        </tr>
                        <tr class="bg-warning">
                            <td style="padding-left: 45px;">Leave </td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_dashboard_analysis_menu_leave_balance]', array('hr_dashboard_analysis_menu_leave_balance' => ''), array('title' => 'Leave Balance')); ?></td>
                        </tr>
                        <?php } ?>
                        <?php if ($model_module_employee->grant_access == 1 && $model_module_employee->isActive == 'Y') { ?>
                        <tr>     
                            <td class='text-bold bg-success'>Disciplinary Action</td>     
                            <td class='text-center bg-success'><?php echo $form->checkBoxList($model, 'permissions[hr_dashboard_analysis_menu_disciplinary_action]', array('hr_dashboard_analysis_menu_disciplinary_action' => ''), array('title' => 'Disciplinary Action')); ?>
                            </td>
                        </tr>
                        <tr>     
                            <td class='text-bold bg-success'>Daily Visit </td>     
                            <td class='text-center bg-success'><?php echo $form->checkBoxList($model, 'permissions[hr_dashboard_analysis_menu_daily_vist]', array('hr_dashboard_analysis_menu_daily_vist' => ''), array('title' => 'Daily Visit')); ?>
                            </td>
                        </tr>
                        <?php } ?>
                        <?php if ($model_module_payroll->grant_access == 1 && $model_module_payroll->isActive == 'Y') { ?>
                        <tr>     
                            <td class='text-bold bg-success'>Monthly Payable Salary </td>     
                            <td class='text-center bg-success'><?php echo $form->checkBoxList($model, 'permissions[hr_dashboard_analysis_menu_monthly_payable_salary_datails]', array('hr_dashboard_analysis_menu_monthly_payable_salary_datails' => ''), array('title' => 'Monthly Payable Salary')); ?>
                            </td>
                        </tr>
                        <tr>     
                            <td class='text-bold bg-success'>Salary Details </td>     
                            <td class='text-center bg-success'><?php echo $form->checkBoxList($model, 'permissions[hr_dashboard_analysis_menu_salary_datails]', array('hr_dashboard_analysis_menu_salary_datails' => ''), array('title' => 'Salary Details')); ?>
                            </td>
                        </tr>
                        <?php }?>
                    </tbody>
                </table>
            </div>
        </div>
        <div class="tab-pane " id="employee_tab">
            <div class="table-responsive" style="min-height: .01%;height: 500px;">
                <table class="table table-hover table-bordered table-theme table-permission">
                    <thead>
                        <tr>
                            <th width="30%" class="text-right"><?php echo $form->checkBoxList($model, 'permissions[employee_check_all]', array('employee_check_all' => ''), array('data-label' => 'Check All', 'onclick' => ' $("#employee_tab input:checkbox").prop("checked", $(this).prop("checked"));')); ?> Select all</th>
                            <th class="text-center">Add</th>
                            <th class="text-center">Edit</th>
                            <th class="text-center">View</th>
                            <th class="text-center">Delete/Block/Unblock</th>
                            <th class="text-center">Upload</th>
                            <th class="text-center">Download</th>
                            <th class="text-center">Issue/Print</th>     
                            <th class="text-center">Payment</th>     
                            <th class="text-center">Approve/Reject</th>
                            <th class="text-center">Send</th>
                            <th class="text-center">Copy</th>
                            <th class="text-center">Direct Approval(Special Privilege)</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php if ($model_module_employee->grant_access == 1 && $model_module_employee->isActive == 'Y') {  ?>
                        <tr class="bg-danger">
                            <td width="30%" class="text-bold">Employee Details</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_employee_details_add]', array('hr_employee_details_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_employee_details_edit]', array('hr_employee_details_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_employee_details_view]', array('hr_employee_details_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_employee_details_block_unblock]', array('hr_employee_details_block_unblock' => ''), array('title' => 'Block/Unblock')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_employee_details_upload]', array('hr_employee_details_upload' => ''), array('title' => 'Upload')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_snapshot_tab]', array('hr_snapshot_tab' => ''), array('title' => 'Print Snapshot')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_employee_send_password]', array('hr_employee_send_password' => ''), array('title' => 'Send Password')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td>
                        </tr>
                        <?php }
                        if ($model_module_attendance->grant_access == 1 && $model_module_attendance->isActive == 'Y') { ?>
                        <tr class="bg-danger">
                            <td width="30%" class="text-bold">Attendance</td><td colspan="12"></td>
                        </tr>
                        <tr class="bg-warning">
                            <td width="30%" class="text-right">Biometric Exclude List</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_att_biometric_exclude_list_add]', array('hr_att_biometric_exclude_list_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_att_biometric_exclude_list_delete]', array('hr_att_biometric_exclude_list_delete' => ''), array('title' => 'Delete')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td>
                            <td class="text-center"></td><td class="text-center"></td>
                        </tr>
                        <tr class="bg-warning">
                            <td width="30%" class="text-right">Employee Shift</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_att_employee_shift_add]', array('hr_att_employee_shift_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_att_employee_shift_edit]', array('hr_att_employee_shift_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_att_employee_shift_view]', array('hr_att_employee_shift_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_att_employee_shift_delete]', array('hr_att_employee_shift_delete' => ''), array('title' => 'Delete')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_att_employee_shift_upload]', array('hr_att_employee_shift_upload' => ''), array('title' => 'Upload')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td>
                            <td class="text-center"></td>
                        </tr>                
                        <tr class="bg-warning">
                            <td width="30%" class="text-right">Attendance List</td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_attendance_list_edit]', array('hr_emp_attendance_list_edit' => ''), array('title' => 'Edit Attendance')); ?>
                                                    <?php echo $form->checkBoxList($model, 'permissions[hr_emp_att_overtime_edit]', array('hr_emp_att_overtime_edit' => ''), array('title' => 'Edit Overtime')); ?>
                            </td><td class="text-center"></td><td class="text-center"></td>
                            <td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td>                           
                        </tr>
<!--                        <tr class="bg-warning">
                            <td width="30%" class="text-right">Late Notice </td>
                            <td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td>
                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[hr_emp_att_late_notice_issue]', array('hr_emp_att_late_notice_issue' => ''), array('title' => 'Issue Notice')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td>
                        </tr>-->
                        <?php } if($model_module_flexitime->grant_access == 1 && $model_module_attendance->isActive == 'Y'){ ?>  
                         <tr class="bg-warning">
                            <td width="30%" class="text-right">Meeting / Flexi Time Request</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_attendance_excuse_add]', array('hr_attendance_excuse_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_attendance_excuse_view]', array('hr_attendance_excuse_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_attendance_excuse_delete]', array('hr_attendance_excuse_delete' => ''), array('title' => 'Delete')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"></td><td class="text-center"></td><td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_attendance_excuse_approve]', array('hr_attendance_excuse_approve' => ''), array('title' => 'Approve')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_attendance_admin_excuse_approve]', array('hr_attendance_admin_excuse_approve' => ''), array('title' => 'Approve')); ?></td>

                        </tr>   
                         <?php } if ($model_module_recruitment->grant_access == 1 && $model_module_recruitment->isActive == 'Y') { ?>
                        <tr class="bg-danger">
                            <td width="30%" class="text-bold">Recruitment</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_employee_recruitment_add]', array('hr_employee_recruitment_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_employee_recruitment_edit]', array('hr_employee_recruitment_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_employee_recruitment_view]', array('hr_employee_recruitment_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_employee_recruitment_delete]', array('hr_employee_recruitment_delete' => ''), array('title' => 'Delete')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td> 
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_recruitment_print]', array('hr_recruitment_print' => ''), array('title' => 'Print')); ?></td> 
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_recruitment_convert]', array('hr_recruitment_convert' => ''), array('title' => 'Convert')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_recruitment_send]', array('hr_recruitment_send' => ''), array('title' => 'Send')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td>
                        </tr>
                         <?php }
                         if ($model_module_appraisal->grant_access == 1 && $model_module_appraisal->isActive == 'Y') { ?>  
                        <tr class="bg-danger">
                            <td width="30%" class="text-bold">Appraisal</td><td colspan="12"></td>
                        </tr>
<!--                        <tr class="bg-warning">
                            <td width="30%" class="text-right">Appraisal Objectives</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[appraisal_questions_add]', array('appraisal_questions_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_employee_appraisal_questions_edit]', array('hr_employee_appraisal_questions_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_employee_appraisal_questions_view]', array('hr_employee_appraisal_questions_view' => ''), array('title' => 'View')); ?></td>                            
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_employee_appraisal_questions_delete]', array('hr_employee_appraisal_questions_delete' => ''), array('title' => 'Delete')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_employee_appraisal_questions_print]', array('hr_employee_appraisal_questions_print' => ''), array('title' => 'Print')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_employee_appraisal_questions_approve]', array('hr_employee_appraisal_questions_approve' => ''), array('title' => 'Approve')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"></td><td class="text-center"></td>
                        </tr>-->
                        <tr class="bg-warning">
                            <td width="30%" class="text-right">Appraisal</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[appraisal_add]', array('appraisal_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_employee_appraisal_edit]', array('hr_employee_appraisal_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_employee_appraisal_view]', array('hr_employee_appraisal_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_employee_appraisal_delete]', array('hr_employee_appraisal_delete' => ''), array('title' => 'Delete')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_employee_appraisal_print]', array('hr_employee_appraisal_print' => ''), array('title' => 'Print')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_employee_appraisal_approve]', array('hr_employee_appraisal_approve' => ''), array('title' => 'Approve')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td><td class="text-center"></td>
                        </tr>
                        <?php
                        }
                        if (($model_module_leave->grant_access == 1 && $model_module_leave->isActive == 'Y') || ($model_module_leave_encashment->grant_access == 1 && $model_module_leave_encashment->isActive == 'Y')) {
                            ?>
                            <tr class="bg-danger">
                                <td width="30%" class="text-bold">Leave</td><td colspan="12"></td>
                            </tr>
                            <?php
                        }
                        if ($model_module_leave->grant_access == 1 && $model_module_leave->isActive == 'Y') {
                            ?>
                            <tr class="bg-warning">
                            <td width="30%" class="text-right">Leave Details</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_leave_details_add]', array('hr_emp_leave_details_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_leave_details_edit]', array('hr_emp_leave_details_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_leave_details_view]', array('hr_emp_leave_details_view' => ''), array('title' => 'View')); ?>
                                <?php echo $form->checkBoxList($model, 'permissions[hr_emp_leave_hierarchy_view]', array('hr_emp_leave_hierarchy_view' => ''), array('title' => 'Hierarchy View')); ?>
                            </td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_leave_details_cancel]', array('hr_emp_leave_details_cancel' => ''), array('title' => 'Cancel')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_leave_details_download]', array('hr_emp_leave_details_download' => ''), array('title' => 'Download')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_leave_details_print]', array('hr_emp_leave_details_print' => ''), array('title' => 'Print')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_leave_details_approve]', array('hr_emp_leave_details_approve' => ''), array('title' => 'Approve/Reject')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_leave_details_copy]', array('hr_emp_leave_details_copy' => ''), array('title' => 'Copy')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_admin_leave_details_approve]', array('hr_emp_admin_leave_details_approve' => ''), array('title' => 'Direct Approve')); ?></td>
                        </tr>
                        <?php } 
                        if ($model_module_leave_encashment->grant_access == 1 && $model_module_leave_encashment->isActive == 'Y') {  ?>
                        <tr class="bg-warning">
                            <td width="30%" class="text-right">Leave Encashment</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_leave_encashment_add]', array('leave_encashment_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_leave_encashment_view]', array('hr_emp_leave_encashment_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_leave_encashment_download]', array('hr_emp_leave_encashment_download' => ''), array('title' => 'Download')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_leave_encashment_approve]', array('hr_emp_leave_encashment_approve' => ''), array('title' => 'Approve/Reject')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_admin_leave_encashment_approve]', array('hr_emp_admin_leave_encashment_approve' => ''), array('title' => 'Leave Encashment Direct Approval')); ?></td>

                            
                        </tr>
                        <?php } 
                        if ($model_module_leave->grant_access == 1 && $model_module_leave->isActive == 'Y') { ?>
                        <tr class="bg-warning">
                            <td width="30%" class="text-right">Leave Settlement</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_leave_settlement_add]', array('hr_emp_leave_settlement_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_leave_settlement_approve]', array('hr_emp_leave_settlement_approve' => ''), array('title' => 'Approve')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td><td class="text-center"></td>
                        </tr>
                        <tr class="bg-warning">
                            <td width="30%" class="text-right">Leave Settlement List</td>
                            <td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_leave_settlement_list_print]', array('hr_leave_settlement_list_print' => ''), array('title' => 'Print')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td>
                        </tr>
                        <tr class="bg-warning">
                            <td width="30%" class="text-right">Leave Migration</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_leave_migration_add]', array('hr_emp_leave_migration_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_leave_migration_view]', array('hr_emp_leave_migration_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_leave_migration_cancel]', array('hr_emp_leave_migration_cancel' => ''), array('title' => 'Cancel')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_leave_migration_download]', array('hr_emp_leave_migration_download' => ''), array('title' => 'Download')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td>
                        </tr>
                        <?php } 
                        if ($model_module_loan->grant_access == 1 && $model_module_loan->isActive == 'Y') {
                        ?>
                        <tr class="bg-danger">
                            <td width="30%" class="text-bold">Loan</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_employee_loan_add]', array('hr_employee_loan_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_employee_loan_edit]', array('hr_employee_loan_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_employee_loan_view]', array('hr_employee_loan_view' => ''), array('title' => 'View')); ?>
                            <?php echo $form->checkBoxList($model, 'permissions[hr_emp_loan_hierarchy_view]', array('hr_emp_loan_hierarchy_view' => ''), array('title' => 'Hierarchy View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_employee_loan_delete]', array('hr_employee_loan_delete' => ''), array('title' => 'Delete')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_employee_loan_approve_print]', array('hr_employee_loan_approve_print' => ''), array('title' => 'Print Approval Form')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_employee_loan_pay]', array('hr_employee_loan_pay' => ''), array('title' => 'Payment')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_employee_loan_approvereject]', array('hr_employee_loan_approvereject' => ''), array('title' => 'Approve/Reject')); ?></td>      
                            <td class="text-center"></td><td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_admin_loan_details_approve]', array('hr_emp_admin_loan_details_approve' => ''), array('title' => 'Loan Direct Approve')); ?></td>

                        </tr>
                        <?php } 
                         if (($model_module_doc_request->grant_access == 1 && $model_module_doc_request->isActive == 'Y') || 
                            ($model_module_resignation->grant_access == 1 && $model_module_resignation->isActive == 'Y')||
                            ($model_request_service->grant_access == 1 && $model_request_service->isActive == 'Y') ) {
                        ?>
                        <tr class="bg-danger">
                            <td width="30%" class="text-bold">Request</td><td colspan="12"></td>
                        </tr>
                            <?php } if ($model_module_doc_request->grant_access == 1 && $model_module_doc_request->isActive == 'Y') { ?>
                        <tr class="bg-warning">
                            <td width="30%" class="text-right">Document</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_document_request_add]', array('hr_emp_document_request_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_document_request_view]', array('hr_emp_document_request_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_document_request_delete]', array('hr_emp_document_request_delete' => ''), array('title' => 'Delete')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_document_request_print]', array('hr_emp_document_request_print' => ''), array('title' => 'Print')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_document_request_approve]', array('hr_emp_document_request_approve' => ''), array('title' => 'Approve')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_document_admin_request_approve]', array('hr_emp_document_admin_request_approve' => ''), array('title' => 'Document Direct Approve')); ?></td>
                        </tr>
                        <?php }   if ($model_module_resignation->grant_access == 1 && $model_module_resignation->isActive == 'Y') {?>
                        <tr class="bg-warning">
                            <td width="30%" class="text-right">Resignation</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_resignation_request_add]', array('hr_emp_resignation_request_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_resignation_request_view]', array('hr_emp_resignation_request_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_resignation_request_approve]', array('hr_emp_resignation_request_approve' => ''), array('title' => 'Approve')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_resignation_admin_request_approve]', array('hr_emp_resignation_admin_request_approve' => ''), array('title' => 'Resignation Direct Approve')); ?></td>

                        </tr>
                        <?php }
                        if ($model_module_attendance->grant_access == 1 && $model_module_attendance->isActive == 'Y') {
                        ?>
                        <tr class="bg-warning">
                            <td width="30%" class="text-right"> Excuse/Meeting/Late In</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_meeting_requests_add]', array('hr_emp_meeting_requests_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_meeting_requests_view]', array('hr_emp_meeting_requests_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_meeting_requests_delete]', array('hr_emp_meeting_requests_delete' => ''), array('title' => 'Delete')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td>
                            <td class="text-center"></td><td class="text-center"></td>
                        </tr>
                        <?php 
                        }
                        if ($model_request_service->grant_access == 1 && $model_request_service->isActive == 'Y') {?>
                       
                        <tr class="bg-warning">
                            <td width="30%" class="text-right">Complaints/Suggestions</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_complaint_requests_add]', array('hr_emp_complaint_requests_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_complaint_requests_view]', array('hr_emp_complaint_requests_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_complaint_requests_delete]', array('hr_emp_complaint_requests_delete' => ''), array('title' => 'Delete')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td>
                            <td class="text-center"></td><td class="text-center"></td>
                        </tr>
                        <?php }
                        if ($model_module_eos->grant_access == 1 && $model_module_eos->isActive == 'Y') {?>
                        <tr class="bg-danger">
                            <td width="30%" class="text-bold">End of Service</td><td colspan="12"></td>
                        </tr>
                        <tr class="bg-warning">
                            <td width="30%" class="text-right">EOS Settlement</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_eos_settlement_add]', array('hr_emp_eos_settlement_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_eos_settlement_view]', array('hr_emp_eos_settlement_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_eos_settlement_delete]', array('hr_emp_eos_settlement_delete' => ''), array('title' => 'Delete')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_eos_settlement_upload]', array('hr_emp_eos_settlement_upload' => ''), array('title' => 'Upload')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_eos_settlement_download]', array('hr_emp_eos_settlement_download' => ''), array('title' => 'Dowwnload')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_eos_settlement_print]', array('hr_emp_eos_settlement_print' => ''), array('title' => 'Print')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_eos_settlement_edit]', array('hr_emp_eos_settlement_edit' => ''), array('title' => 'Edit/Approve/Reject Request')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td><td class="text-center"></td>
                        </tr>
                        <tr class="bg-warning">
                            <td width="60%" class="text-right">EOS Clearance</td>
                            <td class="text-center"></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_empeos_clearance_view]', array('hr_empeos_clearance_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_empeos_clearance_delete]', array('hr_empeos_clearance_delete' => ''), array('title' => 'Delete')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_empeos_clearance_print]', array('hr_empeos_clearance_print' => ''), array('title' => 'Print')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"></td>
                            <td class="text-center"></td><td class="text-center"></td><td class="text-center"></td>

                        </tr>
                        <tr class="bg-warning">
                            <td width="30%" class="text-right">Gratuity List</td>
                            <td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_gratuity_list_print]', array('hr_gratuity_list_print' => ''), array('title' => 'Print')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td>
                        </tr>
                         
                        <tr class="bg-warning">
                            <td width="30%" class="text-right">Off Boarding</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_off_boarding_add]', array('hr_off_boarding_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_off_boarding_edit]', array('hr_off_boarding_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td>
                        </tr>
                        <?php } ?>
                        <?php if ($model_module_training->grant_access == 1 && $model_module_training->isActive == 'Y') { ?>
                        <tr class="bg-danger">
                            <td width="30%" class="text-bold">Training</td><td colspan="12"></td>
                        </tr>
                        <tr class="bg-warning">
                            <td width="30%" class="text-right">Training Detail</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_employee_training_add]', array('hr_employee_training_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_employee_training_edit]', array('hr_employee_training_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_employee_training_delete]', array('hr_employee_training_delete' => ''), array('title' => 'Delete')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_employee_training_download]', array('hr_employee_training_download' => ''), array('title' => 'Download')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td><td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_employee_training_send]', array('hr_employee_training_send' => ''), array('title' => 'Send Mail')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td>
                        </tr>
                        <?php } ?>
                         <?php if (($model_module_ticket->grant_access == 1 && $model_module_ticket->isActive == 'Y') || ($model_module_ticket_encashment->grant_access == 1 && $model_module_ticket_encashment->isActive == 'Y')) { ?>
                        <tr class="bg-danger">
                            <td width="30%" class="text-bold">Ticket</td><td colspan="12"></td>
                        </tr>
                         <?php }
                         if ($model_module_ticket->grant_access == 1 && $model_module_ticket->isActive == 'Y') { ?>
                        <tr class="bg-warning">
                            <td width="30%" class="text-right">Employee Ticket</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_employee_ticket_add]', array('hr_employee_ticket_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_employee_ticket_view]', array('hr_employee_ticket_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_employee_ticket_download]', array('hr_employee_ticket_download' => ''), array('title' => 'Download')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_employee_ticket_print]', array('hr_employee_ticket_print' => ''), array('title' => 'Print')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_employee_ticket_approve]', array('hr_employee_ticket_approve' => ''), array('title' => 'Approve')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td><td class="text-center"></td>
                        <tr class="bg-warning">
                            <td width="30%" class="text-right">Family Ticket</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_family_ticket_add]', array('hr_family_ticket_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_family_ticket_view]', array('hr_family_ticket_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td> <td class="text-center"></td> <td class="text-center"></td> <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_family_ticket_approve]', array('hr_family_ticket_approve' => ''), array('title' => 'Approve')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td><td class="text-center"></td>
                        </tr>
                        <?php }
                        if ($model_module_ticket_encashment->grant_access == 1 && $model_module_ticket_encashment->isActive == 'Y') { ?> 
                        <tr class="bg-warning">
                            <td width="30%" class="text-right">Ticket Encashment</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_employee_ticket_encash_add]', array('hr_employee_ticket_encash_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_employee_ticket_encash_view]', array('hr_employee_ticket_encash_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_employee_ticket_encash_download]', array('hr_employee_ticket_encash_download' => ''), array('title' => 'Download')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_employee_ticket_encash_print]', array('hr_employee_ticket_encash_print' => ''), array('title' => 'Print')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_employee_ticket_encash_approve]', array('hr_employee_ticket_encash_approve' => ''), array('title' => 'Approve')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td> 
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_employee_ticket_encash_admin_approve]', array('hr_employee_ticket_encash_admin_approve' => ''), array('title' => 'Ticket Encash Direct Approve')); ?></td>

                        </tr>
                        <?php }
                        if ($model_module_employee->grant_access == 1 && $model_module_employee->isActive == 'Y') {
                        ?>
                        <tr class="bg-danger">
                            <td width="30%" class="text-bold">Upload</td><td colspan="12"></td>
                        </tr>
                        <tr class="bg-warning">
                            <td width="30%" class="text-right">Employee Documents</td>
                            <td ></td>
                            <td class="text-center"></td>
                            <td class="text-center"></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_employee_documents_upload]', array('hr_employee_documents_upload' => ''), array('title' => 'Upload')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"></td>
                            <td class="text-center"></td>
                            <td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td>
                        </tr> 
                        <?php }
                        if ($model_module_leave->grant_access == 1 && $model_module_leave->isActive == 'Y') { ?>
                        <tr class="bg-warning">
                            <td width="30%" class="text-right">Employee Leave</td>
                            <td ></td>
                            <td class="text-center"></td>
                            <td class="text-center"></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_employee_leave_upload]', array('hr_employee_leave_upload' => ''), array('title' => 'Upload')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"></td>
                            <td class="text-center"></td>
                            <td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td>
                        </tr>  
                        <?php } ?>
                    </tbody>
                </table>
            </div>

        </div>
        <div class="tab-pane" id="employee_details_tab">
            <ul class="material clearfix form-ul">
        <?php if ($model_module_employee->grant_access == 1 && $model_module_employee->isActive == 'Y') {  ?>
            <li class="col-sm-4">
                <?php 
                $selectedOptions=array();
                if ($model->id) {
                    $branch = $model->snapshot_tab_permission;
                    $branch = explode(",", $branch);
                    foreach ($branch as $eachValue){
                        $selectedOptions[$eachValue] = array('selected' => 'selected');
                    }
                }
                echo $form->dropDownList($model, 'snapshot_tab_permission', MasCompanyBranchSponsor:: getCompanyBranches(), array('multiple' => true, 'data-label' => 'Snapshot Tab Permission(Branch)', 'class' => 'employeetabselect tooltipster', 'title' => 'Please Select Branch','options' => $selectedOptions)); ?>
            </li>
            <li class="col-sm-4">
                <?php 
                if ($model->id) {
                    $selectedOptions=array();
                    $branch = $model->personal_tab_permission;
                    $branch = explode(",", $branch);
                    foreach ($branch as $eachValue){
                        $selectedOptions[$eachValue] = array('selected' => 'selected');
                    }
                }
                echo $form->dropDownList($model, 'personal_tab_permission', MasCompanyBranchSponsor:: getCompanyBranches(), array('multiple' => true, 'data-label' => 'Personal Tab Permission(Branch)', 'class' => 'employeetabselect tooltipster', 'title' => 'Please Select Branch','options' => $selectedOptions)); ?>
            </li>
            <li class="col-sm-4">
                <?php 
                if ($model->id) {
                    $branch = $model->qualification_tab_permission;
                    $branch = explode(",", $branch);
                    $selectedOptions=array();
                    foreach ($branch as $eachValue)
                        $selectedOptions[$eachValue] = array('selected' => 'selected');
                }
                echo $form->dropDownList($model, 'qualification_tab_permission', MasCompanyBranchSponsor:: getCompanyBranches(), array('multiple' => true, 'data-label' => 'Qualification Tab Permission(Branch)', 'class' => 'employeetabselect tooltipster', 'title' => 'Please Select Branch','options' => $selectedOptions)); ?>
            </li>
            <li class="col-sm-4">
                <?php 
                if ($model->id) {
                    $branch = $model->nominee_tab_permission;
                    $branch = explode(",", $branch);
                    $selectedOptions=array();
                    foreach ($branch as $eachValue)
                        $selectedOptions[$eachValue] = array('selected' => 'selected');
                }
                echo $form->dropDownList($model, 'nominee_tab_permission', MasCompanyBranchSponsor:: getCompanyBranches(), array('multiple' => true, 'data-label' => 'Nominee Tab Permission(Branch)', 'class' => 'employeetabselect tooltipster', 'title' => 'Please Select Branch','options' => $selectedOptions)); ?>
            </li>
            <li class="col-sm-4">
                <?php 
                if ($model->id) {
                    $branch = $model->contact_tab_permission;
                    $branch = explode(",", $branch);
                    $selectedOptions=array();
                    foreach ($branch as $eachValue)
                        $selectedOptions[$eachValue] = array('selected' => 'selected');
                }
                echo $form->dropDownList($model, 'contact_tab_permission', MasCompanyBranchSponsor:: getCompanyBranches(), array('multiple' => true, 'data-label' => 'Contact Tab Permission(Branch)', 'class' => 'employeetabselect tooltipster', 'title' => 'Please Select Branch','options' => $selectedOptions)); ?>
            </li>
            <li class="col-sm-4">
                <?php 
                if ($model->id) {
                    $branch = $model->document_tab_permission;
                    $branch = explode(",", $branch);
                    $selectedOptions=array();
                    foreach ($branch as $eachValue)
                        $selectedOptions[$eachValue] = array('selected' => 'selected');
                }
                echo $form->dropDownList($model, 'document_tab_permission', MasCompanyBranchSponsor:: getCompanyBranches(), array('multiple' => true, 'data-label' => 'Document Tab Permission(Branch)', 'class' => 'employeetabselect tooltipster', 'title' => 'Please Select Branch','options' => $selectedOptions)); ?>
            </li>
            <?php if ($model_module_asset->grant_access == 1 && $model_module_asset->isActive == 'Y') {  ?>
            <li class="col-sm-4">
                <?php 
                if ($model->id) {
                    $branch = $model->assets_tab_permission;
                    $branch = explode(",", $branch);
                    $selectedOptions=array();
                    foreach ($branch as $eachValue)
                        $selectedOptions[$eachValue] = array('selected' => 'selected');
                }
                echo $form->dropDownList($model, 'assets_tab_permission', MasCompanyBranchSponsor:: getCompanyBranches(), array('multiple' => true, 'data-label' => 'Asset Tab Permission(Branch)', 'class' => 'employeetabselect tooltipster', 'title' => 'Please Select Branch','options' => $selectedOptions)); ?>
            </li>
            <?php }
            if ($model_module_leave->grant_access == 1 && $model_module_leave->isActive == 'Y') {  ?>
            <li class="col-sm-4">
                <?php 
                if ($model->id) {
                    $branch = $model->leave_tab_permission;
                    $branch = explode(",", $branch);
                    $selectedOptions=array();
                    foreach ($branch as $eachValue)
                        $selectedOptions[$eachValue] = array('selected' => 'selected');
                }
                echo $form->dropDownList($model, 'leave_tab_permission', MasCompanyBranchSponsor:: getCompanyBranches(), array('multiple' => true, 'data-label' => 'Leave Tab Permission(Branch)', 'class' => 'employeetabselect tooltipster', 'title' => 'Please Select Branch','options' => $selectedOptions)); ?>
            </li>
             <?php }?>
             <?php  if ($model_module_payroll->grant_access == 1 && $model_module_payroll->isActive == 'Y') { ?>
            <li class="col-sm-4">
                <?php 
                if ($model->id) {
                    $branch = $model->salary_tab_permission;
                    $branch = explode(",", $branch);
                    $selectedOptions=array();
                    foreach ($branch as $eachValue)
                        $selectedOptions[$eachValue] = array('selected' => 'selected');
                }
                echo $form->dropDownList($model, 'salary_tab_permission', MasCompanyBranchSponsor:: getCompanyBranches(), array('multiple' => true, 'data-label' => 'Salary Tab Permission(Branch)', 'class' => 'employeetabselect tooltipster', 'title' => 'Please Select Branch','options' => $selectedOptions)); ?>
            </li>
             <?php } ?>
            <?php if ($model_module_payroll->grant_access == 1 && $model_module_payroll->isActive == 'Y') {  ?>
            <li class="col-sm-4">
                <?php 
                if ($model->id) {
                    $branch = $model->bank_tab_permission;
                    $branch = explode(",", $branch);
                    $selectedOptions=array();
                    foreach ($branch as $eachValue)
                        $selectedOptions[$eachValue] = array('selected' => 'selected');
                }
                echo $form->dropDownList($model, 'bank_tab_permission', MasCompanyBranchSponsor:: getCompanyBranches(), array('multiple' => true, 'data-label' => 'Bank Tab Permission(Branch)', 'class' => 'employeetabselect tooltipster', 'title' => 'Please Select Branch','options' => $selectedOptions)); ?>
            </li>
            <?php } if ($model_module_loan->grant_access == 1 && $model_module_loan->isActive == 'Y') { ?>
            <li class="col-sm-4">
                <?php 
                if ($model->id) {
                    $branch = $model->loan_tab_permission;
                    $branch = explode(",", $branch);
                    $selectedOptions=array();
                    foreach ($branch as $eachValue)
                        $selectedOptions[$eachValue] = array('selected' => 'selected');
                }
                echo $form->dropDownList($model, 'loan_tab_permission', MasCompanyBranchSponsor:: getCompanyBranches(), array('multiple' => true, 'data-label' => 'Loan Tab Permission(Branch)', 'class' => 'employeetabselect tooltipster', 'title' => 'Please Select Branch','options' => $selectedOptions)); ?>
            </li>
            <?php } 
            if ($model_module_eos->grant_access == 1 && $model_module_eos->isActive == 'Y') {?>
            <li class="col-sm-4">
                <?php 
                if ($model->id) {
                    $branch = $model->eos_tab_permission;
                    $branch = explode(",", $branch);
                    $selectedOptions=array();
                    foreach ($branch as $eachValue)
                        $selectedOptions[$eachValue] = array('selected' => 'selected');
                }
                echo $form->dropDownList($model, 'eos_tab_permission', MasCompanyBranchSponsor:: getCompanyBranches(), array('multiple' => true, 'data-label' => 'EOS Tab Permission(Branch)', 'class' => 'employeetabselect tooltipster', 'title' => 'Please Select Branch','options' => $selectedOptions)); ?>
            </li>
            <?php }?>
            <li class="col-sm-4">
                <?php 
                if ($model->id) {
                    $branch = $model->other_tab_permission;
                    $branch = explode(",", $branch);
                    $selectedOptions=array();
                    foreach ($branch as $eachValue)
                        $selectedOptions[$eachValue] = array('selected' => 'selected');
                }
                echo $form->dropDownList($model, 'other_tab_permission', MasCompanyBranchSponsor:: getCompanyBranches(), array('multiple' => true, 'data-label' => 'Other Tab Permission(Branch)', 'class' => 'employeetabselect tooltipster', 'title' => 'Please Select Branch','options' => $selectedOptions)); ?>
            </li>
            <li class="col-sm-4">
                <?php 
                if ($model->id) {
                    $branch = $model->inout_doc_tab_permission;
                    $branch = explode(",", $branch);
                    $selectedOptions=array();
                    foreach ($branch as $eachValue)
                        $selectedOptions[$eachValue] = array('selected' => 'selected');
                }
                echo $form->dropDownList($model, 'inout_doc_tab_permission', MasCompanyBranchSponsor:: getCompanyBranches(), array('multiple' => true, 'data-label' => 'In-Out Doc Tab Permission(Branch)', 'class' => 'employeetabselect tooltipster', 'title' => 'Please Select Branch','options' => $selectedOptions)); ?>
            </li>
            <li class="col-sm-4">
                <?php 
                if ($model->id) {
                    $branch = $model->issue_doc_tab_permission;
                    $branch = explode(",", $branch);
                    $selectedOptions=array();
                    foreach ($branch as $eachValue)
                        $selectedOptions[$eachValue] = array('selected' => 'selected');
                }
                echo $form->dropDownList($model, 'issue_doc_tab_permission', MasCompanyBranchSponsor:: getCompanyBranches(), array('multiple' => true, 'data-label' => 'Issued Doc Tab Permission(Branch)', 'class' => 'employeetabselect tooltipster', 'title' => 'Please Select Branch','options' => $selectedOptions)); ?>
            </li>
            <?php 
            if ($model_module_training->grant_access == 1 && $model_module_training->isActive == 'Y') {?>
            <li class="col-sm-4">
                <?php 
                if ($model->id) {
                    $branch = $model->training_tab_permission;
                    $branch = explode(",", $branch);
                    $selectedOptions=array();
                    foreach ($branch as $eachValue)
                        $selectedOptions[$eachValue] = array('selected' => 'selected');
                }
                echo $form->dropDownList($model, 'training_tab_permission', MasCompanyBranchSponsor:: getCompanyBranches(), array('multiple' => true, 'data-label' => 'Training Tab Permission(Branch)', 'class' => 'employeetabselect tooltipster', 'title' => 'Please Select Branch','options' => $selectedOptions)); ?>
            </li>
            <?php }?>
            <li class="col-sm-4">
                <?php 
                if ($model->id) {
                    $branch = $model->notes_tab_permission;
                    $branch = explode(",", $branch);
                    $selectedOptions=array();
                    foreach ($branch as $eachValue)
                        $selectedOptions[$eachValue] = array('selected' => 'selected');
                }
                echo $form->dropDownList($model, 'notes_tab_permission', MasCompanyBranchSponsor:: getCompanyBranches(), array('multiple' => true, 'data-label' => 'Notes Tab Permission(Branch)', 'class' => 'employeetabselect tooltipster', 'title' => 'Please Select Branch','options' => $selectedOptions)); ?>
            </li>
            <li class="col-sm-4">
                <?php 
                if ($model->id) {
                    $branch = $model->level_tab_permission;
                    $branch = explode(",", $branch);
                    $selectedOptions=array();
                    foreach ($branch as $eachValue)
                        $selectedOptions[$eachValue] = array('selected' => 'selected');
                }
                echo $form->dropDownList($model, 'level_tab_permission', MasCompanyBranchSponsor:: getCompanyBranches(), array('multiple' => true, 'data-label' => 'Level Tab Permission(Branch)', 'class' => 'employeetabselect tooltipster', 'title' => 'Please Select Branch','options' => $selectedOptions)); ?>
            </li>
        </ul>
            <table class="table table-hover table-bordered table-theme table-permission">
                    <tbody>
                        <tr>
                            <th>Snapshot</th>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_snapshot_tab]', array('hr_emp_snapshot_tab' => ''), array('title' => 'View Snapshot Detail')); ?></td>
                        </tr>
                        <tr>
                            <th>Personal</th>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_personal_tab]', array('hr_personal_tab' => ''), array('title' => 'View Personal Detail')); ?></td>
                        </tr>
                        <tr>
                            <th>Qualification</th>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_qualification_tab]', array('hr_qualification_tab' => ''), array('title' => 'View Qualification Detail')); ?></td>
                        </tr>
                        <tr>
                            <th>Nominee</th>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_nominee_tab]', array('hr_nominee_tab' => ''), array('title' => 'View Nominee Detail')); ?></td>
                        </tr>
                        <tr>
                            <th>Contact</th>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_contact_tab]', array('hr_contact_tab' => ''), array('title' => 'View Contact Detail')); ?></td>
                        </tr> 
                       <tr>
                            <th>Document</th>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_document_tab]', array('hr_document_tab' => ''), array('title' => 'View Document Detail')); ?></td>
                        </tr> 
                        <?php if ($model_module_asset->grant_access == 1 && $model_module_asset->isActive == 'Y') {  ?>
                        <tr>
                            <th>Asset</th>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_asset_tab]', array('hr_asset_tab' => ''), array('title' => 'View Asset Detail')); ?></td>
                        </tr>
                        <?php } 
                        if ($model_module_leave->grant_access == 1 && $model_module_leave->isActive == 'Y') {  ?>
                        <tr>
                            <th>Leave</th>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_leave_tab]', array('hr_leave_tab' => ''), array('title' => 'View Leave Detail')); ?></td>
                        </tr>
                         <?php } ?>
                        <?php  if ($model_module_payroll->grant_access == 1 && $model_module_payroll->isActive == 'Y') { ?>
                        <tr>
                            <th>Salary</th>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_empleave_salary_tab]', array('hr_empleave_salary_tab' => ''), array('title' => 'View Salary Detail')); ?></td>
                        </tr>
                        
                       
                        <tr>
                            <th>Bank</th>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_empleave_bank_tab]', array('hr_empleave_bank_tab' => ''), array('title' => 'Bank Detail')); ?></td>
                        </tr>
                        <?php } ?>
                        <?php if ($model_module_loan->grant_access == 1 && $model_module_loan->isActive == 'Y') { ?>
                        <tr>
                            <th>Loan</th>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_empleave_loan_tab]', array('hr_empleave_loan_tab' => ''), array('title' => 'Loan Detail')); ?></td>
                        </tr> 
                        <?php } ?>
                         <?php if ($model_module_eos->grant_access == 1 && $model_module_eos->isActive == 'Y') {?>
                        <tr>
                            <th>EOS</th>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_empleave_eos_tab]', array('hr_empleave_eos_tab' => ''), array('title' => 'EOS Detail')); ?></td>
                        </tr>
                         <?php } ?>
                        <tr>
                            <th>Other</th>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_other_tab]', array('hr_other_tab' => ''), array('title' => 'Other Detail')); ?></td>
                        </tr> 
                       <tr>
                            <th>In-Out</th>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_inout_tab]', array('hr_inout_tab' => ''), array('title' => 'In-Out Detail')); ?></td>
                        </tr> 
                        <tr>
                            <th>Issued Doc</th>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_issued_tab]', array('hr_issued_tab' => ''), array('title' => 'Issued Doc')); ?></td>
                        </tr>
                        <?php if ($model_module_training->grant_access == 1 && $model_module_training->isActive == 'Y') {?>
                        <tr>
                            <th>Training</th>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_training_tab]', array('hr_training_tab' => ''), array('title' => 'Training Detail')); ?></td>
                        </tr>
                        <?php }?>
                        <tr>
                            <th>Notes</th>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_notes_tab]', array('hr_notes_tab' => ''), array('title' => 'Notes')); ?></td>
                        </tr> 
                        <tr>
                            <th>Level</th>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_level_tab]', array('hr_level_tab' => ''), array('title' => 'Notes')); ?></td>
                        </tr> 
                    </tbody>
                </table>
        <?php }?>
        </div>
        <div class="tab-pane" id="payroll_tab">
            <div class="table-responsive" style="min-height: .01%;height: 350px;overflow-y: scroll;">
                <table class="table table-hover table-bordered table-theme table-permission">
                    <thead>
                        <tr>
                            <th width="60%" class="text-right"><?php echo $form->checkBoxList($model, 'permissions[payroll_check_all]', array('payroll_check_all' => ''), array('data-label' => 'Check All', 'onclick' => ' $("#payroll_tab input:checkbox").prop("checked", $(this).prop("checked"));')); ?> Select all</th>
                            <th class="text-center">Add</th>
                            <th class="text-center">Edit</th>
                            <th class="text-center">View</th>
                            <th class="text-center">Delete/Roll Back</th>
                            <th class="text-center">Lock</th>
                            <th class="text-center">UnLock</th>
                            <th class="text-center">Print</th>     
                            <th class="text-center">Payment</th>     
                            <th class="text-center">Upload</th>
                            <th class="text-center">Download</th>
                            <th class="text-center">Post</th>
                            <th class="text-center">Unpost</th>
                            <th class="text-center">Approve</th>
                            <th class="text-center">Direct Approval(Special Privilege)</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php 
                        if (($model_module_payroll->grant_access == 1 && $model_module_payroll->isActive == 'Y') ||
                         ($model_module_salary_advance->grant_access == 1 && $model_module_salary_advance->isActive == 'Y')||
                      ($model_module_loan->grant_access == 1 && $model_module_loan->isActive == 'Y')||
                                ($model_module_eos->grant_access == 1 && $model_module_eos->isActive == 'Y')||
                                ($model_module_leave_encashment->grant_access == 1 && $model_module_leave_encashment->isActive == 'Y')||
                                ($model_module_leave->grant_access == 1 && $model_module_leave->isActive == 'Y')||
                                ($model_module_expense->grant_access == 1 && $model_module_expense->isActive == 'Y')||
                                ($model_module_ticket_encashment->grant_access == 1 && $model_module_ticket_encashment->isActive == 'Y')) { ?>

                        <tr class="bg-danger">
                            <td width="60%" class="text-bold">Payments</td>
                            <td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_payroll_payments_add]', array('hr_payroll_payments_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td><td class="text-center"></td> <td class="text-center"></td><td class="text-center"></td>    
                            <td class="text-center"></td>
                        </tr>
                                <?php }
                                if ($model_module_payroll->grant_access == 1 && $model_module_payroll->isActive == 'Y') { ?>
                        <tr class="bg-danger">
                            <td width="60%" class="text-bold">Salary Calculation</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_salary_calculate]', array('hr_salary_calculate' => ''), array('title' => 'Calculate Salary')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_salary_edit]', array('hr_salary_edit' => ''), array('title' => 'Edit Salary')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_salary_view]', array('hr_salary_view' => ''), array('title' => 'View Salary')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_salary_rollback]', array('hr_salary_rollback' => ''), array('title' => 'Rollback Salary')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_salary_lock]', array('hr_salary_lock' => ''), array('title' => 'Lock Salary')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_salary_unlock]', array('hr_salary_unlock' => ''), array('title' => 'Unlock Salary')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td> <td class="text-center"></td> <td class="text-center"></td> <td class="text-center"></td> <td class="text-center"></td> <td class="text-center"></td>                          
                            <td class="text-center"></td>
                        </tr>
                        <tr class="bg-danger">
                            <td width="60%" class="text-bold">Uploaded Salary Component List</td>
                            <td class="text-center"></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_salary_component_view]', array('hr_salary_component_view' => ''), array('title' => 'View Salary Details')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_salary_component_delete]', array('hr_salary_component_delete' => ''), array('title' => 'Delete Salary Details')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"></td>
                            <td class="text-center"></td>
                            <td class="text-center"></td> 
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_salary_component_upload]', array('hr_salary_component_upload' => ''), array('title' => 'Upload Salary Details')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_salary_component_download]', array('hr_salary_component_download' => ''), array('title' => 'Download Salary Details')); ?></td>
                            <td class="text-center"></td> <td class="text-center"></td> <td class="text-center"></td>   
                            <td class="text-center"></td>
                        </tr>
                        <tr class="bg-danger">
                            <td width="60%" class="text-bold">Salary Payment</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_payroll_sif_file_add]', array('hr_payroll_sif_file_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_payroll_sif_file_delete]', array('hr_payroll_sif_file_delete' => ''), array('title' => 'Delete')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_payroll_sif_file_print]', array('hr_payroll_sif_file_print' => ''), array('title' => 'Print')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_payroll_sif_file_download]', array('hr_payroll_sif_file_download' => ''), array('title' => 'Download')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_payroll_sif_file_post]', array('hr_payroll_sif_file_post' => ''), array('title' => 'Post')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_payroll_sif_file_unpost]', array('hr_payroll_sif_file_unpost' => ''), array('title' => 'unpost')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"></td>
                        </tr>
                         <?php } ?>
                        <?php if ($model_module_salary_advance->grant_access == 1 && $model_module_salary_advance->isActive == 'Y') { ?>
                        <tr class="bg-danger">
                            <td width="60%" class="text-bold">Salary Advance</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_payroll_salary_advance_add]', array('hr_payroll_salary_advance_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_payroll_salary_advance_edit]', array('hr_payroll_salary_advance_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_payroll_salary_advance_view]', array('hr_payroll_salary_advance_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_payroll_salary_advance_delete]', array('hr_payroll_salary_advance_delete' => ''), array('title' => 'Delete')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td><td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_payroll_salary_advance_payment]', array('hr_payroll_salary_advance_payment' => ''), array('title' => 'Payment')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_payroll_salary_advance_download]', array('hr_payroll_salary_advance_download' => ''), array('title' => 'Download')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_payroll_salary_advance_approve]', array('hr_payroll_salary_advance_approve' => ''), array('title' => 'Approve')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_payroll_admin_salary_advance_details_approve]', array('hr_payroll_admin_salary_advance_details_approve' => ''), array('title' => 'Approve')); ?></td>
                        </tr>
                        <?php } ?>
                         <?php  if ($model_module_payroll->grant_access == 1 && $model_module_payroll->isActive == 'Y') { ?>
                        <tr class="bg-danger">
                            <td width="60%" class="text-bold">Salary Upload</td>
                            <td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_employee_salary_upload]', array('hr_employee_salary_upload' => ''), array('title' => 'View Salary Upload')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td>
                            <td class="text-center"></td>
                        </tr>
                        <tr class="bg-danger">
                            <td width="60%" class="text-bold">Salary Transfer File</td>
                            <td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td>
                            <td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_payroll_salary_transfer_file_download]', array('hr_payroll_salary_transfer_file_download' => ''), array('title' => 'Download Salary Transfer File')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"></td>
                            <td class="text-center"></td>
                            <td class="text-center"></td>
                        </tr>
                         <tr class="bg-danger">
                            <td width="60%" class="text-bold">Disable Pay Slip</td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_branch_salary_slip_view_edit]', array('hr_master_branch_salary_slip_view_edit' => ''), array('title' => 'Disable Branch Salary')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_salary_block_unblock]', array('hr_salary_block_unblock' => ''), array('title' => 'Enable/Disable Pay Slip View')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"></td>
                            <td class="text-center"></td><td class="text-center"></td> <td class="text-center"></td> <td class="text-center"></td> <td class="text-center"></td> <td class="text-center"></td> <td class="text-center"></td>                          
                            <td class="text-center"></td>
                        </tr>
                        <tr class="bg-danger">
                            <td width="60%" class="text-bold">Upload Overtime Sheet</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_overtime_sheet_add]', array('hr_overtime_sheet_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_upload_overtimesheet_edit]', array('hr_upload_overtimesheet_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_upload_overtimesheet_view]', array('hr_upload_overtimesheet_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_upload_overtimesheet_delete]', array('hr_upload_overtimesheet_delete' => ''), array('title' => 'Delete')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"></td>
                            <td class="text-center"></td>
                            <td class="text-center"></td><td class="text-center"></td> <td class="text-center"></td> <td class="text-center"></td> <td class="text-center"></td> <td class="text-center"></td> <td class="text-center"></td>                          
                        </tr>
                         <?php } ?>
                    </tbody>
                </table>
            </div>
        </div>
        <div class="tab-pane" id="payroll_checker_tab">
            <div class="table-responsive" style="min-height: .01%;height: 350px;overflow-y: scroll;">
                <table class="table table-hover table-bordered table-theme table-permission">
                    <thead>
                        <tr>
                            <th width="60%" class="text-right"><?php echo $form->checkBoxList($model, 'permissions[payroll_checker_check_all]', array('payroll_checker_check_all' => ''), array('data-label' => 'Check All', 'onclick' => ' $("#payroll_checker_tab input:checkbox").prop("checked", $(this).prop("checked"));')); ?> Select all</th>
                            <th class="text-center">View List</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>     
                            <td class="text-bold bg-warning"  style="padding-left: 20px;">Summary</td>     
                            <td class='text-center bg-warning'><?php echo $form->checkBoxList($model, 'permissions[payroll_checker_summary]', array('payroll_checker_summary' => ''), array('title' => 'Summary View')); ?></td>
                        </tr>
                        <tr>     
                            <td class="text-bold bg-warning"  style="padding-left: 20px;">Leave</td>     
                            <td class='text-center bg-warning'><?php echo $form->checkBoxList($model, 'permissions[payroll_checker_leave]', array('payroll_checker_leave' => ''), array('title' => 'Leave View')); ?></td>                        
                        </tr>
                        <tr>     
                            <td class="text-bold bg-warning"  style="padding-left: 20px;">Loan</td>     
                            <td class='text-center bg-warning'><?php echo $form->checkBoxList($model, 'permissions[payroll_checker_loan]', array('payroll_checker_loan' => ''), array('title' => 'Loan View')); ?></td>                        
                        </tr>
                        <tr>     
                            <td class="text-bold bg-warning"  style="padding-left: 20px;">Salary Advance</td>     
                            <td class='text-center bg-warning'><?php echo $form->checkBoxList($model, 'permissions[payroll_checker_salary_advance]', array('payroll_checker_salary_advance' => ''), array('title' => 'Salary Advance View')); ?></td>                        
                        </tr>
                        <tr>     
                            <td class="text-bold bg-warning"  style="padding-left: 20px;">Expense</td>     
                            <td class='text-center bg-warning'><?php echo $form->checkBoxList($model, 'permissions[payroll_checker_expense]', array('payroll_checker_expense' => ''), array('title' => 'Expense View')); ?></td>                        
                        </tr>
                        <tr>     
                            <td class="text-bold bg-warning"  style="padding-left: 20px;">Payments</td>     
                            <td class='text-center bg-warning'><?php echo $form->checkBoxList($model, 'permissions[payroll_checker_payments]', array('payroll_checker_payments' => ''), array('title' => 'Payments View')); ?></td>                        
                        </tr>
                        <tr>     
                            <td class="text-bold bg-warning"  style="padding-left: 20px;">Overtime</td>     
                            <td class='text-center bg-warning'><?php echo $form->checkBoxList($model, 'permissions[payroll_checker_overtime]', array('payroll_checker_overtime' => ''), array('title' => 'Overtime View')); ?></td>                        
                        </tr>
                        <tr>     
                            <td class="text-bold bg-warning"  style="padding-left: 20px;">MOL ID</td>     
                            <td class='text-center bg-warning'><?php echo $form->checkBoxList($model, 'permissions[payroll_checker_mol_id]', array('payroll_checker_mol_id' => ''), array('title' => 'MOL ID View')); ?></td>                        
                        </tr>
                        <tr>     
                            <td class="text-bold bg-warning"  style="padding-left: 20px;">IBAN</td>     
                            <td class='text-center bg-warning'><?php echo $form->checkBoxList($model, 'permissions[payroll_checker_iban]', array('payroll_checker_iban' => ''), array('title' => 'IBAN View')); ?></td>                        
                        </tr>
                        <tr>     
                            <td class="text-bold bg-warning"  style="padding-left: 20px;">Bank</td>     
                            <td class='text-center bg-warning'><?php echo $form->checkBoxList($model, 'permissions[payroll_checker_bank]', array('payroll_checker_bank' => ''), array('title' => 'Bank View')); ?></td>                        
                        </tr>
                        <tr>     
                            <td class="text-bold bg-warning"  style="padding-left: 20px;">WPS Entity</td>     
                            <td class='text-center bg-warning'><?php echo $form->checkBoxList($model, 'permissions[payroll_checker_wps]', array('payroll_checker_wps' => ''), array('title' => 'WPS Entity View')); ?></td>                        
                        </tr>
                        <tr>     
                            <td class="text-bold bg-warning"  style="padding-left: 20px;">Branch</td>     
                            <td class='text-center bg-warning'><?php echo $form->checkBoxList($model, 'permissions[payroll_checker_branch]', array('payroll_checker_branch' => ''), array('title' => 'Branch View')); ?></td>                        
                        </tr>
                        <tr>     
                            <td class="text-bold bg-warning"  style="padding-left: 20px;">Pension</td>     
                            <td class='text-center bg-warning'><?php echo $form->checkBoxList($model, 'permissions[payroll_checker_pension]', array('payroll_checker_pension' => ''), array('title' => 'Pension View')); ?></td>                        
                        </tr>
                        <tr>     
                            <td class="text-bold bg-warning"  style="padding-left: 20px;">Absent List</td>     
                            <td class='text-center bg-warning'><?php echo $form->checkBoxList($model, 'permissions[payroll_checker_absent_list]', array('payroll_checker_absent_list' => ''), array('title' => 'Absent List View')); ?></td>                        
                        </tr>
                        <tr>     
                            <td class="text-bold bg-warning"  style="padding-left: 20px;">Meeting / Flexitime</td>     
                            <td class='text-center bg-warning'><?php echo $form->checkBoxList($model, 'permissions[payroll_checker_flexitime_list]', array('payroll_checker_flexitime_list' => ''), array('title' => 'Meeting / Flexitime View')); ?></td>                        
                        </tr>
                        <tr>     
                            <td class="text-bold bg-warning"  style="padding-left: 20px;">Zero Salary</td>     
                            <td class='text-center bg-warning'><?php echo $form->checkBoxList($model, 'permissions[payroll_checker_zero_salary]', array('payroll_checker_zero_salary' => ''), array('title' => 'Zero Salary View')); ?></td>                        
                        </tr>
                        <tr>     
                            <td class="text-bold bg-warning"  style="padding-left: 20px;">Salary Component</td>     
                            <td class='text-center bg-warning'><?php echo $form->checkBoxList($model, 'permissions[payroll_checker_salary_comp]', array('payroll_checker_salary_comp' => ''), array('title' => 'Salary Component View')); ?></td>                        
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
        <div class="tab-pane" id="hrsettings_tab">
            <div class="table-responsive" style="min-height: .01%;height: 350px;overflow-y: scroll;">
                <table class="table table-hover table-bordered table-theme table-permission">
                    <thead>
                        <tr>
                            <th width="60%" class="text-right"><?php echo $form->checkBoxList($model, 'permissions[hrsettings_check_all]', array('hrsettings_check_all' => ''), array('title' => 'Check All', 'onclick' => ' $("#hrsettings_tab input:checkbox").prop("checked", $(this).prop("checked"));')); ?> Select all</th>
                            <th class="text-center">Add</th>
                            <th class="text-center">Edit</th>
                            <th class="text-center">Enable/Disable</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php if ($model_mail_settings->grant_access == 1 && $model_mail_settings->isActive == 'Y') { ?>
                        <tr class="bg-danger">
                            <td width="60%" class="text-bold">Mail Settings</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_mail_setting_add]', array('hr_mail_setting_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_mail_setting_edit]', array('hr_mail_setting_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_mail_setting_enable]', array('hr_mail_setting_enable' => ''), array('title' => 'Enable/Disable')); ?></td>
                        </tr>
                        <?php } ?>
                    </tbody>
                </table>
            </div>
        </div>
        <div class="tab-pane" id="others_tab">
            <div class="table-responsive" style="min-height: .01%;height: 550px;">
                <table class="table table-hover table-bordered table-theme table-permission">
                    <thead>
                        <tr>
                            <th width="60%" class="text-right"><?php echo $form->checkBoxList($model, 'permissions[others_check_all]', array('others_check_all' => ''), array('data-label' => 'Check All', 'onclick' => ' $("#others_tab input:checkbox").prop("checked", $(this).prop("checked"));')); ?> Select all</th>
                            <th class="text-center">Add</th>
                            <th class="text-center">Edit</th>
                            <th class="text-center">View</th>
                            <th class="text-center">Delete</th>
                            <th class="text-center">Upload</th>
                            <th class="text-center">Download</th>
                            <th class="text-center">Print</th>
                            <th class="text-center">Approve</th>
                            <th class="text-center">Verify</th>
                            <th class="text-center">Copy</th>
                            <th class="text-center">Direct Approval(Special Privilege)</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php if ($model_module_catalogue->grant_access == 1 && $model_module_catalogue->isActive == 'Y') { ?>
                        <tr class="bg-danger">     
                            <td width='60%' class='text-bold'>Catalogue</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_catalogue_add]', array('hr_catalogue_add' => ''), array('title' => 'Add')); ?></td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_catalogue_edit]', array('hr_catalogue_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class='text-center'></td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_catalogue_delete]', array('hr_catalogue_delete' => ''), array('title' => 'Delete')); ?></td>
                            <td class='text-center'></td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_catalogue_download]', array('hr_catalogue_download' => ''), array('title' => 'Download')); ?></td>
                            <td class='text-center'></td><td class='text-center'></td><td class='text-center'></td><td class='text-center'></td>
                            <td class='text-center'></td>
                        </tr>
                        <?php }
                        if ($model_module_circular->grant_access == 1 && $model_module_circular->isActive == 'Y') {?>
                        <tr class="bg-danger">
                            <td width="60%" class="text-bold">Circular</td><td colspan="11"></td>
                        </tr>
                        <tr class="bg-warning">     
                            <td width='60%' class='text-right'>Indoor Circular</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_payroll_indoor_circular_add]', array('hr_payroll_indoor_circular_add' => ''), array('title' => 'Add')); ?></td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_payroll_indoor_circular_edit]', array('hr_payroll_indoor_circular_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class='text-center'></td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_payroll_indoor_circular_delete]', array('hr_payroll_indoor_circular_delete' => ''), array('title' => 'Delete')); ?></td>
                            <td class='text-center'></td><td class='text-center'></td><td class='text-center'></td><td class='text-center'></td><td class='text-center'></td><td class='text-center'></td>
                             <td class='text-center'></td>
                        </tr>  
                        <tr class="bg-warning">     
                            <td width='60%' class='text-right'>Outdoor Circular</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_payroll_outdoor_circular_add]', array('hr_payroll_outdoor_circular_add' => ''), array('title' => 'Add')); ?></td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_payroll_outdoor_circular_edit]', array('hr_payroll_outdoor_circular_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class='text-center'></td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_payroll_outdoor_circular_delete]', array('hr_payroll_outdoor_circular_delete' => ''), array('title' => 'Delete')); ?></td>
                            <td class='text-center'></td><td class='text-center'></td><td class='text-center'></td><td class='text-center'></td><td class='text-center'></td><td class='text-center'></td>
                             <td class='text-center'></td>
                        </tr>
                        <?php
                        }
                        if ($model_module_expense->grant_access == 1 && $model_module_expense->isActive == 'Y') { ?>
                        <tr class="bg-danger">
                            <td width="60%" class="text-bold">Expense Submission</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_expense_request_add]', array('hr_emp_expense_request_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_expense_edit]', array('hr_emp_expense_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_expense_request_view]', array('hr_emp_expense_request_view' => ''), array('title' => 'View')); ?>
                            <?php echo $form->checkBoxList($model, 'permissions[hr_emp_expense_hierarchy_view]', array('hr_emp_expense_hierarchy_view' => ''), array('title' => 'Hierarchy View')); ?>
                            </td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_expense_delete]', array('hr_emp_expense_delete' => ''), array('title' => 'Delete')); ?></td>
                            <td class='text-center'></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_expense_request_download]', array('hr_emp_expense_request_download' => ''), array('title' => 'Download')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_expense_request_print]', array('hr_emp_expense_request_print' => ''), array('title' => 'Print')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_expense_request_approve]', array('hr_emp_expense_request_approve' => ''), array('title' => 'Approve')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_expense_request_verify]', array('hr_emp_expense_request_verify' => ''), array('title' => 'Verify By Accounts')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_expense_request_copy]', array('hr_emp_expense_request_copy' => ''), array('title' => 'Copy')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_expense_admin_details_approve]', array('hr_emp_expense_admin_details_approve' => ''), array('title' => 'Copy')); ?></td>
                             <td class='text-center'></td>
                        </tr>
                        <?php } 
                        if ($model_company_expense->grant_access == 1 && $model_company_expense->isActive == 'Y') { ?>
                        <tr class="bg-danger">
                            <td width="60%" class="text-bold">Employee Expense</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_expense_add]', array('hr_expense_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_expense_edit]', array('hr_expense_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_expense_delete]', array('hr_expense_delete' => ''), array('title' => 'Delete')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td><td class='text-center'></td><td class='text-center'></td><td class='text-center'></td><td class='text-center'></td>
                             <td class='text-center'></td>
                        </tr>
                        <?php } ?>
                        <?php if ($model_module_app->grant_access == 1 && $model_module_app->isActive == 'Y') {  ?>
                        <tr class="bg-danger">
                            <td width="60%" class="text-bold">Employee Device Details</td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_device_edit]', array('hr_master_device_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_device_disable]', array('hr_master_device_disable' => ''), array('title' => 'Clear')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td><td class='text-center'></td><td class='text-center'></td><td class='text-center'></td><td class='text-center'></td>
                             <td class='text-center'></td>
                        </tr>
                        <?php } 
                        if ($model_module_staffboard->grant_access == 1 && $model_module_staffboard->isActive == 'Y') {
                        ?>
                        <tr class="bg-danger">
                            <td width="60%" class="text-bold">Staff Board</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_employee_notification_add]', array('hr_employee_notification_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_employee_notification_edit]', array('hr_employee_notification_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_employee_notification_delete]', array('hr_employee_notification_delete' => ''), array('title' => 'Delete')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td><td class='text-center'></td><td class='text-center'></td><td class='text-center'></td><td class='text-center'></td>
                             <td class='text-center'></td>
                        </tr>
                        <?php } 
                        if($model_settings_calendar_->consider_sale_target == 'Y') { ?>
                        <tr class="bg-danger">
                            <td width="60%" class="text-bold">Incentive</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_incentive_add]', array('hr_incentive_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_incentive_edit]', array('hr_incentive_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_incentive_delete]', array('hr_incentive_delete' => ''), array('title' => 'Delete')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td><td class='text-center'></td><td class='text-center'></td><td class='text-center'></td><td class='text-center'></td>
                             <td class='text-center'></td>
                        </tr>
                        <?php }
                        if ($model_module_notes->grant_access == 1 && $model_module_notes->isActive == 'Y') {?>
                        <tr class="bg-danger">
                            <td width="60%" class="text-bold">Notes</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_notes_add]', array('hr_notes_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_notes_edit]', array('hr_notes_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_notes_view]', array('hr_notes_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_notes_delete]', array('hr_notes_delete' => ''), array('title' => 'Delete')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td><td class='text-center'></td><td class='text-center'></td><td class='text-center'></td><td class='text-center'></td>
                             <td class='text-center'></td>
                        </tr>
                        <?php }
                         if ($model_notice_conduct->grant_access == 1 && $model_notice_conduct->isActive == 'Y') {?>
                        <tr class="bg-danger">
                            <td width="60%" class="text-bold">Notice of Conduct</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_notice_conduct_add]', array('hr_notice_conduct_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_notice_conduct_edit]', array('hr_notice_conduct_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class='text-center'></td><td class='text-center'></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_notice_conduct_upload]', array('hr_notice_conduct_upload' => ''), array('title' => 'Upload')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_notice_conduct_download]', array('hr_notice_conduct_download' => ''), array('title' => 'Download')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_notice_conduct_print]', array('hr_notice_conduct_print' => ''), array('title' => 'Print')); ?></td>
                            <td class="text-center"></td><td class='text-center'></td><td class='text-center'></td>
                             <td class='text-center'></td>
                        </tr>
                         <?php }
                         if ($model_calender_notification->grant_access == 1 && $model_calender_notification->isActive == 'Y') {  ?>
                        <tr class="bg-danger">
                            <td width="60%" class="text-bold">Calendar Notification</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_notification_add]', array('hr_notification_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_notification_edit]', array('hr_notification_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_notification_delete]', array('hr_notification_delete' => ''), array('title' => 'Delete')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td><td class='text-center'></td><td class='text-center'></td><td class='text-center'></td><td class='text-center'></td>
                             <td class='text-center'></td>
                        </tr>
                         <?php }
                         if ($model_module_purchase->grant_access == 1 && $model_module_purchase->isActive == 'Y') { ?>
                        <tr class="bg-danger">
                            <td width="60%" class="text-bold">Purchase Request</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_product_purchase_add]', array('hr_emp_product_purchase_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_product_purchase_view]', array('hr_emp_product_purchase_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_product_purchase_cancel]', array('hr_emp_product_purchase_cancel' => ''), array('title' => 'Cancel')); ?></td>
                            <td class='text-center'></td><td class='text-center'></td><td class='text-center'></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_emp_product_purchase_approve]', array('hr_emp_product_purchase_approve' => ''), array('title' => 'Approve')); ?></td>
                            <td class='text-center'></td><td class='text-center'></td>
                             <td class='text-center'></td>
                        </tr>
                        <?php } 
                        if ($model_module_template->grant_access == 1 && $model_module_template->isActive == 'Y') { 
                        ?>
                        <tr class="bg-danger">
                            <td width="60%" class="text-bold">Templates</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_template_add]', array('hr_template_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_template_edit]', array('hr_template_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_template_delete]', array('hr_template_delete' => ''), array('title' => 'Delete')); ?></td>
                            <td class='text-center'></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_template_download]', array('hr_template_download' => ''), array('title' => 'Download')); ?></td>
                            <td class='text-center'></td><td class='text-center'></td><td class='text-center'></td><td class='text-center'></td>        
                             <td class='text-center'></td>
                        </tr>
                        <?php } ?>
<!--                        <tr class="bg-danger">
                            <td width="60%" class="text-bold">Brand Salary %</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_brandsalary_add]', array('hr_brandsalary_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_brandsalary_edit]', array('hr_brandsalary_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_brandsalary_view]', array('hr_brandsalary_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_brandsalary_delete]', array('hr_brandsalary_delete' => ''), array('title' => 'Delete')); ?>
                                <?php echo $form->checkBoxList($model, 'permissions[hr_brandsalary_item_delete]', array('hr_brandsalary_item_delete' => ''), array('title' => 'Item Delete')); ?>
                            </td>
                            <td class='text-center'></td><td class='text-center'></td><td class='text-center'></td><td class='text-center'></td><td class='text-center'></td>
                        </tr>-->
                        <?php if ($model_module_room->grant_access == 1 && $model_module_room->isActive == 'Y') { ?>
                        <tr class="bg-danger">
                            <td width="60%" class="text-bold">Room</td><td colspan="11"></td>
                        </tr>
                        <tr class="bg-warning">
                            <td width="60%" class="text-right">Room Setting</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_general_roomsetting_add]', array('hr_master_general_roomsetting_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_general_roomsetting_edit]', array('hr_master_general_roomsetting_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class='text-center'></td>
                            <td class='text-center'></td>
                             <td class='text-center'></td>
                        </tr>
                        <tr class="bg-warning">
                            <td width="60%" class="text-right">Bed Space</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_bedspace_add]', array('hr_bedspace_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_bedspace_edit]', array('hr_bedspace_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td>
                            <td class='text-center'></td><td class='text-center'></td>
                             <td class='text-center'></td>
                        </tr>
                        <tr class="bg-warning">
                            <td width="60%" class="text-right">Room Allocation</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_room_allocation_add]', array('hr_room_allocation_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_room_allocation_edit]', array('hr_room_allocation_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_room_allocation_delete]', array('hr_room_allocation_delete' => ''), array('title' => 'Delete')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class='text-center'></td><td class='text-center'></td>
                             <td class='text-center'></td>
                        </tr>
                        <?php } ?>
                    </tbody>
                </table>
            </div>
        </div>
        <div class="tab-pane" id="hrreports_tab">
            <div class="table-responsive" style="min-height: .01%;height: 600px;">
                <table class="table table-hover table-bordered table-theme table-permission">
                    <thead>
                        <tr>
                            <th width="60%" class="text-right"><?php echo $form->checkBoxList($model, 'permissions[hrreports_check_all]', array('hrreports_check_all' => ''), array('title' => 'Check All', 'onclick' => ' $("#hrreports_tab input:checkbox").prop("checked", $(this).prop("checked"));')); ?> Select all</th>
                            <th class="text-center">View</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php if (($model_module_attendance->grant_access == 1 && $model_module_attendance->isActive == 'Y') || ($model_module_flexitime->grant_access == 1 && $model_module_flexitime->isActive == 'Y')) { ?>
                        <tr class="bg-danger">     
                            <td width='60%' class='text-bold'>Attendance</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_other_report_attendance_menu]', array('hr_other_report_attendance_menu' => ''), array('title' => 'Attendance Report View')); ?></td>                           
                        </tr>
                        <?php if ($model_module_attendance->grant_access == 1 && $model_module_attendance->isActive == 'Y'){ ?>
                        <tr class="bg-warning">     
                            <td width='60%' style="padding-left: 45px;">Attendance List</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_other_att_attendance_list]', array('hr_other_att_attendance_list' => ''), array('title' => 'Attendance List')); ?></td>                           
                        </tr>
                        <tr class="bg-warning">     
                            <td width='60%' style="padding-left: 45px;">Datewise Attendance</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_other_att_datewise_attendance_list]', array('hr_other_att_datewise_attendance_list' => ''), array('title' => 'Datewise Attendance')); ?></td>                           
                        </tr>
                        <?php } if ($model_module_flexitime->grant_access == 1 && $model_module_flexitime->isActive == 'Y'){ ?>
                        <tr class="bg-warning">     
                            <td width='60%' style="padding-left: 45px;">Meeting / Flexi Time</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_report_business_meeting_details]', array('hr_emp_report_business_meeting_details' => ''), array('title' => 'Meeting / Flexi Time')); ?></td>                           
                        </tr>
                        <?php }?>
                        <?php if ($model_module_attendance->grant_access == 1 && $model_module_attendance->isActive == 'Y'){ ?>
                        <tr class="bg-warning">     
                            <td width='60%' style="padding-left: 45px;">Monthly Attendance List</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_other_att_monthly_attendance_list]', array('hr_other_att_monthly_attendance_list' => ''), array('title' => 'View')); ?></td>                           
                        </tr>
                        <tr class="bg-warning">     
                            <td width='60%' style="padding-left: 45px;">Overtime List</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_other_att_overtime_list]', array('hr_other_att_overtime_list' => ''), array('title' => 'View')); ?></td>                           
                        </tr>
                        <tr class="bg-warning">     
                            <td width='60%' style="padding-left: 45px;">Punch History List</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_report_punch_history_list]', array('hr_emp_report_punch_history_list' => ''), array('title' => 'Punch History List')); ?></td>                           
                        </tr>
                        <tr class="bg-warning">     
                                <td width='60%' style="padding-left: 45px;">No Punch List</td>     
                                <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_report_not_punch_list]', array('hr_emp_report_not_punch_list' => ''), array('title' => 'No Punch')); ?></td>                           
                        </tr>
                        <tr class="bg-warning">     
                            <td width='60%' style="padding-left: 45px;">Working Hours</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_other_att_wrk_hours]', array('hr_other_att_wrk_hours' => ''), array('title' => 'View')); ?></td>                           
                        </tr>
                        <?php } } ?>
                        <?php if (($model_module_appraisal->grant_access == 1 && $model_module_appraisal->isActive == 'Y')||
                                ($model_module_asset->grant_access == 1 && $model_module_asset->isActive == 'Y')||
                                ($model_module_employee->grant_access == 1 && $model_module_employee->isActive == 'Y')||
                                ($model_module_payroll->grant_access == 1 && $model_module_payroll->isActive == 'Y')||
                                ($model_module_eos->grant_access == 1 && $model_module_eos->isActive == 'Y')||
                                ($model_module_expense->grant_access == 1 && $model_module_expense->isActive == 'Y')||
                                ($model_module_loan->grant_access == 1 && $model_module_loan->isActive == 'Y')||
                                ($model_module_training->grant_access == 1 && $model_module_employee->isActive == 'Y')||
                                ($model_module_recruitment->grant_access == 1 && $model_module_recruitment->isActive == 'Y')||
                                ($model_module_purchase->grant_access == 1 && $model_module_purchase->isActive == 'Y')) { ?>  
                        <tr class="bg-danger">     
                            <td width='60%' class='text-bold'>Employee</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_report_menu]', array('hr_emp_report_menu' => ''), array('title' => 'Employee Report View')); ?></td>                           
                        </tr>
                                <?php } if ($model_module_appraisal->grant_access == 1 && $model_module_appraisal->isActive == 'Y') { ?>  
                        <tr class="bg-warning">     
                            <td width='60%' style="padding-left: 45px;">Appraisal List</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_report_emp_appraisal_list]', array('hr_emp_report_emp_appraisal_list' => ''), array('title' => 'Appraisal List')); ?></td>                           
                        </tr>
                        <tr class="bg-warning">     
                            <td width='60%' style="padding-left: 45px;">Appraisal Individual</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_report_emp_appraisal_list_individual]', array('hr_emp_report_emp_appraisal_list_individual' => ''), array('title' => 'Appraisal Individual')); ?></td>                           
                        </tr>
                        <?php } 
                        if ($model_module_asset->grant_access == 1 && $model_module_asset->isActive == 'Y') { ?>  
                        <tr class="bg-warning">     
                            <td width='60%' style="padding-left: 45px;">Asset List</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_report_emp_asset_list]', array('hr_emp_report_emp_asset_list' => ''), array('title' => 'Asset List')); ?></td>                           
                        </tr>
                        <?php } 
                        if ($model_module_employee->grant_access == 1 && $model_module_employee->isActive == 'Y') { ?>  
                         <tr class="bg-warning">     
                            <td width='60%' style="padding-left: 45px;">Approve Level Details</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_report_emp_level_list]', array('hr_emp_report_emp_level_list' => ''), array('title' => 'Approve Level Details')); ?></td>                           
                        </tr>
                        <?php }
                         if ($model_module_payroll->grant_access == 1 && $model_module_payroll->isActive == 'Y') { ?> 
                         <tr class="bg-warning">     
                            <td width='60%' style="padding-left: 45px;">Bank Details</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_report_emp_bank_details_list]', array('hr_emp_report_emp_bank_details_list' => ''), array('title' => 'Bank Details')); ?></td>                           
                        </tr>
                         <?php }
                         if ($model_module_employee->grant_access == 1 && $model_module_employee->isActive == 'Y') { ?> 
                        <tr class="bg-warning">     
                            <td width='60%' style="padding-left: 45px;">Blocked Employee List</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_report_blocked_emp_list]', array('hr_emp_report_blocked_emp_list' => ''), array('title' => 'Blocked Employee List')); ?></td>                           
                        </tr>
                        <tr class="bg-warning">     
                            <td width='60%' style="padding-left: 45px;">Branch Details</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_report_emp_branch_details]', array('hr_emp_report_emp_branch_details' => ''), array('title' => 'Branch Details')); ?></td>                           
                        </tr>
                        <tr class="bg-warning">     
                            <td width='60%' style="padding-left: 45px;">Consolidated List</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_report_emp_consolidate_list]', array('hr_emp_report_emp_consolidate_list' => ''), array('title' => 'Consolidated List')); ?></td>                           
                        </tr>
                        <tr class="bg-warning">     
                            <td width='60%' style="padding-left: 45px;">Department List</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_report_emp_dept_list]', array('hr_emp_report_emp_dept_list' => ''), array('title' => 'Department List')); ?></td>                           
                        </tr>
                        <tr class="bg-warning">     
                            <td width='60%' style="padding-left: 45px;">Department Hierarchy List</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_report_emp_dept_hierarchylist]', array('hr_emp_report_emp_dept_hierarchylist' => ''), array('title' => 'Department Hierarchy List')); ?></td>                           
                        </tr>
                        <tr class="bg-warning">     
                            <td width='60%' style="padding-left: 45px;">Designation List</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_report_emp_desgn_list]', array('hr_emp_report_emp_desgn_list' => ''), array('title' => 'Designation List')); ?></td>                           
                        </tr>
                        <tr class="bg-warning">     
                            <td width='60%' style="padding-left: 45px;">Document Details</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_report_emp_doc_details]', array('hr_emp_report_emp_doc_details' => ''), array('title' => 'Document Details')); ?></td>                           
                        </tr>
                        <tr class="bg-warning">     
                            <td width='60%' style="padding-left: 45px;">Document List</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_report_emp_doc_list]', array('hr_emp_report_emp_doc_list' => ''), array('title' => 'Document List')); ?></td>                           
                        </tr>
                        <tr class="bg-warning">     
                            <td width='60%' style="padding-left: 45px;">Employee List</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_report_emp_list]', array('hr_emp_report_emp_list' => ''), array('title' => 'Employee List')); ?></td>                           
                        </tr>
                        <tr class="bg-warning">     
                            <td width='60%' style="padding-left: 45px;">Employee Qualification List</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_report_emp_quali_list]', array('hr_emp_report_emp_quali_list' => ''), array('title' => 'Employee Qualification List')); ?></td>                           
                        </tr>
                        <tr class="bg-warning">     
                            <td width='60%' style="padding-left: 45px;">Employee Settings List</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_report_emp_settings_list]', array('hr_emp_report_emp_settings_list' => ''), array('title' => 'Employee Settings List')); ?></td>                           
                        </tr>
                        <?php }
                        if ($model_module_eos->grant_access == 1 && $model_module_eos->isActive == 'Y') {?>
                        <tr class="bg-warning">     
                            <td width='60%' style="padding-left: 45px;">End Of Service</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_report_emp_eos]', array('hr_emp_report_emp_eos' => ''), array('title' => 'End Of Service')); ?></td>                           
                        </tr>
                        <tr class="bg-warning">     
                            <td width='60%' style="padding-left: 45px;">EOS Clearance</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_report_emp_eos_clearance]', array('hr_emp_report_emp_eos_clearance' => ''), array('title' => 'EOS Clearance')); ?></td>                           
                        </tr>
                         <?php } ?>
                        <?php if($model_module_expense->grant_access == 1 && $model_module_expense->isActive == 'Y') { ?>
                        <tr class="bg-warning">     
                            <td width='60%' style="padding-left: 45px;">Expense</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_report_expense]', array('hr_emp_report_expense' => ''), array('title' => 'Expense')); ?></td>                           
                        </tr>
                        <?php }
                        if ($model_module_employee->grant_access == 1 && $model_module_employee->isActive == 'Y') { ?> 
                        <tr class="bg-warning">     
                            <td width='60%' style="padding-left: 45px;">Expired Document List</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_report_emp_exp_doc_list]', array('hr_emp_report_emp_exp_doc_list' => ''), array('title' => 'Expired Document List')); ?></td>                           
                        </tr>
                         <tr class="bg-warning">     
                            <td width='60%' style="padding-left: 45px;">Hierarchy List</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_report_hierarchy]', array('hr_emp_report_hierarchy' => ''), array('title' => 'Hierarchy List')); ?></td>                           
                        </tr>
                        <tr class="bg-warning">     
                            <td width='60%' style="padding-left: 45px;">In-Out Document List</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_other_com_inout_documnt]', array('hr_other_com_inout_documnt' => ''), array('title' => 'In-Out Document List')); ?></td>                           
                        </tr>
                        <?php }
                            if ($model_module_loan->grant_access == 1 && $model_module_loan->isActive == 'Y') {
                        ?>
                        <tr class="bg-warning">     
                            <td width='60%' style="padding-left: 45px;">Loan Details</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_report_emp_loan]', array('hr_emp_report_emp_loan' => ''), array('title' => 'Loan Details')); ?></td>                           
                        </tr>
                        <?php } 
                        if ($model_module_employee->grant_access == 1 && $model_module_employee->isActive == 'Y') { ?> 
                        <tr class="bg-warning">     
                            <td width='60%' style="padding-left: 45px;">New Hires List</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_report_emp_new_hire]', array('hr_emp_report_emp_new_hire' => ''), array('title' => 'New Hires List')); ?></td>                           
                        </tr>
                        <tr class="bg-warning">     
                            <td width='60%' style="padding-left: 45px;">Nominee/Dependant</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_report_emp_nominee_list]', array('hr_emp_report_emp_nominee_list' => ''), array('title' => 'Nominee/Dependant')); ?></td>                           
                        </tr>
                        <tr class="bg-warning">     
                            <td width='60%' style="padding-left: 45px;">Probationary List</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_report_emp_probationary]', array('hr_emp_report_emp_probationary' => ''), array('title' => 'Probationary List')); ?></td>                           
                        </tr>
                        <?php }
                        if ($model_module_purchase->grant_access == 1 && $model_module_purchase->isActive == 'Y') { ?>
                        <tr class="bg-warning">     
                            <td width='60%' style="padding-left: 45px;">Purchase</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_report_emp_purchase]', array('hr_emp_report_emp_purchase' => ''), array('title' => 'Purchase')); ?></td>                           
                        </tr>
                        <?php } if ($model_module_recruitment->grant_access == 1 && $model_module_recruitment->isActive == 'Y') {  ?>
                        <tr class="bg-warning">     
                            <td width='60%' style="padding-left: 45px;"> Recruitment</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_report_emp_recruitment]', array('hr_emp_report_emp_recruitment' => ''), array('title' => 'Recruitment')); ?></td>                           
                        </tr>
                        <?php } 
                        if ($model_module_resignation->grant_access == 1 && $model_module_resignation->isActive == 'Y') {  ?>
                        <tr class="bg-warning">     
                            <td width='60%' style="padding-left: 45px;"> Resignation</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_report_emp_resignation]', array('hr_emp_report_emp_resignation' => ''), array('title' => 'Resignation')); ?></td>                           
                        </tr>
                        <?php } 
                        if ($model_module_employee->grant_access == 1 && $model_module_employee->isActive == 'Y') { ?> 
                        <tr class="bg-warning">     
                            <td width='60%' style="padding-left: 45px;"> Team List</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_report_emp_team_list]', array('hr_emp_report_emp_team_list' => ''), array('title' => 'Team List')); ?></td>                           
                        </tr>
                        <?php }
                        
                        if ($model_module_training->grant_access == 1 && $model_module_employee->isActive == 'Y') { ?> 
                        <tr class="bg-warning">     
                            <td width='60%' style="padding-left: 45px;">Training</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_report_emp_training]', array('hr_emp_report_emp_training' => ''), array('title' => 'Training')); ?></td>                           
                        </tr>
                        <tr class="bg-warning">     
                            <td width='60%' style="padding-left: 45px;">Training Plan</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_report_training_plan]', array('hr_emp_report_training_plan' => ''), array('title' => 'Training Plan')); ?></td>                           
                        </tr>
                        <?php } ?>
                        <?php if ($model_module_employee->grant_access == 1 && $model_module_employee->isActive == 'Y') { ?>
                        <tr class="bg-warning">     
                            <td width='60%' style="padding-left: 45px;">Weekend List</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_report_weekend]', array('hr_emp_report_weekend' => ''), array('title' => 'Weekend List')); ?></td>                           
                        </tr>
                        <?php }?>
                         <?php if ($model_module_company->grant_access == 1 && $model_module_company->isActive == 'Y') { ?>
                        <tr class="bg-danger">     
                            <td width='60%' class='text-bold'>Company</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_other_report_company_menu]', array('hr_other_report_company_menu' => ''), array('title' => 'Company Report')); ?></td>                           
                        </tr>
                         <?php  } if ($model_module_employee->grant_access == 1 && $model_module_employee->isActive == 'Y') { ?>
                        <tr class="bg-warning">     
                            <td width='60%' style="padding-left: 45px;">Branch List</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_other_com_branch]', array('hr_other_com_branch' => ''), array('title' => 'Branch List')); ?></td>                           
                        </tr>
                        <tr class="bg-warning">     
                            <td width='60%' style="padding-left: 45px;">Document</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_company_doc_report]', array('hr_company_doc_report' => ''), array('title' => 'Document')); ?></td>                           
                        </tr>
                       <?php }?>
                         <?php  if ($model_module_payroll->grant_access == 1 && $model_module_payroll->isActive == 'Y') { ?>
                        <tr class="bg-danger">     
                            <td width='60%' class='text-bold'>Salary</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_other_report_salary_menu]', array('hr_other_report_salary_menu' => ''), array('title' => 'Salary')); ?></td>                           
                        </tr>
                        <tr class="bg-warning">     
                            <td width='60%' style="padding-left: 45px;">Employee Salary</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_report_emp_salary]', array('hr_emp_report_emp_salary' => ''), array('title' => 'Employee Salary')); ?></td>                           
                        </tr>
                         <?php }?>
                        <?php if ($model_module_salary_advance->grant_access == 1 && $model_module_salary_advance->isActive == 'Y') { ?>
                        <tr class="bg-warning">

                            <td width='60%' style="padding-left: 45px;">Salary Advance</td>

                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_other_sal_advance_list]', array('hr_other_sal_advance_list' => ''), array('title' => 'Salary Advance')); ?></td>

                        </tr>
                        <?php } ?>
                         <?php  if ($model_module_payroll->grant_access == 1 && $model_module_payroll->isActive == 'Y') { ?>
                        <tr class="bg-warning">     
                            <td width='80%' style="padding-left: 45px;">Salary- Before Locking</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_other_sal_befor_lock]', array('hr_other_sal_befor_lock' => ''), array('title' => 'Salary- Before Locking')); ?></td>                           
                        </tr>
                        <tr class="bg-warning">     
                            <td width='80%' style="padding-left: 45px;">Salary Increment List</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_other_sal_increment_list]', array('hr_other_sal_increment_list' => ''), array('title' => 'Salary Increment List')); ?></td>                           
                        </tr>
                        <tr class="bg-warning">     
                            <td width='80%' style="padding-left: 45px;">Salary Slip</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_other_sal_slip]', array('hr_other_sal_slip' => ''), array('title' => 'Salary Slip')); ?></td>                           
                        </tr>
                        <tr class="bg-warning">     
                            <td width='80%' style="padding-left: 45px;">Salary Statement</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_monthly_report]', array('hr_master_monthly_report' => ''), array('title' => 'Salary Statement')); ?></td>                           
                        </tr>
                         <?php } ?>
<!--                        <tr>     
                            <td width='80%' style="padding-left: 45px;">Gross Salary</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_other_sal_yearly]', array('hr_other_sal_yearly' => ''), array('title' => 'Gross Salary')); ?></td>                           
                        </tr>
                        <tr>     
                            <td width='80%' style="padding-left: 45px;">Master Salary Details</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_salary_details]', array('hr_master_salary_details' => ''), array('title' => 'Master Salary Details')); ?></td>                           
                        </tr>-->
                        <?php if (($model_module_leave->grant_access == 1 && $model_module_leave->isActive == 'Y')||($model_module_leave_encashment->grant_access == 1 && $model_module_leave_encashment->isActive == 'Y')) {  ?>
                        <tr class="bg-danger">     
                            <td width='60%' class='text-bold'>Leave</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_other_report_leave_menu]', array('hr_other_report_leave_menu' => ''), array('title' => 'Leave Report')); ?></td>                           
                        </tr>
                        <?php }
                        if ($model_module_leave->grant_access == 1 && $model_module_leave->isActive == 'Y') {  ?>
                        <tr class="bg-warning">     
                            <td width='80%' style="padding-left: 45px;">Leave Addition/Deduction</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_other_leave_add_ded]', array('hr_other_leave_add_ded' => ''), array('title' => 'Leave Addition/Deduction')); ?></td>                           
                        </tr>
                        <tr class="bg-warning">     
                            <td width='60%' style="padding-left: 45px;">Leave Balance</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_other_leave_balance]', array('hr_other_leave_balance' => ''), array('title' => 'Leave Balance')); ?></td>                           
                        </tr>
                        <?php } 
                         if ($model_module_leave_encashment->grant_access == 1 && $model_module_leave_encashment->isActive == 'Y') {  ?> 
                        <tr class="bg-warning">     
                            <td width='60%' style="padding-left: 45px;">Leave Encashment</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_leave_encashment_report]', array('hr_leave_encashment_report' => ''), array('title' => 'Leave Encashment')); ?></td>                           
                        </tr>
                         <?php }  if ($model_module_leave->grant_access == 1 && $model_module_leave->isActive == 'Y') {  ?>
                        <tr class="bg-warning">     
                            <td width='60%' style="padding-left: 45px;">Leave List</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_other_leave_emp_leave_list]', array('hr_other_leave_emp_leave_list' => ''), array('title' => 'Leave List')); ?></td>                           
                        </tr>
                        <tr class="bg-warning">     
                            <td width='60%' style="padding-left: 45px;">Yearly Leave Ledger</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_leave_ledger_report]', array('hr_leave_ledger_report' => ''), array('title' => 'Yearly Leave Ledger')); ?></td>                           
                        </tr>
                        <tr class="bg-warning">     
                            <td width='60%' style="padding-left: 45px;">Yearly Leave Report</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_other_leave_yearly_report]', array('hr_other_leave_yearly_report' => ''), array('title' => 'Yearly Leave Report')); ?></td>                           
                        </tr>
                         <?php } ?>
                        <?php if ($model_module_ticket->grant_access == 1 && $model_module_ticket->isActive == 'Y') { ?>
                        <tr class="bg-danger">     
                            <td width='60%' class='text-bold'>Ticket</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_other_report_ticket_menu]', array('hr_other_report_ticket_menu' => ''), array('title' => 'Ticket Report')); ?></td>                           
                        </tr>
                        <tr class="bg-warning">     
                            <td width='60%' style="padding-left: 45px;">Employee Ticket</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_report_emp_tkt]', array('hr_emp_report_emp_tkt' => ''), array('title' => 'Employee Ticket')); ?></td>                           
                        </tr>
                        <tr class="bg-warning">     
                            <td width='60%' style="padding-left: 45px;">Ticket Ledger</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_report_ledger]', array('hr_emp_report_ledger' => ''), array('title' => 'Ticket Ledger')); ?></td>                           
                        </tr>
                        <tr class="bg-warning">     
                            <td width='60%' style="padding-left: 45px;">Ticket Encashment</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_report_emp_encash]', array('hr_emp_report_emp_encash' => ''), array('title' => 'Ticket Encashment')); ?></td>                           
                        </tr>
                        <tr class="bg-warning">     
                            <td width='60%' style="padding-left: 45px;">Ticket Entitlement</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_emp_report_entitlement]', array('hr_emp_report_entitlement' => ''), array('title' => 'Ticket Entitlement')); ?></td>                           
                        </tr>
                        <?php } ?>
                    </tbody>
                </table>
            </div>
        </div>
        <div class="tab-pane" id="hrmasters_tab">
            <div class="table-responsive" style="min-height: .01%;height: 650px;">
                <table class="table table-hover table-bordered table-theme table-permission">
                    <thead>
                        <tr>
                            <th width="60%" class="text-right"><?php echo $form->checkBoxList($model, 'permissions[hrmasters_check_all]', array('hrmasters_check_all' => ''), array('title' => 'Check All', 'onclick' => ' $("#hrmasters_tab input:checkbox").prop("checked", $(this).prop("checked"));')); ?> Select all</th>
                            <th class="text-center">Add</th>
                            <th class="text-center">Edit</th>
                            <th class="text-center">View</th>                            
                            <th class="text-center">Disable/Enable</th>
                            <th class="text-center">Upload</th>
                            <th class="text-center">Download</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php if (($model_module_appraisal->grant_access == 1 && $model_module_appraisal->isActive == 'Y')||
                                ($model_module_company->grant_access == 1 && $model_module_company->isActive == 'Y') ||
                                ($model_module_employee->grant_access == 1 && $model_module_employee->isActive == 'Y')||
				($model_module_expense->grant_access == 1 && $model_module_expense->isActive == 'Y')||
                                ($model_module_purchase->grant_access == 1 && $model_module_purchase->isActive == 'Y')||
                                ($model_module_recruitment->grant_access == 1 && $model_module_recruitment->isActive == 'Y')||
                                ($model_module_training->grant_access == 1 && $model_module_training->isActive == 'Y')){ ?>  
                        <tr class="bg-success">
                            <td width="60%" class="text-bold">GENERAL</td><td colspan="6"></td>
                        </tr>
                                <?php } if ($model_module_appraisal->grant_access == 1 && $model_module_appraisal->isActive == 'Y') { ?>  
                        <tr class="bg-danger">
                            <td width="60%" class="text-bold" style="padding-left: 45px;">Appraisal</td><td colspan="6"></td>
                        </tr>
                        <tr class="bg-warning">     
                            <td width='60%' class='text-right'>Appraisal Department</td>                               
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_appraisal_department_add]', array('hr_master_appraisal_department_add' => ''), array('title' => 'Add')); ?></td>                           
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_appraisal_department_edit]', array('hr_master_appraisal_department_edit' => ''), array('title' => 'Edit')); ?></td>       
                            <td class="text-center"></td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_appraisal_department_disable]', array('hr_master_appraisal_department_disable' => ''), array('title' => 'Disable')); ?></td>                           
                            <td class="text-center"></td><td class="text-center"></td>
                        </tr>
                        <tr class="bg-warning">     
                            <td width='60%' class='text-right'>Appraisal Type</td>                               
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_appraisaltype_add]', array('hr_master_appraisaltype_add' => ''), array('title' => 'Add')); ?></td>                           
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_appraisaltype_edit]', array('hr_master_appraisaltype_edit' => ''), array('title' => 'Edit')); ?>
                                <?php echo $form->checkBoxList($model, 'permissions[hr_master_appraisal_weightage_edit]', array('hr_master_appraisal_weightage_edit' => ''), array('title' => 'Add/Edit Weightage')); ?></td>       
                            <td class="text-center"></td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_appraisaltype_disable]', array('hr_master_appraisaltype_disable' => ''), array('title' => 'Disable')); ?></td>                           
                            <td class="text-center"></td><td class="text-center"></td>
                        </tr>
                        <tr class="bg-warning">     
                            <td width='60%' class='text-right'>Appraisal Question</td>                               
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_questions_add]', array('hr_master_questions_add' => ''), array('title' => 'Add')); ?></td>                           
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_questions_edit]', array('hr_master_appraisaltype_edit' => ''), array('title' => 'Edit')); ?></td>       
                            <td class="text-center"></td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_questions_disable]', array('hr_master_questions_disable' => ''), array('title' => 'Disable')); ?></td>                           
                            <td class="text-center"></td><td class="text-center"></td>
                        </tr>
                        <?php } ?>
                        <?php  
                        if ($model_module_employee->grant_access == 1 && $model_module_employee->isActive == 'Y') { ?> 
                        <tr class="bg-danger">
                            <td width="60%" class="text-bold" style="padding-left: 45px;"> Approval Scheme</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_scheme_level_add]',array('hr_master_scheme_level_add'=>''),array('title'=>'Approval Scheme Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_scheme_level_edit]',array('hr_master_scheme_level_edit'=>''),array('title'=>'Approval Scheme Edit')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_scheme_level_disable]',array('hr_master_scheme_level_disable'=>''),array('title'=>'Approval Scheme Disable')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td>
			</tr>
                        <?php  }
                        if ($model_module_company->grant_access == 1 && $model_module_company->isActive == 'Y') { ?>
                        <tr class="bg-danger">
                            <td width="60%" class="text-bold" style="padding-left: 45px;"> Color Scheme</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_calendar_color_add]',array('hr_master_calendar_color_add'=>''),array('title'=>'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_calendar_color_edit]',array('hr_master_calendar_color_edit'=>''),array('title'=>'Edit')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"></td>
                            <td class="text-center"></td><td class="text-center"></td>
			</tr>
                        
                        <?php } 
                        if ($model_module_employee->grant_access == 1 && $model_module_employee->isActive == 'Y') { ?> 
                        <tr class="bg-danger">
                            <td width="60%" class="text-bold" style="padding-left: 45px;"> Country</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_country_add]',array('hr_master_country_add'=>''),array('title'=>'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_country_edit]',array('hr_master_country_edit'=>''),array('title'=>'Edit')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_country_disable]',array('hr_master_country_disable'=>''),array('title'=>'Disable')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td>
			</tr>
                        <tr class="bg-danger">     
                            <td width='60%' class="text-bold" style="padding-left: 45px;">Department</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_general_depatmnt_add]', array('hr_master_general_depatmnt_add' => ''), array('title' => 'Add')); ?></td>                           
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_general_depatmnt_edit]', array('hr_master_general_depatmnt_edit' => ''), array('title' => 'Edit')); ?></td>   
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_general_depatmnt_disable]', array('hr_master_general_depatmnt_disable' => ''), array('title' => 'Disable')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_general_departmnt_upload]', array('hr_master_general_departmnt_upload' => ''), array('title' => 'Upload')); ?></td>
                            <td class="text-center"></td>
                        </tr>
                        <tr class="bg-danger">     
                            <td width='60%' class="text-bold" style="padding-left: 45px;">Designation</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_general_desgn_add]', array('hr_master_general_desgn_add' => ''), array('title' => 'Add')); ?></td>                           
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_general_desgn_edit]', array('hr_master_general_desgn_edit' => ''), array('title' => 'Edit')); ?></td>   
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_general_desgn_disable]', array('hr_master_general_desgn_disable' => ''), array('title' => 'Disable')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_general_desgn_upload]', array('hr_master_general_desgn_upload' => ''), array('title' => 'Upload')); ?></td>
                            <td class="text-center"></td>
                        </tr>
                        <tr class="bg-danger">

                            <td width='60%' class='text-bold' style="padding-left: 45px;">Grade</td>

                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_grade_add]', array('hr_master_grade_add' => ''), array('title' => 'Add')); ?></td>

                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_grade_edit]', array('hr_master_grade_edit' => ''), array('title' => 'Edit')); ?></td>

                            <td class='text-center'></td>

                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_grade_disable]', array('hr_master_grade_disable' => ''), array('title' => 'Disable')); ?></td>

                            <td class='text-center'></td>
                            <td class="text-center"></td>

                        </tr>

                        <tr class="bg-danger">     
                            <td width='60%' class="text-bold" style="padding-left: 45px;">Holiday</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_general_holiday_add]', array('hr_master_general_holiday_add' => ''), array('title' => 'Add')); ?></td>                           
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_general_holiday_edit]', array('hr_master_general_holiday_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"></td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_general_holiday_disable]', array('hr_master_general_holiday_disable' => ''), array('title' => 'Disable')); ?></td>                           
                            <td class="text-center"></td><td class="text-center"></td>
                        </tr>
                        <?php }
                        if ($model_module_expense->grant_access == 1 && $model_module_expense->isActive == 'Y') { ?>
                         <tr class="bg-danger">     
                            <td width='60%' class="text-bold" style="padding-left: 45px;">Employee Expense Component</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_employeeexpense_add]', array('hr_master_employeeexpense_add' => ''), array('title' => 'Add')); ?></td>                           
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_employeeexpense_edit]', array('hr_master_employeeexpense_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"></td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_employeeexpense_disable]', array('hr_master_employeeexpense_disable' => ''), array('title' => 'Disable')); ?></td>                           
                            <td class="text-center"></td><td class="text-center"></td>
                        </tr>
                        <?php } ?>
                        <?php if ($model_module_employee->grant_access == 1 && $model_module_employee->isActive == 'Y') { ?> 
                        <tr class="bg-danger">     
                            <td width='60%' class="text-bold" style="padding-left: 45px;">Employee Employee Panel</td>     
                            <td class='text-center'></td>                           
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_employee_panel_permission_edit]', array('hr_employee_panel_permission_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"></td>
                            <td class='text-center'></td>                           
                            <td class="text-center"></td><td class="text-center"></td>
                        </tr>
                        <?php } ?>
                        <?php if ($model_module_purchase->grant_access == 1 && $model_module_purchase->isActive == 'Y') { ?> 
                        <tr class="bg-danger">     
                            <td width='60%' class="text-bold" style="padding-left: 45px;">Product</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hrmasproduct_add]', array('hrmasproduct_add' => ''), array('title' => 'Add')); ?></td>                           
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hrmasproduct_edit]', array('hrmasproduct_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"></td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hrmasproduct_disable]', array('hrmasproduct_disable' => ''), array('title' => 'Disable')); ?></td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hrmasproduct_upload]', array('hrmasproduct_upload' => ''), array('title' => 'Upload')); ?></td>
                            <td class="text-center"></td>
                        </tr>
                        <?php }
                        if ($model_module_recruitment->grant_access == 1 && $model_module_recruitment->isActive == 'Y') { ?>
                        <tr class="bg-danger">
                            <td width="60%" class="text-bold" style="padding-left: 45px;">Recruitment</td><td colspan="6"></td>
                        </tr>
                        
                        <tr class="bg-warning">     
                            <td width='60%' class='text-right'>Department</td>                           
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_question_type_add]', array('hr_master_question_type_add' => ''), array('title' => 'Add')); ?></td>                           
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_question_type_edit]', array('hr_master_question_type_edit' => ''), array('title' => 'Edit')); ?></td> 
                            <td class='text-center'></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_question_type_disable]', array('hr_master_question_type_disable' => ''), array('title' => 'Disable')); ?></td>
                            <td class='text-center'></td><td class="text-center"></td>
                        </tr>
                        <tr class="bg-warning">     
                            <td width='50%' class='text-right'>Question</td>       
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_questions_add]', array('hr_master_questions_add' => ''), array('title' => 'Add')); ?></td>                           
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_questions_edit]', array('hr_master_questions_edit' => ''), array('title' => 'Edit')); ?></td> 
                            <td class='text-center'></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_questions_disable]', array('hr_master_questions_disable' => ''), array('title' => 'Disable')); ?></td>
                            <td class='text-center'></td><td class="text-center"></td>
                        </tr>
                        <?php }
                        if ($model_module_employee->grant_access == 1 && $model_module_employee->isActive == 'Y') { ?>
                         <tr class="bg-danger">     
                            <td width='60%' class="text-bold" style="padding-left: 45px;">Team Name</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_teamname_add]', array('hr_master_teamname_add' => ''), array('title' => 'Add')); ?></td>                           
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_teamname_edit]', array('hr_master_teamname_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"></td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_teamname_disable]', array('hr_master_teamname_disable' => ''), array('title' => 'Disable')); ?></td>
                            <td class='text-center'></td>
                            <td class="text-center"></td>
                        </tr>
                        <?php } ?>
                        <?php if ($model_module_training->grant_access == 1 && $model_module_training->isActive == 'Y') { ?>
                        <tr class="bg-danger">     
                            <td width='60%' class='text-bold' style="padding-left: 45px;">Course</td>                                                     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_course_add]', array('hr_master_course_add' => ''), array('title' => 'Add')); ?></td>                           
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_course_edit]', array('hr_master_course_edit' => ''), array('title' => 'Edit')); ?></td>  
                            <td class='text-center'></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_course_disable]', array('hr_master_course_disable' => ''), array('title' => 'Disable')); ?></td>
                            <td class='text-center'></td><td class="text-center"></td>
                        </tr>
                        <?php } ?>
                         <?php if (($model_module_payroll->grant_access == 1 && $model_module_payroll->isActive == 'Y')||
                                 ($model_company_expense->grant_access == 1 && $model_company_expense->isActive == 'Y') ||
                                 ($model_module_eos->grant_access == 1 && $model_module_eos->isActive == 'Y')) { ?>
                        
                        <tr class="bg-success">
                            <td width="60%" class="text-bold">FINANCE</td><td colspan="6"></td>
                        </tr>
                            <?php }
                            if ($model_module_payroll->grant_access == 1 && $model_module_payroll->isActive == 'Y') { ?>
                        <tr class="bg-danger">
                            <td width="60%" class="text-bold"> Bank</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_bank_add]',array('hr_bank_add'=>''),array('title'=>'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_bank_edit]',array('hr_bank_edit'=>''),array('title'=>'Edit')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_bank_disable]',array('hr_bank_disable'=>''),array('title'=>'Disable')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td>
			</tr>
                        <tr>
                            <td width="60%" class="text-bold"> Currency</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_currency_add]',array('hr_currency_add'=>''),array('title'=>'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_currency_edit]',array('hr_currency_edit'=>''),array('title'=>'Edit')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_currency_disable]',array('hr_currency_disable'=>''),array('title'=>'Disable')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td>
			</tr>
                         
                        <tr class="bg-danger">
                            <td width="60%" class="text-bold" style="padding-left: 45px;">Salary</td><td colspan="6"></td>
                        </tr>
                        <tr class="bg-warning">     
                            <td width='60%' class='text-right'>Salary Type</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_sal_type_add]', array('hr_master_sal_type_add' => ''), array('title' => 'Add')); ?></td>                           
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_sal_type_edit]', array('hr_master_sal_type_edit' => ''), array('title' => 'Edit')); ?></td>   
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_sal_type_disable]', array('hr_master_sal_type_disable' => ''), array('title' => 'Disable')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td>
                        </tr>
                        <tr class="bg-warning">     
                            <td width='60%' class='text-right'>Salary Lock Month</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_sal_lockmonth_add]', array('hr_master_sal_lockmonth_add' => ''), array('title' => 'Add')); ?></td>                           
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_sal_lockmonth_edit]', array('hr_master_sal_lockmonth_edit' => ''), array('title' => 'Edit')); ?></td>  
                            <td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td>
                        </tr>
                        <tr class="bg-warning">     
                            <td width='60%' class='text-right'>Salary Date Settings</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_sal_datesetting_add]', array('hr_master_sal_datesetting_add' => ''), array('title' => 'Add')); ?></td>                           
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_sal_datesetting_edit]', array('hr_master_sal_datesetting_edit' => ''), array('title' => 'Edit')); ?></td>                           
                            <td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td>
                        </tr>
                         <?php }
                            if ($model_company_expense->grant_access == 1 && $model_company_expense->isActive == 'Y') {
                         ?>
                        <tr class="bg-danger">     
                            <td width='60%' class='text-bold'>Expense</td>                                                    
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_expense_add]', array('hr_master_expense_add' => ''), array('title' => 'Add')); ?></td>                           
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_expense_edit]', array('hr_master_expense_edit' => ''), array('title' => 'Edit')); ?></td>       
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_expense_disable]', array('hr_master_expense_disable' => ''), array('title' => 'Disable')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td>
                        </tr>
                         <?php 
                         }
                         if ($model_module_eos->grant_access == 1 && $model_module_eos->isActive == 'Y') {?>
                        <tr class="bg-danger">
                            <td width="60%" class="text-bold" style="padding-left: 45px;">EOS</td><td colspan="6"></td>
                        </tr>
                        <tr class="bg-warning">     
                            <td width='60%' class='text-right'>Clearance</td>                           
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_eos_clearance_add]', array('hr_master_eos_clearance_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_eos_clearance_edit]', array('hr_master_eos_clearance_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_eos_clearance_disable]', array('hr_master_eos_clearance_disable' => ''), array('title' => 'Disable')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td>
                        </tr>
                        <tr class="bg-warning">     
                            <td width='60%' class='text-right'>Gratuity</td>                         
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_eos_gratuity_add]', array('hr_master_eos_gratuity_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_eos_gratuity_edit]', array('hr_master_eos_gratuity_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_eos_gratuity_view]', array('hr_master_eos_gratuity_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_eos_gratuity_disable]', array('hr_master_eos_gratuity_disable' => ''), array('title' => 'Disable')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td>
                        </tr>
                        <tr class="bg-warning">     
                            <td width='50%' class='text-right'>Payment Term</td>                             
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_eos_payment_add]', array('hr_master_eos_payment_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_eos_payment_edit]', array('hr_master_eos_payment_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_eos_payment_disable]', array('hr_master_eos_payment_disable' => ''), array('title' => 'Disable')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td>
                        </tr>
                         <?php }?>
                        <?php if (($model_module_company->grant_access == 1 && $model_module_company->isActive == 'Y')||
                                ($model_module_employee->grant_access == 1 && $model_module_employee->isActive == 'Y')||
                                ($model_module_doc_request->grant_access == 1 && $model_module_doc_request->isActive == 'Y')){ ?>
                        <tr class="bg-success">
                            <td width="60%" class="text-bold">CONTRACTS</td><td colspan="6"></td>
                        </tr>
                        <?php }
                        if (($model_module_company->grant_access == 1 && $model_module_company->isActive == 'Y')||
                                ($model_module_doc_request->grant_access == 1 && $model_module_doc_request->isActive == 'Y')){ ?>
                        <tr class="bg-danger">
                            <td width="60%" class="text-bold" style="padding-left: 45px;">Document</td><td colspan="6"></td>
                        </tr>
                          <?php } if ($model_module_company->grant_access == 1 && $model_module_company->isActive == 'Y') { ?>
                        <tr class="bg-warning">     
                            <td width='60%' class='text-right'>Company Document</td>                              
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_company_doc_add]', array('hr_master_company_doc_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_company_doc_download]', array('hr_master_company_doc_download' => ''), array('title' => 'Download')); ?></td>
                        </tr>
                        <?php } if ($model_module_employee->grant_access == 1 && $model_module_employee->isActive == 'Y') { ?>
                            <tr class="bg-warning">     
                                <td width='60%' class='text-right'>Document Type</td>                             
                                <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_doc_type_add]', array('hr_master_doc_type_add' => ''), array('title' => 'Add')); ?></td>
                                <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_doc_type_edit]', array('hr_master_doc_type_edit' => ''), array('title' => 'Edit')); ?></td>
                                <td class="text-center"></td>
                                <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_doc_type_disable]', array('hr_master_doc_type_disable' => ''), array('title' => 'Disable')); ?></td>
                                <td class="text-center"></td><td class="text-center"></td>
                            </tr>
                            <tr class="bg-warning">     
                                <td width='60%' class='text-right'>Document Expiry</td>                                
                                <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_doc_expiry_add]', array('hr_master_doc_expiry_add' => ''), array('title' => 'Add')); ?></td>                           
                                <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_doc_expiry_edit]', array('hr_master_doc_expiry_edit' => ''), array('title' => 'Edit')); ?></td>      
                                <td class="text-center"></td>
                                <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_doc_expiry_delete]', array('hr_master_doc_expiry_delete' => ''), array('title' => 'Delete')); ?></td>
                                <td class="text-center"></td><td class="text-center"></td>
                            </tr>
                            <tr class="bg-warning">     
                                <td width='60%' class='text-right'>In-Out Document</td>                              
                                <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_inout_doc_add]', array('hr_master_inout_doc_add' => ''), array('title' => 'Add')); ?></td>                           
                                <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_inout_doc_edit]', array('hr_master_inout_doc_edit' => ''), array('title' => 'Edit')); ?></td>  
                                <td class="text-center"></td>
                                <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_inout_doc_disable]', array('hr_master_inout_doc_disable' => ''), array('title' => 'Disable')); ?></td>                           
                                <td class="text-center"></td><td class="text-center"></td>
                            </tr>
                         <?php } ?>
                        <?php  if ($model_module_doc_request->grant_access == 1 && $model_module_doc_request->isActive == 'Y') { ?>    
                        <tr class="bg-danger">     
                            <td width='60%' style="padding-left: 45px;" class="text-bold">Certificate</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_general_certificate_add]', array('hr_master_general_certificate_add' => ''), array('title' => 'Add')); ?></td>                           
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_general_certificate_edit]', array('hr_master_general_certificate_edit' => ''), array('title' => 'Edit')); ?></td>                           
                            <td class="text-center"></td> 
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_general_certificate_inactive]', array('hr_master_general_certificate_inactive' => ''), array('title' => 'Inactive')); ?></td>                           
                            <td class="text-center"></td><td class="text-center"></td>
                        </tr>
                        <?php } ?>
                        <?php  if ($model_module_employee->grant_access == 1 && $model_module_employee->isActive == 'Y') { ?>
                        <tr class="bg-danger">     
                            <td width='60%' class='text-bold' style="padding-left: 45px;">Job Contract</td>                                                          
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_jobcontract_add]', array('hr_master_jobcontract_add' => ''), array('title' => 'Add')); ?></td>                           
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_jobcontract_edit]', array('hr_master_jobcontract_edit' => ''), array('title' => 'Edit')); ?></td>  
                            <td class="text-center"></td> 
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_jobcontract_disable]', array('hr_master_jobcontract_disable' => ''), array('title' => 'Disable')); ?></td>
                            <td class="text-center"></td> <td class="text-center"></td> 
                        </tr> 
                        <?php }?>
                        <?php  if (($model_module_asset->grant_access == 1 && $model_module_asset->isActive == 'Y')||
                                    ($model_module_employee->grant_access == 1 && $model_module_employee->isActive == 'Y')||
                                    ($model_module_app->grant_access == 1 && $model_module_app->isActive == 'Y')||
                                    ($model_module_leave->grant_access == 1 && $model_module_leave->isActive == 'Y')||
                                    ($model_module_attendance->grant_access == 1 && $model_module_attendance->isActive == 'Y')||
                                    ($model_module_eos->grant_access == 1 && $model_module_eos->isActive == 'Y')||
                                    ($model_module_payroll->grant_access == 1 && $model_module_payroll->isActive == 'Y')||
                                    ($model_module_doc_request->grant_access == 1 && $model_module_doc_request->isActive == 'Y')){  ?>
                      
                        <tr class="bg-success">
                            <td width="60%" class="text-bold">SETTINGS</td><td colspan="6"></td>
                        </tr>
                         <?php } if ($model_module_asset->grant_access == 1 && $model_module_asset->isActive == 'Y') {  ?>
                        <tr class="bg-danger">     
                            <td width='50%' class='text-bold'>Asset</td>     
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_asset_add]', array('hr_master_asset_add' => ''), array('title' => 'Add')); ?></td>                           
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_asset_edit]', array('hr_master_asset_edit' => ''), array('title' => 'Edit')); ?></td>     <td class="text-center"></td>                        
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_asset_disable]', array('hr_master_asset_disable' => ''), array('title' => 'Disable')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_asset_upload]', array('hr_master_asset_upload' => ''), array('title' => 'Upload')); ?></td>
                            <td class="text-center"></td> 
                        </tr>
                        <tr class="bg-danger">     
                            <td width='50%' class='text-bold'>Asset Details</td>     
                                                                           
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_asset_details_add]', array('hr_master_asset_details_add' => ''), array('title' => 'Add')); ?></td>                           
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_asset_details_edit]', array('hr_master_asset_details_edit' => ''), array('title' => 'Edit')); ?></td>    <td class="text-center"></td>                         
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_asset_details_disable]', array('hr_master_asset_details_disable' => ''), array('title' => 'Disable')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_asset_details_upload]', array('hr_master_asset_details_upload' => ''), array('title' => 'Upload')); ?></td>
                            <td class="text-center"></td> 
                        </tr>
                        <?php }?>
                        <?php  if ($model_module_employee->grant_access == 1 && $model_module_employee->isActive == 'Y') { ?>
                        <tr class="bg-danger">     
                            <td width='60%' class='text-bold'>Branch</td>                                
                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[hr_master_branch_add]', array('hr_master_branch_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_branch_edit]', array('hr_master_branch_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"></td> 
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_branch_disable]', array('hr_master_branch_disable' => ''), array('title' => 'Disable')); ?></td>
                            <td class="text-center"></td> <td class="text-center"></td> 
                        </tr>
                        <?php }?>
<!--                        <tr class="bg-danger">     
                            <td width='60%' class='text-bold'>Business Unit</td>                                
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_business_add]', array('hr_master_business_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_business_edit]', array('hr_master_business_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"></td> 
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_business_disable]', array('hr_master_business_disable' => ''), array('title' => 'Disable')); ?></td>
                            <td class="text-center"></td> <td class="text-center"></td> 
                        </tr>-->
                        <?php  if ($model_module_app->grant_access == 1 && $model_module_app->isActive == 'Y') { ?>
                        <tr class="bg-danger">     
                            <td width='60%' class='text-bold'>Geo code Location</td>                                
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_geolocation_add]', array('hr_master_geolocation_add' => ''), array('title' => 'Geo Location Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_geolocation_edit]', array('hr_master_geolocation_edit' => ''), array('title' => 'Geo Location Edit')); ?></td>
                            <td class="text-center"></td> 
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_geolocation_disable]', array('hr_master_geolocation_disable' => ''), array('title' => 'Geo Location Disable')); ?></td>
                            <td class="text-center"></td> <td class="text-center"></td> 
                        </tr>
                        <tr class="bg-danger">     
                            <td width='60%' class='text-bold'>Geo code</td>                                
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_geocode_add]', array('hr_master_geocode_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_geocode_edit]', array('hr_master_geocode_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"></td> 
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_geocode_disable]', array('hr_master_geocode_disable' => ''), array('title' => 'Disable')); ?></td>
                            <td class="text-center"></td> <td class="text-center"></td> 
                        </tr>
                        <?php }
                        if ($model_module_leave->grant_access == 1 && $model_module_leave->isActive == 'Y') { ?>
                        <tr class="bg-danger">     
                            <td width='60%' class='text-bold'>Leave Type</td>                             
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_leave_type_add]', array('hr_master_leave_type_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_leave_type_edit]', array('hr_master_leave_type_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"></td> 
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_leave_type_disable]', array('hr_master_leave_type_disable' => ''), array('title' => 'Disable')); ?></td>
                            <td class="text-center"></td> <td class="text-center"></td> 
                        </tr>  
                        <?php }
                            if ($model_module_eos->grant_access == 1 && $model_module_eos->isActive == 'Y') { ?>
                        <tr class="bg-danger">     
                            <td width='60%' class='text-bold'>Notice Period</td>                             
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_noticeperiod_add]', array('hr_master_noticeperiod_add' => ''), array('title' => 'Add')); ?></td>                           
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_noticeperiod_edit]', array('hr_master_noticeperiod_edit' => ''), array('title' => 'Edit')); ?></td>   
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_noticeperiod_disable]', array('hr_master_noticeperiod_disable' => ''), array('title' => 'Disable')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td>
                        </tr>
                            <?php }
                            if ($model_module_attendance->grant_access == 1 && $model_module_attendance->isActive == 'Y') {
                            ?>
                        <tr class="bg-danger">     
                            <td width='60%' class='text-bold'>Overtime Type</td>                            
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_sal_overtimetype_add]', array('hr_master_sal_overtimetype_add' => ''), array('title' => 'Add')); ?></td>                           
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_sal_overtimetype_edit]', array('hr_master_sal_overtimetype_edit' => ''), array('title' => 'Edit')); ?></td> 
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_sal_overtimetype_disable]', array('hr_master_sal_overtimetype_disable' => ''), array('title' => 'Disable')); ?></td>
                            <td class="text-center"></td><td class="text-center"></td>
                        </tr>
                            <?php } 
                            if ($model_module_payroll->grant_access == 1 && $model_module_payroll->isActive == 'Y') {
                            ?>
                        <tr class="bg-danger">     
                            <td width='50%' class='text-bold'>Pension Settings</td>                             
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_sal_pensionsetting_add]', array('hr_master_sal_pensionsetting_add' => ''), array('title' => 'add')); ?></td>                           
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_sal_pensionsetting_edit]', array('hr_master_sal_pensionsetting_edit' => ''), array('title' => 'Edit')); ?></td> 
                            <td class="text-center"></td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_sal_pensionsetting_disable]', array('hr_master_sal_pensionsetting_disable' => ''), array('title' => 'Disable')); ?></td>       
                            <td class="text-center"></td><td class="text-center"></td>
                        </tr>
                            <?php } 
                            if ($model_module_employee->grant_access == 1 && $model_module_employee->isActive == 'Y') {
                            ?>
                        <tr class="bg-danger">     
                            <td width='60%' class='text-bold'>Relation Type</td>     
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_relation_type_add]', array('hr_master_relation_type_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[hr_master_relation_type_edit]', array('hr_master_relation_type_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"></td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_relation_type_disable]', array('hr_master_relation_type_disable' => ''), array('title' => 'Disable')); ?></td> 
                            <td class="text-center"></td><td class="text-center"></td>
                        </tr>
                    <?php } 
                    if ($model_module_attendance->grant_access == 1 && $model_module_attendance->isActive == 'Y') {
                    ?>
                        <tr class="bg-danger">     
                            <td width='50%' class='text-bold'>Shift Timings</td>                               
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_shifttimings_add]', array('hr_master_shifttimings_add' => ''), array('title' => 'Add')); ?></td>                           
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_shifttimings_edit]', array('hr_master_shifttimings_edit' => ''), array('title' => 'Edit')); ?></td>  
                            <td class="text-center"></td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_shifttimings_disable]', array('hr_master_shifttimings_disable' => ''), array('title' => 'Disable')); ?></td>  
                            <td class="text-center"></td><td class="text-center"></td>
                        </tr>
                    <?php }
                        if ($model_module_doc_request->grant_access == 1 && $model_module_doc_request->isActive == 'Y') { ?>
                        <tr class="bg-danger">     
                            <td width='50%' class='text-bold'>Signature</td>                               
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_signature_add]', array('hr_master_signature_add' => ''), array('title' => 'Add')); ?></td>                           
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_signature_edit]', array('hr_master_signature_edit' => ''), array('title' => 'Edit')); ?></td>  
                            <td class="text-center"></td>
                            <td class='text-center'><?php echo $form->checkBoxList($model, 'permissions[hr_master_signature_disable]', array('hr_master_signature_disable' => ''), array('title' => 'Disable')); ?></td>  
                            <td class="text-center"></td><td class="text-center"></td>
                        </tr>
                        <?php }?>
                    </tbody>
                </table>
            </div>
        </div>
        <div class="tab-pane" id="admin_tab">
            <div class="table-responsive">
                <table class="table table-hover table-bordered table-theme table-permission">
                    <thead>
                        <tr>
                            <th width="60%" class="text-right"><?php echo $form->checkBoxList($model, 'permissions[admin_check_all]',array('admin_check_all'=>''),array('title'=>'Check All','onclick'=>' $("#admin_tab input:checkbox").prop("checked", $(this).prop("checked"));')); ?> Select all</th>
                                <th class="text-center">Menu</th>
                                <th class="text-center">Add</th>
                                <th class="text-center">Edit</th>
                                <th class="text-center">Delete</th>
                                <th class="text-center">Block</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr class="bg-danger">
				<td width="60%" class="text-bold">Users</td>
                                <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[admin_users_view]',array('admin_users_view'=>''),array('title'=>'View')); ?></td>
				<td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[admin_users_add]',array('admin_users_add'=>''),array('title'=>'Add')); ?></td>
				<td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[admin_users_edit]',array('admin_users_edit'=>''),array('title'=>'Edit')); ?></td>
                                <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[admin_users_delete]',array('admin_users_delete'=>''),array('title'=>'Delete')); ?></td>
                                <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[admin_users_block]',array('admin_users_block'=>''),array('title'=>'Block')); ?></td>
                        </tr>
                        <tr class="bg-danger">
				<td width="60%" class="text-bold">User Group</td>
                                <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[admin_usergroup_view]',array('admin_usergroup_view'=>''),array('title'=>'View')); ?></td>
				<td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[admin_usergroup_add]',array('admin_usergroup_add'=>''),array('title'=>'Add')); ?></td>
				<td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[admin_usergroup_edit]',array('admin_usergroup_edit'=>''),array('title'=>'Edit')); ?></td>
				<td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[admin_usergroup_delete]',array('admin_usergroup_delete'=>''),array('title'=>'Delete')); ?></td>
                                <td></td>
                         </tr>
                    </tbody>
                </table>
            </div>
        </div>
        <div class="tab-pane" id="confidential_tab">
            <div class="table-responsive" style="min-height: .01%;height: 600px;overflow-y: scroll;">
                <table class="table table-hover table-bordered table-theme table-permission">
                    <thead>
                        <tr>
                            <th width="80%" class="text-right"><?php echo $form->checkBoxList($model, 'permissions[confidential_check_all]', array('confidential_check_all' => ''), array('data-label' => 'Check All', 'onclick' => ' $("#confidential_tab input:checkbox").prop("checked", $(this).prop("checked"));')); ?> Select all</th>
                            <th class="text-center">View Menu</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>     
                            <td class='text-bold bg-success'>Employee Code Update</td>     
                            <td class='text-center bg-success'><?php echo $form->checkBoxList($model, 'permissions[hr_employee_code_update]', array('hr_employee_code_update' => ''), array('title' => 'Employee Code Update')); ?>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>

<div class="clearfix">
    <div class="modal-footer">
        <button type="button" class="btn btn-danger" id="usergrp_close" data-dismiss="modal">Close</button>
        <?php
        $url = Yii::app()->createUrl('usergroup/SaveHRUserGroup');

        echo CHtml::ajaxSubmitButton('Save', $url, array(
            'dataType' => 'json',
            'type' => 'post',
            'success' => 'function(data) {

                                    $("#loader").hide();
                                    var user_group_id= data.id;

                                    if(data.status=="success"){

                                         t8.success("User Group Details Saved Successfully!");

                                         $("#usergrp_close").click();
                                        //location.reload();
                                        reloadTable("#tbl_usergroup_details1");

                                    } else {
                                        $("#usergroup-form .usergroup-save-btn").prop("disabled", false);
                                        $("#usergroup-form .usergroup-save-btn").addClass("btn-theme").removeClass("btn_loding");
                                        $.each(data, function(key, val) {
                                            $("#usergroup-form #"+key+"_em_").text(val).show();
                                            t8.error(""+val+"");
                                        });

                                    }

                                    }',
            'beforeSend' => 'function(){
                                 $("#loader").show();
                                $("#usergroup-form .usergroup-save-btn").prop("disabled", true);
                                $("#usergroup-form .usergroup-save-btn").addClass("btn_loding").removeClass("btn-theme");
                                $(".toast8-error").hide();
                            }',
            'complete' => 'function(){
                                $("#loader").hide();

                            }'
                ), array('id' => 'mybtn' . rand(), 'class' => 'usergroup-save-btn btn btn-theme'));
        ?>
    </div>
</div>
<?php $this->endWidget(); ?>