<li
    class="nav-item {{ request()->routeIs([
        'newOtcPaymentReport',
        'cash-in-hand',
        'commission-in-hand',
        'resellerRechargeReport.index',
        'subResellerRechargeReport.index',
        'ReselleBalanceLog.index',
        'subResellerBalanceLog.index',
        'billSheet',
        'paymentReport',
        'otcPaymentReport',
        'moneyReceiptSearch',
        'clientSearchBTRC',
        'clientNewSearchBTRC',
        'incomeReport',
        'expenseReport',
        'otcReport',
        'dueOtcReport',
        'marketingCustomer',
        'due-customer',
        'bill-extended-customers',
        'bill-generate',
        'recent-customer-report',
        'missing-bill-generate',
        'billPaymentReport',
        'pgw_response_log',
        'permanent-discount-list',
        'schedule-package-change-list',
        'expire-but-online',
        'runningMonthDue',
        'bkashPaymentResellerReport',
        'paymentInvoicePrint',
        'reseller-due-customer-list',
        'reseller-customer-payment-report',
        'resellerWiseTotalCost',
        'customerSummary',
        'package-upload-download'
    ])
        ? 'menu-open'
        : '' }}">
    <a href="#" class="nav-link ">
        <i class="nav-icon fas fa-table"></i>
        <p>
            Reports
            <i class="fas fa-angle-left right"></i>
        </p>
    </a>
    <ul class="nav nav-treeview ">
        @can('advanced-balance-list')
            <li class="nav-item"><a href="{{ route('advanced-balanced-customer') }}"
                    class="nav-link {{ request()->routeIs(['advanced-balanced-customer']) ? 'active' : '' }}">
                    <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                    <p>Advanced Balance</p>
                </a></li>
        @endcan

        @if (getBillingType() === 'monthly')
            @if (checkSettings('bill_payment_report_with_close_id') == 'enable')
                @can('bill_payment_report')
                    <li class="nav-item">
                        <a href="{{ route('billPaymentReport') }}"
                            class="nav-link {{ request()->routeIs(['billPaymentReport']) ? 'active' : '' }}">
                            <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                            <p>Bill Payment History</p>
                        </a>
                    </li>
                @endcan
            @endif
            @can('bill-sheet')
                <li class="nav-item">
                    <a href="{{ route('billSheet') }}"
                        class="nav-link {{ request()->routeIs(['billSheet']) ? 'active' : '' }}">
                        <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                        <p>Bill Sheet</p>
                    </a>
                </li>
            @endcan
        @endif
        @can('bill-generate-report')
            <li class="nav-item">
                <a href="{{ route('bill-generate') }}"
                    class="nav-link {{ request()->routeIs(['bill-generate']) ? 'active' : '' }}">
                    <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                    <p>Bill Generate</p>
                </a>
            </li>
        @endcan
        @if (checkSettings('ResellerClientOnlineRecharge') == 'enable')
            <li class="nav-item"><a href="{{ route('bkashPaymentResellerReport') }}"
                    class="nav-link {{ request()->routeIs(['bkashPaymentResellerReport']) ? 'active' : '' }}">
                    <i class="ml-2 fa fa
                    -circle nav-icon" style="font-size: 6px !important"></i>
                    <p>Bkash Payment Reseller Report</p>
                </a></li>
        @endif
        @can('bkashWebhookReport')
            <li class="nav-item">
                <a href="{{ route('bkashWebhookReport') }}"
                    class="nav-link {{ request()->routeIs(['bkashWebhookReport']) ? 'active' : '' }}">
                    <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                    <p>Bkash Webhook Log</p>
                </a>
            </li>
        @endcan

        @can('customer-list-for-BTRC')
            <li class="nav-item"><a href="{{ route('clientNewSearchBTRC') }}"
                    class="nav-link {{ request()->routeIs(['clientNewSearchBTRC']) ? 'active' : '' }}">
                    <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                    <p>BTRC Customer Export</p>
                </a></li>
        @endcan

        @can('cash-in-hand')
            <li class="nav-item">
                <a href="{{ route('cash-in-hand', 'all') }}"
                    class="nav-link {{ request()->routeIs(['cash-in-hand']) ? 'active' : '' }}">
                    <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                    <p>Cash In Hand</p>
                </a>
            </li>
        @endcan
        @can('up-down-report-package-wise')
            @if (!checkAPI())
                <li class="nav-item">
                    <a href="{{ route('package-upload-download') }}"
                        class="nav-link {{ request()->routeIs(['package-upload-download']) ? 'active' : '' }}">
                        <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                        <p>Client ⬆️⬇️  Report</p>
                    </a>
                </li>
            @endif
        @endcan
        @can('customerSummary')
            <li class="nav-item">
                <a href="{{ route('customerSummary') }}"
                    class="nav-link {{ request()->routeIs(['customerSummary']) ? 'active' : '' }}">
                    <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                    <p>Customer Summary</p>
                </a>
            </li>
        @endcan

        {{-- @can('all-customer-summary') --}}
        {{-- <li class="nav-item">
                <a href="{{ route('all-customer-summary') }}"
                    class="nav-link {{ request()->routeIs(['all-customer-summary']) ? 'active' : '' }}">
                    <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                    <p>Client Summary</p>
                </a>
            </li> --}}
        {{-- @endcan --}}
        @can('duplicate-money-receipt')
            <li class="nav-item"><a href="{{ route('duplicate-money-receipt') }}"
                    class="nav-link {{ request()->routeIs(['due-customer']) ? 'active' : '' }}">
                    <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                    <p>Duplicate Money Receipt</p>
                </a>
            </li>
        @endcan

        @if (getBillingType() === 'monthly')
            @can('due-customer-list')
                <li class="nav-item"><a href="{{ route('due-customer') }}"
                        class="nav-link {{ request()->routeIs(['due-customer']) ? 'active' : '' }}">
                        <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                        <p>Due Customers</p>
                    </a>
                </li>
            @endcan
        @endif
        @can('due-amount-check-by-month')
            <li class="nav-item"><a href="{{ route('due-amount-check-by-month') }}"
                    class="nav-link {{ request()->routeIs(['due-amount-check-by-month']) ? 'active' : '' }}">
                    <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                    <p>Due Amount Check by Month</p>
                </a>
            </li>
        @endcan

        @can('bill-extended-customers')
            <li class="nav-item">
                <a href="{{ route('bill-extended-customers') }}"
                    class="nav-link {{ request()->routeIs(['bill-extended-customers']) ? 'active' : '' }}">
                    <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                    <p>Expired Extended Customers</p>
                </a>
            </li>
        @endcan

        @can('expense-report')
            <li class="nav-item"><a href="{{ route('expenseReport') }}"
                    class="nav-link {{ request()->routeIs(['expenseReport']) ? 'active' : '' }}">
                    <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                    <p>Expense Report</p>
                </a></li>
        @endcan
        @if (!checkAPI())
            @can('expire-but-online-customers')
                <li class="nav-item"><a href="{{ route('expire-but-online') }}"
                        class="nav-link {{ request()->routeIs(['expire-but-online']) ? 'active' : '' }}">
                        <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                        <p>Expire But online Customers</p>
                    </a></li>
            @endcan
        @endif

        @if (checkSettings('client_import_amount_report') == 'enable')
            @can('client_import_amount_report')
                <li class="nav-item"><a href="{{ route('importClinetDue') }}"
                        class="nav-link {{ request()->routeIs(['importClinetDue']) ? 'active' : '' }}">
                        <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                        <p>Import Client Due</p>
                    </a></li>
            @endcan
        @endif

        @can('income-report')
            <li class="nav-item"><a href="{{ route('incomeReport') }}"
                    class="nav-link {{ request()->routeIs(['incomeReport']) ? 'active' : '' }}">
                    <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                    <p>Income Report</p>
                </a></li>
        @endcan


        @can('reseller-balance-log-report')
            <li class="nav-item"><a href="{{ route('ReselleBalanceLog.index') }}"
                    class="nav-link {{ request()->routeIs(['ReselleBalanceLog.index']) ? 'active' : '' }}">
                    <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                    <p>Manager Balance Log</p>
                </a></li>
        @endcan
        @can('reseller-balance-log-total-report')
            <li class="nav-item"><a href="{{ route('resellerWiseTotalCost') }}"
                    class="nav-link {{ request()->routeIs(['resellerWiseTotalCost']) ? 'active' : '' }}">
                    <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                    <p>Manager Wise Balance Log</p>
                </a>
            </li>
        @endcan

        @can('commission-in-hand')
            <li class="nav-item">
                <a href="{{ route('commission-in-hand', 'all') }}"
                    class="nav-link {{ request()->routeIs(['commission-in-hand']) ? 'active' : '' }}">
                    <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                    <p>Manager Commission</p>
                </a>
            </li>
        @endcan

        @can('reseller-recharge-report')
            <li class="nav-item">
                <a href="{{ route('resellerRechargeReport.index') }}"
                    class="nav-link {{ request()->routeIs(['resellerRechargeReport.index']) ? 'active' : '' }}">
                    <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                    <p>Manager Recharge</p>
                </a>
            </li>
        @endcan


        @can('customer-marketed-by')
            <li class="nav-item"><a href="{{ route('marketingCustomer') }}"
                    class="nav-link {{ request()->routeIs(['marketingCustomer']) ? 'active' : '' }}">
                    <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                    <p>Marketing Customer</p>
                </a></li>
        @endcan

        @if (getBillingType() === 'monthly')
            @can('missing-bill-generate-report')
                <li class="nav-item">
                    <a href="{{ route('missing-bill-generate') }}"
                        class="nav-link {{ request()->routeIs(['missing-bill-generate']) ? 'active' : '' }}">
                        <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                        <p>Missing Bill Generate</p>
                    </a>
                </li>
            @endcan
        @endif

        @can('new-customer-billing-report')
            <li class="nav-item">
                <a href="{{ route('recent-customer-report') }}"
                    class="nav-link {{ request()->routeIs(['recent-customer-report']) ? 'active' : '' }}">
                    <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                    <p>New customer billing report</p>
                </a>
            </li>
        @endcan


        @can('otc-report')

            <li
                class="nav-item {{ request()->routeIs(['otcPaymentReport', 'otcReport', 'dueOtcReport', 'newOtcPaymentReport']) ? 'menu-open' : '' }}">
                <a href="#" class="nav-link">
                    <i class="ml-3 nav-icon fas fa-copy"></i>
                    <p>
                        OTC
                        <i class="fas fa-angle-left right"></i>
                    </p>
                </a>
                <ul class="nav nav-treeview">

                    @can('due-otc-report')
                        <li class="nav-item"><a href="{{ route('dueOtcReport') }}"
                                class="nav-link {{ request()->routeIs(['dueOtcReport']) ? 'active' : '' }}">
                                <i class="ml-4 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                                <p>Due OTC</p>
                            </a>
                        </li>
                    @endcan

                    @can('payment-report')
                        <li class="nav-item"><a href="{{ route('otcPaymentReport') }}"
                                class="nav-link {{ request()->routeIs(['otcPaymentReport']) ? 'active' : '' }}">
                                <i class="ml-4 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                                <p>OTC Payment</p>
                            </a>
                        </li>
                    @endcan

                    @can('payment-report')
                        @if (globalPermission('otc_payment_with_generale_payment'))
                            <li class="nav-item">
                                <a href="{{ route('newOtcPaymentReport') }}"
                                    class="nav-link {{ request()->routeIs(['newOtcPaymentReport']) ? 'active' : '' }}">
                                    <i class="ml-4 far fa-circle nav-icon" style="font-size: 6px !important"></i>
                                    <p>New OTC Payment</p>
                                </a>
                            </li>
                        @endif
                    @endcan

                    {{-- @can('paid-otc-report')
                        <li class="nav-item"><a href="{{ route('otcReport') }}"
                                class="nav-link {{ request()->routeIs(['otcReport']) ? 'active' : '' }}">
                                <i class="ml-4 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                                <p>Paid OTC</p>
                            </a>
                        </li>
                    @endcan --}}

                </ul>
            </li>
        @endcan


        @if (checkSettings('schedule_package') == 'enable')
            @can('schedule-package-change')
                <li class="nav-item"><a href="{{ route('schedule-package-change-list') }}"
                        class="nav-link {{ request()->routeIs(['schedule-package-change-list']) ? 'active' : '' }}">
                        <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                        <p>Schedule Package Change</p>
                    </a>
                </li>
            @endcan
        @endif


        @can('payment-history')
            <li class="nav-item"><a href="{{ route('paymentReport') }}"
                    class="nav-link {{ request()->routeIs(['paymentReport']) ? 'active' : '' }}">
                    <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                    <p>Payment History</p>
                </a>
            </li>
        @endcan
        @can('client-payment-Invoice')
            <li class="nav-item"><a href="{{ route('paymentInvoicePrint') }}"
                    class="nav-link {{ request()->routeIs(['paymentInvoicePrint']) ? 'active' : '' }}">
                    <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                    <p>Payment Invoice Print</p>
                </a>
            </li>
        @endcan

        @can('permanent-discount-list')
            <li class="nav-item"><a href="{{ route('permanent-discount-list') }}"
                    class="nav-link {{ request()->routeIs(['permanent-discount-list']) ? 'active' : '' }}">
                    <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                    <p>Parmanent Discount List </p>
                </a>
            </li>
        @endcan



        @can('pgw_response_log')
            <li class="nav-item"><a href="{{ route('pgw_response_log') }}"
                    class="nav-link {{ request()->routeIs(['pgw_response_log']) ? 'active' : '' }}">
                    <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                    <p>Pgw Response Log</p>
                </a>
            </li>
        @endcan

        @can('running-due')
            <li class="nav-item">
                <a href="{{ route('runningMonthDue') }}"
                    class="nav-link {{ request()->routeIs(['runningMonthDue']) ? 'active' : '' }}">
                    <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                    <p>Runnign Month Due</p>
                </a>
            </li>
        @endcan

        @can('money-receipt-search')
            <li class="nav-item"><a href="{{ route('moneyReceiptSearch') }}"
                    class="nav-link {{ request()->routeIs(['moneyReceiptSearch']) ? 'active' : '' }}">
                    <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                    <p>Search Money Receipt</p>
                </a></li>
        @endcan

        @can('sub-reseller-balance-log-report')
            <li class="nav-item"><a href="{{ route('subResellerBalanceLog.index') }}"
                    class="nav-link {{ request()->routeIs(['subResellerBalanceLog.index']) ? 'active' : '' }}">
                    <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                    <p>S-Manager Balance Log</p>
                </a></li>
        @endcan

        @can('sub-reseller-recharge-report')
            <li class="nav-item">
                <a href="{{ route('subResellerRechargeReport.index') }}"
                    class="nav-link {{ request()->routeIs(['subResellerRechargeReport.index']) ? 'active' : '' }}">
                    <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                    <p>S-Manager Recharge</p>
                </a>
            </li>
        @endcan
        @if (globalPermission('reseller-client-billing'))
            @can('reseller-due-customer-list')
                <li class="nav-item"><a href="{{ route('reseller-due-customer-list') }}"
                        class="nav-link {{ request()->routeIs(['reseller-due-customer-list']) ? 'active' : '' }}">
                        <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                        <p>Manager Due Customer</p>
                    </a>
                </li>
            @endcan

            @can('reseller-customer-payment-report')
                <li class="nav-item"><a href="{{ route('reseller-customer-payment-report') }}"
                        class="nav-link {{ request()->routeIs(['reseller-customer-payment-report']) ? 'active' : '' }}">
                        <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                        <p>Manager Payment Report</p>
                    </a>
                </li>
            @endcan

            @can('reseller-customer-bill-generate-report')
                <li class="nav-item"><a href="{{ route('resellerBillGenerateReport') }}"
                        class="nav-link {{ request()->routeIs(['resellerBillGenerateReport']) ? 'active' : '' }}">
                        <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                        <p>Manager Bill Generate</p>
                    </a>
                </li>
            @endcan
        @endif




        {{-- <a href="{{route('user.index') }}" class="nav-link">Client Due
            Report</a> --}}

    </ul>
