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