<div class="sidebar bg--dark">
    <button class="res-sidebar-close-btn"><i class="las la-times"></i></button>
    <div class="sidebar__inner">
        <div class="sidebar__logo">
            <a href="{{ route('admin.dashboard') }}" class="sidebar__main-logo"><img
                    src="{{ getImage(getFilePath('logoIcon') . '/logo.png') }}" alt="@lang('image')"></a>
        </div>

        <div class="sidebar__menu-wrapper" id="sidebar__menuWrapper">
            <ul class="sidebar__menu">
                <li class="sidebar-menu-item {{ menuActive('admin.dashboard') }}">
                    <a href="{{ route('admin.dashboard') }}" class="nav-link ">
                        <i class="menu-icon las la-home"></i>
                        <span class="menu-title">@lang('Dashboard')</span>
                    </a>
                </li>


                <li class="sidebar-menu-item sidebar-dropdown">
                    <a href="javascript:void(0)" class="{{ menuActive('admin.users*', 3) }}">
                        <i class="menu-icon las la-users"></i>
                        <span class="menu-title">@lang('Manage Users')</span>

                        @if (
                            $bannedUsersCount > 0 ||
                                $emailUnverifiedUsersCount > 0 ||
                                $mobileUnverifiedUsersCount > 0 ||
                                $kycUnverifiedUsersCount > 0 ||
                                $kycPendingUsersCount > 0)
                            <span class="menu-badge pill bg--danger ms-auto">
                                <i class="fa fa-exclamation"></i>
                            </span>
                        @endif
                    </a>
                    <div class="sidebar-submenu {{ menuActive('admin.users*', 2) }} ">
                        <ul>

                            @haspermission('manage_user:network_fully_active', 'admin')
                                <li class="sidebar-menu-item {{ menuActive('admin.users.full.active') }} ">
                                    <a href="{{ route('admin.users.full.active') }}" class="nav-link">
                                        <i class="menu-icon las la-dot-circle"></i>
                                        <span class="menu-title">@lang('Network Fully Active')</span>
                                    </a>
                                </li>
                            @endhaspermission

                            @haspermission('manage_user:plan_purchased', 'admin')
                                <li class="sidebar-menu-item {{ menuActive('admin.users.plan.purchased') }} ">
                                    <a href="{{ route('admin.users.plan.purchased') }}" class="nav-link">
                                        <i class="menu-icon las la-dot-circle"></i>
                                        <span class="menu-title">@lang('Plan Purchased')</span>
                                    </a>
                                </li>
                            @endhaspermission

                            @haspermission('manage_user:network_pending', 'admin')
                                <li class="sidebar-menu-item {{ menuActive('admin.users.network.pending') }} ">
                                    <a href="{{ route('admin.users.network.pending') }}" class="nav-link">
                                        <i class="menu-icon las la-dot-circle"></i>
                                        <span class="menu-title">@lang('Network Pending')</span>
                                    </a>
                                </li>
                            @endhaspermission

                            @haspermission('manage_user:email_unverified', 'admin')
                                <li class="sidebar-menu-item  {{ menuActive('admin.users.email.unverified') }}">
                                    <a href="{{ route('admin.users.email.unverified') }}" class="nav-link">
                                        <i class="menu-icon las la-dot-circle"></i>
                                        <span class="menu-title">@lang('Email Unverified')</span>

                                        @if ($emailUnverifiedUsersCount)
                                            <span
                                                class="menu-badge pill bg--danger ms-auto">{{ $emailUnverifiedUsersCount }}</span>
                                        @endif
                                    </a>
                                </li>
                            @endhaspermission
                            @haspermission('manage_user:mobile_unverified', 'admin')
                                <li class="sidebar-menu-item {{ menuActive('admin.users.mobile.unverified') }}">
                                    <a href="{{ route('admin.users.mobile.unverified') }}" class="nav-link">
                                        <i class="menu-icon las la-dot-circle"></i>
                                        <span class="menu-title">@lang('Mobile Unverified')</span>
                                        @if ($mobileUnverifiedUsersCount)
                                            <span
                                                class="menu-badge pill bg--danger ms-auto">{{ $mobileUnverifiedUsersCount }}</span>
                                        @endif
                                    </a>
                                </li>
                            @endhaspermission

                            @haspermission('manage_user:kyc_unverified', 'admin')
                                <li class="sidebar-menu-item {{ menuActive('admin.users.kyc.unverified') }}">
                                    <a href="{{ route('admin.users.kyc.unverified') }}" class="nav-link">
                                        <i class="menu-icon las la-dot-circle"></i>
                                        <span class="menu-title">@lang('KYC Unverified')</span>
                                        @if ($kycUnverifiedUsersCount)
                                            <span
                                                class="menu-badge pill bg--danger ms-auto">{{ $kycUnverifiedUsersCount }}</span>
                                        @endif
                                    </a>
                                </li>
                            @endhaspermission
                            @haspermission('manage_user:kyc_pending', 'admin')
                                <li class="sidebar-menu-item {{ menuActive('admin.users.kyc.pending') }}">
                                    <a href="{{ route('admin.users.kyc.pending') }}" class="nav-link">
                                        <i class="menu-icon las la-dot-circle"></i>
                                        <span class="menu-title">@lang('KYC Pending')</span>
                                        @if ($kycPendingUsersCount)
                                            <span
                                                class="menu-badge pill bg--danger ms-auto">{{ $kycPendingUsersCount }}</span>
                                        @endif
                                    </a>
                                </li>
                            @endhaspermission
                            @haspermission('manage_user:kyc_rejected', 'admin')
                                <li class="sidebar-menu-item {{ menuActive('admin.users.kyc.rejected') }}">
                                    <a href="{{ route('admin.users.kyc.rejected') }}" class="nav-link">
                                        <i class="menu-icon las la-dot-circle"></i>
                                        <span class="menu-title">@lang('KYC Rejected')</span>
                                        @if ($kycRejectedUsersCount)
                                            <span
                                                class="menu-badge pill bg--danger ms-auto">{{ $kycRejectedUsersCount }}</span>
                                        @endif
                                    </a>
                                </li>
                            @endhaspermission

                            @haspermission('manage_user:with_earning', 'admin')
                                <li class="sidebar-menu-item {{ menuActive('admin.users.with.balance') }}">
                                    <a href="{{ route('admin.users.with.balance') }}" class="nav-link">
                                        <i class="menu-icon las la-dot-circle"></i>
                                        <span class="menu-title">@lang('With Earning')</span>
                                    </a>
                                </li>
                            @endhaspermission

                            @haspermission('manage_user:dummy_users', 'admin')
                                <li class="sidebar-menu-item {{ menuActive('admin.users.dummy') }} ">
                                    <a href="{{ route('admin.users.dummy') }}" class="nav-link">
                                        <i class="menu-icon las la-dot-circle"></i>
                                        <span class="menu-title">@lang('Dummy Users')</span>
                                    </a>
                                </li>
                            @endhaspermission

                            @haspermission('manage_user:all_users', 'admin')
                                <li class="sidebar-menu-item {{ menuActive('admin.users.all') }} ">
                                    <a href="{{ route('admin.users.all') }}" class="nav-link">
                                        <i class="menu-icon las la-dot-circle"></i>
                                        <span class="menu-title">@lang('All Users')</span>
                                    </a>
                                </li>
                            @endhaspermission

                            @haspermission('manage_user:banned_users', 'admin')
                                <li class="sidebar-menu-item {{ menuActive('admin.users.banned') }} ">
                                    <a href="{{ route('admin.users.banned') }}" class="nav-link">
                                        <i class="menu-icon las la-dot-circle"></i>
                                        <span class="menu-title">@lang('Banned Users')</span>
                                        @if ($bannedUsersCount)
                                            <span class="menu-badge pill bg--danger ms-auto">{{ $bannedUsersCount }}</span>
                                        @endif
                                    </a>
                                </li>
                            @endhaspermission

                            @haspermission('manage_user:working_users', 'admin')
                                <li class="sidebar-menu-item {{ menuActive('admin.users.active') }} ">
                                    <a href="{{ route('admin.users.active') }}" class="nav-link">
                                        <i class="menu-icon las la-dot-circle"></i>
                                        <span class="menu-title">@lang('Working Users')</span>
                                    </a>
                                </li>
                            @endhaspermission

                            @haspermission('manage_user:app_download_list', 'admin')
                                <li class="sidebar-menu-item {{ menuActive('admin.users.download.user.list') }} ">
                                    <a href="{{ route('admin.users.download.user.list') }}" class="nav-link">
                                        <i class="menu-icon las la-dot-circle"></i>
                                        <span class="menu-title">@lang('App Download List')</span>
                                    </a>
                                </li>
                            @endhaspermission

                            @haspermission('manage_user:debt_free', 'admin')
                            <li class="sidebar-menu-item {{ menuActive('admin.users.debtFree') }} ">
                                <a href="{{ route('admin.users.debtFree') }}" class="nav-link">
                                    <i class="menu-icon las la-dot-circle"></i>
                                    <span class="menu-title">@lang('Debt Free Users')</span>
                                </a>
                            </li>
                            @endhaspermission
                            @haspermission('manage_user:debt_free', 'admin')
                            <li class="sidebar-menu-item {{ menuActive('admin.users.debtNotFree') }} ">
                                <a href="{{ route('admin.users.debtNotFree') }}" class="nav-link">
                                    <i class="menu-icon las la-dot-circle"></i>
                                    <span class="menu-title">@lang('Debt Not Cleared Users')</span>
                                </a>
                            </li>
                            @endhaspermission


                            {{-- <li class="sidebar-menu-item {{ menuActive('admin.users.notification.all') }}">
                            <a href="{{ route('admin.users.notification.all') }}" class="nav-link">
                                <i class="menu-icon las la-dot-circle"></i>
                                <span class="menu-title">@lang('Notification to All')</span>
                            </a>
                        </li> --}}

                        </ul>
                    </div>
                </li>



                @role('super admin', 'admin')
                    <li class="sidebar-menu-item sidebar-dropdown ">
                        <a href="javascript:void(0)" class="nav-link {{ menuActive('admin.access*', 3) }} ">
                            <i class="menu-icon las la-shield-alt"></i>
                            <span class="menu-title">@lang('Access Control')</span>
                        </a>
                        <div class="sidebar-submenu">
                            <ul>
                                <li class="sidebar-menu-item {{ menuActive('admin.access.roles.index') }} ">
                                    <a href="{{ route('admin.access.roles.index') }}" class="nav-link">
                                        <i class="menu-icon las la-dot-circle"></i>
                                        <span class="menu-title">@lang('Roles')</span>
                                    </a>
                                </li>

                                <li class="sidebar-menu-item {{ menuActive('admin.access.permissions.index') }} ">
                                    <a href="{{ route('admin.access.permissions.index') }}" class="nav-link">
                                        <i class="menu-icon las la-dot-circle"></i>
                                        <span class="menu-title">@lang('Permissions')</span>
                                    </a>
                                </li>
                                <li class="sidebar-menu-item {{ menuActive('admin.access.employees') }} ">
                                    <a href="{{ route('admin.access.employees') }}" class="nav-link">
                                        <i class="menu-icon las la-dot-circle"></i>
                                        <span class="menu-title">@lang('Employees')</span>
                                    </a>
                                </li>
                            </ul>
                        </div>
                    </li>
                @endrole

                @haspermission('product_details:edit', 'admin')
                    <li class="sidebar-menu-item  {{ menuActive('admin.plan.edit', $plan->id) }}">
                        <a href="{{ route('admin.plan.edit', $plan->id) }}" class="nav-link"
                            data-default-url="{{ route('admin.plan.edit', $plan->id) }}">
                            <i class="menu-icon las la-paper-plane"></i>
                            <span class="menu-title">@lang('Product Details') </span>
                        </a>
                    </li>
                @endhaspermission

                @haspermission('reward:view_list', 'admin')
                    <li class="sidebar-menu-item  {{ menuActive('admin.reward.*') }}">
                        <a href="{{ route('admin.reward.index') }}" class="nav-link"
                            data-default-url="{{ route('admin.reward.index') }}">
                            <i class="menu-icon las la-gift"></i>
                            <span class="menu-title">@lang('Reward') </span>
                        </a>
                    </li>
                @endhaspermission

                @haspermission('coupon:list', 'admin')
                    <li class="sidebar-menu-item  {{ menuActive('admin.coupon.*') }}">
                        <a href="{{ route('admin.coupon.index') }}" class="nav-link"
                            data-default-url="{{ route('admin.coupon.index') }}">
                            <i class="menu-icon las la-ticket-alt"></i>
                            <span class="menu-title">@lang('Coupon') </span>
                        </a>
                    </li>
                @endhaspermission

                @haspermission('notice_board', 'admin')
                    <li class="sidebar-menu-item  {{ menuActive('admin.noticeBoard.*') }}">
                        <a href="{{ route('admin.noticeBoard.index') }}" class="nav-link"
                            data-default-url="{{ route('admin.noticeBoard.index') }}">
                            <i class="menu-icon la la-list"></i>
                            <span class="menu-title">@lang('Notice Board') </span>
                        </a>
                    </li>
                @endhaspermission

                @haspermission('social_media:list', 'admin')
                    <li class="sidebar-menu-item  {{ menuActive('admin.media.*') }}">
                        <a href="{{ route('admin.media.index') }}" class="nav-link"
                            data-default-url="{{ route('admin.media.index') }}">
                            <i class="menu-icon las fas fa-link"></i>
                            <span class="menu-title">@lang('Socila Media') </span>
                        </a>
                    </li>
                @endhaspermission

                @haspermission('level_wise_reward:list', 'admin')
                    <li class="sidebar-menu-item  {{ menuActive('admin.level.*') }}">
                        <a href="{{ route('admin.level.index') }}" class="nav-link"
                            data-default-url="{{ route('admin.level.index') }}">
                            <i class="menu-icon las la-layer-group"></i>
                            <span class="menu-title">@lang('Level Wise Reward') </span>
                        </a>
                    </li>
                @endhaspermission

                {{-- <li class="sidebar-menu-item sidebar-dropdown">
                    <a href="javascript:void(0)" class="{{ menuActive('admin.pin*', 3) }}">
                        <i class="menu-icon las la-key"></i>
                        <span class="menu-title">@lang('Manage Pins')</span>
                    </a>
                    <div class="sidebar-submenu {{ menuActive('admin.pin*', 2) }} ">
                        <ul>
                            <li class="sidebar-menu-item {{ menuActive('admin.pin.index') }} ">
                                <a href="{{ route('admin.pin.index') }}" class="nav-link">
                                    <i class="menu-icon las la-dot-circle"></i>
                                    <span class="menu-title">@lang('All Pins')</span>
                                </a>
                            </li>

                            <li class="sidebar-menu-item {{ menuActive('admin.pin.user') }} ">
                                <a href="{{ route('admin.pin.user') }}" class="nav-link">
                                    <i class="menu-icon las la-dot-circle"></i>
                                    <span class="menu-title">@lang('User Pins')</span>
                                </a>
                            </li>

                            <li class="sidebar-menu-item {{ menuActive('admin.pin.generate') }} ">
                                <a href="{{ route('admin.pin.generate') }}" class="nav-link">
                                    <i class="menu-icon las la-dot-circle"></i>
                                    <span class="menu-title">@lang('Admin Pins')</span>
                                </a>
                            </li>

                            <li class="sidebar-menu-item {{ menuActive('admin.pin.used') }} ">
                                <a href="{{ route('admin.pin.used') }}" class="nav-link">
                                    <i class="menu-icon las la-lock-open"></i>
                                    <span class="menu-title">@lang('Used Pins')</span>
                                </a>
                            </li>

                            <li class="sidebar-menu-item {{ menuActive('admin.pin.unused') }} ">
                                <a href="{{ route('admin.pin.unused') }}" class="nav-link">
                                    <i class="menu-icon las la-lock"></i>
                                    <span class="menu-title">@lang('Unused Pins')</span>
                                </a>
                            </li>
                        </ul>
                    </div>
                </li> --}}

                @role('super admin', 'admin')
                    <li class="sidebar-menu-item sidebar-dropdown">
                        <a href="javascript:void(0)" class="{{ menuActive('admin.gateway*', 3) }}">
                            <i class="menu-icon las la-credit-card"></i>
                            <span class="menu-title">@lang('Payment Gateways')</span>
                        </a>
                        <div class="sidebar-submenu {{ menuActive('admin.gateway*', 2) }} ">
                            <ul>

                                <li class="sidebar-menu-item {{ menuActive('admin.gateway.automatic.*') }} ">
                                    <a href="{{ route('admin.gateway.automatic.index') }}" class="nav-link">
                                        <i class="menu-icon las la-dot-circle"></i>
                                        <span class="menu-title">@lang('Automatic Gateways')</span>
                                    </a>
                                </li>
                                {{-- <li class="sidebar-menu-item {{ menuActive('admin.gateway.manual.*') }} ">
                                <a href="{{ route('admin.gateway.manual.index') }}" class="nav-link">
                                    <i class="menu-icon las la-dot-circle"></i>
                                    <span class="menu-title">@lang('Manual Gateways')</span>
                                </a>
                            </li> --}}

                            </ul>
                        </div>
                    </li>
                @endrole

                {{-- <li class="sidebar-menu-item sidebar-dropdown">
                    <a href="javascript:void(0)" class="{{ menuActive('admin.deposit*', 3) }}">
                        <i class="menu-icon las la-file-invoice-dollar"></i>
                        <span class="menu-title">@lang('Deposits')</span>
                        @if (0 < $pendingDepositsCount)
                            <span class="menu-badge pill bg--danger ms-auto">
                                <i class="fa fa-exclamation"></i>
                            </span>
                        @endif
                    </a>
                    <div class="sidebar-submenu {{ menuActive('admin.deposit*', 2) }} ">
                        <ul>

                            <li class="sidebar-menu-item {{ menuActive('admin.deposit.pending') }} ">
                                <a href="{{ route('admin.deposit.pending') }}" class="nav-link">
                                    <i class="menu-icon las la-dot-circle"></i>
                                    <span class="menu-title">@lang('Pending Deposits')</span>
                                    @if ($pendingDepositsCount)
                                        <span
                                            class="menu-badge pill bg--danger ms-auto">{{ $pendingDepositsCount }}</span>
                                    @endif
                                </a>
                            </li>

                            <li class="sidebar-menu-item {{ menuActive('admin.deposit.approved') }} ">
                                <a href="{{ route('admin.deposit.approved') }}" class="nav-link">
                                    <i class="menu-icon las la-dot-circle"></i>
                                    <span class="menu-title">@lang('Approved Deposits')</span>
                                </a>
                            </li>

                            <li class="sidebar-menu-item {{ menuActive('admin.deposit.successful') }} ">
                                <a href="{{ route('admin.deposit.successful') }}" class="nav-link">
                                    <i class="menu-icon las la-dot-circle"></i>
                                    <span class="menu-title">@lang('Successful Deposits')</span>
                                </a>
                            </li>


                            <li class="sidebar-menu-item {{ menuActive('admin.deposit.rejected') }} ">
                                <a href="{{ route('admin.deposit.rejected') }}" class="nav-link">
                                    <i class="menu-icon las la-dot-circle"></i>
                                    <span class="menu-title">@lang('Rejected Deposits')</span>
                                </a>
                            </li>


                            <li class="sidebar-menu-item {{ menuActive('admin.deposit.initiated') }} ">

                                <a href="{{ route('admin.deposit.initiated') }}" class="nav-link">
                                    <i class="menu-icon las la-dot-circle"></i>
                                    <span class="menu-title">@lang('Initiated Deposits')</span>
                                </a>
                            </li>

                            <li class="sidebar-menu-item {{ menuActive('admin.deposit.list') }} ">
                                <a href="{{ route('admin.deposit.list') }}" class="nav-link">
                                    <i class="menu-icon las la-dot-circle"></i>
                                    <span class="menu-title">@lang('All Deposits')</span>
                                </a>
                            </li>
                        </ul>
                    </div>
                </li>

                <li class="sidebar-menu-item sidebar-dropdown">
                    <a href="javascript:void(0)" class="{{ menuActive('admin.withdraw*', 3) }}">
                        <i class="menu-icon la la-bank"></i>
                        <span class="menu-title">@lang('Withdrawals') </span>
                        @if (0 < $pendingWithdrawCount)
                            <span class="menu-badge pill bg--danger ms-auto">
                                <i class="fa fa-exclamation"></i>
                            </span>
                        @endif
                    </a>
                    <div class="sidebar-submenu {{ menuActive('admin.withdraw*', 2) }} ">
                        <ul>

                            <li class="sidebar-menu-item {{ menuActive('admin.withdraw.method.*') }}">
                                <a href="{{ route('admin.withdraw.method.index') }}" class="nav-link">
                                    <i class="menu-icon las la-dot-circle"></i>
                                    <span class="menu-title">@lang('Withdrawal Methods')</span>
                                </a>
                            </li>

                            <li class="sidebar-menu-item {{ menuActive('admin.withdraw.pending') }} ">
                                <a href="{{ route('admin.withdraw.pending') }}" class="nav-link">
                                    <i class="menu-icon las la-dot-circle"></i>
                                    <span class="menu-title">@lang('Pending Withdrawals')</span>

                                    @if ($pendingWithdrawCount)
                                        <span
                                            class="menu-badge pill bg--danger ms-auto">{{ $pendingWithdrawCount }}</span>
                                    @endif
                                </a>
                            </li>

                            <li class="sidebar-menu-item {{ menuActive('admin.withdraw.approved') }} ">
                                <a href="{{ route('admin.withdraw.approved') }}" class="nav-link">
                                    <i class="menu-icon las la-dot-circle"></i>
                                    <span class="menu-title">@lang('Approved Withdrawals')</span>
                                </a>
                            </li>

                            <li class="sidebar-menu-item {{ menuActive('admin.withdraw.rejected') }} ">
                                <a href="{{ route('admin.withdraw.rejected') }}" class="nav-link">
                                    <i class="menu-icon las la-dot-circle"></i>
                                    <span class="menu-title">@lang('Rejected Withdrawals')</span>
                                </a>
                            </li>

                            <li class="sidebar-menu-item {{ menuActive('admin.withdraw.log') }} ">
                                <a href="{{ route('admin.withdraw.log') }}" class="nav-link">
                                    <i class="menu-icon las la-dot-circle"></i>
                                    <span class="menu-title">@lang('All Withdrawals')</span>
                                </a>
                            </li>


                        </ul>
                    </div>
                </li> --}}


                <li class="sidebar-menu-item sidebar-dropdown">
                    <a href="javascript:void(0)" class="{{ menuActive('admin.ticket*', 3) }}">
                        <i class="menu-icon la la-ticket"></i>
                        <span class="menu-title">@lang('Support Ticket') </span>
                        @if (0 < $pendingTicketCount)
                            <span class="menu-badge pill bg--danger ms-auto">
                                <i class="fa fa-exclamation"></i>
                            </span>
                        @endif
                    </a>
                    <div class="sidebar-submenu {{ menuActive('admin.ticket*', 2) }} ">
                        <ul>
                            @haspermission('support_ticket:list-pending', 'admin')
                                <li class="sidebar-menu-item {{ menuActive('admin.ticket.pending') }} ">
                                    <a href="{{ route('admin.ticket.pending') }}" class="nav-link">
                                        <i class="menu-icon las la-dot-circle"></i>
                                        <span class="menu-title">@lang('Pending Ticket')</span>
                                        @if ($pendingTicketCount)
                                            <span
                                                class="menu-badge pill bg--danger ms-auto">{{ $pendingTicketCount }}</span>
                                        @endif
                                    </a>
                                </li>
                            @endhaspermission
                            @haspermission('support_ticket:list-closed', 'admin')
                                <li class="sidebar-menu-item {{ menuActive('admin.ticket.closed') }} ">
                                    <a href="{{ route('admin.ticket.closed') }}" class="nav-link">
                                        <i class="menu-icon las la-dot-circle"></i>
                                        <span class="menu-title">@lang('Closed Ticket')</span>
                                    </a>
                                </li>
                            @endhaspermission
                            @haspermission('support_ticket:list-answered', 'admin')
                                <li class="sidebar-menu-item {{ menuActive('admin.ticket.answered') }} ">
                                    <a href="{{ route('admin.ticket.answered') }}" class="nav-link">
                                        <i class="menu-icon las la-dot-circle"></i>
                                        <span class="menu-title">@lang('Answered Ticket')</span>
                                    </a>
                                </li>
                            @endhaspermission
                            @haspermission('support_ticket:list-all', 'admin')
                                <li class="sidebar-menu-item {{ menuActive('admin.ticket.index') }} ">
                                    <a href="{{ route('admin.ticket.index') }}" class="nav-link">
                                        <i class="menu-icon las la-dot-circle"></i>
                                        <span class="menu-title">@lang('All Ticket')</span>
                                    </a>
                                </li>
                            @endhaspermission
                        </ul>
                    </div>
                </li>



                <li class="sidebar-menu-item sidebar-dropdown">
                    <a href="javascript:void(0)" class="{{ menuActive('admin.report*', 3) }}">
                        <i class="menu-icon la la-list"></i>
                        <span class="menu-title">@lang('Report') </span>
                    </a>
                    <div class="sidebar-submenu {{ menuActive('admin.report*', 2) }} ">
                        <ul>

                            @haspermission('report:transactions', 'admin')
                                <li
                                    class="sidebar-menu-item {{ menuActive(['admin.report.transaction', 'admin.report.transaction.search']) }}">
                                    <a href="{{ route('admin.report.transaction') }}" class="nav-link">
                                        <i class="menu-icon las la-dot-circle"></i>
                                        <span class="menu-title">@lang('Transaction Log')</span>
                                    </a>
                                </li>
                            @endhaspermission

                            {{-- <li
                            class="sidebar-menu-item {{ menuActive(['admin.report.commissions', 'admin.report.commissions.search', 'admin.report.commissions.log']) }}">
                            <a href="{{ route('admin.report.commissions') }}" class="nav-link">
                                <i class="menu-icon las la-dot-circle"></i>
                                <span class="menu-title">@lang('Commissions Log')</span>
                            </a>
                        </li>

                        <li
                            class="sidebar-menu-item {{ menuActive(['admin.report.recharge', 'admin.report.recharge.search']) }}">
                            <a href="{{ route('admin.report.recharge') }}" class="nav-link">
                                <i class="menu-icon las la-dot-circle"></i>
                                <span class="menu-title">@lang('Recharge Log')</span>
                            </a>
                        </li> --}}

                            @haspermission('report:login_history', 'admin')
                                <li
                                    class="sidebar-menu-item {{ menuActive(['admin.report.login.history', 'admin.report.login.ipHistory']) }}">
                                    <a href="{{ route('admin.report.login.history') }}" class="nav-link">
                                        <i class="menu-icon las la-dot-circle"></i>
                                        <span class="menu-title">@lang('Login History')</span>
                                    </a>
                                </li>
                            @endhaspermission

                            @haspermission('report:notification_history', 'admin')
                                <li class="sidebar-menu-item {{ menuActive('admin.report.notification.history') }}">
                                    <a href="{{ route('admin.report.notification.history') }}" class="nav-link">
                                        <i class="menu-icon las la-dot-circle"></i>
                                        <span class="menu-title">@lang('Notification History')</span>
                                    </a>
                                </li>
                            @endhaspermission
                        </ul>
                    </div>
                </li>


                @role('super admin', 'admin')
                    <li class="sidebar-menu-item  {{ menuActive('admin.subscriber.*') }}">
                        <a href="{{ route('admin.subscriber.index') }}" class="nav-link"
                            data-default-url="{{ route('admin.subscriber.index') }}">
                            <i class="menu-icon las la-thumbs-up"></i>
                            <span class="menu-title">@lang('Subscribers') </span>
                        </a>
                    </li>
                @endrole

                @haspermission('file_list', 'admin')
                    <li class="sidebar-menu-item  {{ menuActive('admin.noteList.*') }}">
                        <a href="{{ route('admin.noteList.downloadPdfList') }}" class="nav-link"
                            data-default-url="{{ route('admin.noteList.downloadPdfList') }}">
                            <i class="menu-icon far fa-sticky-note"></i>
                            <span class="menu-title">@lang('List of Files ') </span>
                        </a>
                    </li>
                @endhaspermission

                @haspermission('donation_list', 'admin')
                    <li class="sidebar-menu-item  {{ menuActive('admin.donation.*') }}">
                        <a href="{{ route('admin.donation.donationlist') }}" class="nav-link"
                            data-default-url="{{ route('admin.donation.donationlist') }}">
                            <i class="menu-icon fas fa-hand-holding-usd"></i>
                            <span class="menu-title">@lang('Donation List') </span>
                        </a>
                    </li>
                @endhaspermission

                @role('super admin', 'admin')

                    <li class="sidebar__menu-header">@lang('Settings')</li>

                    <li class="sidebar-menu-item {{ menuActive('admin.setting.index') }}">
                        <a href="{{ route('admin.setting.index') }}" class="nav-link">
                            <i class="menu-icon las la-life-ring"></i>
                            <span class="menu-title">@lang('General Setting')</span>
                        </a>
                    </li>

                    <li class="sidebar-menu-item {{ menuActive('admin.setting.system.configuration') }}">
                        <a href="{{ route('admin.setting.system.configuration') }}" class="nav-link">
                            <i class="menu-icon las la-cog"></i>
                            <span class="menu-title">@lang('System Configuration')</span>
                        </a>
                    </li>

                    <li class="sidebar-menu-item {{ menuActive('admin.setting.logo.icon') }}">
                        <a href="{{ route('admin.setting.logo.icon') }}" class="nav-link">
                            <i class="menu-icon las la-images"></i>
                            <span class="menu-title">@lang('Logo & Favicon')</span>
                        </a>
                    </li>

                    <li class="sidebar-menu-item {{ menuActive('admin.extensions.index') }}">
                        <a href="{{ route('admin.extensions.index') }}" class="nav-link">
                            <i class="menu-icon las la-cogs"></i>
                            <span class="menu-title">@lang('Extensions')</span>
                        </a>
                    </li>

                    <li class="sidebar-menu-item  {{ menuActive(['admin.language.manage', 'admin.language.key']) }}">
                        <a href="{{ route('admin.language.manage') }}" class="nav-link"
                            data-default-url="{{ route('admin.language.manage') }}">
                            <i class="menu-icon las la-language"></i>
                            <span class="menu-title">@lang('Language') </span>
                        </a>
                    </li>

                    <li class="sidebar-menu-item {{ menuActive('admin.seo') }}">
                        <a href="{{ route('admin.seo') }}" class="nav-link">
                            <i class="menu-icon las la-globe"></i>
                            <span class="menu-title">@lang('SEO Manager')</span>
                        </a>
                    </li>

                    <li class="sidebar-menu-item {{ menuActive('admin.kyc.setting') }}">
                        <a href="{{ route('admin.kyc.setting') }}" class="nav-link">
                            <i class="menu-icon las la-user-check"></i>
                            <span class="menu-title">@lang('KYC Setting')</span>
                        </a>
                    </li>


                    <li class="sidebar-menu-item sidebar-dropdown">
                        <a href="javascript:void(0)" class="{{ menuActive('admin.setting.notification*', 3) }}">
                            <i class="menu-icon las la-bell"></i>
                            <span class="menu-title">@lang('Notification Setting')</span>
                        </a>
                        <div class="sidebar-submenu {{ menuActive('admin.setting.notification*', 2) }} ">
                            <ul>
                                <li class="sidebar-menu-item {{ menuActive('admin.setting.notification.global') }} ">
                                    <a href="{{ route('admin.setting.notification.global') }}" class="nav-link">
                                        <i class="menu-icon las la-dot-circle"></i>
                                        <span class="menu-title">@lang('Global Template')</span>
                                    </a>
                                </li>
                                <li class="sidebar-menu-item {{ menuActive('admin.setting.notification.email') }} ">
                                    <a href="{{ route('admin.setting.notification.email') }}" class="nav-link">
                                        <i class="menu-icon las la-dot-circle"></i>
                                        <span class="menu-title">@lang('Email Setting')</span>
                                    </a>
                                </li>
                                <li class="sidebar-menu-item {{ menuActive('admin.setting.notification.sms') }} ">
                                    <a href="{{ route('admin.setting.notification.sms') }}" class="nav-link">
                                        <i class="menu-icon las la-dot-circle"></i>
                                        <span class="menu-title">@lang('SMS Setting')</span>
                                    </a>
                                </li>
                                <li class="sidebar-menu-item {{ menuActive('admin.setting.notification.templates') }} ">
                                    <a href="{{ route('admin.setting.notification.templates') }}" class="nav-link">
                                        <i class="menu-icon las la-dot-circle"></i>
                                        <span class="menu-title">@lang('Notification Templates')</span>
                                    </a>
                                </li>
                            </ul>
                        </div>
                    </li>

                    <li class="sidebar__menu-header">@lang('Frontend Manager')</li>

                    <li class="sidebar-menu-item {{ menuActive('admin.frontend.templates') }}">
                        <a href="{{ route('admin.frontend.templates') }}" class="nav-link ">
                            <i class="menu-icon la la-html5"></i>
                            <span class="menu-title">@lang('Manage Templates')</span>
                        </a>
                    </li>

                    <li class="sidebar-menu-item {{ menuActive('admin.frontend.manage.*') }}">
                        <a href="{{ route('admin.frontend.manage.pages') }}" class="nav-link ">
                            <i class="menu-icon la la-list"></i>
                            <span class="menu-title">@lang('Manage Pages')</span>
                        </a>
                    </li>

                    <li class="sidebar-menu-item sidebar-dropdown">
                        <a href="javascript:void(0)" class="{{ menuActive('admin.frontend.sections*', 3) }}">
                            <i class="menu-icon la la-puzzle-piece"></i>
                            <span class="menu-title">@lang('Manage Section')</span>
                        </a>
                        <div class="sidebar-submenu {{ menuActive('admin.frontend.sections*', 2) }} ">
                            <ul>
                                @php
                                    $lastSegment = collect(request()->segments())->last();
                                @endphp
                                @foreach (getPageSections(true) as $k => $secs)
                                    @if ($secs['builder'])
                                        <li class="sidebar-menu-item  @if ($lastSegment == $k) active @endif ">
                                            <a href="{{ route('admin.frontend.sections', $k) }}" class="nav-link">
                                                <i class="menu-icon las la-dot-circle"></i>
                                                <span class="menu-title">{{ __($secs['name']) }}</span>
                                            </a>
                                        </li>
                                    @endif
                                @endforeach
                            </ul>
                        </div>
                    </li>

                    <li class="sidebar__menu-header">@lang('Extra')</li>


                    <li class="sidebar-menu-item {{ menuActive('admin.maintenance.mode') }}">
                        <a href="{{ route('admin.maintenance.mode') }}" class="nav-link">
                            <i class="menu-icon las la-robot"></i>
                            <span class="menu-title">@lang('Maintenance Mode')</span>
                        </a>
                    </li>

                    <li class="sidebar-menu-item {{ menuActive('admin.setting.cookie') }}">
                        <a href="{{ route('admin.setting.cookie') }}" class="nav-link">
                            <i class="menu-icon las la-cookie-bite"></i>
                            <span class="menu-title">@lang('GDPR Cookie')</span>
                        </a>
                    </li>

                    <li class="sidebar-menu-item sidebar-dropdown">
                        <a href="javascript:void(0)" class="{{ menuActive('admin.system*', 3) }}">
                            <i class="menu-icon la la-server"></i>
                            <span class="menu-title">@lang('System')</span>
                        </a>
                        <div class="sidebar-submenu {{ menuActive('admin.system*', 2) }} ">
                            <ul>
                                <li class="sidebar-menu-item {{ menuActive('admin.system.info') }} ">
                                    <a href="{{ route('admin.system.info') }}" class="nav-link">
                                        <i class="menu-icon las la-dot-circle"></i>
                                        <span class="menu-title">@lang('Application')</span>
                                    </a>
                                </li>
                                <li class="sidebar-menu-item {{ menuActive('admin.system.server.info') }} ">
                                    <a href="{{ route('admin.system.server.info') }}" class="nav-link">
                                        <i class="menu-icon las la-dot-circle"></i>
                                        <span class="menu-title">@lang('Server')</span>
                                    </a>
                                </li>
                                <li class="sidebar-menu-item {{ menuActive('admin.system.optimize') }} ">
                                    <a href="{{ route('admin.system.optimize') }}" class="nav-link">
                                        <i class="menu-icon las la-dot-circle"></i>
                                        <span class="menu-title">@lang('Cache')</span>
                                    </a>
                                </li>
                            </ul>
                        </div>
                    </li>

                    <li class="sidebar-menu-item {{ menuActive('admin.setting.custom.css') }}">
                        <a href="{{ route('admin.setting.custom.css') }}" class="nav-link">
                            <i class="menu-icon lab la-css3-alt"></i>
                            <span class="menu-title">@lang('Custom CSS')</span>
                        </a>
                    </li>


                    @endhaspermission

                </ul>
            </div>
        </div>
    </div>
    <!-- sidebar end -->

    @push('script')
        <script>
            if ($('li').hasClass('active')) {
                $('#sidebar__menuWrapper').animate({
                    scrollTop: eval($(".active").offset().top - 320)
                }, 500);
            }
        </script>
    @endpush
