<!-- Sidebar Menu -->
<aside class="main-sidebar">
    <section class="sidebar">
        <ul id="sidebarnav">
                <li <?php echo classSelectedPath('home'); ?>><a href="<?php echo e(url('home')); ?>" <?php echo classActivePath('home'); ?>><i class="fa fa-tachometer"></i>Dashboard</a> </li>
                <li <?php echo classSelectedPath('tickets'); ?>><a href="<?php echo e(url('tickets')); ?>" <?php echo classActivePath('tickets'); ?>><i class="fa fa-ticket"></i>Active Tickets <span class="badge badge-pill badge-warning
"><?php echo e($activetickets); ?></span></a> </li>
                <li <?php echo classSelectedPath('complete'); ?>><a href="<?php echo e(url('complete')); ?>" <?php echo classActivePath('complete'); ?>><i class="fa fa-folder"></i>Completed Tickets <span class="badge badge-pill badge-warning
"><?php echo e($completetickets); ?></span></a> </li>
                <?php if(Auth::user()): ?>
                    <?php if(str_contains($permission_ids[0]->permission_ids, 2)): ?>
                    <li <?php echo classSelectedPath('categories'); ?>><a href="<?php echo e(url('categories')); ?>" <?php echo classActivePath('categories'); ?>><i class="fa fa-shopping-bag"></i>App's</a></li>
                    <li <?php echo classSelectedPath('suggestions'); ?>><a href="<?php echo e(url('suggestions')); ?>"  classActivePath('suggestions') !!}><i class="fa fa-list-ol"></i>Suggestions</a></li>
                    <li <?php echo classSelectedPath('suggestiontrackings'); ?>><a href="<?php echo e(url('suggestiontrackings')); ?>" classActivePath('suggestiontrackings') !!}><i class="fa fa-list-ul"></i>Suggestions Tracking</a></li>
                    <li <?php echo classSelectedPath('priorities'); ?>><a href="<?php echo e(url('priorities')); ?>" <?php echo classActivePath('priorities'); ?>><i class="fa fa-sliders"></i>Priorities</a></li>
                    <li <?php echo classSelectedPath('subcategories'); ?>><a href="<?php echo e(url('subcategories')); ?>" <?php echo classActivePath('subcategories'); ?>><i class="fa fa-sitemap"></i>Categories</a></li>
                    <li <?php echo classSelectedPath('statuses'); ?>><a href="<?php echo e(url('statuses')); ?>" <?php echo classActivePath('statuses'); ?>><i class="fa fa-tasks"></i>Status</a></li>
                    <li <?php echo classSelectedPath('canned-response'); ?>><a href="<?php echo e(url('canned-response')); ?>" <?php echo classActivePath('canned-response'); ?>><i class="fa fa-reply-all"></i>Canned response</a></li>
                    <li <?php echo classSelectedPath('ticket-email-templates'); ?>><a href="<?php echo e(url('ticket-email-templates')); ?>" <?php echo classActivePath('ticket-email-templates'); ?>><i class="fa fa-envelope"></i>Email Templates</a></li>
                    <li <?php echo classSelectedPath('roles'); ?>><a href="<?php echo e(url('roles')); ?>" <?php echo classActivePath('roles'); ?>><i class="fa fa-users"></i>Roles</a></li>
                    <li <?php echo classSelectedPath('configuration'); ?>><a href="<?php echo e(url('configuration')); ?>" <?php echo classActivePath('configuration'); ?>><i class="fa fa-wrench"></i>Settings</a></li>
                    <?php endif; ?>
                <?php endif; ?>
                <?php if(str_contains($permission_ids[0]->permission_ids, 1)): ?>
                <li <?php echo classSelectedPath('users'); ?>><a href="<?php echo e(url('users')); ?>" <?php echo classActivePath('users'); ?>><i class="fa fa-user"></i>Users</a></li>
                <?php endif; ?>
        </ul>
    </section>
    <!--<div class="plan-icon">
        <a href="plan.html" class="plan-btn">
            <img src="images/plan.svg" alt="">
        </a>
    </div>-->
</aside>
<!-- End Sidebar Menu -->
