

<li class="nav-item <?php echo e(request()->routeIs(['clientSearch']) ? 'menu-open' : ''); ?>">
    <a href="<?php echo e(route('clientSearch')); ?>" class="nav-link">
        <i class=" fas fa-search nav-icon"></i>
        <p>Customer Search </p>
    </a>

</li>
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('client_register_list')): ?>
    <li class="nav-item <?php echo e(request()->routeIs(['clientRegisterList']) ? 'menu-open' : ''); ?>">
        <a href="<?php echo e(route('clientRegisterList')); ?>" class="nav-link">
            <i class="fas fa-book nav-icon"></i>
            <p>Connection Request</p>
        </a>
    </li>
<?php endif; ?>

<li
    class="nav-item <?php echo e(request()->routeIs(['clients*', 'onlineCustomer', 'oflineCustomer', 'deletedCustomer', 'packageChange', 'billingCycleChange', 'deactivatedClients', 'newJoin', 'list', 'pendingCustomer', 'expiredClients', 'disableCustomer', 'activeCustomer', 'bulk-expariy-date-extended', 'leftClient', 'line-shift.index', 'localPendingCustomer', 'accountsPendingCustomer', 'freeClient']) ? 'menu-open' : ''); ?>">
    <a href="#" class="nav-link">
        <i class=" fas fa-user nav-icon"></i>
        <p>Customers
            <i class="fas fa-angle-left right"></i>
        </p>
    </a>
    <ul class="nav nav-treeview">

        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('active-customer')): ?>
            <li class="nav-item">
                <a href="<?php echo e(route('activeCustomer')); ?>"
                    class="nav-link <?php echo e(request()->routeIs(['activeCustomer']) ? 'active' : ''); ?>">
                    <i class="ml-3 far fas fa-user-check nav-icon" style="font-size: 10px"></i>
                    <p>Active Customers</p>
                </a>
            </li>
        <?php endif; ?>

        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('mac-customer_create')): ?>
            <li class="nav-item">
                <a href="<?php echo e(route('clients.create')); ?>"
                    class="nav-link <?php echo e(request()->routeIs(['clients.create']) ? 'active' : ''); ?>"><i
                        class="ml-3 far fas fa-plus nav-icon" style="font-size: 10px"></i>
                    <p>Add Customer</p>
                </a>

            </li>
        <?php endif; ?>

        
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('changeBillCycle')): ?>
            <li class="nav-item">
                <a href="<?php echo e(route('billingCycleChange')); ?>"
                    class="nav-link <?php echo e(request()->routeIs(['billingCycleChange']) ? 'active' : ''); ?>"><i
                        class="ml-3 far fas fa-calendar-plus nav-icon" style="font-size: 10px"></i>
                    <p>Billing Cycle Change</p>
                </a>
            </li>
        <?php endif; ?>
        

        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('bulk-date-extended')): ?>
            <li class="nav-item">

                <a href="<?php echo e(route('bulk-expariy-date-extended')); ?>"
                    class="nav-link <?php echo e(request()->routeIs(['bulk-expariy-date-extended']) ? 'active' : ''); ?>">
                    <i class="ml-3 far fas fa-calendar-check nav-icon" style="font-size: 10px"></i>
                    <p>Bulk Date Extend</p>

                </a>
            </li>
        <?php endif; ?>

        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('client-import')): ?>
            <li class="nav-item">
                <a href="<?php echo e(route('client-import-to-customer')); ?>"
                    class="nav-link <?php echo e(request()->routeIs(['client-import-to-customer']) ? 'active' : ''); ?>">
                    <i class="ml-3 far fas fa-calendar-check nav-icon" style="font-size: 10px"></i>
                    <p>Client Import</p>
                </a>
            </li>
        <?php endif; ?>

        <li class="nav-item">
            <a href="<?php echo e(route('list', 'close-list')); ?>"
                class="nav-link <?php echo e(request()->path() == 'admin/list/close-list' ? 'active' : ''); ?>">
                <i class="ml-3 far fas fa-trash nav-icon" style="font-size: 10px"></i>
                <p>Close Customers</p>
            </a>
        </li>

        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('mac-customer_index')): ?>
            <li class="nav-item">
                <a href="<?php echo e(route('clients.index')); ?>"
                    class="nav-link <?php echo e(request()->routeIs(['clients.index']) ? 'active' : ''); ?>">
                    <i class="ml-3 far fas fa-list nav-icon" style="font-size: 10px"></i>
                    <p>Customers List</p>
                </a>

            </li>
        <?php endif; ?>

        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('deactivated-customer_index')): ?>
            <li class="nav-item">
                <a href="<?php echo e(route('deactivatedClients')); ?>"
                    class="nav-link <?php echo e(request()->routeIs(['deactivatedClients']) ? 'active' : ''); ?>"><i
                        class="ml-3 far fas fa-user-minus nav-icon" style="font-size: 10px"></i>
                    <p>Deactivated Customers</p>

                </a>
            </li>
        <?php endif; ?>

        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('disable-customer')): ?>
            <li class="nav-item">
                <a href="<?php echo e(route('list', 'disable-customer')); ?>"
                    class="nav-link <?php echo e(request()->path() == 'admin/list/disable-customer' ? 'active' : ''); ?>">
                    <i class="ml-3 far fas fa-users-slash nav-icon" style="font-size: 10px"></i>
                    <p>Disable Customers</p>
                </a>
            </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('free-client')): ?>
            <li class="nav-item">
                <a href="<?php echo e(route('freeClient')); ?>"
                    class="nav-link <?php echo e(request()->path() == 'admin/free-client' ? 'active' : ''); ?>">
                    <i class="ml-3 fa-solid fa-person-running nav-icon" style="font-size: 10px"></i>
                    <p>Free Client</p>
                </a>
            </li>
        <?php endif; ?>

        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('deletedUser')): ?>
            <li class="nav-item">
                <a href="<?php echo e(route('deletedCustomer')); ?>"
                    class="nav-link <?php echo e(request()->routeIs(['deletedCustomer']) ? 'active' : ''); ?>"><i
                        class="ml-3 far fas fa-user-slash nav-icon" style="font-size: 10px"></i>
                    <p>Deleted Customers</p>
                </a>

            </li>
        <?php endif; ?>

        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('expire-customer')): ?>
            <li class="nav-item">
                <a href="<?php echo e(route('list', 'expired-Clients')); ?>"
                    class="nav-link <?php echo e(request()->path() == 'admin/list/expired-Clients' ? 'active' : ''); ?>">
                    <i class="ml-3 far fas fa-calendar-minus nav-icon" style="font-size: 10px"></i>
                    <p>Expired Customers</p>
                </a>
            </li>
        <?php endif; ?>

        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('leftclient')): ?>
            <li class="nav-item">
                <a href="<?php echo e(route('leftClient')); ?>"
                    class="nav-link <?php echo e(request()->path() == 'admin/leftClient' ? 'active' : ''); ?>">
                    <i class="ml-3 far fas fa-calendar-minus nav-icon" style="font-size: 10px"></i>
                    <p>Left Clients</p>
                </a>
            </li>
        <?php endif; ?>

        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('line-shift')): ?>
            <li class="nav-item">
                <a href="<?php echo e(route('line-shift.index')); ?>"
                    class="nav-link <?php echo e(request()->routeIs(['line-shift.index']) ? 'active' : ''); ?>">
                    <i class="ml-3 far fas fa-calendar-check nav-icon" style="font-size: 10px"></i>
                    <p>Line Shift</p>
                </a>
            </li>
        <?php endif; ?>

        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('oflineUser')): ?>
            <li class="nav-item">
                <a href="<?php echo e(route('oflineCustomer')); ?>"
                    class="nav-link <?php echo e(request()->routeIs(['oflineCustomer']) ? 'active' : ''); ?>"><i
                        class="ml-3 far fas fa-users-slash nav-icon" style="font-size: 10px"></i>
                    <p>Offline Customers</p>
                </a>

            </li>
        <?php endif; ?>

        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('onlineUser')): ?>
            <li class="nav-item">
                <a href="<?php echo e(route('onlineCustomer')); ?>"
                    class="nav-link  <?php echo e(request()->routeIs(['onlineCustomer']) ? 'active' : ''); ?>"><i
                        class="ml-3 far fas fa-globe nav-icon" style="font-size: 10px"></i>
                    <p>Online Customers</p>
                </a>
            </li>
        <?php endif; ?>

        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('changePackage')): ?>
            <li class="nav-item">
                <a href="<?php echo e(route('packageChange')); ?>"
                    class="nav-link <?php echo e(request()->routeIs(['packageChange']) ? 'active' : ''); ?>"><i
                        class="ml-3 far fas fa-box nav-icon" style="font-size: 10px"></i>
                    <p>Package Change</p>
                </a>
            </li>
        <?php endif; ?>

        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('monthly-paid-customer-list')): ?>
            <li class="nav-item">
                <a href="<?php echo e(route('monthlyPaidCustomer')); ?>"
                    class="nav-link <?php echo e(request()->routeIs(['monthlyPaidCustomer']) ? 'active' : ''); ?>">
                    <i class="ml-3 far fas fa-spinner nav-icon" style="font-size: 10px"></i>
                    <p>Paid Customers</p>
                </a>
            </li>
        <?php endif; ?>

        <li class="nav-item">

            <a href="<?php echo e(route('pendingCustomer')); ?>"
                class="nav-link <?php echo e(request()->routeIs(['pendingCustomer']) ? 'active' : ''); ?>">
                <i class="ml-3 far fas fa-spinner nav-icon" style="font-size: 10px"></i>
                <p>Pending Customers</p>
                <span class="bg-red-600 rounded-full text-white py-0 px-2"><?php echo e(session('pendingCustomer')); ?></span>
            </a>
        </li>

        <?php if(checkSettings('local-user-first-approve') == 'enable'): ?>
            <?php if(auth()->user()->can('local-user-first-approve')): ?>
                <li class="nav-item">
                    <a href="<?php echo e(route('accountsPendingCustomer')); ?>"
                        class="nav-link <?php echo e(request()->routeIs(['accountsPendingCustomer']) ? 'active' : ''); ?>">
                        <i class="ml-3 far fas fa-spinner nav-icon" style="font-size: 10px"></i>
                        <p>Accounts Pending Customers</p>
                        <span
                            class="bg-red-600 rounded-full text-white py-0 px-2"><?php echo e(session('accountsPendingCustomer')); ?></span>
                    </a>
                </li>
            <?php endif; ?>
        <?php endif; ?>

        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('newjoin')): ?>
            <li class="nav-item">
                <a href="<?php echo e(route('list', 'new-join')); ?>"
                    class="nav-link <?php echo e(request()->path() == 'admin/list/new-join' ? 'active' : ''); ?>">
                    <i class="ml-3 far fas fa-folder-open nav-icon" style="font-size: 10px"></i>
                    <p>Recent Customers</p>
                </a>
            </li>
        <?php endif; ?>


        <?php if(globalPermission('onu_information_laser')): ?>
            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('onu_information_laser')): ?>
                <li class="nav-item">
                    <a href="<?php echo e(route('onu-information')); ?>"
                        class="nav-link <?php echo e(request()->path() == 'admin/onu-information' ? 'active' : ''); ?>">
                        <i class="ml-3 fas fa-network-wired nav-icon" style="font-size: 10px"></i>
                        <p>Onu Information</p>
                    </a>
                </li>
            <?php endif; ?>
        <?php endif; ?>
    </ul>
</li>
<?php /**PATH /var/www/html/rbnetwork/radius-circle/resources/views/layout/leftsidebar/customer.blade.php ENDPATH**/ ?>