<nav class="pc-sidebar">
  <div class="navbar-wrapper">
    <div class="m-header">
      <a href="{{ route('dashboard.index') }}" class="b-brand text-primary">
        <!-- ========   Change your logo from here   ============ -->
        <img src="{{ asset('assets/admin/assets/images/logo-dark.svg') }}" class="img-fluid logo-lg" alt="logo" id="logo-admin">
      </a>
    </div>
    <div class="navbar-content">
      <ul class="pc-navbar">
        <li class="pc-item">
          <a href="{{ route('dashboard.index') }}" class="pc-link">
            <span class="pc-micon"><i class="ti ti-dashboard"></i></span>
            <span class="pc-mtext">Dashboard</span>
          </a>
        </li>

        <li class="pc-item pc-caption">
          <label>Data Master</label>
          <i class="ti ti-dashboard"></i>
        </li>
        @if(Auth::user()->role == 'admin')
          <li class="pc-item">
            <a href="{{ route('users.index') }}" class="pc-link">
              <span class="pc-micon"><i class="ti ti-users"></i></span>
              <span class="pc-mtext">Data Pengguna</span>
            </a>
          </li>
        @endif

        @if(Auth::user()->role == 'psikolog')
          <li class="pc-item">
            <a href="{{ route('soal.index') }}" class="pc-link">
              <span class="pc-micon"><i class="ti ti-credit-card"></i></span>
              <span class="pc-mtext">Data Soal</span>
            </a>
          </li>
          <li class="pc-item">
            <a href="{{ route('hasil_tes.index') }}" class="pc-link">
              <span class="pc-micon"><i class="ti ti-chart-pie"></i></span>
              <span class="pc-mtext">Data Hasil Kecemasan</span>
            </a>
          </li>
        @endif
      </ul>
    </div>
  </div>
</nav>