<!-- Left side column. contains the logo and sidebar -->
<aside class="main-sidebar">
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">
        <!-- sidebar menu: : style can be found in sidebar.less -->
        <ul class="sidebar-menu">
            <li class="treeview" data-route="common/home">
                <a href="<?php echo $href_dashboard; ?>">
                    <i class="fa fa-dashboard"></i>
                    <span><?php echo $lang['dashboard']; ?></span>
                </a>
            </li>
            <li class="treeview level1">
                <a href="<?php echo $href_administrator_dashboard; ?>">
                    <i class="fa fa-gear"></i>
                    <span><?php echo $lang['administrator']; ?></span>
                    <i class="fa fa-angle-left pull-right"></i>
                </a>
                <ul class="treeview-menu">
                    <li class="level2">
                        <a href="#"><i class="fa fa-arrow-right"></i><?php echo $lang['general_setup']; ?><i class="fa fa-angle-left pull-right"></i></a>
                        <ul class="treeview-menu">
                            <li data-route="setup/company"><a href="<?php echo $href_company; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['company']; ?></a></li>
                            <li data-route="setup/company_branch"><a href="<?php echo $href_company_branch; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['company_branch']; ?></a></li>
                            <li data-route="setup/currency"><a href="<?php echo $href_currency; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['currency']; ?></a></li>
                            <li data-route="setup/company_setting"><a href="<?php echo $href_company_setting; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['company_setting']; ?></a></li>
                            <li data-route="setup/country"><a href="<?php echo $href_country; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['country']; ?></a></li>
                            <li data-route="setup/zone"><a href="<?php echo $href_state; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['state']; ?></a></li>
                            <li data-route="setup/warehouse"><a href="<?php echo $href_warehouse; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['warehouse']; ?></a></li>
                            <li data-route="setup/partner_category"><a href="<?php echo $href_partner_category; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['partner_category']; ?></a></li>
                            <li data-route="setup/customer"><a href="<?php echo $href_customer; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['customer']; ?></a></li>
                            <li data-route="setup/supplier"><a href="<?php echo $href_supplier; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['supplier']; ?></a></li>
                            <li data-route="setup/salesman"><a href="<?php echo $href_salesman; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['salesman']; ?></a></li>
                            <li data-route="setup/department"><a href="<?php echo $href_department; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['department']; ?></a></li>
                            <li data-route="setup/document"><a href="<?php echo $href_document; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['document']; ?></a></li>
                            <li data-route="setup/closing_transfer"><a href="<?php echo $href_closing_transfer; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['closing_transfer']; ?></a></li>
                        </ul>
                    </li>
                    <li class="level2">
                        <a href="#"><i class="fa fa-arrow-right"></i><?php echo $lang['inventory_setup']; ?><i class="fa fa-angle-left pull-right"></i></a>
                        <ul class="treeview-menu">
                            <li data-route="setup/manufacture"><a href="<?php echo $href_manufacture; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['manufacture']; ?></a></li>
                            <li data-route="setup/brand"><a href="<?php echo $href_brand; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['brand']; ?></a></li>
                            <li data-route="setup/make"><a href="<?php echo $href_make; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['make']; ?></a></li>
                            <li data-route="setup/model"><a href="<?php echo $href_model; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['model']; ?></a></li>
                            <li data-route="setup/unit"><a href="<?php echo $href_unit; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['unit']; ?></a></li>
                            <li data-route="setup/product_category"><a href="<?php echo $href_product_category; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['product_category']; ?></a></li>
                            <li data-route="setup/product"><a href="<?php echo $href_product; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['product']; ?></a></li>
                            <li data-route="setup/opening_stock"><a href="<?php echo $href_opening_stock; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['opening_stock']; ?></a></li>
                        </ul>
                    </li>
                </ul>
            </li>
            <li class="treeview level1">
                <a href="<?php echo $href_gl_dashboard; ?>">
                    <i class="fa fa-book"></i>
                    <span><?php echo $lang['general_ledger']; ?></span>
                    <i class="fa fa-angle-left pull-right"></i>
                </a>
                <ul class="treeview-menu">
                    <li class="level2">
                        <a href="#"><i class="fa fa-arrow-right"></i><?php echo $lang['gl_setup']; ?><i class="fa fa-angle-left pull-right"></i></a>
                        <ul class="treeview-menu">
                            <li data-route="gl/module_setting"><a href="<?php echo $href_gl_module_setting; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['gl_module_setting']; ?></a></li>
                            <li data-route="gl/coa_level1"><a href="<?php echo $href_gl_coa1; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['gl_chart_of_account_level1']; ?></a></li>
                            <li data-route="gl/coa_level2"><a href="<?php echo $href_gl_coa2; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['gl_chart_of_account_level2']; ?></a></li>
                            <li data-route="gl/coa_level3"><a href="<?php echo $href_gl_coa3; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['gl_chart_of_account_level3']; ?></a></li>
                            <li data-route="gl/mapping_coa"><a href="<?php echo $href_gl_mapping_account; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['gl_mapping_account']; ?></a></li>
                            <li data-route="gl/copy_coa"><a href="<?php echo $href_gl_coa_copy; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['gl_copy_all_chart_of_account']; ?></a></li>
                        </ul>
                    </li>
                    <li class="level2">
                        <a href="#"><i class="fa fa-arrow-right"></i><?php echo $lang['gl_transaction']; ?><i class="fa fa-angle-left pull-right"></i></a>
                        <ul class="treeview-menu">
                            <li data-route="gl/opening_account"><a href="<?php echo $href_gl_opening_account; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['gl_opening_account']; ?></a></li>
                            <li data-route="gl/debit_invoice"><a href="<?php echo $href_gl_debit_invoice; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['gl_debit_invoice']; ?></a></li>
                            <li data-route="gl/credit_invoice"><a href="<?php echo $href_gl_credit_invoice; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['gl_credit_invoice']; ?></a></li>
                            <li data-route="gl/bank_payment"><a href="<?php echo $href_gl_bank_payment; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['gl_bank_payment_voucher']; ?></a></li>
                            <li data-route="gl/cash_payment"><a href="<?php echo $href_gl_cash_payment; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['gl_cash_payment_voucher']; ?></a></li>
                            <li data-route="gl/bank_receipt"><a href="<?php echo $href_gl_bank_receipt; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['gl_bank_receipt_voucher']; ?></a></li>
                            <li data-route="gl/cash_receipt"><a href="<?php echo $href_gl_cash_receipt; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['gl_cash_receipt_voucher']; ?></a></li>
                            <li data-route="gl/journal_voucher"><a href="<?php echo $href_gl_journal_voucher; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['gl_journal_voucher']; ?></a></li>
                        </ul>
                    </li>
                    <li class="level2">
                        <a href="#"><i class="fa fa-arrow-right"></i><?php echo $lang['gl_advances']; ?><i class="fa fa-angle-left pull-right"></i></a>
                        <ul class="treeview-menu">
                            <li data-route="gl/advance_payment"><a href="<?php echo $href_gl_advance_payment; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['gl_advance_payment']; ?></a></li>
                            <li data-route="gl/advance_receipt"><a href="<?php echo $href_gl_advance_receipt; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['gl_advance_receipt']; ?></a></li>
                        </ul>
                    </li>
                </ul>
            </li>
            <li class="treeview level1">
                <a href="<?php echo $href_inventory_dashboard; ?>">
                    <i class="fa fa-money"></i>
                    <span><?php echo $lang['inventory_management']; ?></span>
                    <i class="fa fa-angle-left pull-right"></i>
                </a>
                <ul class="treeview-menu">
                    <li class="level2">
                        <a href="#"><i class="fa fa-arrow-right"></i><?php echo $lang['inventory_setup']; ?><i class="fa fa-angle-left pull-right"></i></a>
                        <ul class="treeview-menu">
                            <li data-route="inventory/module_setting"><a href="<?php echo $href_inventory_module_setting; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['inventory_module_setting']; ?></a></li>
                            <li data-route="inventory/product_category"><a href="<?php echo $href_inventory_product_category; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['inventory_product_category']; ?></a></li>
                            <li data-route="inventory/thickness"><a href="<?php echo $href_inventory_thickness; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['inventory_thickness']; ?></a></li>
                            <li data-route="inventory/width"><a href="<?php echo $href_inventory_width; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['inventory_width']; ?></a></li>
                            <li data-route="inventory/length"><a href="<?php echo $href_inventory_length; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['inventory_length']; ?></a></li>
                            <li data-route="inventory/grade"><a href="<?php echo $href_inventory_grade; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['inventory_grade']; ?></a></li>
                            <li data-route="inventory/sawmill"><a href="<?php echo $href_inventory_sawmill; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['inventory_sawmill']; ?></a></li>
                            <li data-route="inventory/unit"><a href="<?php echo $href_inventory_unit; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['inventory_unit']; ?></a></li>
                            <li data-route="inventory/product"><a href="<?php echo $href_inventory_product; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['inventory_product']; ?></a></li>
                            <li data-route="inventory/expense"><a href="<?php echo $href_inventory_expense; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['inventory_expense']; ?></a></li>
                        </ul>
                    </li>
                    <li class="level2">
                        <a href="#"><i class="fa fa-arrow-right"></i><?php echo $lang['stock_management']; ?><i class="fa fa-angle-left pull-right"></i></a>
                        <ul class="treeview-menu">
                            <li data-route="inventory/opening_stock"><a href="<?php echo $href_inventory_opening_stock; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['inventory_opening_stock']; ?></a></li>
                            <li data-route="inventory/stock_transfer"><a href="<?php echo $href_stock_transfer; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['stock_transfer']; ?></a></li>
                            <li data-route="inventory/stock_adjustment"><a href="<?php echo $href_stock_adjustment; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['stock_adjustment']; ?></a></li>
                        </ul>
                    </li>
                    <li class="level2">
                        <a href="#"><i class="fa fa-arrow-right"></i><?php echo $lang['purchase_management']; ?><i class="fa fa-angle-left pull-right"></i></a>
                        <ul class="treeview-menu">
                            <li data-route="inventory/purchase_order"><a href="<?php echo $href_purchase_order; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['purchase_order']; ?></a></li>
                            <li data-route="inventory/goods_received"><a href="<?php echo $href_goods_received; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['goods_received']; ?></a></li>
                            <li data-route="inventory/purchase_invoice"><a href="<?php echo $href_purchase_invoice; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['purchase_invoice']; ?></a></li>
                            <li data-route="inventory/purchase_return"><a href="<?php echo $href_purchase_return; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['purchase_return']; ?></a></li>
                            <li data-route="inventory/supplier_invoice"><a href="<?php echo $href_supplier_invoice; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['supplier_invoice']; ?></a></li>
                        </ul>
                    </li>
                    <li class="level2">
                        <a href="#"><i class="fa fa-arrow-right"></i><?php echo $lang['sale_management']; ?><i class="fa fa-angle-left pull-right"></i></a>
                        <ul class="treeview-menu">
                            <li data-route="inventory/sale_inquiry"><a href="<?php echo $href_sale_inquiry; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['sale_inquiry']; ?></a></li>
                            <li data-route="inventory/delivery_challan"><a href="<?php echo $href_delivery_challan; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['delivery_challan']; ?></a></li>
                            <li data-route="inventory/sale_invoice"><a href="<?php echo $href_sale_invoice; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['sale_invoice']; ?></a></li>
                            <li data-route="inventory/sale_return"><a href="<?php echo $href_sale_return; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['sale_return']; ?></a></li>
                            <li data-route="inventory/customer_invoice"><a href="<?php echo $href_customer_invoice; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['customer_invoice']; ?></a></li>
                        </ul>
                    </li>
                    <li class="level2">
                        <a href="#"><i class="fa fa-arrow-right"></i><?php echo $lang['consumption_management']; ?><i class="fa fa-angle-left pull-right"></i></a>
                        <ul class="treeview-menu">
                            <li data-route="inventory/inventory_requisition"><a href="<?php echo $href_inventory_requisition; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['inventory_requisition']; ?></a></li>
                            <li data-route="inventory/delivery_requisition"><a href="<?php echo $href_delivery_requisition; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['delivery_requisition']; ?></a></li>
                            <li data-route="inventory/inventory_consumption"><a href="<?php echo $href_inventory_consumption; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['inventory_consumption']; ?></a></li>
                            <li data-route="inventory/inventory_return"><a href="<?php echo $href_inventory_return; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['inventory_return']; ?></a></li>
                        </ul>
                    </li>
                </ul>
            </li>
            <li class="treeview level1">
                <a href="<?php echo $href_production_dashboard; ?>">
                    <i class="fa fa-apple"></i>
                    <span><?php echo $lang['production']; ?></span>
                    <i class="fa fa-angle-left pull-right"></i>
                </a>
                <ul class="treeview-menu">
                    <li class="level2">
                        <a href="#"><i class="fa fa-arrow-right"></i><?php echo $lang['production_management']; ?><i class="fa fa-angle-left pull-right"></i></a>
                        <ul class="treeview-menu">
                            <li data-route="production/bom"><a href="<?php echo $href_bill_of_material; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['bill_of_material']; ?></a></li>
                            <li data-route="production/expense"><a href="<?php echo $href_production_expense; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['production_expense']; ?></a></li>
                            <li data-route="production/production"><a href="<?php echo $href_production; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['production']; ?></a></li>
                        </ul>
                    </li>
                </ul>
            </li>
            <li class="treeview level1">
                <a href="<?php echo $href_vehicle_dashboard; ?>">
                    <i class="fa fa-truck"></i>
                    <span><?php echo $lang['vehicle_management']; ?></span>
                    <i class="fa fa-angle-left pull-right"></i>
                </a>
                <ul class="treeview-menu">
                    <li class="level2">
                        <a href="#"><i class="fa fa-arrow-right"></i><?php echo $lang['transaction']; ?><i class="fa fa-angle-left pull-right"></i></a>
                        <ul class="treeview-menu">
                            <li data-route="vehicle/work_order"><a href="<?php echo $href_work_order; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['work_order']; ?></a></li>
                            <li data-route="vehicle/dispatch_invoice"><a href="<?php echo $href_dispatch_invoice; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['dispatch_invoice']; ?></a></li>
                        </ul>
                    </li>
                </ul>
            </li>
            <li class="treeview level1">
                <a href="<?php echo $href_travel_dashboard; ?>">
                    <i class="fa fa-plane"></i>
                    <span><?php echo $lang['travel_management']; ?></span>
                    <i class="fa fa-angle-left pull-right"></i>
                </a>
                <ul class="treeview-menu">
                    <li class="level2">
                        <a href="#"><i class="fa fa-arrow-right"></i><?php echo $lang['travel_setup']; ?><i class="fa fa-angle-left pull-right"></i></a>
                        <ul class="treeview-menu">
                            <li data-route="travel/module_setting"><a href="<?php echo $href_travel_module_setting; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['travel_module_setting']; ?></a></li>
                            <li data-route="travel/country"><a href="<?php echo $href_travel_country; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['travel_country']; ?></a></li>
                            <li data-route="travel/destination"><a href="<?php echo $href_travel_destination; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['travel_destination']; ?></a></li>
                            <li data-route="travel/hotel"><a href="<?php echo $href_travel_hotel; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['travel_hotel']; ?></a></li>
                            <li data-route="travel/service"><a href="<?php echo $href_travel_service; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['travel_service']; ?></a></li>
                            <li data-route="travel/member"><a href="<?php echo $href_travel_member; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['travel_member']; ?></a></li>
                        </ul>
                    </li>
                    <li class="level2">
                        <a href="#"><i class="fa fa-arrow-right"></i><?php echo $lang['travel_transaction']; ?><i class="fa fa-angle-left pull-right"></i></a>
                        <ul class="treeview-menu">
                            <li data-route="travel/travel_invoice"><a href="<?php echo $href_travel_invoice; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['travel_invoice']; ?></a></li>
                        </ul>
                    </li>
                </ul>
            </li>
            <li class="treeview level1">
                <a href="<?php echo $href_tool_dashboard; ?>">
                    <i class="fa fa-wrench"></i>
                    <span><?php echo $lang['tool']; ?></span>
                    <i class="fa fa-angle-left pull-right"></i>
                </a>
                <ul class="treeview-menu">
                    <li data-route="tool/reminder"><a href="<?php echo $href_tool_reminder; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['reminder']; ?></a></li>
                    <li data-route="tool/backup"><a href="<?php echo $href_tool_backup; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['backup']; ?></a></li>
                    <li data-route="tool/sms"><a href="<?php echo $href_tool_sms; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['sms']; ?></a></li>
                </ul>
            </li>
            <li class="treeview level1">
                <a href="<?php echo $href_report_dashboard; ?>">
                    <i class="fa fa-print"></i>
                    <span><?php echo $lang['report']; ?></span>
                    <i class="fa fa-angle-left pull-right"></i>
                </a>
                <ul class="treeview-menu">
                    <li class="level2">
                        <a href="#"><i class="fa fa-arrow-right"></i><?php echo $lang['general_ledger_report']; ?><i class="fa fa-angle-left pull-right"></i></a>
                        <ul class="treeview-menu">

                            <li data-route="report/aging_report"><a href="<?php echo $href_report_aging; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['report_aging']; ?></a></li>

                            <li data-route="report/coa"><a href="<?php echo $href_report_coa; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['chart_of_account']; ?></a></li>
                            

                            <li data-route="report/ledger_report"><a href="<?php echo $href_report_ledger; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['ledger']; ?></a></li>
                            <li data-route="report/document_ledger"><a href="<?php echo $href_report_document_ledger; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['document_ledger']; ?></a></li>
                            <li data-route="report/party_ledger"><a href="<?php echo $href_report_party_ledger; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['party_ledger']; ?></a></li>
                            <li data-route="report/trial_balance"><a href="<?php echo $href_report_trial_balance; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['trial_balance']; ?></a></li>
                            <li data-route="report/balance_sheet"><a href="<?php echo $href_report_balance_sheet; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['balance_sheet']; ?></a></li>
                            <li data-route="report/income_statement"><a href="<?php echo $href_report_income_statement; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['profit_lost']; ?></a></li>
                        </ul>
                    </li>
                    <li class="level2">
                        <a href="#"><i class="fa fa-arrow-right"></i><?php echo $lang['inventory_report']; ?><i class="fa fa-angle-left pull-right"></i></a>
                        <ul class="treeview-menu">
                            <li data-route="report/opening_stock"><a href="<?php echo $href_report_opening_stock; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['report_opening_stock']; ?></a></li>
                            <li data-route="report/purchase_order_report"><a href="<?php echo $href_report_purchase_order; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['report_purchase_order']; ?></a></li>
                            <li data-route="report/goods_received_report"><a href="<?php echo $href_report_goods_received; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['report_goods_received']; ?></a></li>
                            <li data-route="report/purchase_invoice_report"><a href="<?php echo $href_report_purchase_invoice; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['report_purchase_invoice']; ?></a></li>
                            <li data-route="report/delivery_challan_report"><a href="<?php echo $href_report_delivery_challan; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['report_delivery_challan']; ?></a></li>
                            <li data-route="report/sale_report"><a href="<?php echo $href_report_sale_invoice; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['report_sale_invoice']; ?></a></li>
                            <li data-route="report/stock"><a href="<?php echo $href_report_stock; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['report_stock']; ?></a></li>
                            <li data-route="report/inventory_consumption_report"><a href="<?php echo $href_report_inventory_consumption; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['report_inventory_consumption']; ?></a></li>
                        </ul>
                    </li>
                </ul>
            </li>
            <li class="treeview level1">
                <a href="<?php echo $href_user_management_dashboard; ?>">
                    <i class="fa fa-users"></i>
                    <span><?php echo $lang['user_management']; ?></span>
                    <i class="fa fa-angle-left pull-right"></i>
                </a>
                <ul class="treeview-menu">
                    <li data-route="user/user_permission"><a href="<?php echo $href_user_group_permission; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['user_group_permission']; ?></a></li>
                    <li data-route="user/user"><a href="<?php echo $href_user; ?>"><i class="fa fa-arrow-right"></i><?php echo $lang['user']; ?></a></li>
                </ul>
            </li>
            <hr>
            <li class="treeview" data-route="user/user_profile">
                <a href="<?php echo $href_user_profile; ?>">
                    <i class="fa fa-user-secret"></i>
                    <span><?php echo $lang['user_profile']; ?></span>
                </a>
            </li>
            <li class="treeview" data-route="common/logout">
                <a href="<?php echo $href_logout; ?>">
                    <i class="fa fa-sign-out"></i>
                    <span><?php echo $lang['sign_out']; ?></span>
                </a>
            </li>
        </ul>
    </section>
    <!-- /.sidebar -->
