<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);
                    });
            }
            if ($('#hid_sales_man').val() == 'Y') {
                $(".clsSalesman").prop("checked", true);
            }
        }
    });
</script>
<?php
$form = $this->beginWidget('CActiveForm', array(
    'id' => 'usergroup-form',
    'enableAjaxValidation' => false,
    'enableClientValidation' => false,
        ));
?>

<div class="permissions popup_inner_element">
        <ul class="nav nav-tabs company-nav-tabs nav-tab-theme">
        <li class="active"><a href="#mis_tab" data-toggle="tab" aria-expanded="true">MIS</a></li>
        <li><a href="#sales_tab" data-toggle="tab">Sales</a></li>
        <!-- <li><a href="#fm_tab" data-toggle="tab">FM</a></li> -->
        <li><a href="#inventory_tab" data-toggle="tab">Inventory</a></li>
        <li><a href="#purchase_tab" data-toggle="tab">Purchase</a></li>
        <!--li><a href="#fixedasset_tab" data-toggle="tab">Fixed Assets</a></li-->
        <!--li><a href="#finance_tab" data-toggle="tab">Finance</a></li-->
        <li><a href="#account_tab" data-toggle="tab">Accounts</a></li>
        
        <li><a href="#reports_tab" data-toggle="tab">Reports</a></li>
        <li><a href="#master_tab" data-toggle="tab">Masters</a></li>
        <li><a href="#projects_tab" data-toggle="tab">Projects</a></li>
        <!--li><a href="#production_tab" data-toggle="tab">Production</a></li-->
        <li><a href="#admin_tab" data-toggle="tab">Admin</a></li>
         <!--<li><a href="#settings_tab" data-toggle="tab">Settings</a></li> -->
        <!--li><a href="#profit_calculation_tab" data-toggle="tab">Profit Calculation</a></li-->
        <!-- <li><a href="#pricing_group_tab" data-toggle="tab">Pricing</a></li>
        <li><a href="#packaging_tab" data-toggle="tab">Packing</a></li> -->
        <!--li><a href="#others_tab" data-toggle="tab">Others</a></li-->
        <!--li><a href="#activity_tab" data-toggle="tab">Activity</a></li-->
    </ul>
    
    <div class="tab-content">

    <ul class="material clearfix form-ul">
        <li class="col-sm-4">
            <input type="hidden" name="hid_model" id="hid_model" value=<?php echo $model->permissions; ?>>
            <input type="hidden" name="hid_sales_man" id="hid_sales_man" value="<?php echo $model->is_salesman; ?>">
           <input type="hidden" name="type" id="type" value="<?php echo $type; ?>">
            <?php
          
            echo $form->hiddenField($model, 'id');
            //echo $form->textField($model, 'group_name', array('data-label' => 'User Group'));
            
            ?>
            <label>User Group  <span style="color:red;">*</span></label>
         <input type="text" name="MasUserGroup[group_name]" id="MasUserGroup_group_name" required>

            
        </li>
        <li class="col-sm-3">
            <?php echo $form->checkBoxList($model, 'permissions[checkall]', array('checkall' => ''), array('class' => 'menu_tab', 'data-label' => 'Select All ', 'onclick' => ' $("#menu_tab input:checkbox").prop("checked", $(this).prop("checked"));')); ?>
        </li>
       
    </ul>
        
        <div class="tab-pane active" id="mis_tab">
            
             <div class="table-responsive">

                <table class="table table-hover  table-permission table-striped">
                    <thead>
                        <tr>
                            <th width="60%" class="text-right"><?php echo $form->checkBoxList($model, 'permissions[dash_check_all]', array('dash_check_all' => ''), array('data-label' => 'Check All', 'onclick' => ' $("#mis_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</th> -->
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td width="60%" class="text-bold">Desktop</td>
                            <td></td>
                            <td></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[dashboard_view]', array('dashboard_view' => ''), array('title' => 'Desktop Menu')); ?>
                             <!-- <td></td> -->
                                <!--,'onclick'=>'if($(this).prop("checked") == false){ $(".main_check").prop("checked",false);}' -->
                           
                        </tr>
                        <!--<tr>-->
                        <!--    <td width="60%" class="text-bold">Mobile Dashboard</td>-->
                        <!--    <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[mobile_dashboard_view]', array('mobile_dashboard_view' => ''), array('title' => 'Mobile Dashboard View'));
						?>-->
                        <!--,'onclick'=>'if($(this).prop("checked") == false){ $(".main_check").prop("checked",false);}' -->
                        <!--    </td>-->
                        <!--</tr>-->
                        <tr>
                            <td width="60%" class="text-bold"> MIS Dashboard </td>
							<td></td>
							<td></td>
							<td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[mis_dashboard_view]', array('mis_dashboard_view' => ''), array('title' => ' MIS Dashboard View')); ?>
								<!-- <td></td> -->
                                <!--,'onclick'=>'if($(this).prop("checked") == false){ $(".main_check").prop("checked",false);}' -->
                           
                        </tr>
                        <!-- <tr>
                            <td width="60%" class="text-bold"> FM Dashboard </td>
                        <td></td>
                        <td></td>
                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[fm_dashboard_view]', array('fm_dashboard_view' => ''), array('title' => ' FM Dashboard View')); ?>
                              <td></td> 
                                ,'onclick'=>'if($(this).prop("checked") == false){ $(".main_check").prop("checked",false);}' 
                           
                        </tr> 
                        <tr>
                            <td width="60%" class="text-bold">Dashboard-Drill Down Level1</td>
<td></td>
<td></td>
                            <td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[dashboard_dril_level1_view]', array('dashboard_dril_level1_view' => ''), array('title' => 'View')); ?></td>

                        </tr>
                        <tr>
                            <td width="60%" class="text-bold">Dashboard-Drill Down Level2</td>
<td></td>
<td></td>
                            <td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[dashboard_dril_level2_view]', array('dashboard_dril_level2_view' => ''), array('title' => 'View')); ?></td>

                        </tr>-->
                        <tr>
                            <td width="60%" class="text-bold">Dashboard -Leads</td>
<td></td>
<td></td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[dashboard_leads_view]', array('dashboard_leads_view' => ''), array('title' => 'View')); ?></td>

                        </tr>
                        <tr>
                            <td width="60%" class="text-bold">Dashboard -Quotes</td>
<td></td>
<td></td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[dashboard_quote_view]', array('dashboard_quote_view' => ''), array('title' => 'View')); ?></td>

                        </tr>
                        <tr>
                            <td width="60%" class="text-bold">Dashboard -Orders</td>
<td></td>
<td></td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[dashboard_order_view]', array('dashboard_order_view' => ''), array('title' => 'View')); ?></td>

                        </tr>
                        <tr>
                            <td width="60%" class="text-bold">Dashboard -Invoices</td>
<td></td>
<td></td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[dashboard_invoice_view]', array('dashboard_invoice_view' => ''), array('title' => 'View')); ?></td>

                        </tr>
                        <!-- <tr>
                            <td width="60%" class="text-bold">Cockpit</td>
<td></td>
<td></td>
                            <td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[cockpit_view]', array('cockpit_view' => ''), array('title' => 'View')); ?></td>

                        </tr> -->
                        <tr>
                            <td width="60%" class="text-bold">Calendar</td>
<td></td>
<td></td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[calendar_view]', array('calendar_view' => ''), array('title' => 'View')); ?></td>

                        </tr>
                        
                        <tr>
                            <td width="60%" class="text-bold">Activity</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[activity_activity_add]', array('activity_activity_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[mas_activity-master_edit]', array('mas_activity-master_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[activity_activity_view]', array('activity_activity_view' => ''), array('title' => 'Activity')); ?></td>
                            <!-- <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[mas_activity-master_disable]', array('mas_activity-master_disable' => ''), array('title' => 'Delete')); ?></td>
                         -->
                        </tr>
                        <!-- <tr>
                            <td width="60%" class="text-bold">Added Form</td>
                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[mas_activity_frm_add]', array('mas_activity_frm_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[mas_activity_from_edit]', array('mas_activity_from_edit' => ''), array('title' => 'Edit')); ?></td>
                    <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[activity_added_from_view]', array('activity_added_from_view' => ''), array('title' => 'View')); ?></td>
                             <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[mas_activity_from_disable]', array('mas_activity_from_disable' => ''), array('title' => 'Delete')); ?></td>
                             
                            
                        </tr> -->
                        <!-- <tr>
                            <td width="60%" class="text-bold">Activity Status</td>
                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[mas_activity_status_add]', array('mas_activity_status_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[mas_activity_status_edit]', array('mas_activity_status_edit' => ''), array('title' => 'Edit')); ?></td>
                          <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[mas_activity_status_view]', array('mas_activity_status_view' => ''), array('title' => 'Activity Status')); ?></td>
                             <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[mas_activity_from_disable]', array('activity_status_delete' => ''), array('title' => 'Delete')); ?></td>
                          
                          
                        </tr> -->
                        <!-- <tr>
                            <td width="60%" class="text-bold">Activity Type</td>
                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[mas_activity_type_add]', array('mas_activity_type_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[mas_activity_type_edit]', array('mas_activity_type_edit' => ''), array('title' => 'Edit')); ?></td>
                        <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[activity_type_view]', array('activity_type_view' => ''), array('title' => 'Activity Type')); ?></td>
                             <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[mas_activity_type_disable]', array('mas_activity_type_disable' => ''), array('title' => 'Delete')); ?></td>
   
                            
                           
                        </tr> -->
                        
                        <tr>
                            <td width="60%" class="text-bold">Lead Owner - View All</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[activity_lead_owner_add]', array('activity_lead_owner_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[activity_lead_owner_edit]', array('activity_lead_owner_edit' => ''), array('title' => 'Edit')); ?></td>
                           <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[activity_lead_owner]', array('activity_lead_owner' => ''), array('title' => 'Lead Owner - View')); ?></td>
                            <!-- <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[activity_lead_owner_delete]', array('activity_lead_owner_delete' => ''), array('title' => 'Delete')); ?></td>
                             -->
                            
                            
                        </tr>
                        
                        
                        
                        
                    </tbody>
                </table>
            </div>
        </div>  
        
        
         <div class="tab-pane" id="sales_tab">
            <div class="table-responsive" style="min-height: .01%;height: 350px;overflow-y: scroll;">
                <table class="table table-hover  table-permission table-striped">
                    <thead>
                        <tr>
                            <th width="60%" class="text-right"><?php echo $form->checkBoxList($model, 'permissions[sales_check_all]', array('sales_check_all' => ''), array('data-label' => 'Check All', 'onclick' => ' $("#sales_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">View All</th>
                            <th class="text-center">Delete</th>
                            <th class="text-center">Print</th>
                            <th class="text-center">Convert</th>
                            <th class="text-center">Approve1</th>
                            <!-- <th class="text-center">Approve2</th> -->
                            <!-- <th class="text-center">Approve3</th> -->
                            <th class="text-center">Document</th>
                            <!-- <th class="text-center">Post</th>
                            <th class="text-center">Mail To customer</th>
                            <th class="text-center">Feedback Mail</th>
                            <th class="text-center">Allocate</th> -->
                            <th class="text-center">Copy</th>
                            <!-- <th class="text-center">Rent</th>
                            <th class="text-center">Cancel</th> -->
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td width="60%" class="text-bold">Customer</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[customer_add]', array('customer_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center">
                                <?php echo $form->checkBoxList($model, 'permissions[customer_edit]', array('customer_edit' => ''), array('title' => 'Edit Customer')); ?>
                                <?php //echo $form->checkBoxList($model, 'permissions[customer_all_edit]', array('customer_all_edit' => ''), array('title' => 'Edit All Customer'));
                                ?>
                                <?php //echo $form->checkBoxList($model, 'permissions[customer_activity]', array('customer_activity' => ''), array('title' => 'Edit Activity'));
                                ?>
                            </td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[customer_view]', array('customer_view' => ''), array('title' => 'View')); ?>
                                <?php //echo $form->checkBoxList($model, 'permissions[customer_view]',array('customer_view'=>''),array('title'=>'View All'));
                                ?>
                            </td>
                            <td class="text-center">
                                <?php echo $form->checkBoxList($model, 'permissions[view_all_customer_activity]', array('view_all_customer_activity' => ''), array('title' => 'View All Activity')); ?>
                                <?php //echo $form->checkBoxList($model, 'permissions[view_all_customer_info_material1]', array('view_all_customer_info_material1' => ''), array('title' => 'View Customer Info Material1'));
                                ?>
                                <?php //echo $form->checkBoxList($model, 'permissions[view_all_customer_info_material2]', array('view_all_customer_info_material2' => ''), array('title' => 'View Customer Info Material2'));
                                ?>
                            </td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[customer_delete]', array('customer_delete' => ''), array('title' => 'Delete')); ?></td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[customer_download]', array('customer_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>
                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[mail_to_customer]', array('mail_to_customer' => ''), array('title' => 'Mail To customer')); ?></td>
                            <td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[feedback_mail_customer]', array('feedback_mail_customer' => ''), array('title' => 'Feedback Mail')); ?></td>
                            <td class="text-center"></td> -->
                            <td class="text-center"></td>
                            <!-- <td class="text-center"></td>
                            <td class="text-center"></td> -->
                        </tr>
                       <tr>
                            <td width="60%" class="text-bold">Leads</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[lead_add]', array('lead_add' => ''), array('title' => 'Add'));
                                ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[lead_edit]', array('lead_edit' => ''), array('title' => 'Edit'));
                                ?></td>
                            <td class="text-center">
                        <?php echo $form->checkBoxList($model, 'permissions[lead_view]', array('lead_view' => ''), array('title' => 'View'));
                        ?></td>
                            <td class="text-center">
                        <?php echo $form->checkBoxList($model, 'permissions[lead_view_all]', array('lead_view_all' => ''), array('title' => 'View All'));
                        ?>
                            </td>
                            <td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[lead_delete]', array('lead_delete' => ''), array('title' => 'Delete'));
                        ?></td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[lead_pdf]', array('lead_pdf' => ''), array('title' => 'Print'));
                        ?> </td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[lead_convert]', array('lead_convert' => ''), array('title' => 'Convert'));
                        ?></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[lead_document]', array('lead_document' => ''), array('title' => 'Document 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>
                            <td width="60%" class="text-bold">Quotations</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[quotes_add]', array('quotes_add' => ''), array('title' => 'Add'));
                        ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[quotes_edit]', array('quotes_edit' => ''), array('title' => 'Edit'));
                        ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[quotes_view]', array('quotes_view' => ''), array('title' => 'View'));
                        ?></td>
                            <td class="text-center">
                                <?php echo $form->checkBoxList($model, 'permissions[quotes_view_all]', array('quotes_view_all' => ''), array('title' => 'View All'));
                                ?>
                            </td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[quotes_delete]', array('quotes_delete' => ''), array('title' => 'Delete'));
                                ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[quotes_pdf]', array('quotes_pdf' => ''), array('title' => 'Print'));
                                ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[quotes_convert]', array('quotes_convert' => ''), array('title' => 'Convert'));
                                ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[quotes_approve]', array('quotes_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[quotes_document]', array('lead_document' => ''), array('title' => 'Document 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[quotes_allocate_material]', array('quotes_allocate_material' => ''), array('title' => 'Allocate Material'));
                                ?></td> -->
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[quotes_copy]', array('quotes_copy' => ''), array('title' => 'Copy Quotation'));
                                ?></td>
                            <!-- <td class="text-center"></td>
                            <td class="text-center"></td> -->
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold">Orders</td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[order_add]', array('order_add' => ''), array('title' => 'Add'));
                                ?></td>
                            <td class="text-center"><?php
                                echo $form->checkBoxList($model, 'permissions[order_edit]', array('order_edit' => ''), array('title' => 'Edit'));
                                //  echo $form->checkBoxList($model, 'permissions[order_performa_invoice]', array('order_performa_invoice' => ''), array('title' => 'Profoma Invoice'));
                                ?></td>
                            <td class="text-center">
                                <?php echo $form->checkBoxList($model, 'permissions[order_view]', array('order_view' => ''), array('title' => 'View'));
                                ?></td>
                            <td class="text-center">
                                <?php echo $form->checkBoxList($model, 'permissions[order_view_all]', array('order_view_all' => ''), array('title' => 'View All'));
                                ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[order_delete]', array('order_delete' => ''), array('title' => 'Delete'));
                                ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[order_pdf]', array('order_pdf' => ''), array('title' => 'Print'));
                                ?>
                                <?php echo $form->checkBoxList($model, 'permissions[order_performa_pdf]', array('order_performa_pdf' => ''), array('title' => 'Profoma Print'));
                                ?>
                            </td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[order_convert]', array('order_convert' => ''), array('title' => 'Convert'));
                                ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[order_approve_level1]', array('order_approve_level1' => ''), array('title' => 'Approve Level 1'));
                                ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[order_approve_level2]', array('order_approve_level2' => ''), array('title' => 'Approve Level 2'));
                                ?></td>
                            <!-- <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[order_approve_level3]', array('order_approve_level3' => ''), array('title' => 'Approve Level 3'));
                                ?></td> -->
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[order_document]', array('order_document' => ''), array('title' => 'Document 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[order_allocate_material]', array('order_allocate_material' => ''), array('title' => 'Allocate Material'));
                                ?></td>
                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[order_copy]', array('order_copy' => ''), array('title' => 'Copy Order'));
                                ?></td> -->
                            <td class="text-center"></td>
                            <!-- <td class="text-center"></td>
                            <td class="text-center"></td> -->
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold">Delivery Note</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[delivery_add]', array('delivery_add' => ''), array('title' => 'Add'));
                                ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[delivery_edit]', array('delivery_edit' => ''), array('title' => 'Edit'));
                                ?></td>
                            <td class="text-center">
                                <?php echo $form->checkBoxList($model, 'permissions[delivery_view]', array('delivery_view' => ''), array('title' => 'View'));
                                ?></td>
                            <td class="text-center">
                                <?php echo $form->checkBoxList($model, 'permissions[delivery_view_all]', array('delivery_view_all' => ''), array('title' => 'View All'));
                                ?>
                            </td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[delivery_delete]', array('delivery_delete' => ''), array('title' => 'Delete'));
                                ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[delivery_pdf]', array('delivery_pdf' => ''), array('title' => 'Print'));
                                ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[delivery_convert]', array('delivery_convert' => ''), array('title' => 'Convert'));
                                ?></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[delivery_document]', array('delivery_document' => ''), array('title' => 'Document 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[delivery_rentdate]', array('delivery_rentdate' => ''), array('title' => 'Rent Date'));
                                ?> </td>
                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[delivery_cancel]', array('delivery_cancel' => ''), array('title' => 'Delivery Note Cancel'));
                                ?> </td> -->
                                  
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold">Invoice</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[invoice_add]', array('invoice_add' => ''), array('title' => 'Add')); ?> </td>
                            </td>
                            <td class="text-center">
                                <?php echo $form->checkBoxList($model, 'permissions[invoice_edit]', array('invoice_edit' => ''), array('title' => 'Edit Invoice')); ?>
                                <?php echo $form->checkBoxList($model, 'permissions[invoice_change_payment_type]', array('change_payment_type' => ''), array('title' => 'Edit Payment Type')); ?>
                            </td>
                            <td class="text-center">
                                <?php echo $form->checkBoxList($model, 'permissions[invoice_view]', array('invoice_view' => ''), array('title' => 'View')); ?> </td>
                            <td class="text-center">
                                <?php echo $form->checkBoxList($model, 'permissions[invoice_view_all]', array('invoice_view_all' => ''), array('title' => 'View All')); ?>
                            </td>
                            <td class="text-center" ><?php echo $form->checkBoxList($model, 'permissions[allow_delete_document]', array('allow_delete_document' => ''), array('title' => 'Deleet document'));
                        ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[invoice_print]', array('invoice_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">
                                <?php echo $form->checkBoxList($model, 'permissions[invoice_document]', array('invoice_document' => ''), array('title' => 'Document Delete')); ?>
                                <?php echo $form->checkBoxList($model, 'permissions[invoice_upload_document]', array('invoice_upload_document' => ''), array('title' => 'Upload Document')); ?>
                            </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[invoice_cancel]', array('invoice_cancel' => ''), array('title' => 'Invoice Cancel')); ?> </td>
                            <td class="text-center"></td> -->
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold">Sales Return</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[credit_add]', array('credit_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[creditnote_creditdate]', array('creditnote_creditdate' => ''), array('title' => 'Edit Exchange Date ')); ?></td>
                            <td class="text-center">
                                <?php echo $form->checkBoxList($model, 'permissions[credit_view]', array('credit_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center">
                                <?php echo $form->checkBoxList($model, 'permissions[credit_view_all]', array('credit_view_all' => ''), array('title' => 'View All')); ?>
                            </td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[credit_pdf]', array('credit_pdf' => ''), array('title' => 'Pdf Exchange')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[credit_convert]', array('credit_convert' => ''), array('title' => 'Convert')); ?></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[credit_document]', array('credit_document' => ''), array('title' => 'Document 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>
                                        <td width="60%" class="text-bold">Direct Sales</td>
                                        <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[direct_sales_add]', array('direct_sales_add' => ''), array('title' => 'Add'));
                                ?></td>
                                        <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[direct_sales_edit]', array('direct_sales_edit' => ''), array('title' => 'Edit'));
                                ?></td>
                                        <td class="text-center">
                        <?php //echo $form->checkBoxList($model, 'permissions[direct_sales_view]', array('direct_sales_view' => ''), array('title' => 'View'));
                        ?></td>
                                        <td class="text-center">
                        <?php //echo $form->checkBoxList($model, 'permissions[direct_sales_view_all]', array('direct_sales_view_all' => ''), array('title' => 'View All'));
                        ?>
                                        </td>
                                        <td class="text-center"></td>
                                        <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[direct_sales_pdf]', array('direct_sales_pdf' => ''), 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>
                                        <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[direct_sales_post]', array('direct_sales_post' => ''), array('title' => 'Post'));
                        ?> </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>
                                        <td width="60%" class="text-bold">Delivery Tracker</td>
                                        <td class="text-center"></td>
                                        <td class="text-center"></td>
                                        <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[sales_deliverytracker_view]', array('sales_deliverytracker_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"></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>
                                        <td width="60%" class="text-bold">Receipt Tracker</td>
                                        <td class="text-center"></td>
                                        <td class="text-center"></td>
                                        <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[sales_receipttracker_view]', array('sales_receipttracker_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"></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>
                                        <td width="60%" class="text-bold">Picking 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"><?php //echo $form->checkBoxList($model, 'permissions[sales_picking_list]', array('sales_picking_list' => ''), array('title' => 'Print Picking 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"></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>
                            <td width="60%" class="text-bold">Master</td>
                            <td class="text-center"></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[sales_master_view]', array('sales_master_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"></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>
                            <td width="60%" class="text-bold">Reports</td>
                            <td class="text-center"></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[sales_reports_view]', array('sales_reports_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"></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>
                            <td width="60%" class="text-bold">Document Delete</td>
                            <td class="text-center" colspan="18"><?php //echo $form->checkBoxList($model, 'permissions[allow_delete_document]', array('allow_delete_document' => ''), array('title' => 'Allow'));
                        ?></td>
                        </tr-->
                                    <!-- <tr>
                                        <td width="60%" class="text-bold">Tracking No</td>
                                        <td class="text-center"></td>
                                        <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[sales_tracking_edit]', array('sales_tracking_edit' => ''), array('title' => 'Tracking No'));
                        ?></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>
                                        <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>
                                        <td width="60%" class="text-bold">Assign Sales Target</td>
                                        <td class="text-center"></td>
                                        <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[assign_sales_target]', array('assign_sales_target' => ''), array('title' => 'Assign Sales Target'));
                        ?></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>
                                        <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>
                            <td width="60%" class="text-bold" colspan="4">Show Available Quantity in App</td>
                            <td class="text-left" colspan="8"><?php echo $form->checkBoxList($model, 'permissions[avail_qty_app]', array('avail_qty_app' => ''), array('title' => 'Show Available Quantity in App')); ?></td>
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold" colspan="4">Show Warehouse All</td>
                            <td class="text-left" colspan="8"><?php echo $form->checkBoxList($model, 'permissions[show_warehouse_all]', array('show_warehouse_all' => ''), array('title' => 'Show Warehouse All')); ?></td>
                        </tr>
                    </tbody>
                </table>
            </div> 
        </div>
        
        
        
         <div class="tab-pane" id="fm_tab">
             <div class="table-responsive">
                <table class="table table-hover  table-permission table-striped">
                    <thead>
                    <th width="60%" class="text-right"></th>
                      <th class="text-center">Add</th>
                      <th class="text-center">Edit</th>
                    <th class="text-center">View</th>
                    <th class="text-center">Convert</th>
                    <th class="text-center">Cancel</th>
                    </thead>
                    <tbody>
                        <tr>
                            <td width="60%" class="text-bold">Job Order</td>
                            
                            <td class="text-bold text-center">
                                <?php echo $form->checkBoxList($model, 'permissions[job_order_add]', array('job_order_add' => ''), array('title' => 'Add')); ?>
                            </td>
                            <td class="text-bold text-center">
                                <?php echo $form->checkBoxList($model, 'permissions[job_order_edit]', array('job_order_edit' => ''), array('title' => 'Edit')); ?>
                            </td>
                            <td class="text-bold text-center">
                                <?php echo $form->checkBoxList($model, 'permissions[job_order_view]', array('job_order_view' => ''), array('title' => 'View')); ?>
                            </td>
                            
                            <td class="text-bold text-center">
                                <?php echo $form->checkBoxList($model, 'permissions[job_order_convert]', array('job_order_convert' => ''), array('title' => 'Convert')); ?>
                            </td>
                            <td class="text-bold text-center">
                                <?php echo $form->checkBoxList($model, 'permissions[job_order_cancel]', array('job_order_cancel' => ''), array('title' => 'Cancel')); ?>
                            </td>
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold">Maintenance Contract</td>
                           
                            <td class="text-bold text-center">
                                <?php echo $form->checkBoxList($model, 'permissions[planned_maintenance_add]', array('planned_maintenance_add' => ''), array('title' => 'Add')); ?>
                            </td>
                            <td class="text-bold text-center">
                                <?php echo $form->checkBoxList($model, 'permissions[planned_maintenance_edit]', array('planned_maintenance_edit' => ''), array('title' => 'Edit')); ?>
                            </td>
                            
                             <td class="text-bold text-center">
                                <?php echo $form->checkBoxList($model, 'permissions[planned_maintenance_view]', array('planned_maintenance_view' => ''), array('title' => 'View')); ?>
                            </td>
                            <td class="text-bold text-center">
                                <?php echo $form->checkBoxList($model, 'permissions[planned_maintenance_convert]', array('planned_maintenance_convert' => ''), array('title' => 'Convert')); ?>
                            </td>
                            <td class="text-bold text-center">
                            </td>
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold">Request Item</td>
                            
                              <td class="text-bold text-center">
                                <?php echo $form->checkBoxList($model, 'permissions[job_order_request_item]', array('job_order_request_item' => ''), array('title' => 'Add')); ?>
                            </td>
                            
                            
                            <td class="text-bold">
                            </td>
                          
                            <td class="text-bold">
                            </td>
                            <td class="text-bold">
                            </td>
                            <td class="text-bold">
                            </td>
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold">Issue Item</td>
                          
                            <td class="text-bold text-center">
                                <?php echo $form->checkBoxList($model, 'permissions[job_order_issue_item]', array('job_order_issue_item' => ''), array('title' => 'Issue Item')); ?>
                            </td>
                                  <td class="text-bold">
                            </td>
                            <td class="text-bold">
                            </td>
                            <td class="text-bold">
                            </td>
                            <td class="text-bold">
                            </td>
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold">Allotment</td>
                          
                            <td class="text-bold text-center">
                                <?php echo $form->checkBoxList($model, 'permissions[job_order_allotment]', array('job_order_allotment' => ''), array('title' => 'Add')); ?>
                            </td>
                              <td class="text-bold">
                            </td>
                            <td class="text-bold">
                            </td>
                            <td class="text-bold">
                            </td>
                            <td class="text-bold">
                            </td>
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold">Snag List</td>
                            
                            <td class="text-bold text-center">
                                <?php echo $form->checkBoxList($model, 'permissions[fm_snag_add]', array('fm_snag_add' => ''), array('title' => 'Add')); ?>
                            </td>
                            <td class="text-bold text-center">
                                <?php echo $form->checkBoxList($model, 'permissions[fm_snag_edit]', array('fm_snag_edit' => ''), array('title' => 'Edit')); ?>
                            </td>
                            <td class="text-bold text-center">
                                <?php echo $form->checkBoxList($model, 'permissions[fm_snag_view]', array('fm_snag_view' => ''), array('title' => 'View')); ?>
                            </td>
                            <td class="text-bold text-center">
                                <?php echo $form->checkBoxList($model, 'permissions[fm_snag_convert]', array('fm_snag_convert' => ''), array('title' => 'Convert')); ?>
                            </td>
                            <td class="text-bold text-center">
                            </td>
                        </tr>
                        <!-- fm materials begin -- Ambika -- 20/11/2023 -->
                        <tr>
                            <td width="60%" class="text-bold">Materials List</td>
                               <td class="text-bold text-center">
                                <?php echo $form->checkBoxList($model, 'permissions[materials_list_issue]', array('materials_list_issue' => ''), array('title' => 'Issue')); ?>
                            </td>
                            <td class="text-bold text-center">
                                <?php echo $form->checkBoxList($model, 'permissions[materials_list_view]', array('materials_list_view' => ''), array('title' => 'View')); ?>
                            </td>
                           
                            <td class="text-bold">
                            </td>
                            <td class="text-bold">
                            </td>
                            <td class="text-bold">
                            </td>
                        </tr>
                        <!-- fm materials end -- Ambika -- 20/11/2023 -->
                    </tbody>
                </table>
            </div>
        </div>
        
        
         <div class="tab-pane" id="inventory_tab">
             <div class="table-responsive">
                <table class="table table-hover  table-permission table-striped">
                    <thead>
                        <tr>
                            <th width="60%" class="text-right"><?php echo $form->checkBoxList($model, 'permissions[inv_check_all]', array('inv_check_all' => ''), array('data-label' => 'Check All', 'onclick' => ' $("#inventory_tab input:checkbox").prop("checked", $(this).prop("checked"));')); ?> Select All </th>
                            <th class="text-center">View</th>
                            <th class="text-center">Add</th>
                            <th class="text-center">Edit</th>
                            <!-- <th class="text-center">Approve</th>
                            <th class="text-center">Delete</th>
                            <th class="text-center">Receive</th> -->
                            <th class="text-center">Cost View</th>
                            <!-- <th class="text-center">Selling Price</th> -->
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td width="60%" class="text-bold">Stock</td>
                            <td class="text-center">
                                <?php echo $form->checkBoxList($model, 'permissions[stock_view]', array('stock_view' => ''), array('title' => 'View')); ?>
                                <!--?php echo $form->checkBoxList($model, 'permissions[stock_view_expiry]', array('stock_view_expiry' => ''), array('title' => 'View Expiry')); ?-->
                            </td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[stock_add]', array('stock_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[stock_edit]', array('stock_edit' => ''), array('title' => 'Edit')); ?></td>
                            <!-- <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[stock_approve]', array('stock_approve' => ''), array('title' => 'Approve')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[stock_block]', array('stock_block' => ''), array('title' => 'Block')); ?></td>
                            <td></td> -->
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[stock_value_view]', array('stock_value_view' => ''), array('title' => 'Stock Value view')); ?></td>
                            <!-- <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[stock_selling_price_edit]', array('stock_selling_price_edit' => ''), array('title' => 'Selling Price')); ?></td> -->
                        </tr>
                                    <!-- <tr>
                                        <td width="60%" class="text-bold">Raw Material</td>
                                        <td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[rawmaterial_view]', array('rawmaterial_view' => ''), array('title' => 'View'));
                                ?></td>
                                        <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[rawmaterial_add]', array('rawmaterial_add' => ''), array('title' => 'Add'));
                                ?></td>
                                        <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[rawmaterial_edit]', array('rawmaterial_edit' => ''), array('title' => 'Edit'));
                                ?></td>
                                        <td class="text-center"></td>
                                        <td class="text-center"></td>
                                        <td></td>
                                        <td></td>
                                    </tr> -->
                      
                                    <!--   <tr>
                            <td width="60%" class="text-bold">Service</td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[service_view]', array('service_view' => ''), array('title' => 'View'));
                                ?></td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[service_add]', array('service_add' => ''), array('title' => 'Add'));
                                ?></td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[service_edit]', array('service_edit' => ''), array('title' => 'Edit'));
                                ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[service_delete]', array('service_delete' => ''), array('title' => 'Delete'));
                                ?></td>
                            <td class="text-center"></td>
                            <td></td>
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold">Equipment</td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[equipment_view]', array('equipment_view' => ''), array('title' => 'View'));
                                ?></td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[equipment_add]', array('equipment_add' => ''), array('title' => 'Add'));
                                ?></td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[equipment_edit]', array('equipment_edit' => ''), array('title' => 'Edit'));
                                ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"> ?php echo $form->checkBoxList($model, 'permissions[equipment_delete]', array('equipment_delete' => ''), array('title' => 'Delete'));
                                ?></td>
                            <td class="text-center"></td>
                            <td></td>
                        </tr>-->
                                    <!-- <tr>
                                        <td width="60%" class="text-bold">Kit</td>
                                        <td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[kit_view]', array('kit_view' => ''), array('title' => 'View'));
                                ?></td>
                                        <td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[kit_add]', array('kit_add' => ''), array('title' => 'Add'));
                                ?></td>
                                        <td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[kit_edit]', array('kit_edit' => ''), array('title' => 'Edit'));
                                ?></td>
                                        <td class="text-center"></td>
                                        <td class="text-center"></td>
                                        <td class="text-center"></td>
                                        <td></td>
                                    </tr> -->
                      <!--  <tr>
                            <td width="60%" class="text-bold">Masters</td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[inv_master_view]', array('inv_master_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></td>
                            <td></td>
                        </tr>
                                     <tr>
                                        <td width="60%" class="text-bold">Upload Stock Item</td>
                                        <td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[upload_stock_item]', array('upload_stock_item' => ''), array('title' => 'Upload Stock Item'));
                                ?></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></td>
                                    </tr> 
                        <tr>
                            <td width="60%" class="text-bold">Reports</td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[inv_report_view]', array('inv_report_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></td>
                            <td></td>
                        </tr>-->
                                    <!-- <tr>
                                        <td width="60%" class="text-bold">Movements-Deallocation</td>
                                        <td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[mov_deallocation_view]', array('mov_deallocation_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></td>
                                    </tr> -->
                        <tr>
                            <td width="60%" class="text-bold">Movements-Issues</td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[mov_issue_view]', array('mov_issue_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center">
                                <?php echo $form->checkBoxList($model, 'permissions[mov_issue_add]', array('mov_issue_add' => ''), array('title' => 'Adds')); ?>
                                <?php echo $form->checkBoxList($model, 'permissions[mov_issue_print]', array('mov_issue_print' => ''), array('title' => 'Print')); ?>
                            </td>
                            <td class="text-center">
                                <?php echo $form->checkBoxList($model, 'permissions[mov_issue_edit]', array('mov_issue_edit' => ''), array('title' => 'Edit')); ?>
                                <?php echo $form->checkBoxList($model, 'permissions[mov_issue_convert]', array('mov_issue_convert' => ''), array('title' => 'Convert')); ?>
                            </td>
                            <!-- <td class="text-center"></td>
                            <td class="text-center"></td>
                            <td class="text-center"></td> -->
                            <td></td>
                            <!-- <td></td> -->
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold">Movements-Reciepts</td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[mov_receipt_view]', array('mov_receipt_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center">
                                <?php echo $form->checkBoxList($model, 'permissions[mov_receipt_add]', array('mov_receipt_add' => ''), array('title' => 'Add')); ?>
                                <?php echo $form->checkBoxList($model, 'permissions[mov_receipt_print]', array('mov_receipt_print' => ''), array('title' => 'Print')); ?>
                            </td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[mov_receipt_edit]', array('mov_receipt_edit' => ''), array('title' => 'Edit')); ?></td>
                            <!-- <td class="text-center"></td>
                            <td class="text-center"></td>
                            <td class="text-center"></td> -->
                            <td></td>
                            <!-- <td></td> -->
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold">Direct Transfer</td>
                            <td class="text-center">
                                <?php echo $form->checkBoxList($model, 'permissions[direct_transfer_view]', array('direct_transfer_view' => ''), array('title' => 'View')); ?>
                                <?php echo $form->checkBoxList($model, 'permissions[direct_transfer_print]', array('direct_transfer_print' => ''), array('title' => 'Print')); ?>
                            </td>
                            <td class="text-center">
                                <?php echo $form->checkBoxList($model, 'permissions[direct_transfer_add]', array('direct_transfer_add' => ''), array('title' => 'Add')); ?>
                                <?php echo $form->checkBoxList($model, 'permissions[direct_transfer_excel]', array('direct_transfer_excel' => ''), array('title' => 'Excel')); ?>
                            </td>
                            <td class="text-center">
                                <?php echo $form->checkBoxList($model, 'permissions[direct_transfer_edit]', array('direct_transfer_edit' => ''), array('title' => 'Edit')); ?>
                                <?php echo $form->checkBoxList($model, 'permissions[direct_transfer_convert]', array('direct_transfer_convert' => ''), array('title' => 'Convert')); ?>
                            </td>
                            <!-- <td class="text-center"></td>
                            <td class="text-center"></td>
                            <td class="text-center"></td> -->
                            <td></td>
                            <!-- <td></td> -->
                        </tr>
                        <!-- <tr>
                            <td width="60%" class="text-bold">Transfer With Sample</td>
                            <td class="text-center">
                                <?php echo $form->checkBoxList($model, 'permissions[sample_transfer_view]', array('sample_transfer_view' => ''), array('title' => 'View')); ?>
                                <?php echo $form->checkBoxList($model, 'permissions[sample_transfer_print]', array('sample_transfer_print' => ''), array('title' => 'Print')); ?>
                            </td>
                            <td class="text-center">
                                <?php echo $form->checkBoxList($model, 'permissions[sample_transfer_add]', array('sample_transfer_add' => ''), array('title' => 'Add')); ?>
                                <?php echo $form->checkBoxList($model, 'permissions[sample_transfer_excel]', array('sample_transfer_excel' => ''), array('title' => 'Excel')); ?>
                            </td>
                            <td class="text-center">
                                <?php echo $form->checkBoxList($model, 'permissions[sample_transfer_edit]', array('sample_transfer_edit' => ''), array('title' => 'Edit')); ?>
                                <?php echo $form->checkBoxList($model, 'permissions[sample_transfer_convert]', array('sample_transfer_convert' => ''), array('title' => 'Convert')); ?>
                            </td>
                            <td class="text-center"></td>
                            <td class="text-center"></td>
                            <td class="text-center"></td>
                            <td></td>
                            <td></td>
                        </tr> -->
                        <!-- <tr>
                            <td width="60%" class="text-bold">InDirect Transfer</td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[indirect_transfer_view]', array('indirect_transfer_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[indirect_transfer_add]', array('indirect_transfer_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></td>
                            <td></td>
                        </tr> -->
                                    <!-- <tr>
                                        <td width="60%" class="text-bold">Damage Transfer</td>
                                        <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[damagestore_view]', array('damagestore_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"></td>
                                    </tr> -->
                                    <!-- <tr>
                                        <td width="60%" class="text-bold">Service Transfer</td>
                                        <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[servicestore_view]', array('servicestore_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"></td>
                                    </tr> -->
                                    <!-- <tr>
                                        <td width="60%" class="text-bold">Receive Items</td>
                                        <td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[inv_recieveditem_view]', array('inv_recieveditem_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"><?php //echo $form->checkBoxList($model, 'permissions[inv_recieveditem_receive]', array('inv_recieveditem_receive' => ''), array('title' => 'View'));
                                ?></td>
                                        <td></td>
                                    </tr> -->
                                    <!-- <tr>
                                        <td width="60%" class="text-bold">De Allocation</td>
                                        <td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[inv_de_allocation]', array('inv_de_allocation' => ''), array('title' => 'De-Allocation'));
                                ?></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></td>
                                    </tr> -->
                                    <!-- <tr>
                                        <td width="60%" class="text-bold">Material to Material Transfer</td>
                                        <td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[materialtomaterial_transfer_view]', array('materialtomaterial_transfer_view' => ''), array('title' => 'View'));
                                ?></td>
                                        <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[materialtomaterial_transfer_add]', array('materialtomaterial_transfer_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></td>
                                    </tr> -->
                                    <!-- <tr>
                                        <td width="60%" class="text-bold">Change Rack Bin</td>
                                        <td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[inventory_change_rack_bin_view]', array('inventory_change_rack_bin_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></td>
                                    </tr> -->
                                    <!-- <tr>
                                        <td class="text-bold">View Inventory List Without Damage and Transfer</td>
                                        <td class="text-center" colspan="5"> <?php //echo $form->checkBoxList($model, 'permissions[inv_list_without_damage]', array('inv_list_without_damage' => ''), array('title' => 'View'));
                                ?></td>
                                    </tr> -->
                        <tr>
                            <td class="text-bold">View Sales Price</td>
                            <td class="text-center" > <?php echo $form->checkBoxList($model, 'permissions[view_sales_price]', array('view_sales_price' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"></td>
                            <td class="text-center"></td>
                        </tr>
                        <tr>
                            <td class="text-bold">Edit Selling Price</td>
                            <td class="text-center"></td>
                            <td class="text-center"></td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[edit_selling_price]', array('edit_selling_price' => ''), array('title' => 'Edit')); ?></td>
                           
                            <td class="text-center"></td>
                        </tr>
                                    <!-- <tr>
                                        <td class="text-bold">View Item Details</td>
                                        <td class="text-center" colspan="5"> <?php //echo $form->checkBoxList($model, 'permissions[inv_detail_view]', array('inv_detail_view' => ''), array('title' => 'View Item Details'));
                                ?></td>
                                    </tr> -->
                        <!-- <tr>
                            <td width="60%" class="text-bold">Inventory Details-Stock</td>
                            <td class="text-center" colspan="8"> <?php echo $form->checkBoxList($model, 'permissions[inv_detail_stock_view]', array('inv_detail_stock_view' => ''), array('title' => 'View Inventory Stock Detail')); ?></td>
                        </tr> -->
                        <!-- <tr>
                            <td width="60%" class="text-bold">Allocation</td>
                            <td class="text-center" colspan="8"> <?php echo $form->checkBoxList($model, 'permissions[inv_detail_alloc]', array('inv_detail_alloc' => ''), array('title' => 'View Allocation Details')); ?></td>
                        </tr> -->
                        <!-- <tr>
                            <td width="60%" class="text-bold">Inventory Details-SO</td>
                            <td class="text-center" colspan="8"> <?php echo $form->checkBoxList($model, 'permissions[inv_detail_so]', array('inv_detail_so' => ''), array('title' => 'View SO')); ?></td>
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold">Inventory Details-PO</td>
                            <td class="text-center" colspan="8"> <?php echo $form->checkBoxList($model, 'permissions[inv_detail_po]', array('inv_detail_po' => ''), array('title' => 'View PO')); ?></td>
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold">Inventory Details-SO History</td>
                            <td class="text-center" colspan="8"> <?php echo $form->checkBoxList($model, 'permissions[inv_detail_sohis_view]', array('inv_detail_sohis_view' => ''), array('title' => 'View SO History')); ?></td>
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold">Inventory Details-PO History</td>
                            <td class="text-center" colspan="8"> <?php echo $form->checkBoxList($model, 'permissions[inv_detail_pohis_view]', array('inv_detail_pohis_view' => ''), array('title' => 'View PO History')); ?></td>
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold">Inventory Details-Quotes Rate</td>
                            <td class="text-center" colspan="8"> <?php echo $form->checkBoxList($model, 'permissions[view_quote_price]', array('view_quote_price' => ''), array('title' => 'View Quote Price')); ?></td>
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold">Inventory Add-Sales Man</td>
                            <td class="text-center" colspan="8"> <?php echo $form->checkBoxList($model, 'permissions[inv_add_stock_by_sales_man]', array('inv_add_stock_by_sales_man' => ''), array('title' => 'Inventory add by sales man')); ?></td>
                        </tr> -->
                    </tbody>
                </table>
            </div>
        </div>
        
        
         <div class="tab-pane" id="purchase_tab">
           <div class="table-responsive" style="min-height: .01%;height: 350px;overflow-y: scroll;">
                <table class="table table-hover  table-permission table-striped">
                    <thead>
                        <tr>
                            <th width="60%" class="text-right"><?php echo $form->checkBoxList($model, 'permissions[purchase_check_all]', array('purchase_check_all' => ''), array('data-label' => 'Check All', 'onclick' => ' $("#purchase_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">Print</th>
                            <th class="text-center">Convert</th>
                            <th class="text-center">Approve1</th>
                            <!-- <th class="text-center">Approve2</th> -->
                            <!-- <th class="text-center">Approve3</th> -->
                                        <!--                            <th class="text-center">Document</th>-->
                            <!-- <th class="text-center">Post</th> -->
                            <!-- <th class="text-center">Add Price</th> -->
                            <!-- <th class="text-center">Analysis</th> -->
                            <!-- <th class="text-center">Sht.Cl</th> -->
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td width="60%" class="text-bold">Vendor</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[vendor_add]', array('vendor_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[vendor_edit]', array('vendor_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[vendor_view]', array('vendor_view' => ''), array('title' => 'View')); ?></td>
                            <!-- <td class="text-center"><?php // echo $form->checkBoxList($model, 'permissions[requisition_delete]',array('requisition_delete'=>''),array('title'=>'Delete'));
                                ?></td> -->
                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[requisition_pdf]',array('requisition_pdf'=>''),array('title'=>'Print'));
                                ?> </td>
                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[requisition_convert]',array('requisition_convert'=>''),array('title'=>'Convert'));
                                ?></td>
                                        <!--                                <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[requisition_document]',array('requisition_document'=>''),array('title'=>'Document Delete'));
                                ?> </td>-->
                            <td></td>
                            <td></td>
                            <!-- <td></td>
                            <td></td> 
                            <td></td>-->
                            <!-- <td></td> -->
                            
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold">Purchase Requisition</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[requisition_add]', array('requisition_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[requisition_edit]', array('requisition_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[requisition_view]', array('requisition_view' => ''), array('title' => 'View')); ?></td>
                            <!-- <td class="text-center"><?php // echo $form->checkBoxList($model, 'permissions[requisition_delete]',array('requisition_delete'=>''),array('title'=>'Delete'));
                                ?></td> -->
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[requisition_pdf]', array('requisition_pdf' => ''), array('title' => 'Print')); ?> </td>
                            <td class="text-center"><?php
                                echo $form->checkBoxList($model, 'permissions[requisition_convert_enq]', array('requisition_convert_enq' => ''), array('title' => 'Convert to Enquiry'));
                                echo $form->checkBoxList($model, 'permissions[requisition_convert_po]', array('requisition_convert_po' => ''), array('title' => 'Convert to Purchase Order'));
                                ?></td>
                                        <!--                                <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[requisition_document]',array('requisition_document'=>''),array('title'=>'Document Delete'));
                                ?> </td>-->
                            <td></td>
                            <td></td>
                            <!-- <td></td>
                            <td></td> -->
                            <!-- <td></td> -->
                            <!-- <td></td> -->
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold">Purchase Enquiry</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[enquiry_add]', array('enquiry_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[enquiry_edit]', array('enquiry_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[enquiry_view]', array('enquiry_view' => ''), array('title' => 'Views')); ?></td>
                            <!-- <td class="text-center"><?php // echo $form->checkBoxList($model, 'permissions[enquiry_delete]',array('enquiry_delete'=>''),array('title'=>'Delete'));
                                ?></td> -->
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[enquiry_pdf]', array('enquiry_pdf' => ''), array('title' => 'Print')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[enquiry_convert]', array('enquiry_convert' => ''), array('title' => 'Convert')); ?></td>
                                        <!--				<td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[enquiry_document]',array('enquiry_document'=>''),array('title'=>'Document Delete'));
                                ?></td>-->
                       <td></td>
                    
                            <td></td>
                            <!-- <td></td> -->
                            <!-- <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[enquiry_price]',array('enquiry_price'=>''),array('title'=>'Enquiry Price')); ?></td>
                             -->
                            <!-- <td></td> -->
                            <!-- <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[enquiry_analysis]', array('enquiry_analysis' => ''), array('title' => 'Enquiry Analysis')); ?></td> -->
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold">Purchase Order</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[purchase_order_add]', array('purchase_order_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[purchase_order_edit]', array('purchase_order_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php
                                echo $form->checkBoxList($model, 'permissions[purchase_order_view]', array('purchase_order_view' => ''), array('title' => 'View Purchase order Main Menu'));
                                echo $form->checkBoxList($model, 'permissions[purchase_order_view_context_menu]', array('purchase_order_view_context_menu' => ''), array('title' => 'View Purchase order Context Menu'));
                                ?></td>
                            <!-- <td class="text-center"><?php // echo $form->checkBoxList($model, 'permissions[enquiry_delete]',array('enquiry_delete'=>''),array('title'=>'Delete'));
                                ?></td> -->
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[purchase_order_pdf]', array('purchase_order_pdf' => ''), array('title' => 'Print')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[purchase_order_convert]', array('purchase_order_convert' => ''), array('title' => 'Convert')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[purchase_order_approve1]', array('purchase_order_approve1' => ''), array('title' => 'Approve1')); ?></td>
                            <!-- <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[purchase_order_approve2]', array('purchase_order_approve2' => ''), array('title' => 'Approve2')); ?></td> -->
                            <!--  <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[purchase_order_approve3]', array('purchase_order_approve3' => ''), array('title' => 'Approve3')); ?></td>
                                      				<td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[enquiry_document]',array('enquiry_document'=>''),array('title'=>'Document Delete'));
                                ?></td>-->
                            <!-- <td></td>
                          
                            <td></td> -->
                            <!-- <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[purchase_order_analysis]',array('enquiry_analysis'=>''),array('title'=>'Document Delete'));
                                ?></td> -->
                            <!-- <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[purchase_order_shortclosure]', array('purchase_order_shortclosure' => ''), array('title' => 'Short Closure')); ?></td> -->
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold">Material Receipt</td>
                            <td class="text-center"><?php // echo $form->checkBoxList($model, 'permissions[purchase_material_add]',array('purchase_material_add'=>''),array('title'=>'Add'));
                                ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[purchase_material_edit]', array('purchase_material_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[purchase_material_view]', array('purchase_material_view' => ''), array('title' => 'View')); ?></td>
                            <!-- <td class="text-center"><?php // echo $form->checkBoxList($model, 'permissions[enquiry_delete]',array('enquiry_delete'=>''),array('title'=>'Delete'));
                                ?></td> -->
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[purchase_material_print]', array('purchase_material_print' => ''), array('title' => 'Print')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[purchase_material_convert]', array('purchase_material_convert' => ''), array('title' => 'Convert')); ?></td>
                                        <!--				<td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[enquiry_document]',array('enquiry_document'=>''),array('title'=>'Document Delete'));
                                ?></td>-->
                             <!-- <td></td> -->
                            <td></td>
                            <td></td>
                            <!-- <td></td>
                            <td></td> -->
                           
                            <!-- <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[purchase_order_analysis]',array('enquiry_analysis'=>''),array('title'=>'Document Delete'));
                                ?></td> -->
                            <!-- <td class="text-center"><?php // echo $form->checkBoxList($model, 'permissions[purchase_order_shortclosure]',array('purchase_order_shortclosure'=>''),array('title'=>'Document Delete'));
                                ?></td> -->
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold">Quality Check</td>
                            <td class="text-center"><?php // echo $form->checkBoxList($model, 'permissions[purchase_order_add]',array('enquiry_add'=>''),array('title'=>'Add'));
                                ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[purchase_qc_edit]', array('purchase_qc_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[purchase_qc_view]', array('purchase_qc_view' => ''), array('title' => 'View')); ?></td>
                            <!-- <td class="text-center"><?php // echo $form->checkBoxList($model, 'permissions[enquiry_delete]',array('enquiry_delete'=>''),array('title'=>'Delete'));
                                ?></td> -->
                            <td class="text-center"><?php // echo $form->checkBoxList($model, 'permissions[purchase_material_pdf]',array('purchase_material_pdf'=>''),array('title'=>'Print'));
                                ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[purchase_qc_convert]', array('purchase_qc_convert' => ''), array('title' => 'Convert')); ?></td>
                                        <!--				<td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[enquiry_document]',array('enquiry_document'=>''),array('title'=>'Document Delete'));
                                ?></td>-->
                                 <td></td>
                                 <!-- <td></td> -->
                            <td></td>
                            <!-- <td></td>
                            <td></td> -->
                            <!-- <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[purchase_order_analysis]',array('enquiry_analysis'=>''),array('title'=>'Document Delete'));
                                ?></td> -->
                            <!-- <td class="text-center"><?php // echo $form->checkBoxList($model, 'permissions[purchase_order_shortclosure]',array('purchase_order_shortclosure'=>''),array('title'=>'Document Delete'));
                                ?></td> -->
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold">Purchase Invoice</td>
                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[purchase_invoice_add]',array('purchase_invoice_add'=>''),array('title'=>'Add'));
                                ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[purchase_invoice_edit]', array('purchase_invoice_edit' => ''), array('title' => 'Purchase Invoice Number Edit')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[purchase_invoice_view]', array('purchase_invoice_view' => ''), array('title' => 'View')); ?></td>
                            <!-- <td class="text-center"><?php // echo $form->checkBoxList($model, 'permissions[enquiry_delete]',array('enquiry_delete'=>''),array('title'=>'Delete'));
                                ?></td> -->
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[purchase_invoice_pdf]', array('purchase_invoice_pdf' => ''), array('title' => 'Print')); ?></td>
                            <td class="text-center"><?php // echo $form->checkBoxList($model, 'permissions[purchase_qc_convert]',array('purchase_qc_convert'=>''),array('title'=>'Convert'));
                                ?></td>
                                        <!--				<td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[enquiry_document]',array('enquiry_document'=>''),array('title'=>'Document Delete'));
                                ?></td>-->
                                <td></td>
                            <!-- <td></td> -->
                            <td></td>
                            <!-- <td class="text-center"></td>
                            <td class="text-center"></td> -->
                            <!-- <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[purchase_order_analysis]',array('enquiry_analysis'=>''),array('title'=>'Document Delete'));
                                ?></td> -->
                            <!-- <td class="text-center"><?php // echo $form->checkBoxList($model, 'permissions[purchase_order_shortclosure]',array('purchase_order_shortclosure'=>''),array('title'=>'Document Delete'));
                                ?></td> -->
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold">Purchase Return</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[pur_debitnote_add]', array('pur_debitnote_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[pur_debitnote_edit]',array('pur_debitnote_edit'=>''),array('title'=>'Edit'));
                                ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[pur_debitnote_view]', array('pur_debitnote_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[pur_debitnote_pdf]', array('pur_debitnote_pdf' => ''), array('title' => 'Print')); ?></td>
                              
                             <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[pur_debitnote_pckin_convert]', array('pur_debitnote_pckin_convert' => ''), array('title' => 'Convert Packaging')); ?></td>
                                 
                             <!--                                <td class="text-center"></td>-->
                            <!-- <td></td> -->
                            <td></td>
                            <!-- <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[pur_debitnote_post]',array('pur_debitnote_post'=>''),array('title'=>'Post'));
                                ?> </td>
                            <td class="text-center"></td> -->
                            <!-- <td class="text-center"></td>  -->
                            <!-- <td class="text-center"></td> -->
                        </tr>
                       
                        <tr>
                            <td width="60%" class="text-bold">Delivery Tracker</td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[pur_deliverytrack_edit]', array('pur_deliverytrack_edit' => ''), array('title' => 'Edit Date')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[pur_deliverytrack_view]', array('pur_deliverytrack_view' => ''), array('title' => 'View')); ?></td>
                            <!-- <td class="text-center"></td> -->
                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[direct_purchase_pdf]',array('direct_sales_pdf'=>''),array('title'=>'Print'));
                                ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[pur_deliverytrack_convert]', array('pur_deliverytrack_convert' => ''), array('title' => 'Convert')); ?></td>
                                        <!--                                <td class="text-center"></td>-->
                                        <td></td>
                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[direct_purchase_post]',array('direct_sales_post'=>''),array('title'=>'Post'));
                                ?> </td>
                            <!-- <td class="text-center"></td> -->
                            <!-- <td></td>
                            <td></td> -->
                            <!-- <td class="text-center"></td> -->
                            <!-- <td class="text-center"></td> -->
                        </tr>
                        
                        <tr>
                            <td width="60%" class="text-bold">Receipt Tracker</td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[pur_receipttrack_edit]', array('pur_receipttrack_edit' => ''), array('title' => 'Edit Date')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[pur_receipttrack_view]', array('pur_receipttrack_view' => ''), array('title' => 'View')); ?></td>
                            <!-- <td class="text-center"></td> -->
                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[direct_purchase_pdf]',array('direct_sales_pdf'=>''),array('title'=>'Print'));
                                ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[pur_receipttrack_convert]', array('pur_receipttrack_convert' => ''), array('title' => 'Convert')); ?></td>
                                        <!--                                <td class="text-center"></td>-->
                                        <td></td>
                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[direct_purchase_post]',array('direct_sales_post'=>''),array('title'=>'Post'));
                                ?> </td>
                            <!-- <td class="text-center"></td> -->
                            <!-- <td></td>
                            <td></td> -->
                            <!-- <td class="text-center"></td> -->
                            <!-- <td class="text-center"></td> -->
                        </tr>
                     
                     
                    </tbody>
                </table>
            </div>  
        </div>
        
        
        
        
    <div class="tab-pane" id="finance_tab">
          <div class="table-responsive">
                <table class="table table-hover  table-permission table-striped">
                    <thead>
                        <tr>
                            <th width="60%" class="text-right"><?php echo $form->checkBoxList($model, 'permissions[finance_check_all]', array('finance_check_all' => ''), array('data-label' => 'Check All', 'onclick' => ' $("#finance_tab input:checkbox").prop("checked", $(this).prop("checked"));')); ?> Select All </th>
                            <th class="text-center">View</th>
                            <th class="text-center">Add</th>
                            <th class="text-center">Import</th>
                            <th class="text-center">Delete</th>
                            <th class="text-center">Post</th>
                            <th class="text-center">UnPost</th>
                            <th class="text-center">Print</th>
                            <th class="text-center">Restrict</th>
                            <th class="text-center">Cheque Print</th>
                            <th class="text-center">Edit</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td width="60%" class="text-bold">Vouchers</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[finance_voucher_view]', array('finance_voucher_view' => ''), array()); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[finance_voucher_add]', array('finance_voucher_add' => ''), array()); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[finance_voucher_import]', array('finance_voucher_import' => ''), array()); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[finance_voucher_delete]', array('finance_voucher_delete' => ''), array()); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[finance_post_voucher]', array('finance_post_voucher' => ''), array()); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[finance_unpost_voucher]', array('finance_unpost_voucher' => ''), array()); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[finance_print_voucher]', array('finance_print_voucher' => ''), array()); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[finance_print_cheque]', array('finance_print_cheque' => ''), array()); ?></td>
                            <td class="text-center"></td>
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold">Allocation</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[finance_allocation_view]', array('finance_allocation_view' => ''), array()); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[finance_allocation_add]', array('finance_allocation_add' => ''), array()); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[finance_allocation_delete]', array('finance_allocation_delete' => ''), array()); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[finance_print_allocation]', array('finance_print_allocation' => ''), array()); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"></td>
                            <td class="text-center"></td>
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold">Reconciliation</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[finance_reconciliation_view]', array('finance_reconciliation_view' => ''), array()); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[finance_reconciliation_add]', array('finance_reconciliation_add' => ''), array()); ?></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>
                            <td width="60%" class="text-bold">Cheque Management</td>
                            <td></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[finance_chq_add]', array('finance_chq_add' => ''), array()); ?></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>
                            <td width="60%" class="text-bold">General Ledger</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[finance_general_ledger]', array('finance_general_ledger' => ''), array()); ?></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>
                            <td width="60%" class="text-bold">Ledger Summary</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[ledger_summary]', array('ledger_summary' => ''), array()); ?></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>
                            <td width="60%" class="text-bold">Balance sheet</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[balance_sheet]', array('balance_sheet' => ''), array()); ?></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>
                            <td width="60%" class="text-bold">Statements</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[statements]', array('statements' => ''), array()); ?></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>
                            <td width="60%" class="text-bold">Aging</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[aging]', array('aging' => ''), array()); ?></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>
                            <td width="60%" class="text-bold">Subledger Report</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[subledger_report]', array('subledger_report' => ''), array()); ?></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>
                            <td width="60%" class="text-bold">Cash Flow Report(Sales & Purchase)</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[cashflow_report]', array('cashflow_report' => ''), array()); ?></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>
                            <td width="60%" class="text-bold">Cash Flow Report(Finance)</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[cashflow_finance_report]', array('cashflow_finance_report' => ''), array()); ?></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>
                            <td width="60%" class="text-bold">Profit Reports</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[profit_reports]', array('profit_reports' => ''), array()); ?></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>
                            <td width="60%" class="text-bold">Sales vs COGS Report</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[sales_vs_cogs]', array('sales_vs_cogs' => ''), array()); ?></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>
                            <td width="60%" class="text-bold">Restrict Brands in Profit Report</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[restrict_brands]', array('restrict_brands' => ''), array()); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"></td>
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold">Trial Balance</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[trial_balance]', array('trial_balance' => ''), array()); ?></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>
                            <td width="60%" class="text-bold">VAT Report</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[vat_report]', array('vat_report' => ''), array()); ?></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>
                            <td width="60%" class="text-bold">Masters</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[masters_finance]', array('masters_finance' => ''), array()); ?></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>
                            <td width="60%" class="text-bold">Admin</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[admin_finance]', array('admin_finance' => ''), array()); ?></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>
                            <td width="60%" class="text-bold">Security Cheque</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[finance_security_cheque_view]', array('finance_security_cheque_view' => ''), array()); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[finance_security_cheque_add]', array('finance_security_cheque_add' => ''), array()); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[finance_security_cheque_delete]', array('finance_security_cheque_delete' => ''), array()); ?></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>
                            <td width="60%" class="text-bold">Security Cheque(Report)</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[finance_security_cheque_report]', array('finance_security_cheque_report' => ''), array()); ?></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>
                            <td width="60%" class="text-bold">Vehicle Report</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[vehicle_finance_report]', array('vehicle_finance_report' => ''), array()); ?></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>
                        <!--EMI START-->
                        <tr>
                            <td width="60%" class="text-bold">EMI</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[mas_inv_emi_view]', array('mas_inv_emi_view' => ''), array()); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[mas_inv_emi_add]', array('mas_inv_emi_add' => ''), array()); ?></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>
                            <td width="60%" class="text-bold">EMI Category</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[mas_inv_emicategory_view]', array('mas_inv_emicategory_view' => ''), array()); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[mas_inv_emicategory_add]', array('mas_inv_emicategory_add' => ''), array()); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[mas_inv_emicategory_delete]', array('mas_inv_emicategory_delete' => ''), array()); ?></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>
                        <!--EMI END-->
                        <tr>
                            <td width="60%" class="text-bold">Cheque Collection</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[cheque_collection_view]', array('cheque_collection_view' => ''), array()); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[cheque_collection_add]', array('cheque_collection_add' => ''), array()); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[cheque_collection_upload]', array('cheque_collection_upload' => ''), array()); ?></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[cheque_collection_edit]', array('cheque_collection_edit' => ''), array()); ?></td>
                    </tbody>
                </table>
            </div>
   
        </div>
        
        
        
          <div class="tab-pane" id="account_tab">
            <div class="table-responsive">
                <table class="table table-hover  table-permission table-striped">
                    <thead>
                        <!------------------------------------------------------------------------------------------------------------->
                        <tr>
                            <th width="60%" class="text-right"><?php echo $form->checkBoxList($model, 'permissions[account_check_all]', array('account_check_all' => ''), array('data-label' => 'Check All', 'onclick' => ' $("#account_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">Post</th>
                            <th class="text-center">UnPost</th>
                            <th class="text-center">Print</th>
                            <!-- <th class="text-center">Commission</th>
                            <th class="text-center">Import</th>
                            <th class="text-center">Upload Doc</th>
                            <th class="text-center">Copy</th> -->
                        </tr>
                    </thead>
                    <tbody>
                        <!------------------------------------------------------------------------------------------------------------->
                        <tr>
                            <td width="60%" class="text-bold">Account Menu</td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[account_menu_view]', array('account_menu_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"> </td>

                            <!-- <td class="text-center"> </td>
                            <td class="text-center"> </td>
                            <td class="text-center"> </td>
                            <td class="text-center"> </td> -->
                        </tr>
                        <!------------------------------------------------------------------------------------------------------------->
                        <tr>
                            <td width="60%" class="text-bold">Vouchers</td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[acc_vouchers_menu_view]', array('acc_vouchers_menu_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[acc_vouchers_add]', array('acc_vouchers_add' => ''),  array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[acc_vouchers_edit]', array('acc_vouchers_edit' => ''),  array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[acc_vouchers_delete]', array('acc_vouchers_delete' => ''),  array('title' => 'Delete')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[acc_vouchers_post]', array('acc_vouchers_post' => ''), array('title' => 'Post')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[acc_vouchers_unpost]', array('acc_vouchers_unpost' => ''), array('title' => 'Un Post')); ?></td>
                            <td class="text-center"><?php 
                            echo $form->checkBoxList($model, 'permissions[acc_vouchers_print]', array('acc_vouchers_print' => ''),  array('title' => 'Print'));
                            echo $form->checkBoxList($model, 'permissions[acc_print_cheque]', array('acc_print_cheque' => ''), array('title' => 'cheque print'));
                             ?></td>

                            <!-- <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[acc_commission_menu_view]', array('acc_commission_menu_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[acc_import_menu_view]', array('acc_import_menu_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[acc_voucher_uploaddoc]', array('acc_voucher_uploaddoc' => ''), array('title' => 'Upload')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[acc_copy_voucher]', array('acc_copy_voucher' => ''), array('title' => 'Copy')); ?></td> -->
                        </tr>
                        <!------------------------------------------------------------------------------------------------------------->
                        <tr>
                            <td width="60%" class="text-bold">Allocation</td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[acc_allocation_menu_view]', array('acc_allocation_menu_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[acc_allocation_add]', array('acc_allocation_add' => ''),  array('title' => 'Add')); ?></td>
                            <td class="text-center"> </td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[acc_allocation_delete]', array('acc_allocation_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[acc_allocation_print]', array('acc_allocation_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>
                        <!------------------------------------------------------------------------------------------------------------->

                        <!-- <tr>
                            <td width="60%" class="text-bold">Security Cheque</td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[acc_securitycheque_menu_view]', array('acc_securitycheque_menu_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[acc_securitycheque_add]', array('acc_securitycheque_add' => ''), array(), array('title' => 'Add')); ?></td>
                            <td class="text-center"> </td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[acc_securitycheque_delete]', array('acc_securitycheque_delete' => ''), array(), 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>
                            <td width="60%" class="text-bold">Reconciliation History</td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[acc_reconciliation_history_menu_view]', array('acc_reconciliation_history_menu_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[acc_reconciliation_history_add]', array('acc_reconciliation_history_add' => ''),  array('title' => 'Add')); ?></td>
                            <td class="text-center"> </td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[acc_reconciliation_history_delete]', array('acc_reconciliation_history_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[acc_reconciliation_history_print]', array('acc_reconciliation_history_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>
                        <!------------------------------------------------------------------------------------------------------------->



                        <tr>
                            <td width="60%" class="text-bold">Ledgers</td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[acc_ledgers_menu_view]', array('acc_ledgers_menu_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[acc_ledgers_add]', array('acc_ledgers_add' => ''), array(), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[acc_ledgers_edit]', array('acc_ledgers_edit' => ''), array(), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[acc_ledgers_delete]', array('acc_ledgers_delete' => ''), array(), 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>
                            <td width="60%" class="text-bold"> SubLedger Types</td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[acc_subLedger_type_menu_view]', array('acc_subLedger_type_menu_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[acc_subLedger_type_add]', array('acc_subLedger_type_add' => ''), array(), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[acc_subLedger_type_edit]', array('acc_subLedger_type_edit' => ''), array(), 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> -->
                        </tr>
                        <!------------------------------------------------------------------------------------------------------------->
                        <tr>
                            <td width="60%" class="text-bold"> SubLedgers </td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[acc_subLedgers_menu_view]', array('acc_subLedgers_menu_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[acc_subLedgers_add]', array('acc_subLedgers_add' => ''), array(), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[acc_subLedgers_edit]', array('acc_subLedgers_edit' => ''), array(), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[acc_subLedgers_delete]', array('acc_subLedgers_delete' => ''), array(), 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>
                            <td width="60%" class="text-bold"> Voucher Types</td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[acc_voucher_types_menu_view]', array('acc_voucher_types_menu_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[acc_voucher_types_add]', array('acc_voucher_types_add' => ''), array(), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[acc_voucher_types_edit]', array('acc_voucher_types_edit' => ''), array(), 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> -->
                        </tr>
                        <!------------------------------------------------------------------------------------------------------------->
                        <!-- <tr>
                            <td width="60%" class="text-bold"> Payment Mode</td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[acc_payment_mode_menu_view]', array('acc_payment_mode_menu_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[acc_payment_mode_add]', array('acc_payment_mode_add' => ''), array(), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[acc_payment_mode_edit]', array('acc_payment_mode_edit' => ''), array(), 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>
                        </tr> -->
                        <!------------------------------------------------------------------------------------------------------------->
                        <!-- <tr>
                            <td width="60%" class="text-bold"> Company Master</td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[acc_company_master_menu_view]', array('acc_company_master_menu_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[acc_company_master_add]', array('acc_company_master_add' => ''), array(), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[acc_company_master_edit]', array('acc_company_master_edit' => ''), array(), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[acc_company_master_delete]', array('acc_company_master_delete' => ''), array(), 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>
                            <td width="60%" class="text-bold">Pre Audit Close</td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[acc_audit_close_menu_view]', array('acc_audit_close_menu_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[acc_audit_close_add]', array('acc_audit_close_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[acc_audit_close_delete]', array('acc_audit_close_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>
                            <td width="60%" class="text-bold">Final Audit Close</td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[acc_final_audit_close_menu_view]', array('acc_final_audit_close_menu_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[acc_final_audit_close_add]', array('acc_final_audit_close_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[acc_final_audit_close_delete]', array('acc_final_audit_close_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 /* ?>
                            <tr>
                                <td width="60%" class="text-bold">Budgeting</td>
                                <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[acc_budgeting_view]', array('acc_budgeting_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"></td>
                                <!-- <td class="text-center"> </td>
                                <td class="text-center"> </td>
                                <td class="text-center"> </td> <td class="text-center"> </td> -->
                            </tr>
                         <?php */ ?>
                                    <!------------------------------------------------------------------------------------------------------------->
                                    <tr>
                            <td width="60%" class="text-bold" >Account Mapping</td>
                            <td class="text-center" ><?php echo $form->checkBoxList($model, 'permissions[acc_mapping_menu_view]', array('acc_mapping_menu_view' => ''), array('title' => 'Show Post To Finance')); ?></td>
                            <td class="text-center" colspan="12"></td>
                        </tr>
                        <!------------------------------------------------------------------------------------------------------------->
                        <tr>
                            <td width="60%" class="text-bold" >Synchronize Subledgers</td>
                            <td class="text-center" ><?php echo $form->checkBoxList($model, 'permissions[acc_synchronize_subledgers_menu_view]', array('acc_synchronize_subledgers_menu_view' => ''), array('title' => 'Show Post To Finance')); ?></td>
                            <td class="text-center" colspan="12"></td>
                            </tr>
                        <!------------------------------------------------------------------------------------------------------------->
                        <tr>
                            <td width="60%" class="text-bold" >Masters Menu</td>
                            <td class="text-center" > <?php echo $form->checkBoxList($model, 'permissions[acc_masters_menu_view]', array('acc_masters_menu_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center" colspan="12"></td>
                            </tr>
                    <!------------------------------------------------------------------------------------------------------------->

                        <tr>
                            <td width="60%" class="text-bold" >Cheques</td>
                            <td class="text-center" > <?php echo $form->checkBoxList($model, 'permissions[acc_cheques_menu_view]', array('acc_cheques_menu_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center" colspan="12"></td>
                            </tr>
                         <tr>
                            <td width="60%" class="text-bold" > Cheque Management</td>
                            <td class="text-center" > <?php echo $form->checkBoxList($model, 'permissions[acc_cheques_management_menu_view]', array('acc_cheques_management_menu_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center" colspan="12"></td>
                            </tr>
                        <tr>
                            <td width="60%" class="text-bold" >  Change Cleared Cheque Status</td>
                            <td class="text-center" > <?php echo $form->checkBoxList($model, 'permissions[acc_change_cleared_cheque_menu_view]', array('acc_change_cleared_cheque_menu_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center" colspan="12"></td>
                            </tr>
                        <tr>
                            <td width="60%" class="text-bold" >  Resubmit Bounced Cheque </td>
                            <td class="text-center" > <?php echo $form->checkBoxList($model, 'permissions[acc_resubmit_bounced_cheque_menu_view]', array('acc_resubmit_bounced_cheque_menu_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center" colspan="12"></td>
                            </tr>
                        
                           <tr>
                            <td width="60%" class="text-bold" > Return Bounced Cheque Resubmit </td>
                            <td class="text-center" > <?php echo $form->checkBoxList($model, 'permissions[acc_resubmit_return_bounced_cheque_menu_view]', array('acc_resubmit_return_bounced_cheque_menu_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center" colspan="12"></td>
                            </tr>
                       <tr>
                            <td width="60%" class="text-bold" > Reconciliation </td>
                            <td class="text-center" > <?php echo $form->checkBoxList($model, 'permissions[acc_reconciliation_menu_view]', array('acc_reconciliation_menu_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center" colspan="12"></td>
                            </tr>
                        <!------------------------------------------------------------------------------------------------------------->
                        <tr>
                            <td width="60%" class="text-bold" >  Reconciliation History </td>
                            <td class="text-center" > <?php echo $form->checkBoxList($model, 'permissions[acc_reconciliation_history_menu_view]', array('acc_reconciliation_history_menu_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center" colspan="12"></td>
                            </tr>
                        <!--Show Post To Finance-->
                        <tr>
                            <td width="60%" class="text-bold" >Invoice Post To Finance</td>
                            <td class="text-center" > <?php echo $form->checkBoxList($model, 'permissions[sales_post_to_finance]', array('sales_post_to_finance' => ''), array('title' => 'Show Post To Finance')); ?></td>
                            <td class="text-center" colspan="12"></td>
                            </tr>
                        <tr>
                            <td width="60%" class="text-bold" >Purchase Post To Finance</td>
                            <td class="text-center" > <?php echo $form->checkBoxList($model, 'permissions[purchase_post_to_finance]', array('purchase_post_to_finance' => ''), array('title' => 'Show Post To Finance')); ?></td>
                            <td class="text-center" colspan="12"></td>
                            </tr>
                        <tr>
                            <td width="60%" class="text-bold" >Inventory Issue Post To Finance</td>
                            <td class="text-center" > <?php echo $form->checkBoxList($model, 'permissions[issues_post_to_finance]', array('issues_post_to_finance' => ''), array('title' => 'Show Post To Finance')); ?></td>
                            <td class="text-center" colspan="12"></td>
                            </tr>
                        <tr>
                            <td width="60%" class="text-bold" >Inventory receipts Post To Finance</td>
                            <td class="text-center" > <?php echo $form->checkBoxList($model, 'permissions[receipts_post_to_finance]', array('receipts_post_to_finance' => ''), array('title' => 'Show Post To Finance')); ?></td>
                        <td class="text-center" colspan="12"></td>
                            </tr>
                        <!------------------------------------------------------------------------------------------------------------->
                        <!------------------------------------------------------------------------------------------------------------->
                        <tr>
                            <td width="60%" class="text-bold" >Reports Menu</td>
                            <td class="text-center" > <?php echo $form->checkBoxList($model, 'permissions[acc_reports_menu_view]', array('acc_reports_menu_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center" colspan="12"></td>
                            </tr>
                        <!------------------------------------------------------------------------------------------------------------->
                        <tr>
                            <td width="60%" class="text-bold" >Report/Trial Balance</td>
                            <td class="text-center" > <?php echo $form->checkBoxList($model, 'permissions[acc_trialbalance_report_menu]', array('acc_trialbalance_report_menu' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center" colspan="12"></td>
                            </tr>
                        <!------------------------------------------------------------------------------------------------------------->
                        <tr>
                            <td width="60%" class="text-bold" >Report/Profit And Loss</td>
                            <td class="text-center" > <?php echo $form->checkBoxList($model, 'permissions[acc_profitloss_report_menu]', array('acc_profitloss_report_menu' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center" colspan="12"></td>
                            </tr>
                        <!------------------------------------------------------------------------------------------------------------->
                        <tr>
                            <td width="60%" class="text-bold" >Report/Balance </td>
                            <td class="text-center" > <?php echo $form->checkBoxList($model, 'permissions[acc_balance_report_menu]', array('acc_balance_report_menu' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center" colspan="12"></td>
                            </tr>
                        <!------------------------------------------------------------------------------------------------------------->
                        <tr>
                            <td width="60%" class="text-bold" >Report/General Ledger</td>
                            <td class="text-center" > <?php echo $form->checkBoxList($model, 'permissions[acc_generalledger_report_menu]', array('acc_generalledger_report_menu' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center" colspan="12"></td>
                            </tr>
                        <tr>
                            <td width="60%" class="text-bold" >Report/Ledger Report</td>
                            <td class="text-center" > <?php echo $form->checkBoxList($model, 'permissions[acc_ledger_report_menu]', array('acc_ledger_report_menu' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center" colspan="12"></td>
                            </tr>
                        <!------------------------------------------------------------------------------------------------------------->
                        <tr>
                            <td width="60%" class="text-bold" >Report/Customer Statement</td>
                            <td class="text-center" > <?php echo $form->checkBoxList($model, 'permissions[acc_customerstatement_report_menu]', array('acc_customerstatement_report_menu' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center" colspan="12"></td>
                            </tr>
                        <!------------------------------------------------------------------------------------------------------------->
                        <tr>
                            <td width="60%" class="text-bold" >Report/Vendor Statement</td>
                            <td class="text-center" > <?php echo $form->checkBoxList($model, 'permissions[acc_vendorstatement_report_menu]', array('acc_vendorstatement_report_menu' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center" colspan="12"></td>
                            </tr>
                        <!------------------------------------------------------------------------------------------------------------->
                        <tr>
                            <td width="60%" class="text-bold" >Report/Receivable Aging</td>
                            <td class="text-center" > <?php echo $form->checkBoxList($model, 'permissions[acc_receivableaging_report_menu]', array('acc_receivableaging_report_menu' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center" colspan="12"></td>
                            </tr>
                        <!------------------------------------------------------------------------------------------------------------->
                        <tr>
                            <td width="60%" class="text-bold" >Report/Payable Aging</td>
                            <td class="text-center" > <?php echo $form->checkBoxList($model, 'permissions[acc_payableaging_report_menu]', array('acc_payableaging_report_menu' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center" colspan="12"></td>
                            </tr>
                        <!------------------------------------------------------------------------------------------------------------->
                        <tr>
                            <td width="60%" class="text-bold" >Report/VAT Report</td>
                            <td class="text-center" > <?php echo $form->checkBoxList($model, 'permissions[acc_vat_report_menu]', array('acc_vat_report_menu' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center" colspan="12"></td>
                            </tr>
                        <!------------------------------------------------------------------------------------------------------------->
                        <tr>
                            <td width="60%" class="text-bold" >Report/VAT Summary</td>
                            <td class="text-center" > <?php echo $form->checkBoxList($model, 'permissions[acc_vat_summary_report_menu]', array('acc_vat_summary_report_menu' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center" colspan="12"></td>
                            </tr>
                        <!------------------------------------------------------------------------------------------------------------->
                        <tr>
                            <td width="60%" class="text-bold" >Report/VAT Register</td>
                            <td class="text-center" > <?php echo $form->checkBoxList($model, 'permissions[acc_vat_register_report_menu]', array('acc_vat_register_report_menu' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center" colspan="12"></td>
                            </tr>
                        <!------------------------------------------------------------------------------------------------------------->
                        <tr>
                            <td width="60%" class="text-bold" >Report/Subledger Detail</td>
                            <td class="text-center" > <?php echo $form->checkBoxList($model, 'permissions[acc_subledgerdetail_report_menu]', array('acc_subledgerdetail_report_menu' => ''), array('title' => 'View')); ?></td>
                         <td class="text-center" colspan="12"></td>
                            </tr>
                        <!------------------------------------------------------------------------------------------------------------->
                        <tr>
                            <td width="60%" class="text-bold" >Report/Ledger Summary</td>
                            <td class="text-center" > <?php echo $form->checkBoxList($model, 'permissions[acc_ledgersummary_report_menu]', array('acc_ledgersummary_report_menu' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center" colspan="12"></td>
                            </tr>
                        <!------------------------------------------------------------------------------------------------------------->
                        <tr>
                            <td width="60%" class="text-bold" >Report/Customer Statement As On Date</td>
                            <td class="text-center" > <?php echo $form->checkBoxList($model, 'permissions[acc_customerstatement_ason_date_report_menu]', array('acc_customerstatement_ason_date_report_menu' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center" colspan="12"></td>
                            </tr>
                        
                        <tr>
                            <td width="60%" class="text-bold" >Report/Consolidated Customer Statement</td>
                            <td class="text-center" > <?php echo $form->checkBoxList($model, 'permissions[acc_customerstatement_consolidated_report_menu]', array('acc_customerstatement_consolidated_report_menu' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center" colspan="12"></td>
                            </tr>
                         <tr>
                            <td width="60%" class="text-bold" >Report/Customer PDC Statement</td>
                            <td class="text-center" > <?php echo $form->checkBoxList($model, 'permissions[acc_customerstatement_pdc_report_menu]', array('acc_customerstatement_pdc_report_menu' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center" colspan="12"></td>
                            </tr>
                        <!------------------------------------------------------------------------------------------------------------->
                        <tr>
                            <td width="60%" class="text-bold" >Report/Vendor Statement As On Date</td>
                            <td class="text-center" > <?php echo $form->checkBoxList($model, 'permissions[acc_vendorstatement_ason_date_report_menu]', array('acc_vendorstatement_ason_date_report_menu' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center" colspan="12"></td>
                            </tr>
                         <tr>
                            <td width="60%" class="text-bold" >Report/Vendor PDC Statement</td>
                            <td class="text-center" > <?php echo $form->checkBoxList($model, 'permissions[acc_vendorstatement_pdc_report_menu]', array('acc_vendorstatement_pdc_report_menu' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center" colspan="12"></td>
                            </tr>
                        <!------------------------------------------------------------------------------------------------------------->
                        <tr>
                            <td width="60%" class="text-bold" >Report/Profit and Loss Detailed</td>
                            <td class="text-center" > <?php echo $form->checkBoxList($model, 'permissions[acc_profitloss_detailed_report_menu]', array('acc_profitloss_detailed_report_menu' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center" colspan="12"></td>
                            </tr>
                        <!------------------------------------------------------------------------------------------------------------->
                        <tr>
                            <td width="60%" class="text-bold" >Report/Balance Detailed Report</td>
                            <td class="text-center" > <?php echo $form->checkBoxList($model, 'permissions[acc_balance_detailed_report_menu]', array('acc_balance_detailed_report_menu' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center" colspan="12"></td>
                            </tr>
                        <!------------------------------------------------------------------------------------------------------------->
                    </tbody>
                </table>
            </div>
        </div>
        
        
        
        <div class="tab-pane" id="admin_tab">
          <div class="table-responsive">
                <table class="table table-hover  table-permission table-striped">
                    <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">Add</th>
                            <th class="text-center">Edit</th>
                            <th class="text-center">Delete</th>
                            <th class="text-center">View</th>
                            <th class="text-center">Block</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td width="60%" class="text-bold">Users</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')); ?>
                                <?php echo $form->checkBoxList($model, 'permissions[users_mis_accessible_branches_edit]', array('users_mis_accessible_branches_edit' => ''), array('title' => 'MIS Accessible Branches 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_view]', array('admin_users_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[admin_users_block]', array('admin_users_block' => ''), array('title' => 'Block')); ?></td>
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold">User Group</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 class="text-center"><?php echo $form->checkBoxList($model, 'permissions[admin_usergroup_view]', array('admin_usergroup_view' => ''), array('title' => 'View')); ?></td>
                            <td></td>
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold">Audit Logs </td>
                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[auditlog_add]', array('auditlog_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[auditlog_edit]', array('auditlog_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[auditlog_delete]', array('auditlog_delete' => ''), array('title' => 'Delete')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[auditlog_view]', array('auditlog_view' => ''), array('title' => 'View')); ?></td>
                            <td></td>
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold" colspan="4">Show Level All</td>
                            <td class="text-left" colspan="2"><?php echo $form->checkBoxList($model, 'permissions[show_level_all]', array('show_level_all' => ''), array('title' => 'Show Level All')); ?></td>
                           
                         </tr>
                         <?php
                            if (Yii::app()->user->authorised_user == 1) {
                                ?>
                         <tr>
                            <td width="60%" class="text-bold">Company Settings</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[admin_company_settings_add]', array('admin_company_settings_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[admin_company_settings_edit]', array('admin_company_settings_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[admin_company_settings_delete]', array('admin_company_settings_delete' => ''), array('title' => 'Delete')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[admin_company_settings_view]', array('admin_company_settings_view' => ''), array('title' => 'View')); ?></td>
                            <td></td>
                        </tr> 
                        <?php }?>
                    </tbody>
                    
                    
                    
                    
                    
                </table>
            </div>   
        </div>
        
        
        <!--------------- REPORTS SECTION STARTS----->
        <!--------------- Added by abin on 02-01-2024----->
        <div class="tab-pane" id="reports_tab">
               <section class="panel" style="background-color:#F6F3EE;">
    <div class="panel-body" style="height: 60px; text-align: center; font-size: 25px; font-weight: bold">REPORTS PERMISSIONS</div>
</section>
            
      <ul class="nav nav-tabs nav-tab-theme">
        
        <li class="active" ><a href="#report_stab_sales" data-toggle="tab" aria-expanded="true">Sales</a></li>
        <li><a href="#report_stab_Inventory" data-toggle="tab" aria-expanded="true">Inventory</a></li>
        <li><a href="#report_stab_Customer" data-toggle="tab" aria-expanded="true">Customer</a></li>
        <li><a href="#report_stab_Purchase" data-toggle="tab" aria-expanded="true">Purchase</a></li>
        <!-- <li ><a href="#report_stab_job" data-toggle="tab" aria-expanded="true">Job</a></li> -->
        <!--<li><a href="#report_stab_Finance" data-toggle="tab" aria-expanded="true">Finance</a></li>-->
        <!-- <li><a href="#report_stab_Facility" data-toggle="tab" aria-expanded="true">FM</a></li> -->
        
        
           </ul>      
            
            
            <div class="tab-content">
               
                
                
                
                <div class="tab-pane active" id="report_stab_sales">
                 
                 
                 <table class="table table-hover  table-permission table-striped">
                    <thead>
                        <tr>
                            <th width="60%" class="text-right"><?php echo $form->checkBoxList($model, 'permissions[report_check_all]', array('report_check_all' => ''), array('data-label' => 'Check All', 'onclick' => ' $("#reports_tab input:checkbox").prop("checked", $(this).prop("checked"));')); ?> Select All</th>
                            <th class="text-center">View</th>
                   <th class="text-center">Download</th>
                        </tr>
                    </thead>
                    <tbody>
                    <tr>
                    <td width="60%" class="text-bold">Lead List</td>
                    <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[report_sale_lead_view]',array('report_sale_lead_view'=>''),array('title'=>'View')); ?></td>
                    <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[report_sale_lead_view_download]', array('report_sale_lead_view_download' => ''), array('title' => 'Download')); ?></td>
                    </tr>
                    <tr>
                    <td width="60%" class="text-bold">Quotation List</td>
                    <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[report_sale_quotes_view]',array('report_sale_quotes_view'=>''),array('title'=>'View')); ?></td>
                    <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[report_sale_quotes_download]', array('report_sale_quotes_download' => ''), array('title' => 'Download')); ?></td>
                    </tr>
                    <tr>
                    <td width="60%" class="text-bold">Order List</td>
                    <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[report_sale_order_view]',array('report_sale_order_view'=>''),array('title'=>'View')); ?></td>
                    <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[report_sale_order_download]', array('report_sale_order_download' => ''), array('title' => 'Download')); ?></td>
                    </tr>
                    
                        <tr>
                        <td width="60%" class="text-bold">Delivery Note List</td>
                        <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[report_sale_delivery_view]',array('report_sale_delivery_view'=>''),array('title'=>'View')); ?></td>
                        <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[report_sale_delivery_download]', array('report_sale_delivery_download' => ''), array('title' => 'Download')); ?></td>
                        </tr>
                        <tr>
                        <td width="60%" class="text-bold">Invoice List</td>
                        <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[report_sale_invoice_view]',array('report_sale_invoice_view'=>''),array('title'=>'View')); ?></td>
                        <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[report_sale_invoice_download]', array('report_sale_invoice_download' => ''), array('title' => 'Download')); ?></td>
                        </tr>
                        <tr>
                        <td width="60%" class="text-bold">Credit Note List</td>
                        <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[report_sale_creditnote_view]',array('report_sale_creditnote_view'=>''),array('title'=>'View')); ?></td>
                        <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[report_sale_creditnote_download]', array('report_sale_creditnote_download' => ''), array('title' => 'Download')); ?></td>
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold">Date Wise Sales</td>
                          <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[report_sale_datewisesales_view]',array('report_sale_datewisesales_view'=>''),array('title'=>'View')); ?></td>
                           <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[report_sale_datewisesales_download]', array('report_sale_datewisesales_download' => ''), array('title' => 'Download')); ?></td>
                        </tr>
                        
                            <tr>
                        <td width="60%" class="text-bold">Day Book</td>
                        <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[report_sale_daybook_view]',array('report_sale_daybook_view'=>''),array('title'=>'View')); ?></td>
                        <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[report_sale_daybook_download]', array('report_sale_daybook_download' => ''), array('title' => 'Download')); ?></td>
                        </tr>
                            
                            <tr>
                            <td width="60%" class="text-bold">Delivery Note to be Invoiced</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[report_sale_delivertoinvoice_view]',array('report_sale_delivertoinvoice_view'=>''),array('title'=>'View')); ?></td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[report_sale_delivertoinvoice_download]', array('report_sale_delivertoinvoice_download' => ''), array('title' => 'Download')); ?></td>
                            </tr>
                            
                            <tr>
                            <td width="60%" class="text-bold">Gross Profit</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[report_sale_grossprofit_view]',array('report_sale_grossprofit_view'=>''),array('title'=>'View')); ?></td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[report_sale_grossprofit_download]', array('report_sale_grossprofit_download' => ''), array('title' => 'Download')); ?></td>
                            </tr>
                            <tr>
                            <td width="60%" class="text-bold">Orders to be Delivered</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[report_sale_ordertodeliver_view]',array('report_sale_ordertodeliver_view'=>''),array('title'=>'View')); ?></td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[report_sale_ordertodeliver_download]', array('report_sale_ordertodeliver_download' => ''), array('title' => 'Download')); ?></td>
                            </tr>
                            
                            <tr>
                            <td width="60%" class="text-bold">Sales Items by Brands</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[sales_items_by_brand]',array('sales_items_by_brand'=>''),array('title'=>'Show Invoice Commission / Incentive')); ?></td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[sales_items_by_brand_download]', array('sales_items_by_brand_download' => ''), array('title' => 'Download')); ?></td>
                            </tr>
                            
                            <tr>
                            <td width="60%" class="text-bold">Net Sales</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[report_sale_netsales_view]',array('report_sale_netsales_view'=>''),array('title'=>'View')); ?></td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[report_sale_netsales_download]', array('report_sale_netsales_download' => ''), array('title' => 'Download')); ?></td>
                            </tr>
                        <!--<tr>-->
                        <!--    <td width="60%" class="text-bold">Customer Sales Report</td>-->
                        <!--  <td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[report_customer_salereports_view]',array('report_customer_salereports_view'=>''),array('title'=>'View')); ?></td>-->
                        <!--   <td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[report_customer_salereports_download]', array('report_customer_salereports_download' => ''), array('title' => 'Download')); ?></td>-->
                        <!--</tr>-->
                        
                       
                        
                        
                      <!--   <tr>-->
            		        <!--<td width="60%" class="text-bold">Show Invoice Commission / Incentive</td>-->
                      <!--       <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_invoice_commission_incentive]',array('report_invoice_commission_incentive'=>''),array('title'=>'Show Invoice Commission / Incentive')); ?></td>-->
                      <!--      <td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[report_invoice_commission_incentive_download]', array('report_invoice_commission_incentive_download' => ''), array('title' => 'Download')); ?></td>-->
                      <!--   </tr>-->
                            
                         
                      
                        <!--<tr>-->
                        <!--<td width="60%" class="text-bold">Sales Customer by Brands</td>-->
                        <!--<td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[sales_customer_by_brand]',array('sales_customer_by_brand'=>''),array('title'=>'Show Invoice Commission / Incentive')); ?></td>-->
                        <!--<td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[sales_customer_by_brand_download]', array('sales_customer_by_brand_download' => ''), array('title' => 'Download')); ?></td>-->
                        <!--</tr>-->
                        <!--<tr>-->
                        <!--<td width="60%" class="text-bold">Orders to be Delivered - Detailed</td>-->
                        <!--<td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_sale_ordertodeliverdetails_view]',array('report_sale_ordertodeliverdetails_view'=>''),array('title'=>'Show Invoice Commission / Incentive')); ?></td>-->
                        <!--<td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[report_sale_ordertodeliverdetails_download]', array('report_sale_ordertodeliverdetails_download' => ''), array('title' => 'Download')); ?></td>-->
                        <!--</tr>-->
                        <!--<tr>-->
                        <!--<td width="60%" class="text-bold">Sales Evaluation Report</td>-->
                        <!--<td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[master_file_report_view]',array('master_file_report_view'=>''),array('title'=>'Show Invoice Commission / Incentive')); ?></td>-->
                        <!--<td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[master_file_report_download]', array('master_file_report_download' => ''), array('title' => 'Download')); ?></td>-->
                        <!--</tr>-->


     
                        
                        <!--<tr>-->
                        <!--<td width="60%" class="text-bold">Direct Sales</td>-->
                        <!--<td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_sale_directsales_view]',array('report_sale_directsales_view'=>''),array('title'=>'View')); ?></td>-->
                        <!--<td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[report_sale_directsales_download]', array('report_sale_directsales_download' => ''), array('title' => 'Download')); ?></td>-->
                        <!--</tr>-->
                        
                        
                        
                        
                        <!--<tr>-->
                        <!--<td width="60%" class="text-bold">Customer Sales</td>-->
                        <!--<td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_sale_cus_sales_view]',array('report_sale_cus_sales_view'=>''),array('title'=>'View')); ?></td>-->
                        <!--<td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[report_sale_cus_sales_download]', array('report_sale_cus_sales_download' => ''), array('title' => 'Download')); ?></td>-->
                        <!--</tr>-->
                        <!--<tr>-->
                        <!--<td width="60%" class="text-bold">Customer No Sales</td>-->
                        <!--<td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_sale_cus_nosales_view]',array('report_sale_cus_nosales_view'=>''),array('title'=>'View')); ?></td>-->
                        <!--<td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[report_sale_cus_nosales_download]', array('report_sale_cus_nosales_download' => ''), array('title' => 'Download')); ?></td>-->
                        <!--</tr>-->
                        <!--<tr>-->
                        <!--<td width="60%" class="text-bold">Customer Brand/Class Sales</td>-->
                        <!--<td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_sale_cus_brandsales_view]',array('report_sale_cus_brandsales_view'=>''),array('title'=>'View')); ?></td>-->
                        <!--<td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[report_sale_cus_brandsales_download]', array('report_sale_cus_brandsales_download' => ''), array('title' => 'Download')); ?></td>-->
                        <!--</tr>-->
                        <!--<tr>-->
                        <!--<td width="60%" class="text-bold">Payment Terms</td>-->
                        <!--<td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_sales_payment_terms]',array('report_sales_payment_terms'=>''),array('title'=>'View')); ?></td>-->
                        <!--<td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[report_sales_payment_download]', array('report_sales_payment_download' => ''), array('title' => 'Download')); ?></td>-->
                        <!--</tr>-->
                        <!--<tr>-->
                        <!--<td width="60%" class="text-bold">Quotation Probability List</td>-->
                        <!--<td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[report_sale_quotes_probability_view]',array('report_sale_quotes_probability_view'=>''),array('title'=>'View')); ?></td>-->
                        <!--<td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[report_sale_quotes_probability_download]', array('report_sale_quotes_probability_download' => ''), array('title' => 'Download')); ?></td>-->
                        <!--</tr>-->
                                    <!-- <tr style="display: none;">
                <td width="60%" class="text-bold">Sales / DirectSales</td>
                <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_sale_directsales_view]', array('report_sale_directsales_view' => ''), array('title' => 'View'));
                                ?></td>
                                        </tr>
                                        <tr style="display: none;">
                                            <td width="60%" class="text-bold">Sales / GrossProfit</td>
                                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_sale_grossprofit_view]', array('report_sale_grossprofit_view' => ''), array('title' => 'View'));
                                ?></td>
                                        </tr>
                                        <tr style="display: none;">
                                            <td width="60%" class="text-bold">Sales / Orders to be Delivered</td>
                                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_sale_ordertodeliver_view]', array('report_sale_ordertodeliver_view' => ''), array('title' => 'View'));
                                ?></td>
                                        </tr>
                                        <tr style="display: none;">
                                            <td width="60%" class="text-bold">Sales / Delivery Note to be Invoiced</td>
                                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_sale_delivertoinvoice_view]', array('report_sale_delivertoinvoice_view' => ''), array('title' => 'View'));
                                ?></td>
                                        </tr>
                                        <tr style="display: none;">
                                            <td width="60%" class="text-bold">Sales /Customer Sales</td>
                                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_sale_cus_sales_view]', array('report_sale_cus_sales_view' => ''), array('title' => 'View'));
                                ?></td>
                                        </tr>
                                        <tr style="display: none;">
                                            <td width="60%" class="text-bold">Sales / Customer No Sales</td>
                                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_sale_cus_nosales_view]', array('report_sale_cus_nosales_view' => ''), array('title' => 'View'));
                                ?></td>
                                        </tr>
                                        <tr style="display: none;">
                                            <td width="60%" class="text-bold">Sales / Customer Brand/Class Sales</td>
                                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_sale_cus_brandsales_view]', array('report_sale_cus_brandsales_view' => ''), array('title' => 'View'));
                                ?></td>
                                        </tr>
                                        <tr style="display: none;">
                                            <td width="60%" class="text-bold">Sales / Payment Terms</td>
                                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_sales_payment_terms]', array('report_sales_payment_terms' => ''), array('title' => 'View'));
                                ?></td>
                                        </tr>
                                        <tr style="display: none;">
                                            <td width="60%" class="text-bold">Sales / Quotation Probability List</td>
                                            <td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[report_sale_quotes_probability_view]', array('report_sale_quotes_probability_view' => ''), array('title' => 'View'));
                                ?></td>
                                        </tr> -->
                        
                    </tbody>
                </table>
                 
                 
                 
             </div> 
                
                <div class="tab-pane" id="report_stab_job">
                 
                 
                 <table class="table table-hover  table-permission table-striped">
                    <thead>
                        <tr>
                            <th width="60%" class="text-right"><?php echo $form->checkBoxList($model, 'permissions[report_check_all]', array('report_check_all' => ''), array('data-label' => 'Check All', 'onclick' => ' $("#reports_tab input:checkbox").prop("checked", $(this).prop("checked"));')); ?> Select All</th>
                            <th class="text-center">View</th>
                            <th class="text-center">Download</th>
                        </tr>
                    </thead>
                    <tbody>
                       <tr>
                            <td width="60%" class="text-bold">Job /  Report</td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[job_order_report_view]', array('job_order_report_view' => ''), array('title' => 'View')); ?></td>
                        <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[job_order_report_download]', array('job_order_report_download' => ''), array('title' => 'Download')); ?></td>
                        </tr> 
                    </tbody>
                </table>
                 
                 
                 
             </div>
                <div class="tab-pane" id="report_stab_Customer">
                 
                 
                 <table class="table table-hover  table-permission table-striped">
                    <thead>
                        <tr>
                            <th width="60%" class="text-right"><?php echo $form->checkBoxList($model, 'permissions[report_check_all]', array('report_check_all' => ''), array('data-label' => 'Check All', 'onclick' => ' $("#reports_tab input:checkbox").prop("checked", $(this).prop("checked"));')); ?> Select All</th>
                            <th class="text-center">View</th>
                           <th class="text-center">Download</th>
                        </tr>
                    </thead>
                    <tbody>
                    <tr>
                    <td width="60%" class="text-bold">Customer List</td>
                    <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[report_customerlist_view]', array('report_customerlist_view' => ''), array('title' => 'View')); ?></td>
                    <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[report_customerlist_download]', array('report_customerlist_download' => ''), array('title' => 'Download')); ?></td>
                    </tr>
                    
                    <tr>
                    <td width="60%" class="text-bold">Customer Contact List</td>
                    <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[report_customercontact_view]', array('report_customercontact_view' => ''), array('title' => 'View')); ?></td>
                    <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[report_customercontact_download]', array('report_customercontact_download' => ''), array('title' => 'Download')); ?></td>
                    </tr>
                    
                    <tr>
                    <td width="60%" class="text-bold">Vendor List</td>
                    <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[report_vendorlist_view]', array('report_vendorlist_view' => ''), array('title' => 'View')); ?></td>
                    <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[report_vendorlist_download]', array('report_vendorlist_download' => ''), array('title' => 'Download')); ?></td>
                    </tr>
                    
                    <tr>
                    <td width="60%" class="text-bold">Vendor Contact List</td>
                    <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[report_vendorcontact_view]', array('report_vendorcontact_view' => ''), array('title' => 'View')); ?></td>
                    <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[report_vendorcontact_download]', array('report_vendorcontact_download' => ''), array('title' => 'Download')); ?></td>
                    </tr>
                    <tr>
                    <td width="60%" class="text-bold">Activity List</td>
                    <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[report_activity_view]', array('report_activity_view' => ''), array('title' => 'View')); ?></td>
                    <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[report_activity_download]', array('report_activity_download' => ''), array('title' => 'Download')); ?></td>
                    </tr>
                       
                       
<!--                        <tr>-->
<!--                            <td width="60%" class="text-bold">Performance Report</td>-->
<!--                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_customer_performance_view]', array('report_customer_performance_view' => ''), array('title' => 'View')); ?></td>-->
<!--<td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[report_customer_performance_download]', array('report_customer_performance_download' => ''), array('title' => 'Download')); ?></td>-->
<!--                        </tr>-->
                   
                   
<!--                        <tr>-->
<!--                            <td width="60%" class="text-bold">Branch Wise User List</td>-->
<!--                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_branchuser_view]', array('report_branchuser_view' => ''), array('title' => 'View')); ?></td>-->
<!--<td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[report_branchuser_download]', array('report_branchuser_download' => ''), array('title' => 'Download')); ?></td>-->
<!--                        </tr>-->
                                    <!-- <tr>
                                        <td width="60%" class="text-bold">Customer / Document List</td>
                                        <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_customerdocument_view]', array('report_customerdocument_view' => ''), array('title' => 'View'));
                                ?></td>
                                                                </tr> -->
                    </tbody>
                </table>
                 
                 
                 
             </div> 
                
                
                
                <div class="tab-pane" id="report_stab_Inventory">
                 
                 
                 <table class="table table-hover  table-permission table-striped">
                    <thead>
                        <tr>
                            <th width="60%" class="text-right"><?php echo $form->checkBoxList($model, 'permissions[report_check_all]', array('report_check_all' => ''), array('data-label' => 'Check All', 'onclick' => ' $("#reports_tab input:checkbox").prop("checked", $(this).prop("checked"));')); ?> Select All</th>
                            <th class="text-center">View</th>
<th class="text-center">Download</th>
                        </tr>
                    </thead>
                    <tbody>
                        
                        <tr>
                        <td width="60%" class="text-bold">Current Stock List</td>
                        <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[report_currentstock_view]',array('report_currentstock_view'=>''),array('title'=>'View')); ?></td>
                        <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[job_order_report_download]', array('job_order_report_download' => ''), array('title' => 'Download')); ?></td>
                        </tr>    
                        
                        <tr>
                        <td width="60%" class="text-bold">Direct Transfer List</td>
                        <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[report_directtransfer_view]',array('report_directtransfer_view'=>''),array('title'=>'View')); ?></td>
                        <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[job_order_report_download]', array('job_order_report_download' => ''), array('title' => 'Download')); ?></td>
                        </tr>
                        
                        <tr>
                        <td width="60%" class="text-bold">Inventory Ledger</td>
                        <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[report_mov_summary_view]',array('report_mov_summary_view'=>''),array('title'=>'View')); ?></td>
                        <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[job_order_report_download]', array('job_order_report_download' => ''), array('title' => 'Download')); ?></td>
                        </tr>
                        
                        <tr>
                        <td width="60%" class="text-bold">Stock Transaction Ledger</td>
                        <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[report_inv_stock_transn_view]',array('report_inv_stock_transn_view'=>''),array('title'=>'View')); ?></td>
                        <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[job_order_report_download]', array('job_order_report_download' => ''), array('title' => 'Download')); ?></td>
                        </tr> 
                        
                        <tr>
                        <td width="60%" class="text-bold">Transaction Detail</td>
                        <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[report_inv_transdetail_view]',array('report_inv_transdetail_view'=>''),array('title'=>'View')); ?></td>
                        <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[job_order_report_download]', array('job_order_report_download' => ''), array('title' => 'Download')); ?></td>
                        </tr>
                        
                        <tr>
                        <td width="60%" class="text-bold">Warehouse Report</td>
                        <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[report_inv_warehouse_stock]',array('report_inv_warehouse_stock'=>''),array('title'=>'View')); ?></td>
                        <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[job_order_report_download]', array('job_order_report_download' => ''), array('title' => 'Download')); ?></td>
                        </tr>        

                        
                        
                        <!--<tr>-->
                        <!--<td width="60%" class="text-bold">Inventory List</td>-->
                        <!--<td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_inventory_view]',array('report_inventory_view'=>''),array('title'=>'View')); ?></td>-->
                        <!--<td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[job_order_report_download]', array('job_order_report_download' => ''), array('title' => 'Download')); ?></td>-->
                        <!--</tr>-->
                        
                      
                        
                       
                        
                                <!--<tr>-->
                                <!--<td width="60%" class="text-bold">Indirect Transfer List</td>-->
                                <!--<td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_inv_indirecttransfer_view]',array('report_inv_indirecttransfer_view'=>''),array('title'=>'View')); ?></td>-->
                                <!--<td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[job_order_report_download]', array('job_order_report_download' => ''), array('title' => 'Download')); ?></td>-->
                                <!--</tr>-->
                                <!--<tr>-->
                                <!--<td width="60%" class="text-bold">Damaged List</td>-->
                                <!--<td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_inv_damagedlist_view]',array('report_inv_damagedlist_view'=>''),array('title'=>'View')); ?></td>-->
                                <!--<td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[job_order_report_download]', array('job_order_report_download' => ''), array('title' => 'Download')); ?></td>-->
                                <!--</tr>-->
                                <!--<tr>-->
                                <!--<td width="60%" class="text-bold">Service Store List</td>-->
                                <!--<td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_inv_servicestore_view]',array('report_inv_servicestore_view'=>''),array('title'=>'View')); ?></td>-->
                                <!--<td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[job_order_report_download]', array('job_order_report_download' => ''), array('title' => 'Download')); ?></td>-->
                                <!--</tr>-->
                                <!--<tr>-->
                                <!--<td width="60%" class="text-bold">InTransistList</td>-->
                                <!--<td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_inv_intransist_view]',array('report_inv_intransist_view'=>''),array('title'=>'View')); ?></td>-->
                                <!--<td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[job_order_report_download]', array('job_order_report_download' => ''), array('title' => 'Download')); ?></td>-->
                                <!--</tr>-->
                                
                                
                                
                                <!--<tr>-->
                                <!--<td width="60%" class="text-bold">Stock State As of</td>-->
                                <!--<td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_inv_stock_stateasof_view]',array('report_inv_stock_stateasof_view'=>''),array('title'=>'View')); ?></td>-->
                                <!--<td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[job_order_report_download]', array('job_order_report_download' => ''), array('title' => 'Download')); ?></td>-->
                                <!--</tr>-->
                                <!--<tr>-->
                                <!--<td width="60%" class="text-bold">Rack Wise Report</td>-->
                                <!--<td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_inv_rackwise_stock]',array('report_inv_rackwise_stock'=>''),array('title'=>'View')); ?></td>-->
                                <!--<td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[job_order_report_download]', array('job_order_report_download' => ''), array('title' => 'Download')); ?></td>-->
                                <!--</tr>-->
                                
                                
                                <!--<tr>-->
                                <!--<td width="60%" class="text-bold">Zero Cost Price Products</td>-->
                                <!--<td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_zero_base_cost_price_view]',array('report_zero_base_cost_price_view'=>''),array('title'=>'View')); ?></td>-->
                                <!--<td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[job_order_report_download]', array('job_order_report_download' => ''), array('title' => 'Download')); ?></td>-->
                                <!--</tr>-->
                                <!--<tr>-->
                                <!--<td width="60%" class="text-bold">Minimum Quantity Requirement</td>-->
                                <!--<td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_minimum_order_qty_view]',array('report_minimum_order_qty_view'=>''),array('title'=>'View')); ?></td>-->
                                <!--<td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[job_order_report_download]', array('job_order_report_download' => ''), array('title' => 'Download')); ?></td>-->
                                <!--</tr>-->
                                <!--<tr>-->
                                <!--<td width="60%" class="text-bold">Reorder Level List</td>-->
                                <!--<td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_re_order_level_view]',array('report_re_order_level_view'=>''),array('title'=>'View')); ?></td>-->
                                <!--<td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[job_order_report_download]', array('job_order_report_download' => ''), array('title' => 'Download')); ?></td>-->
                                <!--</tr>-->
                                <!--<tr>-->
                                <!--<td width="60%" class="text-bold">MOQ Report</td>-->
                                <!--<td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_moq_list]',array('report_moq_list'=>''),array('title'=>'View')); ?></td>-->
                                <!--<td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[job_order_report_download]', array('job_order_report_download' => ''), array('title' => 'Download')); ?></td>-->
                                <!--</tr>-->
                                <!--<tr>-->
                                <!--<td width="60%" class="text-bold">Price List</td>-->
                                <!--<td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_inventory_pricelist]',array('report_inventory_pricelist'=>''),array('title'=>'View')); ?></td>-->
                                <!--<td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[job_order_report_download]', array('job_order_report_download' => ''), array('title' => 'Download')); ?></td>-->
                                <!--</tr>-->
                                <!--<tr>-->
                                <!--<td width="60%" class="text-bold">Internal Price List</td>-->
                                <!--<td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_inventory_internal_pricelist]',array('report_inventory_internal_pricelist'=>''),array('title'=>'View')); ?></td>-->
                                <!--<td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[job_order_report_download]', array('job_order_report_download' => ''), array('title' => 'Download')); ?></td>-->
                                <!--</tr>-->
                                <!--<tr>-->
                                <!--<td width="60%" class="text-bold">Material to Material report</td>-->
                                <!--<td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_inv_m2m_view]',array('report_inv_m2m_view'=>''),array('title'=>'View')); ?></td>-->
                                <!--<td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[job_order_report_download]', array('job_order_report_download' => ''), array('title' => 'Download')); ?></td>-->
                                <!--</tr>-->
                                <!--<tr>-->
                                <!--<td width="60%" class="text-bold">Serial No</td>-->
                                <!--<td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_inv_serialno]',array('report_inv_serialno'=>''),array('title'=>'View')); ?></td>-->
                                <!--<td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[job_order_report_download]', array('job_order_report_download' => ''), array('title' => 'Download')); ?></td>-->
                                <!--</tr>-->
                                <!--<tr>-->
                                <!--<td width="60%" class="text-bold">Sample Tracking</td>-->
                                <!--<td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_inv_sampletracking]',array('report_inv_sampletracking'=>''),array('title'=>'View')); ?></td>-->
                                <!--<td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[job_order_report_download]', array('job_order_report_download' => ''), array('title' => 'Download')); ?></td>-->
                                <!--</tr>-->
                                <!--<tr>-->
                                <!--<td width="60%" class="text-bold">Stock Tracking</td>-->
                                <!--<td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_inv_stocktracking]',array('report_inv_stocktracking'=>''),array('title'=>'View')); ?></td>-->
                                <!--<td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[job_order_report_download]', array('job_order_report_download' => ''), array('title' => 'Download')); ?></td>-->
                                <!--</tr>-->
                                <!--<tr>-->
                                <!--<td width="60%" class="text-bold">Reverse Tracking</td>-->
                                <!--<td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_inv_reversetracking]',array('report_inv_reversetracking'=>''),array('title'=>'View')); ?></td>-->
                                <!--<td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[job_order_report_download]', array('job_order_report_download' => ''), array('title' => 'Download')); ?></td>-->
                                <!--</tr>-->
                                
                                
                                    <!-- <tr>
                                        <td width="60%" class="text-bold">Inventory/Indirect Transfer List</td>
                                        <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_inv_indirecttransfer_view]', array('report_inv_indirecttransfer_view' => ''), array('title' => 'View'));
                                ?></td>
                                    </tr> -->
                                    <!-- <tr>
                                        <td width="60%" class="text-bold">Inventory/Damaged List</td>
                                        <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_inv_damagedlist_view]', array('report_inv_damagedlist_view' => ''), array('title' => 'View'));
                                ?></td>
                                                                </tr> -->
                                    <!-- <tr>
                                                                    <td width="60%" class="text-bold">Inventory/Service Store List</td>
                                                                    <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_inv_servicestore_view]', array('report_inv_servicestore_view' => ''), array('title' => 'View'));
                                ?></td>
                                                                </tr>
                                                                <tr>
                                                                    <td width="60%" class="text-bold">Inventory/InTransistList</td>
                                                                    <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_inv_intransist_view]', array('report_inv_intransist_view' => ''), array('title' => 'View'));
                                ?></td>
                                                                </tr> -->
                                    <!-- <tr>
                                                                    <td width="60%" class="text-bold">Inventory/Inventory Ledger</td>
                                                                    <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_mov_summary_view]', array('report_mov_summary_view' => ''), array('title' => 'View'));
                                ?></td>
                                                                </tr>
                                                                <tr>
                                                                    <td width="60%" class="text-bold">Inventory/Rack Wise Report</td>
                                                                    <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_inv_rackwise_stock]', array('report_inv_rackwise_stock' => ''), array('title' => 'View'));
                                ?></td>
                                                                </tr>
                                                                <tr>
                                                                    <td width="60%" class="text-bold">Inventory/Zero Cost Price Products</td>
                                                                    <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_zero_base_cost_price_view]', array('report_zero_base_cost_price_view' => ''), array('title' => 'View'));
                                ?></td>
                                                                </tr>
                                                                <tr>
                                                                    <td width="60%" class="text-bold">Inventory/Minimum Quantity Requirement</td>
                                                                    <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_minimum_order_qty_view]', array('report_minimum_order_qty_view' => ''), array('title' => 'View'));
                                ?></td>
                                                                </tr>
                                                                <tr>
                                                                    <td width="60%" class="text-bold">Inventory/MOQ Report</td>
                                                                    <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_moq_list]', array('report_moq_list' => ''), array('title' => 'View'));
                                ?></td>
                                                                </tr> -->
                                    <!-- <tr>
                                                                    <td width="60%" class="text-bold">PPE List</td>
                                                                    <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_inventory_ppelist]', array('report_inventory_ppelist' => ''), array('title' => 'View'));
                                ?></td>
                                                                </tr>
                                                                <tr>
                                                                    <td width="60%" class="text-bold">Inventory/Price List</td>
                                                                    <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_inventory_pricelist]', array('report_inventory_pricelist' => ''), array('title' => 'View'));
                                ?></td>
                                                                </tr>
                                                                <tr>
                                                                    <td width="60%" class="text-bold">Inventory/Internal Price List</td>
                                                                    <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_inventory_internal_pricelist]', array('report_inventory_internal_pricelist' => ''), array('title' => 'View'));
                                ?></td>
                                                                </tr>
                                                                <tr>
                                                                    <td width="60%" class="text-bold">Inventory/Material to Material report</td>
                                                                    <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_inv_m2m_view]', array('report_inv_m2m_view' => ''), array('title' => 'View'));
                                ?></td>
                                                                </tr>
                                                                <tr>
                                                                    <td width="60%" class="text-bold">Inventory/Serial No</td>
                                                                    <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_inv_serialno]', array('report_inv_serialno' => ''), array('title' => 'View'));
                                ?></td>
                                                                </tr>
                                                                <tr>
                                                                    <td width="60%" class="text-bold">Inventory/Sample Tracking</td>
                                                                    <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_inv_sampletracking]', array('report_inv_sampletracking' => ''), array('title' => 'View'));
                                ?></td>
                                                                </tr>
                                                                <tr>
                                                                    <td width="60%" class="text-bold">Inventory/Stock Tracking</td>
                                                                    <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_inv_stocktracking]', array('report_inv_stocktracking' => ''), array('title' => 'View'));
                                ?></td>
                                                                </tr>
                                                                <tr>
                                                                    <td width="60%" class="text-bold">Inventory/Reverse Tracking</td>
                                                                    <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_inv_reversetracking]', array('report_inv_reversetracking' => ''), array('title' => 'View'));
                                ?></td>
                                                                </tr> --> 
                    </tbody>
                </table>
                 
                 
                 
             </div> 
                
                
                <div class="tab-pane" id="report_stab_Finance">
                 
                 
                 <table class="table table-hover  table-permission table-striped">
                    <thead>
                        <tr>
                            <th width="60%" class="text-right"><?php echo $form->checkBoxList($model, 'permissions[report_check_all]', array('report_check_all' => ''), array('data-label' => 'Check All', 'onclick' => ' $("#reports_tab input:checkbox").prop("checked", $(this).prop("checked"));')); ?> Select All</th>
                            <th class="text-center">View</th>
<th class="text-center">Download</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td width="60%" class="text-bold">GL Report</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[report_fin_gl_view]', array('report_fin_gl_view' => ''), array('title' => 'View')); ?></td>
<td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[job_order_report_download]', array('job_order_report_download' => ''), array('title' => 'Download')); ?></td>
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold">Statement</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[report_fin_stmnt_view]', array('report_fin_stmnt_view' => ''), array('title' => 'View')); ?></td>
<td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[job_order_report_download]', array('job_order_report_download' => ''), array('title' => 'Download')); ?></td>
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold">Ledger Summary Report</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[report_fin_ledgersummary_view]', array('report_fin_ledgersummary_view' => ''), array('title' => 'View')); ?></td>
<td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[job_order_report_download]', array('job_order_report_download' => ''), array('title' => 'Download')); ?></td>
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold">Ageing Report</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[report_fin_ageing_view]', array('report_fin_ageing_view' => ''), array('title' => 'View')); ?></td>
<td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[job_order_report_download]', array('job_order_report_download' => ''), array('title' => 'Download')); ?></td>
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold">Daybook</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[report_fin_daybook_view]', array('report_fin_daybook_view' => ''), array('title' => 'View')); ?></td>
<td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[job_order_report_download]', array('job_order_report_download' => ''), array('title' => 'Download')); ?></td>
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold">VAT</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[report_fin_vat_view]', array('report_fin_vat_view' => ''), array('title' => 'View')); ?></td>
<td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[job_order_report_download]', array('job_order_report_download' => ''), array('title' => 'Download')); ?></td>
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold">VAT Summary</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[report_fin_vatsummary_view]', array('report_fin_vatsummary_view' => ''), array('title' => 'View')); ?></td>
<td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[job_order_report_download]', array('job_order_report_download' => ''), array('title' => 'Download')); ?></td>
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold">Trialbalance</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[report_fin_trialbal_view]', array('report_fin_trialbal_view' => ''), array('title' => 'View')); ?></td>
<td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[job_order_report_download]', array('job_order_report_download' => ''), array('title' => 'Download')); ?></td>
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold">Sales Report</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[sales_finance_report_view]', array('sales_finance_report_view' => ''), array('title' => 'View')); ?></td>
<td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[job_order_report_download]', array('job_order_report_download' => ''), array('title' => 'Download')); ?></td>
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold">Profit&Loss</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[report_fin_profitloss_view]', array('report_fin_profitloss_view' => ''), array('title' => 'View')); ?></td>
<td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[job_order_report_download]', array('job_order_report_download' => ''), array('title' => 'Download')); ?></td>
                        </tr>
                    </tbody>
                </table>
                 
                 
                 
             </div> 
                
                
                <div class="tab-pane" id="report_stab_Purchase">
                 
                 
                <table class="table table-hover  table-permission table-striped">
                    <thead>
                        <tr>
                        <th width="60%" class="text-right"><?php echo $form->checkBoxList($model, 'permissions[report_check_all]', array('report_check_all' => ''), array('data-label' => 'Check All', 'onclick' => ' $("#reports_tab input:checkbox").prop("checked", $(this).prop("checked"));')); ?> Select All</th>
                        <th class="text-center">View</th>
                        <th class="text-center">Download</th>
                        </tr>
                        </thead>
                        <tbody>
                        
                        <tr>
                        <td width="60%" class="text-bold">PurchaseOrder</td>
                        <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[report_purchaseorder_view]', array('report_purchaseorder_view' => ''), array('title' => 'View')); ?></td>
                        <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[job_order_report_download]', array('job_order_report_download' => ''), array('title' => 'Download')); ?></td>
                        </tr>
                        
                        <tr>
                        <td width="60%" class="text-bold">Material Receipts</td>
                        <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[report_purchasemr_view]', array('report_purchasemr_view' => ''), array('title' => 'View')); ?></td>
                        <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[job_order_report_download]', array('job_order_report_download' => ''), array('title' => 'Download')); ?></td>
                        </tr>
                        
                        <tr>
                        <td width="60%" class="text-bold">Pending Purchase Order</td>
                        <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[report_pendingorder_view]', array('report_pendingorder_view' => ''), array('title' => 'View')); ?></td>
                        <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[job_order_report_download]', array('job_order_report_download' => ''), array('title' => 'Download')); ?></td>
                        </tr>
                        
                        <tr>
                        <td width="60%" class="text-bold">Purchase Invoices</td>
                        <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[report_purchaseinvoice_view]', array('report_purchaseinvoice_view' => ''), array('title' => 'View')); ?></td>
                        <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[job_order_report_download]', array('job_order_report_download' => ''), array('title' => 'Download')); ?></td>
                        </tr>
                        
                        <tr>
                        <td width="60%" class="text-bold">Debit Notes</td>
                        <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[report_purchasedebit_view]', array('report_purchasedebit_view' => ''), array('title' => 'View')); ?></td>
                        <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[job_order_report_download]', array('job_order_report_download' => ''), array('title' => 'Download')); ?></td>
                        </tr>
                          <tr>
                          <td width="60%" class="text-bold">List of items that need to be ordered</td>
                           <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[report_purchaseitemsordr_view]', array('report_purchaseitemsordr_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[job_order_report_download]', array('job_order_report_download' => ''), array('title' => 'Download')); ?></td>
                        </tr>
                        
                        <tr>
                        <td width="60%" class="text-bold">Net Purchase</td>
                        <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[report_netpurchase_view]', array('report_netpurchase_view' => ''), array('title' => 'View')); ?></td>
                        <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[job_order_report_download]', array('job_order_report_download' => ''), array('title' => 'Download')); ?></td>
                        </tr>
                        
                        
<!--                        <tr>-->
<!--                            <td width="60%" class="text-bold">List of items that need to be ordered</td>-->
<!--                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_purchaseitemsordr_view]', array('report_purchaseitemsordr_view' => ''), array('title' => 'View')); ?></td>-->
<!--<td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[job_order_report_download]', array('job_order_report_download' => ''), array('title' => 'Download')); ?></td>-->
<!--                        </tr>-->
                        
                        
<!--<tr>-->
<!--				<td width="60%" class="text-bold">Purchase Register</td>-->
<!--                                <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_purchasereg_view]',array('report_purchasereg_view'=>''),array('title'=>'View')); ?></td>-->
                        
