<div class="sidebar" id="sidebar">
    <div class="sidebar-inner slimscroll">
        <div id="sidebar-menu" class="sidebar-menu">
            <ul>

                <li>
                    <a class="<?php echo e(request()->is('dashboard') ? 'active' : ''); ?>" href="<?php echo e(route('dashboard')); ?>">
                        <i class="fa fa-cog"></i>
                        <span>Dashboard</span>
                    </a>
                </li>

                <?php if(auth()->user()->hasPermission('Chart Of Accounts List') ||
                        auth()->user()->hasPermission('Credit Note List') ||
                        auth()->user()->hasPermission('Franchise List') ||
                        auth()->user()->hasPermission('Journal Voucher List') ||
                        auth()->user()->hasPermission('Payment Voucher List') ||
                        auth()->user()->hasPermission('Receipt Voucher List') ||
                        auth()->user()->hasPermission('Sale Invoice List') ||
                        auth()->user()->hasPermission('Sales Return List') ||
                        auth()->user()->hasPermission('Sale Warranties List') ||
                        auth()->user()->hasPermission('Supplier List') ||
                        auth()->user()->hasPermission('Tax List')): ?>
                    <li class="submenu">
                        <a class="<?php echo e(request()->is('chart_of_accounts*') ||
                        request()->is('sub_chart_of_accounts*') ||
                        request()->is('credit-notes*') ||
                        request()->is('franchises*') ||
                        request()->is('journal-vouchers*') ||
                        request()->is('payment-vouchers*') ||
                        request()->is('receipt-vouchers*') ||
                        request()->is('sale-invoices*') ||
                        request()->is('sales-returns*') ||
                        request()->is('sale-warranties*') ||
                        request()->is('suppliers*') ||
                        request()->is('taxes*') ||
                        request()->is('*amount-sales') ||
                        request()->is('*country-quantity-sales') ||
                        request()->is('*customer-aging') ||
                        request()->is('*franchiser-sales') ||
                        request()->is('master-formulations*') ||
                        request()->is('*trial-balance') ||
                        request()->is('*financial-ledger')
                            ? 'active'
                            : ''); ?>"
                            href="javascript:void(0);">
                            <i class="fa fa-money-bill"></i>
                            <span>Accounts</span>
                            <span class="menu-arrow"></span>
                        </a>
                        <ul>
                            <?php if(auth()->user()->hasPermission('Chart Of Accounts List')): ?>
                                <li>
                                    <a class="<?php echo e(request()->is('chart_of_accounts*') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('chart_of_accounts.index')); ?>">
                                        Chart Of Accounts
                                    </a>
                                </li>
                            <?php endif; ?>
                            <?php if(auth()->user()->hasPermission('Chart Of Accounts List')): ?>
                                <li>
                                    <a class="<?php echo e(request()->is('sub_chart_of_accounts*') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('sub_chart_of_accounts.index')); ?>">
                                        Sub Chart Of Accounts
                                    </a>
                                </li>
                            <?php endif; ?>
                            <?php if(auth()->user()->hasPermission('Credit Note List')): ?>
                                <li>
                                    <a class="<?php echo e(request()->is('credit-notes*') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('credit-notes.index')); ?>">
                                        Credit Notes
                                    </a>
                                </li>
                            <?php endif; ?>
                            <?php if(auth()->user()->hasPermission('Franchise List')): ?>
                                <li>
                                    <a class="<?php echo e(request()->is('franchises*') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('franchises.index')); ?>">
                                        Customers
                                    </a>
                                </li>
                            <?php endif; ?>
                            <?php if(auth()->user()->hasPermission('Journal Voucher List')): ?>
                                <li>
                                    <a class="<?php echo e(request()->is('journal-vouchers*') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('journal-vouchers.index')); ?>">
                                        Journal Vouchers
                                    </a>
                                </li>
                            <?php endif; ?>
                            <?php if(auth()->user()->hasPermission('Payment Voucher List')): ?>
                                <li>
                                    <a class="<?php echo e(request()->is('payment-vouchers*') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('payment-vouchers.index')); ?>">
                                        Payment Vouchers
                                    </a>
                                </li>
                            <?php endif; ?>
                            <?php if(auth()->user()->hasPermission('Receipt Voucher List')): ?>
                                <li>
                                    <a class="<?php echo e(request()->is('receipt-vouchers*') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('receipt-vouchers.index')); ?>">
                                        Receipt Vouchers
                                    </a>
                                </li>
                            <?php endif; ?>
                            <?php if(auth()->user()->hasPermission('Sale Invoice List')): ?>
                                <li>
                                    <a class="<?php echo e(request()->is('sale-invoices*') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('sale-invoices.index')); ?>">
                                        Sale Invoices
                                    </a>
                                </li>
                            <?php endif; ?>
                            <?php if(auth()->user()->hasPermission('Sales Return List')): ?>
                                <li>
                                    <a class="<?php echo e(request()->is('sales-returns*') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('sales-returns.index')); ?>">
                                        Sales Returns
                                    </a>
                                </li>
                            <?php endif; ?>
                            <?php if(auth()->user()->hasPermission('Sale Warranties List')): ?>
                                <li>
                                    <a class="<?php echo e(request()->is('sale-warranties*') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('sale-warranties.index')); ?>">
                                        Sale Warranties
                                    </a>
                                </li>
                            <?php endif; ?>
                            <?php if(auth()->user()->hasPermission('Supplier List')): ?>
                                <li>
                                    <a class="<?php echo e(request()->is('suppliers*') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('suppliers.index')); ?>">
                                        Supplier
                                    </a>
                                </li>
                            <?php endif; ?>
                            <?php if(auth()->user()->hasPermission('Tax List')): ?>
                                <li>
                                    <a class="<?php echo e(request()->is('taxes*') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('taxes.index')); ?>">
                                        Taxes
                                    </a>
                                </li>
                            <?php endif; ?>
                            <li class="mx-3">
                                <div class="position-relative mx-1">
                                    <hr class="border border-1">
                                    <div class="position-absolute top-0 start-0 translate-middle-y badge bg-secondary">
                                        Reports</div>
                                </div>
                            </li>
                            <li>
                                <a class="<?php echo e(request()->is('*amount-sales') ? 'active' : ''); ?>"
                                    href="<?php echo e(route('reports.country-amount-sales')); ?>">
                                    Country Sales Report Amount Wise
                                </a>
                            </li>
                            <li>
                                <a class="<?php echo e(request()->is('*country-quantity-sales') ? 'active' : ''); ?>"
                                    href="<?php echo e(route('reports.country-quantity-sales')); ?>">
                                    Country Sales Report Quantity Wise
                                </a>
                            </li>
                            <li>
                                <a class="<?php echo e(request()->is('*customer-aging') ? 'active' : ''); ?>"
                                    href="<?php echo e(route('reports.customer-aging')); ?>">
                                    Customer Aging Report
                                </a>
                            </li>
                            <li>
                                <a class="<?php echo e(request()->is('*franchiser-sales') ? 'active' : ''); ?>"
                                    href="<?php echo e(route('reports.franchiser-sales')); ?>">
                                    Distributor Sales Report
                                </a>
                            </li>
                            <li>
                                <a class="<?php echo e(request()->is('*financial-ledger') ? 'active' : ''); ?>"
                                    href="<?php echo e(route('reports.financial-ledger')); ?>">
                                    Financial Ledger Report
                                </a>
                            </li>
                            <li>
                                <a class="<?php echo e(request()->is('*trial-balance') ? 'active' : ''); ?>"
                                    href="<?php echo e(route('reports.trial-balance')); ?>">
                                    Trial Balance
                                </a>
                            </li>
                        </ul>
                    </li>
                <?php endif; ?>

                <?php if(auth()->user()->hasPermission('Bank List') ||
                        auth()->user()->hasPermission('Branches List') ||
                        auth()->user()->hasPermission('Cities List') ||
                        auth()->user()->hasPermission('Companies List') ||
                        auth()->user()->hasPermission('Countries List') ||
                        auth()->user()->hasPermission('Departments List') ||
                        auth()->user()->hasPermission('Roles List') ||
                        auth()->user()->hasPermission('Users List')): ?>
                    <li class="submenu">
                        <a class="<?php echo e(request()->is('banks*') ||
                        request()->is('branches*') ||
                        request()->is('cities*') ||
                        request()->is('companies*') ||
                        request()->is('countries*') ||
                        request()->is('departments*') ||
                        request()->is('roles*') ||
                        request()->is('users*')
                            ? 'active'
                            : ''); ?>"
                            href="javascript:void(0);">
                            <i class="fa fa-user-tie"></i>
                            <span>Admin</span>
                            <span class="menu-arrow"></span>
                        </a>
                        <ul>
                            <?php if(auth()->user()->hasPermission('Bank List')): ?>
                                <li>
                                    <a class="<?php echo e(request()->is('banks*') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('banks.index')); ?>">
                                        Banks
                                    </a>
                                </li>
                            <?php endif; ?>
                            <?php if(auth()->user()->hasPermission('Branches List')): ?>
                                <li>
                                    <a class="<?php echo e(request()->is('branches*') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('branches.index')); ?>">
                                        Branches
                                    </a>
                                </li>
                            <?php endif; ?>
                            <?php if(auth()->user()->hasPermission('Cities List')): ?>
                                <li>
                                    <a class="<?php echo e(request()->is('cities*') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('cities.index')); ?>">
                                        Cities
                                    </a>
                                </li>
                            <?php endif; ?>
                            <?php if(auth()->user()->hasPermission('Companies List')): ?>
                                <li>
                                    <a class="<?php echo e(request()->is('companies*') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('companies.index')); ?>">
                                        Companies
                                    </a>
                                </li>
                            <?php endif; ?>
                            <?php if(auth()->user()->hasPermission('Countries List')): ?>
                                <li>
                                    <a class="<?php echo e(request()->is('countries*') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('countries.index')); ?>">
                                        Countries
                                    </a>
                                </li>
                            <?php endif; ?>
                            <?php if(auth()->user()->hasPermission('Departments List')): ?>
                                <li>
                                    <a class="<?php echo e(request()->is('departments*') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('departments.index')); ?>">
                                        Departments
                                    </a>
                                </li>
                            <?php endif; ?>
                            <?php if(auth()->user()->hasPermission('Roles List')): ?>
                                <li>
                                    <a class="<?php echo e(request()->is('roles*') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('roles.index')); ?>">
                                        Roles
                                    </a>
                                </li>
                            <?php endif; ?>
                            <?php if(auth()->user()->hasPermission('Users List')): ?>
                                <li>
                                    <a class="<?php echo e(request()->is('users*') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('users.index')); ?>">
                                        Users
                                    </a>
                                </li>
                            <?php endif; ?>
                        </ul>
                    </li>
                <?php endif; ?>

                <?php if(auth()->user()->hasPermission('Designation List') ||
                        auth()->user()->hasPermission('Employee List') ||
                        auth()->user()->hasPermission('Leave List') ||
                        auth()->user()->hasPermission('Leave Type List') ||
                        auth()->user()->hasPermission('Loan List') ||
                        auth()->user()->hasPermission('Salaries List') ||
                        auth()->user()->hasPermission('Salary Tax Slabs List')): ?>
                    <li class="submenu">
                        <a class="<?php echo e(request()->is('designations*') ||
                        request()->is('employees*') ||
                        request()->is('leaves*') ||
                        request()->is('leave_types*') ||
                        request()->is('loans*') ||
                        request()->is('salary_slips*') ||
                        request()->is('tax-slabs*')
                            ? 'active'
                            : ''); ?>"
                            href="javascript:void(0);">
                            <i class="fa fa-users"></i>
                            <span>Human Resource</span>
                            <span class="menu-arrow"></span>
                        </a>
                        <ul>
                            <?php if(auth()->user()->hasPermission('Employee List')): ?>
                                <li>
                                    <a class="<?php echo e(request()->is('employees*') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('employees.index')); ?>">
                                        Employees
                                    </a>
                                </li>
                            <?php endif; ?>
                            <?php if(auth()->user()->hasPermission('Leave List')): ?>
                                <li>
                                    <a class="<?php echo e(request()->is('leaves*') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('leaves.index')); ?>">
                                        Leave
                                    </a>
                                </li>
                            <?php endif; ?>
                            <?php if(auth()->user()->hasPermission('Loan List')): ?>
                                <li>
                                    <a class="<?php echo e(request()->is('loans*') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('loans.index')); ?>">
                                        Loan
                                    </a>
                                </li>
                            <?php endif; ?>
                            <?php if(auth()->user()->hasPermission('Salaries List')): ?>
                                <li>
                                    <a class="<?php echo e(request()->is('salary_slips*') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('salary_slips.index')); ?>">
                                        Salaries
                                    </a>
                                </li>
                            <?php endif; ?>
                            <li class="mx-3">
                                <div class="position-relative mx-1">
                                    <hr class="border border-1">
                                    <div class="position-absolute top-0 start-0 translate-middle-y badge bg-secondary">
                                        Config</div>
                                </div>
                            </li>
                            <?php if(auth()->user()->hasPermission('Designation List')): ?>
                                <li>
                                    <a class="<?php echo e(request()->is('designations*') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('designations.index')); ?>">
                                        Designations
                                    </a>
                                </li>
                            <?php endif; ?>
                            <?php if(auth()->user()->hasPermission('Employee List')): ?>
                                <li>
                                    <a class="<?php echo e(request()->is('employee-types*') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('employee-types.index')); ?>">
                                        Employee Types
                                    </a>
                                </li>
                            <?php endif; ?>
                            <?php if(auth()->user()->hasPermission('Leave Type List')): ?>
                                <li>
                                    <a class="<?php echo e(request()->is('leave_types*') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('leave_types.index')); ?>">
                                        Leave Type
                                    </a>
                                </li>
                            <?php endif; ?>
                            <?php if(auth()->user()->hasPermission('Salary Tax Slabs List')): ?>
                                <li>
                                    <a class="<?php echo e(request()->is('tax-slabs*') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('tax-slabs.index')); ?>">
                                        Salary Tax Slabs
                                    </a>
                                </li>
                            <?php endif; ?>
                        </ul>
                    </li>
                <?php endif; ?>

                
                <?php if(auth()->user()->hasPermission('Purchase Requisition List') ||
                        auth()->user()->hasPermission('Payment Types List') ||
                        auth()->user()->hasPermission('Purchase Invoice List')): ?>
                    
                    <li class="submenu">
                        <a class="<?php echo e(request()->is('purchase-requisitions*') || // change to Manual Purchase Requisitions
                        request()->is('payment_types*') ||
                        request()->is('invoices*') || // change to Purchase Requisitions
                        request()->is('*purchase-items') ||
                        request()->is('*purchase-order-appraisal')
                            ? 'active'
                            : ''); ?>"
                            href="javascript:void(0);">
                            <i class="fa fa-truck"></i>
                            <span>Procurement</span>
                            <span class="menu-arrow"></span>
                        </a>
                        <ul>
                            <?php if(auth()->user()->hasPermission('Purchase Requisition List')): ?>
                                <li>
                                    <a class="<?php echo e(request()->is('purchase-requisitions*') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('purchase-requisitions.index')); ?>">
                                        Manual Purchase Requisitions
                                    </a>
                                </li>
                            <?php endif; ?>
                            <?php if(auth()->user()->hasPermission('Payment Types List')): ?>
                                <li>
                                    <a class="<?php echo e(request()->is('payment_types*') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('payment_types.index')); ?>">
                                        Payment Types
                                    </a>
                                </li>
                            <?php endif; ?>
                            <?php if(auth()->user()->hasPermission('Purchase Invoice List')): ?>
                                <li>
                                    <a class="<?php echo e(request()->is('purchase-invoices*') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('purchase-invoices.index')); ?>">
                                        Purchase Order
                                    </a>
                                </li>
                            <?php endif; ?>
                            <li class="mx-3">
                                <div class="position-relative mx-1">
                                    <hr class="border border-1">
                                    <div class="position-absolute top-0 start-0 translate-middle-y badge bg-secondary">
                                        Reports</div>
                                </div>
                            </li>
                            <li>
                                <a class="<?php echo e(request()->is('*purchase-items') ? 'active' : ''); ?>"
                                    href="<?php echo e(route('reports.purchase-items')); ?>">
                                    Purchase Order
                                </a>
                            </li>
                            <li>
                                <a class="<?php echo e(request()->is('*purchase-order-appraisal') ? 'active' : ''); ?>"
                                    href="<?php echo e(route('reports.purchase-order-appraisal')); ?>">
                                    Purchase Order Appraisal
                                </a>
                            </li>
                        </ul>
                    </li>
                <?php endif; ?>

                <?php if(auth()->user()->hasPermission('Batch List') ||
                        auth()->user()->hasPermission('Product List') || // Change to Brand
                        auth()->user()->hasPermission('Category List') ||
                        auth()->user()->hasPermission('Dosage Form List') ||
                        auth()->user()->hasPermission('Finished Goods Receiving List') ||
                        auth()->user()->hasPermission('Goods Receiving List') ||
                        auth()->user()->hasPermission('Left Over Note List') ||
                        // auth()->user()->hasPermission('Master Formulation List') ||
                        auth()->user()->hasPermission('PackForm List') ||
                        auth()->user()->hasPermission('PackSize List') ||
                        auth()->user()->hasPermission('PackingType List') ||
                        auth()->user()->hasPermission('Product Variation List') || // Change to Product
                        auth()->user()->hasPermission('ProductGroup List') ||
                        auth()->user()->hasPermission('Raw Material Item List') ||
                        auth()->user()->hasPermission('Rejection Return Note List') ||
                        auth()->user()->hasPermission('Stock List') ||
                        auth()->user()->hasPermission('Store Issue Rquisition List') ||
                        auth()->user()->hasPermission('Sub Category List')): ?>
                    <li class="submenu">
                        <a class="<?php echo e(request()->is('batches*') ||
                        request()->is('products*') || // Change to Brand
                        request()->is('categories*') ||
                        request()->is('dosage-forms*') ||
                        request()->is('finished-goods-receivings*') ||
                        request()->is('goods-receivings*') ||
                        request()->is('left-over-notes*') ||
                        request()->is('master-formulations*') ||
                        request()->is('pack-forms*') ||
                        request()->is('pack_size*') ||
                        request()->is('packingtypes*') ||
                        request()->is('product-variations*') || // Change to Product
                        request()->is('product-groups*') ||
                        request()->is('raw-material-items*') ||
                        request()->is('rejection-return-notes*') ||
                        request()->is('stocks*') ||
                        request()->is('store-issue-requisitions*') ||
                        request()->is('sub-categories*') ||
                        request()->is('*current-balance-report') ||
                        request()->is('*batch-balance') ||
                        request()->is('*batch-report') ||
                        request()->is('*consumption-report') ||
                        request()->is('*production-report') ||
                        request()->is('*requirement-report') ||
                        request()->is('*stock-bin-card')
                            ? 'active'
                            : ''); ?>"
                            href="javascript:void(0);">
                            <i class="fa fa-store"></i>
                            <span>Store</span>
                            <span class="menu-arrow"></span>
                        </a>
                        <ul>
                            <?php if(auth()->user()->hasPermission('Batch List')): ?>
                                <li>
                                    <a class="<?php echo e(request()->is('batches*') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('batches.index')); ?>">
                                        Batches
                                    </a>
                                </li>
                            <?php endif; ?>
                            <?php if(auth()->user()->hasPermission('Product List')): ?>
                                <li>
                                    <a class="<?php echo e(request()->is('products*') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('products.index')); ?>">
                                        Brands
                                    </a>
                                </li>
                            <?php endif; ?>
                            <?php if(auth()->user()->hasPermission('Category List')): ?>
                                <li>
                                    <a class="<?php echo e(request()->is('categories*') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('categories.index')); ?>">
                                        Categories
                                    </a>
                                </li>
                            <?php endif; ?>
                            <?php if(auth()->user()->hasPermission('Dosage Form List')): ?>
                                <li>
                                    <a class="<?php echo e(request()->is('dosage-forms*') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('dosage-forms.index')); ?>">
                                        Dosage Form
                                    </a>
                                </li>
                            <?php endif; ?>
                            <?php if(auth()->user()->hasPermission('Finished Goods Receiving List')): ?>
                                <li>
                                    <a class="<?php echo e(request()->is('finished-goods-receiving*') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('finished-goods-receivings.index')); ?>">
                                        Finished Goods Receiving Notes
                                    </a>
                                </li>
                            <?php endif; ?>
                            <?php if(auth()->user()->hasPermission('Goods Receiving List')): ?>
                                <li>
                                    <a class="<?php echo e(request()->is('goods-receivings*') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('goods-receivings.index')); ?>">
                                        Goods Receiving Notes
                                    </a>
                                </li>
                            <?php endif; ?>
                            <?php if(auth()->user()->hasPermission('Left Over Note List')): ?>
                                <li>
                                    <a class="<?php echo e(request()->is('left-over-notes*') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('left-over-notes.index')); ?>">
                                        Left Over Note
                                    </a>
                                </li>
                            <?php endif; ?>

                            
                            <li>
                                <a class="<?php echo e(request()->is('master-formulations*') ? 'active' : ''); ?>"
                                    href="<?php echo e(route('master-formulations.index')); ?>">
                                    Master Formulations
                                </a>
                            </li>
                            
                            <?php if(auth()->user()->hasPermission('PackForm List')): ?>
                                <li>
                                    <a class="<?php echo e(request()->is('pack-forms*') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('pack-forms.index')); ?>">
                                        Pack Forms
                                    </a>
                                </li>
                            <?php endif; ?>
                            <?php if(auth()->user()->hasPermission('PackSize List')): ?>
                                <li>
                                    <a class="<?php echo e(request()->is('pack_size*') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('pack_size.index')); ?>">
                                        Pack Size
                                    </a>
                                </li>
                            <?php endif; ?>
                            <?php if(auth()->user()->hasPermission('PackingType List')): ?>
                                <li>
                                    <a class="<?php echo e(request()->is('packingtypes*') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('packingtypes.index')); ?>">
                                        Packing Types
                                    </a>
                                </li>
                            <?php endif; ?>
                            <?php if(auth()->user()->hasPermission('Product Variation List')): ?>
                                <li>
                                    <a class="<?php echo e(request()->is('product-variations*') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('product-variations.index')); ?>">
                                        Products
                                    </a>
                                </li>
                            <?php endif; ?>
                            <?php if(auth()->user()->hasPermission('ProductGroup List')): ?>
                                <li>
                                    <a class="<?php echo e(request()->is('product-groups*') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('product-groups.index')); ?>">
                                        Product Groups
                                    </a>
                                </li>
                            <?php endif; ?>
                            <?php if(auth()->user()->hasPermission('Raw Material Item List')): ?>
                                <li>
                                    <a class="<?php echo e(request()->is('raw-material-items*') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('raw-material-items.index')); ?>">
                                        Raw Material Items
                                    </a>
                                </li>
                            <?php endif; ?>
                            <?php if(auth()->user()->hasPermission('Rejection Return Note List')): ?>
                                <li>
                                    <a class="<?php echo e(request()->is('rejection-return-notes*') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('rejection-return-notes.index')); ?>">
                                        Rejection Return Note
                                    </a>
                                </li>
                            <?php endif; ?>
                            
                            <?php if(auth()->user()->hasPermission('Store Issue Rquisition List')): ?>
                                <li>
                                    <a class="<?php echo e(request()->is('store-issue-requisitions*') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('store-issue-requisitions.index')); ?>">
                                        Store Issue Rquisitions
                                    </a>
                                </li>
                            <?php endif; ?>
                            <?php if(auth()->user()->hasPermission('Sub Category List')): ?>
                                <li>
                                    <a class="<?php echo e(request()->is('sub-categories*') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('sub-categories.index')); ?>">
                                        Sub Categories
                                    </a>
                                </li>
                            <?php endif; ?>
                            <li class="mx-3">
                                <div class="position-relative mx-1">
                                    <hr class="border border-1">
                                    <div class="position-absolute top-0 start-0 translate-middle-y badge bg-secondary">
                                        Reports</div>
                                </div>
                            </li>
                            <li>
                                <a class="<?php echo e(request()->is('*current-balance-report') ? 'active' : ''); ?>"
                                    href="<?php echo e(route('reports.current-balance-report')); ?>">
                                    Current Balance Report
                                </a>
                            </li>
                            <li>
                                <a class="<?php echo e(request()->is('*consumption-report') ? 'active' : ''); ?>"
                                    href="<?php echo e(route('reports.consumption-report')); ?>">
                                    Consumption Report
                                </a>
                            </li>
                            <li>
                                <a class="<?php echo e(request()->is('*production-report') ? 'active' : ''); ?>"
                                    href="<?php echo e(route('reports.production-report')); ?>">
                                    Production Report
                                </a>
                            </li>
                            <li>
                                <a class="<?php echo e(request()->is('*requirement-report') ? 'active' : ''); ?>"
                                    href="<?php echo e(route('reports.requirement-report')); ?>">
                                    Requirement Report
                                </a>
                            </li>
                            <li>
                                <a class="<?php echo e(request()->is('*stock-bin-card') ? 'active' : ''); ?>"
                                    href="<?php echo e(route('reports.stock-bin-card')); ?>">
                                    Stock Bin Card
                                </a>
                            </li>
                            <li class="mx-3">
                                <div class="position-relative mx-1">
                                    <hr class="border border-1">
                                    <div class="position-absolute top-0 start-0 translate-middle-y badge bg-secondary">
                                        Batch Reports
                                    </div>
                                </div>
                            </li>
                            <li>
                                <a class="<?php echo e(request()->is('*batch-balance') ? 'active' : ''); ?>"
                                    href="<?php echo e(route('reports.batch-balance-report')); ?>">
                                    Batch Balance Report
                                </a>
                            </li>
                            <li>
                                <a class="<?php echo e(request()->is('*batch-report') ? 'active' : ''); ?>"
                                    href="<?php echo e(route('reports.batch-report')); ?>">
                                    Batch Cost Summary
                                </a>
                            </li>
                            <li>
                                <a class="<?php echo e(request()->is('*ajax-costing-voucher/') ? 'active' : ''); ?>"
                                    href="<?php echo e(route('report.ajax-costing-voucher', ['type' => 'costing_voucher'])); ?>">
                                    Batch Costing Voucher
                                </a>
                            </li>
                            <li>
                                <a class="<?php echo e(request()->is('*ajax-costing-voucher') ? 'active' : ''); ?>"
                                    href="<?php echo e(route('report.ajax-costing-voucher', ['type' => 'costing_report'])); ?>">
                                    Batch Costing Report
                                </a>
                            </li>
                            <li>
                                <a class="<?php echo e(request()->is('*ajax-costing-voucher') ? 'active' : ''); ?>"
                                    href="<?php echo e(route('report.ajax-costing-voucher', ['type' => 'track'])); ?>">
                                    Batch Track Report
                                </a>
                            </li>
                        </ul>
                    </li>
                <?php endif; ?>
            </ul>
        </div>
    </div>
</div>
<?php /**PATH /home/aligkrwp/public_html/resources/views/admin/layouts/sidebar.blade.php ENDPATH**/ ?>