</aside>
<script type="text/javascript">
    var $permissions = <?php echo json_encode($permissions); ?>;
    $("li[data-route]").each(function(){
        var $route = $(this).data('route');
        var $position = $.inArray($route, $permissions);
        if($position < 0) {
            $(this).remove();
        }
    });

    $(".level2 ul").each(function(){
        var $length = $(this).has('li').length;
        if($length == 0) {
            var $obj = $(this).parent();
            $($obj).remove();
        }
    });

    $(".level1 ul").each(function(){
        var $length = $(this).has('li').length;
        if($length == 0) {
            var $obj = $(this).parent();
            $($obj).remove();
        }
    });

    var $controller='<?php echo $controller; ?>';
    $("[data-route='" + $controller + "']").parents('li').addClass('active');
    $("[data-route='" + $controller + "']").addClass('active');
</script>
<!--
<script src="plugins/annyang/annyang.min.js"></script>
<script type="text/javascript">
    if (annyang) {
        // define the functions our commands will run.
        var home = function() {
            var $href = $("ul").find("[data-route='common/home']").children('a').attr("href");
            location.assign($href);
        };
        var project = function() {
            var $href = $("ul").find("[data-route='setup/project']").children('a').attr("href");
            location.assign($href);
        };
        var widget = function() {
            var $href = $("ul").find("[data-route='setup/widget']").children('a').attr("href");
            location.assign($href);
        };
        var report = function() {
            var $href = $("ul").find("[data-route='setup/report']").children('a').attr("href");
            location.assign($href);
        };
        var commands = {
            'dashboard': home,
            'home':      home,
            'project':   project,
            'widget':    widget,
            'report':    report
        };

        // OPTIONAL: activate debug mode for detailed logging in the console
        annyang.debug();

        // Add voice commands to respond to
        annyang.addCommands(commands);

        // OPTIONAL: Set a language for speech recognition (defaults to English)
        // For a full list of language codes, see the documentation:
        // https://github.com/TalAter/annyang/blob/master/docs/README.md#languages
        annyang.setLanguage('en');

        // Start listening. You can call this here, or attach this call to an event, button, etc.
        annyang.start();
    } else {
        console.log('Unsupported');
    }
</script>
-->