<!--<td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[job_order_report_download]', array('job_order_report_download' => ''), array('title' => 'Download')); ?></td>-->
<!--</tr>-->
                       
                        
                       
                       
                       
                       
                        
                                    <!-- <tr>
                                        <td width="60%" class="text-bold">Purchase / Purchase Register</td>
                                        <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_purchasereg_view]', array('report_purchasereg_view' => ''), array('title' => 'View'));
                                ?></td>
                                    </tr>
                                    <tr>
                                        <td width="60%" class="text-bold">Purchase / New Order Movement Analysis</td>
                                        <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[report_purchase_stock_list_view]', array('report_purchase_stock_list_view' => ''), array('title' => 'View'));
                                ?></td>
                                    </tr> -->
                    </tbody>
                </table>
                 
                 
                 
             </div> 
                
                
                
                <div class="tab-pane" id="report_stab_Facility">
                 
                 
                <table class="table table-hover  table-permission table-striped">
                    <thead>
                        <tr>
                            <th width="60%" class="text-right"><?php echo $form->checkBoxList($model, 'permissions[report_check_all]', array('report_check_all' => ''), array('data-label' => 'Check All', 'onclick' => ' $("#reports_tab input:checkbox").prop("checked", $(this).prop("checked"));')); ?> Select All</th>
                            <th class="text-center">View</th>
                        </tr>
                    </thead>
                    <tbody>
                        
                    </tbody>
                </table>
                 
                 
                 
             </div> 
                
            </div>
            
            
            
            
            
            
        </div>
        
        <!--------------- REPORTS SECTION END----->
        
        
        
        
        
        <!--------------- MASTER SECTION ----->
        <!--------------- Added by abin on 02-01-2024----->
        
        <div class="tab-pane" id="master_tab">
            <section class="panel" style="background-color:#F6F3EE;">
    <div class="panel-body" style="height: 60px; text-align: center; font-size: 25px; font-weight: bold">MASTER PERMISSIONS</div>
