<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 vertical-tab">

    <ul class="nav nav-tabs nav-vertical nav-tab-theme" style="margin-top: 0">

        <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 tab-vertical">

        <ul class="material clearfix form-ul">

            <li class="col-sm-6">

                <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; ?>">

                <?php
                echo $form->hiddenField($model, 'id');

                echo $form->textField($model, 'group_name', array('data-label' => 'User Group'));
                ?>

            </li>



            <li class="col-sm-3">

                <?php echo $form->checkBoxList($model, 'permissions[checkall]', array('checkall' => ''), array('class' => 'main_check', 'data-label' => 'Select All', 'onclick' => ' $("#usergroup-form input:checkbox").prop("checked", $(this).prop("checked"));')); ?>

            </li>



            <li class="col-sm-3" style="display: none;">

                <?php echo $form->checkBox($model, 'is_salesman', array('data-label' => 'Is Salesman', 'class' => 'clsSalesman')); ?>

            </li>



            <li class="col-sm-6" style="display: none;">

                <?php echo $form->textField($model, 'qtn_approval_val_limit', array('data-label' => 'Approval By Value - Quotation')); ?>

            </li>



            <li class="col-sm-6" style="display: none;">

                <?php echo $form->textField($model, 'purchase_order_approval_val_limit', array('data-label' => 'Approval By Value - PurchaseOrder')); ?>

            </li>

            <li class="col-sm-6" style="display: none;">

                <?php echo $form->textField($model, 'order_approval_val_limit', array('data-label' => 'Approval By Value - Order')); ?>

            </li>

            <li class="col-sm-6" style="display: none;">

                <?php echo $form->textField($model, 'min_profit_percentage', array('data-label' => 'Minimum Profit Percentage')); ?>

            </li>





        </ul>

        <hr class="theme-divider">

        <div class="tab-pane active" id="mis_tab">

            <div class="table-responsive">

                <table class="table table-hover table-bordered table-theme table-permission">

                    <thead>

                        <tr>

                            <th width="60%" class="text-right"><?php echo $form->checkBoxList($model, 'permissions[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">View</th>

                        </tr>

                    </thead>

                    <tbody>

                        <tr>

                            <td width="60%" class="text-bold">Desktop</td>

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

                                <!--,'onclick'=>'if($(this).prop("checked") == false){ $(".main_check").prop("checked",false);}' -->





                            </td>

                        </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 class="text-center"><?php echo $form->checkBoxList($model, 'permissions[mis_dashboard_view]', array('mis_dashboard_view' => ''), array('title' => ' MIS Dashboard View')); ?>

                                <!--,'onclick'=>'if($(this).prop("checked") == false){ $(".main_check").prop("checked",false);}' -->





                            </td>

                        </tr>

                        <tr>

                            <td width="60%" class="text-bold"> FM Dashboard </td>

                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[fm_dashboard_view]', array('fm_dashboard_view' => ''), array('title' => ' FM Dashboard View')); ?>

                                <!--,'onclick'=>'if($(this).prop("checked") == false){ $(".main_check").prop("checked",false);}' -->





                            </td>

                        </tr>



                        <tr>

                            <td width="60%" class="text-bold">Dashboard-Drill Down Level1</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 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 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 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 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 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 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 class="text-center"> <?php echo $form->checkBoxList($model, 'permissions[calendar_view]', array('calendar_view' => ''), array('title' => 'View')); ?></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-bordered table-theme table-permission">

                    <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">Approve Level 1</th>

                            <th class="text-center">Approve Level 2</th>

                            <th class="text-center">Approve Level 3</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>

                        </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>

                        </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>

                        </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"></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')); ?>
                                <?php echo $form->checkBoxList($model, 'permissions[invoice_change_payment_type]', array('change_payment_type' => ''), array('title' => 'Change 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"></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>

                        </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' => 'Exchange Date Edit')); ?></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' => 'Edit'));
                        ?></td>

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

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

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

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

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

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

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

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

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

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

                                        <td 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>

                        </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="5">Show Available Quantity in App</td>

                            <td class="text-left" colspan="15"><?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="5">Show Warehouse All</td>

                            <td class="text-left" colspan="15"><?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="others_tab">

            <div class="table-responsive">

                <table class="table table-hover table-bordered table-theme table-permission">

                    <thead>

                        <tr>

                            <th width="60%" class="text-right"><?php echo $form->checkBoxList($model, 'permissions[others_check_all]', array('others_check_all' => ''), array('data-label' => 'Check All', 'onclick' => ' $("#others_tab input:checkbox").prop("checked", $(this).prop("checked"));')); ?> select all </th>

                            <th class="text-center">View</th>

                            <th class="text-center">Add</th>

                            <th class="text-center">Edit</th>

                            <th class="text-center">Return</th>

                            <th class="text-center">Delete</th>

                        </tr>

                    </thead>

                    <tbody>

                        <tr>

                            <td width="60%" class="text-bold">Target Type</td>

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

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

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

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

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

                        </tr>

                        <tr>

                            <td width="60%" class="text-bold">Target Master</td>

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

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

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

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

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

                        </tr>

                        <tr>

                            <td width="60%" class="text-bold">Target Graph</td>

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

                            <td></td>

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

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

                        </tr>

                        <tr>

                            <td width="60%" class="text-bold">Assignment Master</td>

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

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

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

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

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

                        </tr>

                        <tr>

                            <td width="60%" class="text-bold">Assignments</td>

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

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

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

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

                        </tr>

                        <tr>

                            <td width="60%" class="text-bold">Sample Tracking</td>

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

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

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

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

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

                        </tr>

                        <tr>

                            <td width="60%" class="text-bold">RMA Reciepts</td>

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

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

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

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

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

                        </tr>

                        <tr>

                            <td width="60%" class="text-bold">RMA send to vendor</td>

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

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

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

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

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

                        </tr>

                        <tr>

                            <td width="60%" class="text-bold">Customer/Finance</td>

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

                            <td></td>

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

                            <td></td>

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

                        </tr>

                        <tr>

                            <td width="60%" class="text-bold">Documents/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[allow_delete_document]', array('allow_delete_document' => ''), array('title' => 'Delete')); ?></td>

                        </tr>

                        <tr>

                            <td width="60%" class="text-bold">Show International Products</td>

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

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

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

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

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

                        </tr>



                    </tbody>

                </table>

            </div>



        </div-->

        <div class="tab-pane" id="fm_tab">

            <div class="table-responsive">

                <table class="table table-hover table-bordered table-theme table-permission">

                    <thead>

                    <th width="60%" class="text-right"></th>

                    <th class="text-right">View</th>

                    <th class="text-right">Add</th>

                    <th class="text-right">Edit</th>

                    <th class="text-right">Convert</th>

                    <th class="text-right">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_view]', array('job_order_view' => ''), array('title' => 'View')); ?>

                            </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_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_view]', array('planned_maintenance_view' => ''), array('title' => 'View')); ?>

                            </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_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">

                            </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>

                        </tr>

                        <tr>

                            <td width="60%" class="text-bold">Issue Item</td>

                            <td class="text-bold">

                            </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>

                        </tr>

                        <tr>

                            <td width="60%" class="text-bold">Allotment</td>

                            <td class="text-bold">

                            </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>

                        </tr>
                        <tr>

                            <td width="60%" class="text-bold">Maintenance Snag</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_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_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_view]', array('materials_list_view' => ''), array('title' => 'View')); ?>
                            </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">

                            </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-bordered table-theme table-permission">

                    <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" colspan="8"> <?php echo $form->checkBoxList($model, 'permissions[view_sales_price]', array('view_sales_price' => ''), array('title' => 'View')); ?></td>



                        </tr>





                        <tr>

                            <td class="text-bold">Edit Selling Price</td>

                            <td class="text-center" colspan="8"> <?php echo $form->checkBoxList($model, 'permissions[edit_selling_price]', array('edit_selling_price' => ''), array('title' => 'Edit')); ?></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">Inventory Details-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-bordered table-theme table-permission">

                    <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>

                            <td></td>

                        </tr>

                        <tr>

                            <td width="60%" class="text-bold">P.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>

                            <td></td>

                        </tr>

                        <tr>

                            <td width="60%" class="text-bold">P.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></td>

                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[enquiry_price]', array('enquiry_price' => ''), array('title' => 'Enquiry Price')); ?></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">P.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 Main Menu'));

                                echo $form->checkBoxList($model, 'permissions[purchase_order_view_context_menu]', array('purchase_order_view_context_menu' => ''), array('title' => 'View Price'));
                                ?></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 class="text-center"><?php // echo $form->checkBoxList($model, 'permissions[purchase_order_price]',array('enquiry_price'=>''),array('title'=>'Document Delete'));
                                ?></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">M.Receipt-Stores</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_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 class="text-center"><?php // echo $form->checkBoxList($model, 'permissions[purchase_order_price]',array('enquiry_price'=>''),array('title'=>'Document Delete'));
                                ?></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">M.Receipt-QC</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 class="text-center"><?php // echo $form->checkBoxList($model, 'permissions[purchase_order_price]',array('enquiry_price'=>''),array('title'=>'Document Delete'));
                                ?></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">P.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 class="text-center"></td>

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

                            <td class="text-center"><?php // echo $form->checkBoxList($model, 'permissions[purchase_order_price]',array('enquiry_price'=>''),array('title'=>'Document Delete'));
                                ?></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">Debit Note</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"></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">Landing Cost</td>

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

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

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

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

                            <td></td>

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

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

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

                            <td 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[purchase_reports_view]', array('purchase_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>



                        </tr>

                        <tr>

                            <td width="60%" class="text-bold">Masters</td>

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

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

                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[purchase_master_view]', array('purchase_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>



                        </tr>

                                    <!-- <tr>

                                        <td width="60%" class="text-bold">Direct Purchase</td>

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

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

                                        <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[direct_purchase_view]', array('direct_purchase_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_purchase_pdf' => ''), array('title' => 'Print'));
                                ?></td>

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

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

                                        <td></td>

                                        <td></td>

                                        <td class="text-center"><?php //echo $form->checkBoxList($model, 'permissions[direct_purchase_post]', array('direct_purchase_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 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>

                            <td class="text-center"></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[purchase_tracking_edit]', array('purchase_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></td>

                            <td></td>

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

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

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

                        </tr>



                        <tr>

                            <td width="60%" class="text-bold">New Order Movement Analysis</td>

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

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

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

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

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

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

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

                            <td></td>

                            <td></td>

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

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

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

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

                        </tr>





                    </tbody>

                </table>

            </div>

        </div>







        <!--        START - Fixed Asset-->

        <!--div class="tab-pane" id="fixedasset_tab">

        <?php //$this->renderPartial('fixedasset_tab', array('model' => $model, 'form' => $form));
        ?>

        </div-->

        <!--        END - Fixed Asset-->

        <div class="tab-pane" id="finance_tab">

            <div class="table-responsive">

                <table class="table table-hover table-bordered table-theme table-permission">

                    <thead>

                        <tr>

                            <th width="60%" class="text-right"><?php echo $form->checkBoxList($model, 'permissions[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>





        <!------------------------------------------------------------------------------------------------------------->

        <!--//start account//-->

        <!------------------------------------------------------------------------------------------------------------->



        <div class="tab-pane" id="account_tab">

            <div class="table-responsive">

                <table class="table table-hover table-bordered table-theme table-permission">

                    <thead>


                        <!------------------------------------------------------------------------------------------------------------->
                        <tr>

                            <th width="60%" class="text-right"><?php echo $form->checkBoxList($model, 'permissions[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">Payment</th>

                            <th class="text-center">Receipt</th>

                            <th class="text-center">Commission</th>

                            <th class="text-center">Import</th>

                            <th class="text-center">Upload Doc</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>

                            <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(), array('title' => 'Add')); ?></td>

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

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

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

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

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

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

                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[acc_receipt_menu_view]', array('acc_receipt_menu_view' => ''), array('title' => 'View')); ?></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>
                        </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(), 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(), 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(), array('title' => 'Print')); ?></td>

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

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

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

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





                        <!------------------------------------------------------------------------------------------------------------->



                        <tr>

                            <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>

                            <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>
                            <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>
                            <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>
                            <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>
                            <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>
                            <td class="text-center"> </td>
                        </tr>



                        <!------------------------------------------------------------------------------------------------------------->



                        <tr>

                            <td width="60%" class="text-bold">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(), 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(), array('title' => 'Delete')); ?></td>

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

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

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

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

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

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

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





                        <!------------------------------------------------------------------------------------------------------------->



                        <tr>

                            <td width="60%" class="text-bold" colspan="6">Account Mapping</td>

                            <td class="text-center" colspan="15"><?php echo $form->checkBoxList($model, 'permissions[acc_mapping_menu_view]', array('acc_mapping_menu_view' => ''), array('title' => 'Show Post To Finance')); ?></td>



                        </tr>

                        <!------------------------------------------------------------------------------------------------------------->



                        <tr>

                            <td width="60%" class="text-bold" colspan="6">Synchronize Subledgers</td>

                            <td class="text-center" colspan="10"><?php echo $form->checkBoxList($model, 'permissions[acc_synchronize_subledgers_menu_view]', array('acc_synchronize_subledgers_menu_view' => ''), array('title' => 'Show Post To Finance')); ?></td>



                        </tr>

                        <!------------------------------------------------------------------------------------------------------------->





                        <tr>

                            <td width="60%" class="text-bold" colspan="6">Masters Menu</td>

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

                        </tr>

                        <!------------------------------------------------------------------------------------------------------------->



                        <!------------------------------------------------------------------------------------------------------------->

                        <!--Show Post To Finance-->

                        <!------------------------------------------------------------------------------------------------------------->



                        <tr>

                            <td width="60%" class="text-bold" colspan="6">Invoice Post To Finance</td>

                            <td class="text-center" colspan="10"> <?php echo $form->checkBoxList($model, 'permissions[sales_post_to_finance]', array('sales_post_to_finance' => ''), array('title' => 'Show Post To Finance')); ?></td>

                        </tr>





                        <tr>

                            <td width="60%" class="text-bold" colspan="6">Purchase Post To Finance</td>

                            <td class="text-center" colspan="10"> <?php echo $form->checkBoxList($model, 'permissions[purchase_post_to_finance]', array('purchase_post_to_finance' => ''), array('title' => 'Show Post To Finance')); ?></td>

                        </tr>



                        <tr>

                            <td width="60%" class="text-bold" colspan="6">Inventory Issue Post To Finance</td>

                            <td class="text-center" colspan="10"> <?php echo $form->checkBoxList($model, 'permissions[issues_post_to_finance]', array('issues_post_to_finance' => ''), array('title' => 'Show Post To Finance')); ?></td>

                        </tr>

                        <tr>

                            <td width="60%" class="text-bold" colspan="6">Inventory receipts Post To Finance</td>

                            <td class="text-center" colspan="10"> <?php echo $form->checkBoxList($model, 'permissions[receipts_post_to_finance]', array('receipts_post_to_finance' => ''), array('title' => 'Show Post To Finance')); ?></td>

                        </tr>









                        <!------------------------------------------------------------------------------------------------------------->

                        <!------------------------------------------------------------------------------------------------------------->









                        <tr>

                            <td width="60%" class="text-bold" colspan="6">Reports Menu</td>

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

                        </tr>





                        <!------------------------------------------------------------------------------------------------------------->



                        <tr>

                            <td width="60%" class="text-bold" colspan="6">Report/Trial Balance</td>

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

                        </tr>

                        <!------------------------------------------------------------------------------------------------------------->



                        <tr>

                            <td width="60%" class="text-bold" colspan="6">Report/Profit And Loss</td>

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

                        </tr>

                        <!------------------------------------------------------------------------------------------------------------->



                        <tr>

                            <td width="60%" class="text-bold" colspan="6">Report/Balance </td>

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

                        </tr>

                        <!------------------------------------------------------------------------------------------------------------->



                        <tr>

                            <td width="60%" class="text-bold" colspan="6">Report/General Ledger</td>

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

                        </tr>

                        <!------------------------------------------------------------------------------------------------------------->



                        <tr>

                            <td width="60%" class="text-bold" colspan="6">Report/Customer Statement</td>

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

                        </tr>

                        <!------------------------------------------------------------------------------------------------------------->



                        <tr>

                            <td width="60%" class="text-bold" colspan="6">Report/Vendor Statement</td>

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

                        </tr>

                        <!------------------------------------------------------------------------------------------------------------->



                        <tr>

                            <td width="60%" class="text-bold" colspan="6">Report/Receivable Aging</td>

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

                        </tr>

                        <!------------------------------------------------------------------------------------------------------------->





                        <tr>

                            <td width="60%" class="text-bold" colspan="6">Report/Payable Aging</td>

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

                        </tr>

                        <!------------------------------------------------------------------------------------------------------------->





                        <tr>

                            <td width="60%" class="text-bold" colspan="6">Report/VAT Report</td>

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

                        </tr>

                        <!------------------------------------------------------------------------------------------------------------->

                        <tr>

                            <td width="60%" class="text-bold" colspan="6">Report/VAT Summary</td>

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

                        </tr>

                        <!------------------------------------------------------------------------------------------------------------->

                        <tr>

                            <td width="60%" class="text-bold" colspan="6">Report/VAT Register</td>

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

                        </tr>

                        <!------------------------------------------------------------------------------------------------------------->





                        <tr>

                            <td width="60%" class="text-bold" colspan="6">Report/Subledger Detail</td>

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

                        </tr>

                        <!------------------------------------------------------------------------------------------------------------->



                        <tr>

                            <td width="60%" class="text-bold" colspan="6">Report/Ledger Summary</td>

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

                        </tr>

                        <!------------------------------------------------------------------------------------------------------------->



                        <tr>

                            <td width="60%" class="text-bold" colspan="6">Report/Customer Statement As On Date</td>

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

                        </tr>

                        <!------------------------------------------------------------------------------------------------------------->



                        <tr>

                            <td width="60%" class="text-bold" colspan="6">Report/Vendor Statement As On Date</td>

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

                        </tr>

                        <!------------------------------------------------------------------------------------------------------------->



                        <tr>

                            <td width="60%" class="text-bold" colspan="6">Report/Profit and Loss Detailed</td>

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

                        </tr>

                        <!------------------------------------------------------------------------------------------------------------->

                        <tr>

                            <td width="60%" class="text-bold" colspan="6">Report/Balance Detailed Report</td>

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

                        </tr>

                        <!------------------------------------------------------------------------------------------------------------->





                    </tbody>

                </table>

            </div>



        </div>



        <!------------------------------------------------------------------------------------------------------------->

        <!--//End account//-->

        <!------------------------------------------------------------------------------------------------------------->







        <div class="tab-pane" id="admin_tab">

            <div class="table-responsive">

                <table class="table table-hover table-bordered table-theme table-permission">

                    <thead>

                        <tr>

                            <th width="60%" class="text-right"><?php echo $form->checkBoxList($model, 'permissions[admin_check_all]', array('admin_check_all' => ''), array('title' => 'Check All', 'onclick' => ' $("#admin_tab input:checkbox").prop("checked", $(this).prop("checked"));')); ?> select all</th>

                            <th class="text-center">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" colspan="5">Show Level All</td>

                            <td class="text-left" colspan="15"><?php echo $form->checkBoxList($model, 'permissions[show_level_all]', array('show_level_all' => ''), array('title' => 'Show Level All')); ?></td>



                        </tr>

                    </tbody>

                </table>

            </div>

        </div>



        <div class="tab-pane" id="reports_tab">

            <div class="table-responsive" style="max-height:400px">

                <table class="table table-hover table-bordered table-theme table-permission">

                    <thead>

                        <tr>

                            <th width="60%" class="text-right"><?php echo $form->checkBoxList($model, 'permissions[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>



                        <!-- ---------------sales------------ -->

                        <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>



                        </tr>


                        <tr>

                            <td width="60%" class="text-bold">Sales / Commission Report</td>

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



                        </tr>



                        <tr>

                            <td width="60%" class="text-bold">Sales /Cost of sale Report</td>

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



                        </tr>



                        <tr>

                            <td width="60%" class="text-bold">Sales / Creditnote</td>

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



                        </tr>



                        <tr>

                            <td width="60%" class="text-bold">Sales / 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>



                        </tr>



                        <tr>

                            <td width="60%" class="text-bold">Sales / Item Wise Sales List</td>

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



                        </tr>

                        <tr>

                            <td width="60%" class="text-bold">Sales / NetSales</td>

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



                        </tr>

                        <tr>

                            <td width="60%" class="text-bold">Sales /Settlement Report</td>

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



                        </tr>



                        <tr>

                            <td width="60%" class="text-bold">Sales /Sales Summary</td>

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



                        </tr>

                        <tr>

                            <td width="60%" class="text-bold">Sales /Itemwise Consolidated</td>

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



                        </tr>

                        <tr>

                            <td width="60%" class="text-bold">Sales /GP Analysis</td>

                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[report_gp_analysis_view]', array('report_gp_analysis_view' => ''), array('title' => 'View')); ?></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> -->

                                    <!-- <tr style="display: none;">

                <td width="60%" class="text-bold">Sales / 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>



                                        </tr>

                                        <tr style="display: none;">

                                            <td width="60%" class="text-bold">Sales / 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>



                                        </tr>

                                        <tr style="display: none;">

                                            <td width="60%" class="text-bold">Sales / 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>



                                        </tr>

                                        <tr style="display: none;">

                                            <td width="60%" class="text-bold">Sales / Delivery 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>



                                        </tr> -->



                        <!-- --------------------------- -->







                        <!-- ---------customer-------------- -->

                        <tr>

                            <td width="60%" class="text-bold">Customer / Vendor / Activity List</td>

                            <td class="text-center"><?php echo $form->checkBoxList($model, 'permissions[report_activity_view]', array('report_activity_view' => ''), array('title' => 'View')); ?></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>



                        </tr>

                        <tr>

                            <td width="60%" class="text-bold">Customer / Customer List</td>

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



                        </tr>



                        <tr>

                            <td width="60%" class="text-bold">Customer 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>



                        </tr>

                        <tr>

                            <td width="60%" class="text-bold">Customer / Vendor List</td>

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



                        </tr>

                        <tr>

                            <td width="60%" class="text-bold">Customer / Vendor List</td>

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



                        </tr>



                        <tr>

                            <td width="60%" class="text-bold">Customer / 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>



                        </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> -->

                        <!-- ---------------------------- -->







                        <!-- ------inventory---------------------- -->

                        <tr>

                            <td width="60%" class="text-bold">Inventory/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>



                        </tr>

                        <tr>

                            <td width="60%" class="text-bold">Inventory/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>



                        </tr>

                        <tr>

                            <td width="60%" class="text-bold">Inventory/Inventory List</td>

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



                        </tr>



                        <tr>

                            <td width="60%" class="text-bold">Inventory/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>



                        </tr>

                        <tr>

                            <td width="60%" class="text-bold">Inventory /Sales & Purchase Report</td>

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



                        </tr>

                        <tr>

                            <td width="60%" class="text-bold">Inventory/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>



                        </tr>

                        <tr>

                            <td width="60%" class="text-bold">Inventory/Stock State As of Detailed</td>

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



                        </tr>

                        <tr>

                            <td width="60%" class="text-bold">Inventory/Stock Transaction</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>



                        </tr>

                        <tr>

                            <td width="60%" class="text-bold">Inventory/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>



                        </tr>

                        <tr>

                            <td width="60%" class="text-bold">Inventory/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>



                        </tr>



                        <tr>

                            <td width="60%" class="text-bold">Inventory/Goods Issue Report</td>

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



                        </tr>



                        <tr>

                            <td width="60%" class="text-bold">Inventory/Goods Receipt Report</td>

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



                        </tr>

                        <tr>

                            <td width="60%" class="text-bold">Inventory/Stock Movement Report</td>

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



                        </tr>

                        <tr>

                            <td width="60%" class="text-bold">Inventory/Stock 

                            <?php $this->endWidget(); ?>