<!-- 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><span>Dashboard</span></a></li>
                <li <?php echo classSelectedPath('tickets'); ?>><a href="<?php echo e(url('tickets')); ?>" <?php echo classActivePath('tickets'); ?>><i class="fa fa-ticket"></i><span>Active Tickets</span> <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><span>Completed Tickets</span> <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><span>App's</span></a></li>
                    <li <?php echo classSelectedPath('suggestions'); ?>><a href="<?php echo e(url('suggestions')); ?>"  classActivePath('suggestions') !!}><i class="fa fa-list-ol"></i><span>Suggestions</span></a></li>
                    <li <?php echo classSelectedPath('suggestiontrackings'); ?>><a href="<?php echo e(url('suggestiontrackings')); ?>" classActivePath('suggestiontrackings') !!}><i class="fa fa-list-ul"></i><span>Suggestions Tracking</span></a></li>
                    <li <?php echo classSelectedPath('priorities'); ?>><a href="<?php echo e(url('priorities')); ?>" <?php echo classActivePath('priorities'); ?>><i class="fa fa-sliders"></i><span>Priorities</span></a></li>
                    <li <?php echo classSelectedPath('subcategories'); ?>><a href="<?php echo e(url('subcategories')); ?>" <?php echo classActivePath('subcategories'); ?>><i class="fa fa-sitemap"></i><span>Categories</span></a></li>
                    <li <?php echo classSelectedPath('statuses'); ?>><a href="<?php echo e(url('statuses')); ?>" <?php echo classActivePath('statuses'); ?>><i class="fa fa-tasks"></i><span>Status</span></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><span>Canned response</span></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><span>Email Templates</span></a></li>
                    <li <?php echo classSelectedPath('blockemails'); ?>><a href="<?php echo e(url('blockemails')); ?>" <?php echo classActivePath('blockemails'); ?>><i class="fa fa-envelope-open"></i><span>Block Emails</span></a></li>
                    <li <?php echo classSelectedPath('roles'); ?>><a href="<?php echo e(url('roles')); ?>" <?php echo classActivePath('roles'); ?>><i class="fa fa-users"></i><span>Roles</span></a></li>
                    <li <?php echo classSelectedPath('configuration'); ?>><a href="<?php echo e(url('configuration')); ?>" <?php echo classActivePath('configuration'); ?>><i class="fa fa-wrench"></i><span>Settings</span></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><span>Users</span></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 -->