</section>
           <ul class="nav nav-tabs nav-tab-theme">
        <li class="active"><a href="#mas_stab_finance" data-toggle="tab" aria-expanded="true">Finance</a></li>
        <li><a href="#mas_tab_hr" data-toggle="tab" aria-expanded="true">HR</a></li>
        <li><a href="#mas_stab_inventory" data-toggle="tab" aria-expanded="true">Inventory</a></li>
        <li><a href="#mas_stab_project" data-toggle="tab" aria-expanded="true">Projects</a></li>
        <!-- <li><a href="#mas_stab_loc" data-toggle="tab" aria-expanded="true">Location</a></li> -->
         
        <li><a href="#mas_stab_sales" data-toggle="tab" aria-expanded="true">Sales</a></li>
        <li><a href="#mas_stab_log" data-toggle="tab" aria-expanded="true">Logistics</a></li>
        <!-- <li><a href="#mas_stab_fm" data-toggle="tab" aria-expanded="true">FM</a></li> -->
        
        
           </ul>
            <div class="tab-content">
             <div class="tab-pane active" id="mas_stab_finance">
                 
                 
                 <table class="table table-hover  table-permission table-striped">
                    <thead>
                        <tr>
                            <th width="60%" class="text-right"><?php echo $form->checkBoxList($model, 'permissions[mas_check_all]', array('mas_check_all' => ''), array('title' => 'Check All', 'onclick' => ' $("#master_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">Enable/Disable</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td width="60%" class="text-bold"> Banks</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[bank_add]', array('bank_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[bank_edit]', array('bank_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[bank_view]', array('bank_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[bank_disable]', array('bank_disable' => ''), array('title' => 'Disable')); ?></td>
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold"> Currencies</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[currency_add]', array('currency_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[currency_edit]', array('currency_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[currency_view]', array('currency_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[currency_disable]', array('currency_disable' => ''), array('title' => 'Disable')); ?></td>
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold"> Payment Terms</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[paymentterm_add]', array('paymentterm_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[paymentterm_edit]', array('paymentterm_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[paymentterm_view]', array('paymentterm_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[paymentterm_disable]', array('paymentterm_disable' => ''), array('title' => 'Disable')); ?></td>
                        </tr>
                        
                       

                                    <!--                        <tr>
                                            <td width="60%" class="text-bold"> Pricing Group</td>
                                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[pricing_group_add]', array('pricing_group_add' => ''), array('title' => 'Add')); ?></td>
                                            <td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[pricing_group_edit]', array('pricing_group_edit' => ''), array('title' => 'Edit')); ?></td>
                                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[pricing_group_view]', array('pricing_group_view' => ''), array('title' => 'View')); ?></td>
                                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[pricing_group_delete]', array('pricing_group_delete' => ''), array('title' => 'Delete')); ?></td>
                                            <td class="text-center"></td>
                                    </tr>
                        -->
                       <!--   <tr>
                            <td width="60%" class="text-bold"> Footer items</td>
                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[footer_items_add]', array('footer_items_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[footer_items_edit]', array('footer_items_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[footer_items_view]', array('footer_items_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[footer_items_disable]', array('footer_items_disable' => ''), array('title' => 'Disable')); ?></td>
                        </tr> 
                        <tr>
                            <td width="60%" class="text-bold"> Change/Upload Sales Price</td>
                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[change_upload_sales_pricing_group_add]', array('change_upload_sales_pricing_group_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[change_upload_sales_pricing_group_edit]', array('change_upload_sales_pricing_group_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[change_upload_sales_pricing_group_view]', array('change_upload_sales_pricing_group_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"></td>
                        </tr>-->
                    </tbody>
                </table>
                 
                 
                 
             </div>
            <div class="tab-pane" id="mas_tab_hr">
                 
                
                 <table class="table table-hover  table-permission table-striped">
                    <thead>
                        <tr>
                            <th width="60%" class="text-right"><?php echo $form->checkBoxList($model, 'permissions[mas_check_all]', array('mas_check_all' => ''), array('title' => 'Check All', 'onclick' => ' $("#master_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">Enable/Disable</th>
                        </tr>
                    </thead>
                    <tbody>
                
                
                 </tbody>
                </table>
             </div>
                <div class="tab-pane" id="mas_stab_inventory">
                    <table class="table table-hover  table-permission table-striped">
                    <thead>
                        <tr>
                            <th width="60%" class="text-right"><?php echo $form->checkBoxList($model, 'permissions[mas_check_all]', array('mas_check_all' => ''), array('title' => 'Check All', 'onclick' => ' $("#master_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">Enable/Disable</th>
                        </tr>
                    </thead>
                    <tbody>
                 <tr>
                            <td width="60%" class="text-bold"> Warehouse </td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[mas_warehouse_add]', array('mas_warehouse_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[mas_warehouse_edit]', array('mas_warehouse_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[mas_warehouse_view]', array('mas_warehouse_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[mas_warehouse_disable]', array('mas_warehouse_disable' => ''), array('title' => 'Disable')); ?></td>
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold"> Brand </td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[mas_inv_brand_add]', array('mas_inv_brand_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[mas_inv_brand_edit]', array('mas_inv_brand_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[mas_inv_brand_view]', array('mas_inv_brand_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[mas_inv_brand_disable]', array('mas_inv_brand_disable' => ''), array('title' => 'Disable')); ?></td>
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold"> Rack </td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[mas_inv_rack_add]', array('mas_inv_rack_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[mas_inv_rack_edit]', array('mas_inv_rack_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[mas_inv_rack_view]', array('mas_inv_rack_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[mas_inv_rack_disable]', array('mas_inv_rack_disable' => ''), array('title' => 'Disable')); ?></td>
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold"> Bin </td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[mas_inv_bin_add]', array('mas_inv_bin_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[mas_inv_bin_edit]', array('mas_inv_bin_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[mas_inv_bin_view]', array('mas_inv_bin_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[mas_inv_bin_disable]', array('mas_inv_bin_disable' => ''), array('title' => 'Disable')); ?></td>
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold"> Unit </td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[mas_inv_unit_add]', array('mas_inv_unit_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[mas_inv_unit_edit]', array('mas_inv_unit_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[mas_inv_unit_view]', array('mas_inv_unit_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[mas_inv_unit_disable]', array('mas_inv_unit_disable' => ''), array('title' => 'Disable')); ?></td>
                        </tr>
                                    <!-- <tr>
                                        <td width="60%" class="text-bold"> Inventory Status </td>
                                        <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[mas_inv_status_add]', array('mas_inv_status_add' => ''), array('title' => 'Add'));
                                ?></td>
                                        <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[mas_inv_status_edit]', array('mas_inv_status_edit' => ''), array('title' => 'Edit'));
                                ?></td>
                                        <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[mas_inv_status_view]', array('mas_inv_status_view' => ''), array('title' => 'View'));
                                ?></td>
                                        <td class="text-center"></td>
                                        <td class="text-center"></td>
                                    </tr> -->
                        <tr>
                            <td width="60%" class="text-bold"> Category </td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[inventory_generic_name_add]', array('inventory_generic_name_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[inventory_generic_name_edit]', array('inventory_generic_name_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[inventory_generic_name_view]', array('inventory_generic_name_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[inventory_generic_name_disable]', array('inventory_generic_name_disable' => ''), array('title' => 'Disable')); ?></td>
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold"> Tax </td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[mas_tax_add]', array('mas_tax_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[mas_tax_edit]', array('mas_tax_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[mas_tax_view]', array('mas_tax_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[mas_tax_disable]', array('mas_tax_disable' => ''), array('title' => 'Disable')); ?></td>
                        </tr>
                         </tbody>
                </table>
             </div>
                <div class="tab-pane" id="mas_stab_sales">
                    
                 <table class="table table-hover  table-permission table-striped">
                    <thead>
                        <tr>
                            <th width="60%" class="text-right"><?php echo $form->checkBoxList($model, 'permissions[mas_check_all]', array('mas_check_all' => ''), array('title' => 'Check All', 'onclick' => ' $("#master_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">Enable/Disable</th>
                        </tr>
                    </thead>
                    <tbody>
                        <!-- <tr>
                            <td width="60%" class="text-bold"> Item Color </td>
                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[mas_inv_itemcolor_add]', array('mas_inv_itemcolor_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[mas_inv_itemcolor_edit]', array('mas_inv_itemcolor_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[mas_inv_itemcolor_view]', array('mas_inv_itemcolor_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[mas_inv_itemcolor_disable]', array('mas_inv_itemcolor_disable' => ''), array('title' => 'Disable')); ?></td>
                        </tr> -->
                        <tr>
                            <td width="60%" class="text-bold"> Sales Groups</td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[sales_master_salegroup_add]', array('sales_master_salegroup_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[sales_master_salegroup_edit]', array('sales_master_salegroup_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[sales_master_salegroup_view]', array('sales_master_salegroup_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[sales_master_salegroup_disable]', array('sales_master_salegroup_disable' => ''), array('title' => 'Disable')); ?></td>
                        </tr>
                         <tr>
                            <td width="60%" class="text-bold"> Industry</td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[cus_master_industry_add]', array('cus_master_industry_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[cus_master_industry_edit]', array('cus_master_industry_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[cus_master_industry_view]', array('cus_master_industry_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[cus_master_industry_disable]', array('cus_master_industry_disable' => ''), array('title' => 'Disable')); ?></td>
                        </tr>
                         <!-- <tr>
                            <td width="60%" class="text-bold"> Probabilities</td>
                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[sales_master_probability_add]', array('sales_master_probability_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[sales_master_probability_edit]', array('sales_master_probability_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[sales_master_probability_view]', array('sales_master_probability_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[sales_master_probability_disable]', array('sales_master_probability_disable' => ''), array('title' => 'View')); ?></td>
                        </tr>
                        -->
                          <!--<tr>

                            <td width="60%" class="text-bold"> Outlet</td>
                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[master_outlet_add]', array('master_outlet_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[master_outlet_edit]', array('master_outlet_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[master_outlet_view]', array('master_outlet_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[master_outlet_delete]', array('master_outlet_delete' => ''), array('title' => 'Delete')); ?></td>

                        </tr>
                        <tr>
                            <td width="60%" class="text-bold">Color Scheme</td>
                            <td class="text-center"></td>
                            <td class="text-center"></td>
                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[colourscheme_view]', array('colourscheme_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"></td>
                        </tr> -->
                        <tr>
                            <td width="60%" class="text-bold">Terms & Conditions</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[termsandcondition_add]', array('termsandcondition_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[termsandcondition_edit]', array('termsandcondition_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[termsandcondition_view]', array('termsandcondition_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[termsandcondition_disable]', array('termsandcondition_disable' => ''), array('title' => 'Disable')); ?></td>
                        </tr>
                        
                       </tbody>
                </table>  
                        
                        
                        
             </div>
            <!-- <div class="tab-pane" id="mas_stab_loc">
                 <table class="table table-hover  table-permission table-striped">
                    <thead>
                        <tr>
                            <th width="60%" class="text-right"><?php //echo $form->checkBoxList($model, 'permissions[mas_check_all]', array('mas_check_all' => ''), array('title' => 'Check All', 'onclick' => ' $("#master_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">Enable/Disable</th>
                        </tr>
                    </thead>
                    <tbody>
                         <tr>
                            <td width="60%" class="text-bold"> Location</td>
                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[master_location_add]', array('master_location_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[master_location_edit]', array('master_location_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[master_location_view]', array('master_location_view' => ''), array('title' => 'View')); ?></td>
                            
                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[master_location_disable]', array('master_location_disable' => ''), array('title' => 'Disable')); ?></td>
                        </tr>
                      </tbody>
                </table>   
                        
                        
             </div> -->
                <div class="tab-pane" id="mas_stab_log">
                 <table class="table table-hover  table-permission table-striped">
                    <thead>
                        <tr>
                            <th width="60%" class="text-right"><?php echo $form->checkBoxList($model, 'permissions[mas_check_all]', array('mas_check_all' => ''), array('title' => 'Check All', 'onclick' => ' $("#master_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">Enable/Disable</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td width="60%" class="text-bold"> Countries</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[master_country_add]', array('master_country_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[master_country_edit]', array('master_country_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[master_country_view]', array('master_country_view' => ''), array('title' => 'View')); ?></td>
                            
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[master_country_disable]', array('master_country_disable' => ''), array('title' => 'Disable')); ?></td>
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold"> Shipping Methods</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[shipping_method_add]', array('shipping_method_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[shipping_method_edit]', array('shipping_method_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[shipping_method_view]', array('shipping_method_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[shipping_method_disable]', array('shipping_method_disable' => ''), array('title' => 'Disable')); ?></td>
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold"> Document Types</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[mas_doc_type_add]', array('mas_doc_type_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[mas_doc_type_edit]', array('mas_doc_type_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[mas_doc_type_view]', array('mas_doc_type_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[mas_doc_type_disable]', array('mas_doc_type_disable' => ''), array('title' => 'Disable')); ?></td>
                        </tr>
                         <!--  <tr>
                            <td width="60%" class="text-bold"> Supplier Type</td>
                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[mas_supplier_type_add]', array('mas_supplier_type_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[mas_supplier_type_edit]', array('mas_supplier_type_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[mas_supplier_type_view]', array('mas_supplier_type_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[mas_supplier_type_disable]', array('mas_supplier_type_disable' => ''), array('title' => 'Disable')); ?></td>
                        </tr>
                      <tr>
                            <td width="60%" class="text-bold"> Bill Type</td>
                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[mas_bill_type_add]', array('mas_bill_type_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[mas_bill_type_edit]', array('mas_bill_type_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"> <?php //echo $form->checkBoxList($model, 'permissions[mas_bill_type_view]', array('mas_bill_type_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[mas_bill_type_disable]', array('mas_bill_type_disable' => ''), array('title' => 'Disable')); ?></td>
                        </tr>
                                                            <tr>
                                            <td width="60%" class="text-bold"> Custom Duties</td>
                                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[mas_custom_duties_add]', array('mas_custom_duties_add' => ''), array('title' => 'Add')); ?></td>
                                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[mas_custom_duties_edit]', array('mas_custom_duties_edit' => ''), array('title' => 'Edit')); ?></td>
                                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[mas_custom_duties_view]', array('mas_custom_duties_view' => ''), array('title' => 'View')); ?></td>
                                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[mas_custom_duties_delete]', array('mas_custom_duties_delete' => ''), array('title' => 'Delete')); ?></td>
                                            <td class="text-center"></td>
                                    </tr>
                                     <tr>
                                            <td width="60%" class="text-bold"> Master Tables </td>
                                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[master_table_add]', array('master_table_add' => ''), array('title' => 'Add')); ?></td>
                                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[master_table_edit]', array('master_table_edit' => ''), array('title' => 'Edit')); ?></td>
                                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[master_table_view]', array('master_table_view' => ''), array('title' => 'View')); ?></td>
                                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[master_table_delete]', array('master_table_delete' => ''), array('title' => 'Delete')); ?></td>
                                            <td class="text-center"></td>
                                    </tr>
                                    <tr>
                                            <td width="60%" class="text-bold"> Dimension1 </td>
                                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[dim1_add]', array('dim1_add' => ''), array('title' => 'Add')); ?></td>
                                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[dim1_edit]', array('dim1_edit' => ''), array('title' => 'Edit')); ?></td>
                                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[dim1_view]', array('dim1_view' => ''), array('title' => 'View')); ?></td>
                                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[dim1_delete]', array('dim1_delete' => ''), array('title' => 'Delete')); ?></td>
                                            <td class="text-center"></td>
                                    </tr>
                                    <tr>
                                            <td width="60%" class="text-bold"> Dimension2</td>
                                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[dim2_add]', array('dim2_add' => ''), array('title' => 'Add')); ?></td>
                                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[dim2_edit]', array('dim2' => ''), array('title' => 'Edit')); ?></td>
                                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[dim2_view]', array('dim2' => ''), array('title' => 'View')); ?></td>
                                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[dim2_delete]', array('dim2' => ''), array('title' => 'Delete')); ?></td>
                                            <td class="text-center"></td>
                                    </tr>
                                    <tr>
                                            <td width="60%" class="text-bold"> Dimension3 </td>
                                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[dim3_add]', array('dim3_add' => ''), array('title' => 'Add')); ?></td>
                                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[dim3_edit]', array('dim3_edit' => ''), array('title' => 'Edit')); ?></td>
                                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[dim3_view]', array('dim3_view' => ''), array('title' => 'View')); ?></td>
                                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[dim3_delete]', array('dim3_delete' => ''), array('title' => 'Delete')); ?></td>
                                            <td class="text-center"></td>
                                    </tr>-->
                     </tbody>
                </table>    
                        
             </div>
                 <!-- <div class="tab-pane" id="mas_stab_fm">
                 <table class="table table-hover  table-permission table-striped">
                    <thead>
                        <tr>
                            <th width="60%" class="text-right"><?php echo $form->checkBoxList($model, 'permissions[mas_check_all]', array('mas_check_all' => ''), array('title' => 'Check All', 'onclick' => ' $("#master_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">Enable/Disable</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td width="60%" class="text-bold">Technician</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[fm_mas_technician_add]', array('fm_mas_technician_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[fm_mas_technician_edit]', array('fm_mas_technician_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[fm_mas_technician_view]', array('fm_mas_technician_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[fm_mas_technician_disable]', array('fm_mas_technician_disable' => ''), array('title' => 'Disable')); ?></td>
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold">Issue Type</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[fm_mas_issue_type_add]', array('fm_mas_issue_type_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[fm_mas_issue_type_edit]', array('fm_mas_issue_type_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[fm_mas_issue_type_view]', array('fm_mas_issue_type_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[fm_mas_issue_type_disable]', array('fm_mas_issue_type_disable' => ''), array('title' => 'Disable')); ?></td>
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold">Period Type</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[fm_mas_period_add]', array('fm_mas_period_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[fm_mas_period_edit]', array('fm_mas_period_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[fm_mas_period_view]', array('fm_mas_period_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[fm_mas_period_disable]', array('fm_mas_period_disable' => ''), array('title' => 'Disable')); ?></td>
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold">Building</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[fm_mas_building_add]', array('fm_mas_building_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[fm_mas_building_edit]', array('fm_mas_building_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[fm_mas_building_view]', array('fm_mas_building_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[fm_mas_building_disable]', array('fm_mas_building_disable' => ''), array('title' => 'Disable')); ?></td>
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold">Unit</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[fm_mas_unit_add]', array('fm_mas_unit_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[fm_mas_unit_edit]', array('fm_mas_unit_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[fm_mas_unit_view]', array('fm_mas_unit_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[fm_mas_unit_disable]', array('fm_mas_unit_disable' => ''), array('title' => 'Disable')); ?></td>
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold">Area</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[fm_mas_area_add]', array('fm_mas_area_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[fm_mas_area_edit]', array('fm_mas_area_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[fm_mas_area_view]', array('fm_mas_area_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[fm_mas_area_disable]', array('fm_mas_area_disable' => ''), array('title' => 'Disable')); ?></td>
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold">Snag</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[fm_mas_snag_add]', array('fm_mas_snag_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[fm_mas_snag_edit]', array('fm_mas_snag_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[fm_mas_snag_view]', array('fm_mas_snag_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[fm_mas_snag_disable]', array('fm_mas_snag_disable' => ''), array('title' => 'Disable')); ?></td>
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold">Project Classification</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[fm_mas_project_classification_add]', array('fm_mas_project_classification_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[fm_mas_project_classification_edit]', array('fm_mas_project_classification_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[fm_mas_project_classification_view]', array('fm_mas_project_classification_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[fm_mas_project_classification_disable]', array('fm_mas_project_classification_disable' => ''), array('title' => 'Disable')); ?></td>
                        </tr>
                        </tbody>
                </table> 
                        
                        
             </div> -->
                <div class="tab-pane" id="mas_stab_project">
                 <table class="table table-hover  table-permission table-striped">
                    <thead>
                        <tr>
                            <th width="60%" class="text-right"><?php echo $form->checkBoxList($model, 'permissions[mas_check_all]', array('mas_check_all' => ''), array('title' => 'Check All', 'onclick' => ' $("#master_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">Enable/Disable</th>
                        </tr>
                    </thead>
                    <tbody>
                    <!-- <tr>
                            <td width="60%" class="text-bold">External Company</td>
                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[projects_mas_external_company_add]', array('projects_mas_external_company_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[projects_mas_external_company_edit]', array('projects_mas_external_company_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[projects_mas_external_company_view]', array('projects_mas_external_company_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[projects_mas_external_company_disable]', array('projects_mas_external_company_disable' => ''), array('title' => 'Disable')); ?></td>
                            </tr> -->
                            <tr>
                            <td width="60%" class="text-bold"> Categories</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[projects_mas_task_category_add]', array('projects_mas_task_category_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[projects_mas_task_category_edit]', array('projects_mas_task_category_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[projects_mas_task_category_view]', array('projects_mas_task_category_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[projects_mas_task_category_disable]', array('projects_mas_task_category_disable' => ''), array('title' => 'Disable')); ?></td>
                            </tr>
                            <tr>
                            <td width="60%" class="text-bold"> Sub Categories</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[projects_mas_task_subcategory_add]', array('projects_mas_task_subcategory_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[projects_mas_task_subcategory_edit]', array('projects_mas_task_subcategory_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[projects_mas_task_subcategory_view]', array('projects_mas_task_subcategory_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[projects_mas_task_subcategory_disable]', array('projects_mas_task_subcategory_disable' => ''), array('title' => 'Disable')); ?></td>
                            </tr>
                            <tr>
                            <td width="60%" class="text-bold">External Labour</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[projects_mas_external_labour_add]', array('projects_mas_external_labour_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[projects_mas_external_labour_edit]', array('projects_mas_external_labour_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[projects_mas_external_labour_view]', array('projects_mas_external_labour_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[projects_mas_external_labour_block]', array('projects_mas_external_labour_disable' => ''), array('title' => 'Disable')); ?></td>
                            </tr> 
                             <!--<tr>
                            <td width="60%" class="text-bold">Labour Hours</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[projects_mas_labour_hours_add]', array('projects_mas_labour_hours_add' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[projects_mas_labour_hours_edit]', array('projects_mas_labour_hours_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[projects_mas_labour_hours_view]', array('projects_mas_labour_hours_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[projects_mas_labour_hours_disable]', array('projects_mas_labour_hours_disable' => ''), array('title' => 'View')); ?></td>
                            </tr>-->
                         </tbody>
                </table> 
                        
                        
             </div>
                </div>
            
            
            
        </div>
        
        
        
        <div class="tab-pane" id="projects_tab">
            <div class="table-responsive" style="max-height: 350px">
                <table class="table table-hover  table-permission table-striped">
                    <thead>
                        <tr>
                            <th width="60%" class="text-right"><?php echo $form->checkBoxList($model, 'permissions[project_check_all]', array('project_check_all' => ''), array('title' => 'Check All', 'onclick' => ' $("#projects_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">Requisition</th>
                            <!-- <th class="text-center">Schedule</th> -->
                            <th class="text-center">Admin Project Time</th>
                            <th class="text-center">Labour Project Time</th>
                            <th class="text-center">Print</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td width="60%" class="text-bold">Project Menu</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[add_project_menu]', array('add_project_menu' => ''), array('title' => 'Add Project Menu')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[edit_project_menu]', array('edit_project_menu' => ''), array('title' => 'Edit Project Menu')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[view_project_menu]', array('view_project_menu' => ''), array('title' => 'View Project Menu')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[requisition_project_menu]', array('requisition_project_menu' => ''), array('title' => 'Requisition Project Menu')); ?></td>
                            <!-- <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[schedule_project_menu]', array('schedule_project_menu' => ''), array('title' => 'Schedule')); ?></td>-->
                             <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[project_work_time_admin_menu]', array('project_work_time_admin_menu' => ''), array('title' => 'Admin Project Time')); ?></td> 
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[project_work_time_view_menu]', array('project_work_time_view_menu' => ''), array('title' => 'Labour Project Time')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[print_project_menu]', array('print_project_menu' => ''), array('title' => 'Print')); ?></td>
                        </tr>
                    </tbody>
                </table>
            </div>
 
        </div>
        
      
        
         <div class="tab-pane" id="profit_calculation_tab">
             <div class="table-responsive">
                <table class="table table-hover  table-permission table-striped">
                    <thead>
                        <tr>
                            <th width="60%" class="text-right"><?php echo $form->checkBoxList($model, 'permissions[profit_calculation_check_all]', array('profit_calculation_check_all' => ''), array('data-label' => 'Check All', 'onclick' => ' $("#profit_calculation_tab input:checkbox").prop("checked", $(this).prop("checked"));')); ?> Select All </th>
                            <th class="text-center">View</th>
                            <th class="text-center">Add</th>
                            <th class="text-center">Edit</th>
                            <th class="text-center">Delete</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td width="60%" class="text-bold">View</td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[profit_calculation_view]', array('profit_calculation_view' => ''), array('title' => 'View')); ?>
                                <!--,'onclick'=>'if($(this).prop("checked") == false){ $(".main_check").prop("checked",false);}' -->
                            <td class="text-center"></td>
                            <td class="text-center"></td>
                            <td class="text-center"></td>
                            </td>
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold">Show Different Cost Pricing</td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[show_different_cost_pricing]', array('show_different_cost_pricing' => ''), array('title' => 'Show Different Cost Pricing')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"></td>
                            <td class="text-center"></td>
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold">View all Files</td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[view_all_files]', array('view_all_files' => ''), array('title' => 'View all Files')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"></td>
                            <td class="text-center"></td>
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold">Approve Below Minimum Profit</td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[approve_below_minimum_profit]', array('approve_below_minimum_profit' => ''), array('title' => 'Approve Below minimum Profit')); ?></td>
                            <td class="text-center"></td>
                            <td class="text-center"></td>
                            <td class="text-center"></td>
                        </tr>
                        <tr>
                            <td width="60%" class="text-bold">Profit Settings</td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[profit_settings_view]', array('profit_settings_view' => ''), array('title' => 'View')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[profit_settings_add]', array('profit_settings_add' => ''), array('title' => 'Add')); ?></td>
                            <td class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[profit_settings_edit]', array('profit_settings_edit' => ''), array('title' => 'Edit')); ?></td>
                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[profit_settings_delete]', array('profit_settings_delete' => ''), array('title' => 'Delete')); ?></td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
        
        
        
        
    </div>
    
    
    
    
   <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/SaveCopyUserGroup');
                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(); ?>