<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['user-registration', 'user_index', 'employee_index', 'employee_create', 'role_index', 'role_create',
    'customer-export'])): ?>
    <li
        class="nav-item  <?php echo e(request()->routeIs(['user*','marketing-new-customer-report', 'oltinfo*','employees*', 'roles*', 'permissions*', 'global-settings.index', 'company-settings.index', 'payment-method*', 'exportList', 'check-in-redcheck', 'radUserUpdateList','accoutningServer*','marketing-user*']) ? 'menu-open' : ''); ?>">
        <a href="#" class="nav-link">
            <i class="fas fa-user-cog nav-icon"></i>
            <p>
                Admin
                <i class="fas fa-angle-left right"></i>
            </p>
        </a>
        <ul class="nav nav-treeview ml-2">

            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('employee_create')): ?>
                <li class="nav-item"><a href="<?php echo e(route('employees.create')); ?>"
                        class="nav-link <?php echo e(request()->routeIs(['employees.create']) ? 'active' : ''); ?>">
                        <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                        <p>Add Employee</p>
                    </a>
                </li>
            <?php endif; ?>

            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('role_create')): ?>
                <li class="nav-item"><a href="<?php echo e(route('roles.create')); ?>"
                        class="nav-link <?php echo e(request()->routeIs(['roles.create']) ? 'active' : ''); ?>">
                        <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                        <p>Add Role</p>
                    </a></li>
            <?php endif; ?>

            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('user-registration')): ?>
                <li class="nav-item"><a href="<?php echo e(route('user.create')); ?>"
                        class="nav-link <?php echo e(request()->routeIs(['user.create']) ? 'active' : ''); ?>">
                        <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                        <p>Add User</p>
                    </a></li>
            <?php endif; ?>

            <?php if(checkSettings('deactive_all_expire_customer') == 'enable'): ?>
                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('deactive_all_expire_customer')): ?>
                    <li class="nav-item">
                        <a onclick="return confirm('Are you sure?')" href="<?php echo e(url('admin/deactive-all-expired-customer')); ?>"
                            class="nav-link">
                            <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                            <p>Deactive All Expire customer</p>
                        </a>
                    </li>
                <?php endif; ?>
            <?php endif; ?>



            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('employee_index')): ?>
                <li class="nav-item"><a href="<?php echo e(route('employees.index')); ?>"
                        class="nav-link <?php echo e(request()->routeIs(['employees.index']) ? 'active' : ''); ?>">
                        <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                        <p>Employees</p>
                    </a></li>
            <?php endif; ?>

            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('customer-export')): ?>
                <li class="nav-item"><a href="<?php echo e(route('exportList')); ?>"
                        class="nav-link <?php echo e(request()->routeIs(['exportList']) ? 'active' : ''); ?>">
                        <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                        <p>File Export</p>
                    </a>
                </li>
            <?php endif; ?>


            <li class="nav-item"><a href="<?php echo e(route('location.index')); ?>"
                    class="nav-link <?php echo e(request()->routeIs(['location.index']) ? 'active' : ''); ?>">
                    <i class="ml-2 far fa-circle nav-icon" style="font-size: 6px !important"></i>
                    <p>Location</p>
                </a>
            </li>
            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('add-marketer')): ?>
                <li class="nav-item"><a href="<?php echo e(route('marketing-user.index')); ?>"
                        class="nav-link <?php echo e(request()->routeIs(['marketing-user.index']) ? 'active' : ''); ?>">
                        <i class="ml-2 far fa-circle nav-icon" style="font-size: 6px !important"></i>
                        <p>Marketing Users</p>
                    </a>
                </li>
            <?php endif; ?>

            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('marketing-new-customer-report')): ?>
                <li class="nav-item"><a href="<?php echo e(route('marketing-new-customer-report')); ?>"
                        class="nav-link <?php echo e(request()->routeIs(['marketing-new-customer-report']) ? 'active' : ''); ?>">
                        <i class="ml-2 far fa-circle nav-icon" style="font-size: 6px !important"></i>
                        <p>KAM Report</p>
                    </a>
                </li>
            <?php endif; ?>

            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('payment-method')): ?>
                <li class="nav-item"><a href="<?php echo e(route('payment-method.index')); ?>"
                        class="nav-link <?php echo e(request()->routeIs(['payment-method.index']) ? 'active' : ''); ?>">
                        <i class="ml-2 far fa-circle nav-icon" style="font-size: 6px !important"></i>
                        <p>Payment Method</p>
                    </a>
                </li>
            <?php endif; ?>



            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('role_index')): ?>
                <li class="nav-item"><a href="<?php echo e(route('roles.index')); ?>"
                        class="nav-link <?php echo e(request()->routeIs(['roles.index']) ? 'active' : ''); ?>">
                        <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                        <p>Roles</p>
                    </a></li>
            <?php endif; ?>
            

            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('company-info')): ?>
                <li class="nav-item"><a href="<?php echo e(route('company-settings.index')); ?>"
                        class="nav-link <?php echo e(request()->routeIs(['company-settings.index']) ? 'active' : ''); ?>">
                        <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                        <p> Settings</p>
                    </a>
                </li>
            <?php endif; ?>

            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('sms_config')): ?>
                <li class="nav-item"><a href="<?php echo e(route('sms.index')); ?>" class="nav-link">
                        <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                        <p>SMS</p>
                    </a></li>
            <?php endif; ?>

            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('user_index')): ?>
                <li class="nav-item"><a href="<?php echo e(route('user.index')); ?>"
                        class="nav-link <?php echo e(request()->routeIs(['user.index']) ? 'active' : ''); ?>">
                        <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                        <p>Users</p>
                    </a></li>
            <?php endif; ?>




            <?php if(auth()->user()->id == 1): ?>
                <li class="nav-item"><a href="<?php echo e(route('oltinfo.index')); ?>"
                        class="nav-link <?php echo e(request()->routeIs(['oltinfo.index']) ? 'active' : ''); ?>">
                        <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                        <p>Olt Info</p>
                    </a>
                </li>
            <?php endif; ?>

            <?php if(auth()->user()->id == 1): ?>
                <li class="nav-item"><a href="<?php echo e(route('generateMonthlyBill')); ?>"
                        class="nav-link <?php echo e(request()->routeIs(['generateMonthlyBill']) ? 'active' : ''); ?>">
                        <i class="ml-2 far fa-circle nav-icon" style="font-size: 6px !important"></i>
                        <p>Generate Monthly Bill</p>
                    </a>
                </li>
                <li class="nav-item"><a href="<?php echo e(route('global-settings.index')); ?>"
                        class="nav-link <?php echo e(request()->routeIs(['global-settings.index']) ? 'active' : ''); ?>">
                        <i class="ml-2 fa fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                        <p>Global Settings</p>
                    </a>
                </li>
                <li class="nav-item"><a href="<?php echo e(route('optimizeClear')); ?>"
                        class="nav-link <?php echo e(request()->routeIs(['optimizeClear']) ? 'active' : ''); ?>">
                        <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                        <p>Optimize Clear</p>
                    </a>
                <li class="nav-item"><a href="<?php echo e(route('optimize')); ?>"
                        class="nav-link <?php echo e(request()->routeIs(['optimize']) ? 'active' : ''); ?>">
                        <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                        <p>Optimize</p>
                    </a>
                </li>
                <li class="nav-item"><a href="<?php echo e(route('payBiilLog.index')); ?>"
                        class="nav-link <?php echo e(request()->routeIs(['payBiilLog.index']) ? 'active' : ''); ?>">
                        <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                        <p>Pay Bill Log</p>
                    </a>
                </li>

                <li class="nav-item"><a href="<?php echo e(route('check-in-redcheck')); ?>"
                    class="nav-link <?php echo e(request()->routeIs(['check-in-redcheck']) ? 'active' : ''); ?>">
                    <i class="ml-2 far fa-circle nav-icon" style="font-size: 6px !important"></i>
                    <p>Radcheck user</p>
                </a>
            </li>
            <li class="nav-item">
                <a href="<?php echo e(route('radUserUpdateList')); ?>"
                    class="nav-link <?php echo e(request()->routeIs(['radUserUpdateList']) ? 'active' : ''); ?>">
                    <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                    <p>Radius User Update</p>
                </a>
            </li>
            <li class="nav-item">
                <a href="<?php echo e(route('delete-client-manager-all-info')); ?>"
                    class="nav-link <?php echo e(request()->routeIs(['delete-client-manager-all-info']) ? 'active' : ''); ?>">
                    <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                    <p>Delete all by Manager Id</p>
                </a>
            </li>
            <li class="nav-item"><a href="<?php echo e(route('accoutningServer.index')); ?>"
                class="nav-link <?php echo e(request()->routeIs(['accoutningServer']) ? 'active' : ''); ?>">
                <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                <p>Accounting Servers</p>
                </a>
            </li>
            <?php endif; ?>

        </ul>
    </li>

<?php endif; ?>
<?php /**PATH /var/www/html/satkania/radius-circle/resources/views/layout/leftsidebar/admin.blade.php ENDPATH**/ ?>