<div class="admin-sidebar">
    <h5 style="text-align: center;"><b>ADMIN</b></h5>
    <ul>
        @if ($myUser->isManager(true) || $myUser->isDeveloper())
            <li {!! Request::is('admin') ? 'class="selected"' : '' !!}><a href="/admin"><i class="material-icons">home</i><span>Home</span></a></li>
        @endif
        @if($myUser->isAdmin())
            <li {!! Request::is('admin/users') ? 'class="selected"' : '' !!}><a href="/admin/users"><i class="material-icons">perm_identity</i><span>Users</span></a></li>
            <li {!! Request::is('admin/blacklist') ? 'class="selected"' : '' !!}><a href="/admin/blacklist"><i class="material-icons">block</i><span>Blacklist</span>@if(isset($blacklistCount) && $blacklistCount)<p id="admin_notif" class="admin-notif-count">{{ $blacklistCount }}</p>@endif</a></li>
        @endif
        @if ($myUser->isManager(true) || $myUser->isDeveloper())
            <li {!! Request::is('admin/spam-system') ? 'class="selected"' : '' !!}><a href="/admin/spam-system"><i class="material-icons">toggle_on</i><span>Spam System</span></a></li>
        @endif

        <li {!! Request::is('admin/edits') ? 'class="selected"' : '' !!}><a href="/admin/edits"><i class="material-icons">edit</i><span>Edits</span>@if(isset($editsCount) && $editsCount)<p id="admin_notif" class="admin-notif-count">{{ $editsCount }}</p>@endif</a></li>
        <li {!! Request::is('admin/flags') ? 'class="selected"' : '' !!}><a href="/admin/flags"><i class="material-icons">flag</i><span>Flags</span>@if(isset($flagsCount) && $flagsCount)<p id="admin_notif" class="admin-notif-count">{{ $flagsCount }}</p>@endif</a></li>
        
        <li><a href="#" id="logs-button"><i class="material-icons">notes</i><span>Logs</span></a></li>
        <div class="logs-dropdown" {!! !Request::is('admin/logs/*') ? 'style="display: none;"' : '' !!}>
            <li class="dropdown-li{{ Request::is('admin/logs/flags') ? ' selected' : '' }}"><a href="/admin/logs/flags"><i class="material-icons">flag</i><span>Flag Logs</span></a></li>
        {{-- Managers were complaining about not being able to see the following in the sidebar --}}
            @if($myUser->isManager(true))
            <li class="dropdown-li{{ Request::is('admin/logs/orders') ? ' selected' : '' }}"><a href="/admin/logs/orders"><i class="material-icons">receipt</i><span class="list-page">Order Logs</span></a></li>
            <li class="dropdown-li{{ Request::is('admin/logs/usernames') ? ' selected' : '' }}"><a href="/admin/logs/usernames"><i class="material-icons">receipt</i><span class="list-page">Username Logs</span></a></li>
            <li class="dropdown-li{{ Request::is('admin/logs/staff') ? ' selected' : '' }}"><a href="/admin/logs/staff"><i class="material-icons">shield</i><span class="list-page">Staff Logs</span></a></li>
            <li class="dropdown-li{{ Request::is('admin/logs/errors') ? ' selected' : '' }}"><a href="/admin/logs/errors"><i class="material-icons">error</i><span class="list-page">Error Logs</span></a></li>
			<li class="dropdown-li{{ Request::is('admin/logs/hiddenlogs') ? ' selected' : '' }}"><a href="/admin/logs/hiddenlogs"><i class="material-icons">settings</i><span class="list-page">Hidden Logs</span></a></li>
        @endif
        </div>
    </ul>
</div>