</li>




<li class="nav-item d-none">
    <a href="#" class="nav-link">
        <i class="nav-icon fas fa-cog"></i>
        <p>
            Income
            <i class="fas fa-angle-left right"></i>
        </p>
    </a>
    <ul class="nav nav-treeview ml-2">
        {{-- @can('user-registration') --}}
        <li class="nav-item"><a href="{{ route('income.index') }}" class="nav-link"><i
                    class="fa fa-circle nav-icon"></i>
                <p>View Income</p>
            </a></li>
        {{-- @endcan --}}

        {{-- @can('user_index') --}}
        <li class="nav-item"><a href="{{ route('incomeReport') }}" class="nav-link"><i
                    class="fa fa-circle nav-icon"></i>
                <p>View Income Report</p>
            </a>
        </li>

        {{-- @endcan --}}

    </ul>
</li>

<li class="nav-item d-none">
    <a href="#" class="nav-link">
        <i class="nav-icon fas fa-cog"></i>
        <p>
            Expense
            <i class="fas fa-angle-left right"></i>
        </p>
    </a>
    <ul class="nav nav-treeview ml-2">
        {{-- @can('user-registration') --}}
        <li class="nav-item"><a href="{{ route('expense.index') }}" class="nav-link"><i
                    class="fa fa-circle nav-icon"></i>
                <p>View Expense</p>
            </a></li>
        {{-- @endcan --}}

        {{-- @can('user_index') --}}
        <li class="nav-item"><a href="{{ route('expenseReport') }}" class="nav-link"><i
                    class="fa fa-circle nav-icon"></i>
                <p>View Expense Report</p>
            </a></li>

        {{-- @endcan --}}

    </ul>
</li>
