<aside class="main-sidebar sidebar-dark-primary elevation-4">
  <!-- Brand Logo -->
  <a href="<?=SITE?>" class="brand-link">
    <img src="<?=SITE?>dist/img/AdminLTELogo.png" alt="AdminLTE Logo" class="brand-image img-circle elevation-3"
    style="opacity: .8">
    <span class="brand-text font-weight-light">E-TİCARET PANELİ</span>
  </a>

  <!-- Sidebar -->
  <div class="sidebar">
    <!-- Sidebar user panel (optional) -->
    <div class="user-panel mt-3 pb-3 mb-3 d-flex">
      <div class="image">
        <img src="<?=SITE?>dist/img/user2-160x160.jpg" class="img-circle elevation-2" alt="User Image">
      </div>
      <div class="info">
        <a href="#" class="d-block"><?=$_SESSION["adsoyad"]?></a>
      </div>
    </div>

    <!-- Sidebar Menu -->
    <nav class="mt-2">
      <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
          <!-- Add icons to the links using the .nav-icon class
           with font-awesome or any other icon font library -->
           <li class="nav-item">
            <a href="<?=SITE?>genel-ayarlar" class="nav-link">
              <i class="nav-icon fas fa-desktop"></i>
              <p>
               Genel Ayarlar 
             </p>
           </a>
         </li>
         <li class="nav-item">
          <a href="<?=SITE?>modul-ekle" class="nav-link">
            <i class="nav-icon fas fa-folder-open"></i>
            <p>
              Modül Ekle 
            </p>
          </a>
        </li>
        <li class="nav-item">
          <a href="<?=SITE?>banner-liste" class="nav-link">
            <i class="nav-icon fas fa-images"></i>
            <p>Slider Yönetimi</p>
          </a>
        </li>

        <li class="nav-item">
          <a href="<?=SITE?>kategori-liste" class="nav-link">
            <i class="nav-icon fas fa-tags"></i>
            <p>
              Kategoriler

            </p>
          </a>
        </li>

        <li class="nav-item has-treeview">
          <a href="#" class="nav-link">
            <i class="nav-icon fas fa-shopping-cart"></i>
            <p>
              Ürün Yönetimi
              <i class="right fas fa-angle-left"></i>
            </p>
          </a>
          <ul class="nav nav-treeview">
            <li class="nav-item">
              <a href="<?=SITE?>urun-ekle" class="nav-link">
                <i class="far fa-circle nav-icon"></i>
                <p>Ürün Ekle</p>
              </a>
            </li>
            <li class="nav-item">
              <a href="<?=SITE?>urun-liste" class="nav-link">
                <i class="far fa-circle nav-icon"></i>
                <p>Ürünleri Listele</p>
              </a>
            </li>

          </ul>
        </li> 

        <li class="nav-item">
          <a href="<?=SITE?>siparisler" class="nav-link">
           <i class="nav-icon fas fa-shopping-bag"></i>
           <p>
            Siparişler 
            <?php 
            $yenisiparis=$VT->VeriGetir("siparisler WHERE takipno IS NULL");
            if ($yenisiparis!=false) 
            {
              ?>
              <span class="badge badge-info right"><?=count($yenisiparis)?></span>
              <?php 
            }
            ?>
          </p>
        </a>
      </li>
      <li class="nav-item">
        <a href="<?=SITE?>iade-liste" class="nav-link"> 
         <i class="nav-icon fas fa-people-carry"></i>
         <p>
          İadeler Listesi 
          <?php 
          $yeniiadeler=$VT->VeriGetir("iadeler","WHERE durum=?",array(1));
          if ($yeniiadeler!=false) 
          {
            ?>
            <span class="right badge badge-danger"><?=count($yeniiadeler)?></span>
            <?php 
          }
          ?>
        </p>
      </a>
    </li>

    <li class="nav-item has-treeview">
      <a href="#" class="nav-link">
        <i class="nav-icon fas fa-edit"></i>
        <p>
          Sayfa Yönetimi
          <i class="right fas fa-angle-left"></i>
        </p>
      </a>
      <ul class="nav nav-treeview">
       <?php
       $moduller=$VT->VeriGetir("moduller","WHERE durum=?",array(1),"ORDER BY ID ASC");
       if($moduller!=false)
       {
         for($i=0;$i<count($moduller);$i++)
         {
          ?>
          <li class="nav-item">
            <a href="<?=SITE?>liste/<?=$moduller[$i]["tablo"]?>" class="nav-link">
              <i class="far fa-circle nav-icon"></i>
              <p><?=$moduller[$i]["baslik"]?></p>
            </a>
          </li>
          <?php
        }
      }
      ?> 
    </ul>
  </li>

  <li class="nav-item has-treeview">
    <a href="#" class="nav-link">
      <i class="nav-icon fas fa-users"></i>
      <p>
        Müşteri Yönetimi
        <i class="right fas fa-angle-left"></i>
      </p>
    </a>
    <ul class="nav nav-treeview">
      <li class="nav-item">
        <a href="<?=SITE?>uyeler" class="nav-link">
          <i class="far fa-circle nav-icon"></i>
          <p>Müşteri Listele</p>
        </a>
      </li>
      <li class="nav-item">
        <a href="<?=SITE?>uyeler-ekle" class="nav-link">
          <i class="far fa-circle nav-icon"></i>
          <p>Hesap Oluştur</p>
        </a>
      </li>

    </ul>
  </li>  
  <li class="nav-item">
    <a href="<?=SITE?>yorumlar" class="nav-link"> 
     <i class="nav-icon fas fa-comments"></i>
     <p>
      Yorumlar
      <?php 
      $yorumlar=$VT->VeriGetir("yorumlar","WHERE durum=?",array(2));
      if ($yorumlar!=false) 
      {
        ?>
        <span class="right badge badge-danger"><?=count($yorumlar)?></span>
        <?php 
      }
      ?>
    </p>
  </a>
</li> 
<li class="nav-item">
  <a href="<?=SITE?>iletisim" class="nav-link">
    <i class="nav-icon fas fa-envelope"></i>

    <p>
      İletişim Mesajları
    </p>
  </a>
</li>
<li class="nav-item">
  <a href="<?=SITE?>sanal-pos" class="nav-link">
    <i class="nav-icon fas fa-envelope"></i>

    <p>
      Sanal Pos Modül
    </p>
  </a>
</li>
<li class="nav-item">
  <a href="<?=SITE?>iletisim-ayarlari" class="nav-link">
    <i class="nav-icon fas fa-cog"></i>
    <p>
      İletişim Ayarları
    </p>
  </a>
</li>
<li class="nav-item">
  <a href="<?=SITE?>sosyal-meyda" class="nav-link">
    <i class="nav-icon fas fa-share-alt"></i>
    <p>
      Sosyal Meyda
    </p>
  </a>
</li>
<li class="nav-item">
  <a href="<?=SITE?>yonetici" class="nav-link">
    <i class="nav-icon fas fa-user"></i>
    <p>
      Yönetici Ayarları
    </p>
  </a>
</li>
<li class="nav-item">
  <a href="<?=SITE?>cikis" class="nav-link">
    <i class="nav-icon fas fa-power-off"></i>
    <p>
      Çıkış Yap
    </p>
  </a>
</li>

</ul>
</nav>
<!-- /.sidebar-menu -->
</div>
<!-- /.sidebar -->
</aside>