<?php if(globalPermission('setting')): ?>
    <li class="nav-item <?php echo e(request()->routeIs(['departments*']) ? 'menu-open' : ''); ?>">
        <a href="#" class="nav-link">
            <i class="fas fa-user-tie nav-icon"></i>
            <p>
                Setting
                <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('department-index')): ?>
                <li class="nav-item">

                    <a href="<?php echo e(route('departments.index')); ?>"
                        class="nav-link <?php echo e(request()->routeIs(['departments.index']) ? 'active' : ''); ?>">
                        <i class="ml-3 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                        <p>Departments</p>
                    </a>

                </li>
            <?php endif; ?>



        </ul>

    </li>
<?php endif; ?>

<?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-customer-sales-report', 'marketing-new-customer-report', 'marketingstatus*', 'smartdevice*', 'oltinfo*', 'employees*', 'roles*', 'permissions*', 'global-settings.index', 'company-settings.index', 'payment-method*', 'exportList', 'check-in-redcheck', 'radUserUpdateList', 'accoutningServer*', 'marketing-user*', 'client-summary-report', 'qr.generator', 'tj-box-map.*', 'pons.*']) ? '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 (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('cancel-reasons')): ?>
                <li class="nav-item"><a href="<?php echo e(route('cancel-reasons.index')); ?>"
                        class="nav-link <?php echo e(request()->routeIs(['cancel-reasons.index']) ? 'active' : ''); ?>">
                        <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                        <p>Cancel Reasons</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-status')): ?>
                <li class="nav-item"><a href="<?php echo e(route('marketingstatus.create')); ?>"
                        class="nav-link <?php echo e(request()->routeIs(['marketingstatus.create']) ? 'active' : ''); ?>">
                        <i class="ml-2 far fa-circle nav-icon" style="font-size: 6px !important"></i>
                        <p>Marketing Status</p>
                    </a>
                </li>
            <?php endif; ?>
            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('smart-divice')): ?>
                <li class="nav-item"><a href="<?php echo e(route('smartdevice.create')); ?>"
                        class="nav-link <?php echo e(request()->routeIs(['smartdevice.create']) ? 'active' : ''); ?>">
                        <i class="ml-2 far fa-circle nav-icon" style="font-size: 6px !important"></i>
                        <p>Smart Device</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>
                <li class="nav-item"><a href="<?php echo e(route('marketing-customer-sales-report')); ?>"
                        class="nav-link <?php echo e(request()->routeIs(['marketing-customer-sales-report']) ? 'active' : ''); ?>">
                        <i class="ml-2 far fa-circle nav-icon" style="font-size: 6px !important"></i>
                        <p>KAM Sales Report</p>
                    </a>
                </li>
            <?php endif; ?>

            

            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('client-source')): ?>
                <li class="nav-item"><a href="<?php echo e(route('client-source.index')); ?>"
                        class="nav-link <?php echo e(request()->routeIs(['client-source.*']) ? 'active' : ''); ?>">
                        <i class="ml-2 far fa-circle nav-icon" style="font-size: 6px !important"></i>
                        <p>Client Sources</p>
                    </a>
                </li>
            <?php endif; ?>
            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('add-tj-box-map')): ?>
                <li class="nav-item">
                    <a href="<?php echo e(route('tj-box-map.index')); ?>"
                        class="nav-link <?php echo e(request()->routeIs(['tj-box-map.*']) ? 'active' : ''); ?>">
                        <i class="ml-2 far fa-circle nav-icon" style="font-size: 6px !important"></i>
                        <p>TJ Box</p>
                    </a>
                </li>
            <?php endif; ?>

            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('add-pon-info')): ?>
                <li class="nav-item">
                    <a href="<?php echo e(route('pons.index')); ?>"
                        class="nav-link <?php echo e(request()->routeIs(['pons.*']) ? 'active' : ''); ?>">
                        <i class="ml-2 far fa-circle nav-icon" style="font-size: 6px !important"></i>
                        <p>PON Info</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('permission_index')): ?>
                <li class="nav-item"><a href="<?php echo e(route('permissions.index')); ?>"
                        class="nav-link <?php echo e(request()->routeIs(['permissions.index']) ? 'active' : ''); ?>">
                        <i class="ml-2 far fa-circle nav-icon" style="font-size: 10px"></i>
                        <p>Permissions</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(auth()->user()->id == 1): ?>
                <li class="nav-item"><a href="<?php echo e(route('editLog-history', ['id' => 1, 'type' => 'CompanyInfo'])); ?>"
                        class="nav-link <?php echo e(request()->routeIs(['editLog-history']) ? 'active' : ''); ?>">
                        <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                        <p>Setting History</p>
                    </a>
                </li>
                <li class="nav-item"><a href="<?php echo e(route('qr.generator')); ?>"
                        class="nav-link <?php echo e(request()->routeIs(['qr.generator']) ? 'active' : ''); ?>">
                        <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                        <p>Generate Any QR Code</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('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>
                <?php if(!checkAPI()): ?>
                <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>
                <?php endif; ?>

                <li class="nav-item"><a href="<?php echo e(route('client-info-import.index')); ?>"
                        class="nav-link <?php echo e(request()->routeIs(['client-info-import.index']) ? 'active' : ''); ?>">
                        <i class="ml-2 far fa-circle nav-icon" style="font-size: 6px !important"></i>
                        <p>Client Update Info Import</p>
                    </a>
                </li>
                <?php if(!checkAPI()): ?>
                <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>
                <?php endif; ?>
                <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>
                <?php if(!checkAPI()): ?>
                <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; ?>
                <li class="nav-item"><a href="<?php echo e(route('client-summary-report')); ?>"
                        class="nav-link <?php echo e(request()->routeIs(['client-summary-report']) ? 'active' : ''); ?>">
                        <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                        <p>Client Summary report</p>
                    </a>
                </li>
            <?php endif; ?>

        </ul>
    </li>

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