<?php require '../db.php'; ?>
<?php
$adminid = $_SESSION["adminid"];
$adminsor = mysqli_query($db, "SELECT * FROM admin WHERE id = '$adminid'");
$admindetay = mysqli_fetch_array($adminsor);
$adminsay = mysqli_num_rows($adminsor);
if ($adminsay < 1) {
  echo '<script>window.location.href = "index.php";</script>';
}
 ?>
<!DOCTYPE html>
<html lang="tr">
<head>
  <meta charset="utf-8">
  <meta content="width=device-width, initial-scale=1.0" name="viewport">
  <title>Yönetim Paneli</title>
  <meta content="" name="description">
  <meta content="" name="keywords">
  <link href="assets/img/favicon.png" rel="icon">
  <link href="assets/img/apple-touch-icon.png" rel="apple-touch-icon">
  <link href="https://fonts.gstatic.com" rel="preconnect">
  <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i|Nunito:300,300i,400,400i,600,600i,700,700i|Poppins:300,300i,400,400i,500,500i,600,600i,700,700i" rel="stylesheet">
  <link href="assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
  <link href="assets/vendor/bootstrap-icons/bootstrap-icons.css" rel="stylesheet">
  <link href="assets/vendor/boxicons/css/boxicons.min.css" rel="stylesheet">
  <link href="assets/vendor/quill/quill.snow.css" rel="stylesheet">
  <link href="assets/vendor/quill/quill.bubble.css" rel="stylesheet">
  <link href="assets/vendor/remixicon/remixicon.css" rel="stylesheet">
  <link href="assets/vendor/simple-datatables/style.css" rel="stylesheet">
  <link href="assets/css/style.css" rel="stylesheet">
</head>
<body>
  <header id="header" class="header fixed-top d-flex align-items-center">
    <div class="d-flex align-items-center justify-content-between">
      <a href="anasayfa.php" class="logo d-flex align-items-center">
        <span class="d-none d-lg-block">Yönetim Paneli</span>
      </a>
      <i class="bi bi-list toggle-sidebar-btn"></i>
    </div>
    <nav class="header-nav ms-auto">
      <ul class="d-flex align-items-center">

        <li class="nav-item d-block d-lg-none">
          <a class="nav-link nav-icon search-bar-toggle " href="#">
            <i class="bi bi-search"></i>
          </a>
        </li>
        <li class="nav-item dropdown pe-3">

          <a class="nav-link nav-profile d-flex align-items-center pe-0" href="#" data-bs-toggle="dropdown">
            <span class="d-none d-md-block dropdown-toggle ps-2"><?php echo $admindetay["kadi"]; ?></span>
          </a>
          <ul class="dropdown-menu dropdown-menu-end dropdown-menu-arrow profile">
            <li class="dropdown-header">
              <h6><?php echo $admindetay["kadi"]; ?></h6>
              <span>Site Yöneticisi</span>
            </li>
            <li>
              <hr class="dropdown-divider">
            </li>
            <li>
              <hr class="dropdown-divider">
            </li>
            <li>
              <a class="dropdown-item d-flex align-items-center" href="adminprofil.php">
                <i class="bi bi-gear"></i>
                <span>Hesap Ayarları</span>
              </a>
            </li>
            <li>
              <hr class="dropdown-divider">
            </li>
            <li>
              <hr class="dropdown-divider">
            </li>
            <li>
              <a class="dropdown-item d-flex align-items-center" href="cikis.php">
                <i class="bi bi-box-arrow-right"></i>
                <span>Çıkış Yap</span>
              </a>
            </li>
          </ul>
        </li>
      </ul>
    </nav>
  </header>
  <aside id="sidebar" class="sidebar">
    <ul class="sidebar-nav" id="sidebar-nav">
      <li class="nav-item">
        <a class="nav-link " href="anasayfa.php">
          <i class="bi bi-grid"></i>
          <span>Anasayfa</span>
        </a>
      </li>
      <li class="nav-item">
        <a class="nav-link collapsed" href="oislemler.php">
          <i class="bi bi-cash"></i>
          <span>Ödeme İşlemleri</span>
        </a>
      </li>
      <li class="nav-item">
        <a class="nav-link collapsed" href="iletisimayar.php">
          <i class="bi bi-chat-dots"></i>
          <span> İletişim Mesajları </span>
        </a>
      </li>
      <li class="nav-item">
        <a class="nav-link collapsed" href="haftaniny.php">
          <i class="bi bi-person"></i>
          <span> Haftanın Yorumcuları </span>
        </a>
      </li>
      <li class="nav-item">
        <a class="nav-link collapsed" data-bs-target="#forms-nav" data-bs-toggle="collapse" href="#">
          <i class="bi bi-journal-text"></i><span>Üye İşlemleri</span><i class="bi bi-chevron-down ms-auto"></i>
        </a>
        <ul id="forms-nav" class="nav-content collapse " data-bs-parent="#sidebar-nav">
          <li>
            <a href="uliste.php">
              <i class="bi bi-circle"></i><span>Üye Listesi</span>
            </a>
          </li>
          <li>
            <a href="uekle.php">
              <i class="bi bi-circle"></i><span>Üye Ekle</span>
            </a>
          </li>
        </ul>
      </li>
      <li class="nav-item">
        <a class="nav-link collapsed" data-bs-target="#tables-nav" data-bs-toggle="collapse" href="#">
          <i class="bi bi-layout-text-window-reverse"></i><span>Falcı İşlemleri</span><i class="bi bi-chevron-down ms-auto"></i>
        </a>
        <ul id="tables-nav" class="nav-content collapse " data-bs-parent="#sidebar-nav">
          <li>
            <a href="fliste.php">
              <i class="bi bi-circle"></i><span>Falcı Listesi</span>
            </a>
          </li>
          <li>
            <a href="fekle.php">
              <i class="bi bi-circle"></i><span>Falcı Ekle</span>
            </a>
          </li>
          <li>
            <a href="fyorumlar.php">
              <i class="bi bi-circle"></i><span>Falcılara Yapılan Yorumlar</span>
            </a>
          </li>
          <li>
            <a href="obekleyenfalci.php">
              <i class="bi bi-circle"></i><span>Onay Bekleyen Falcılar</span>
            </a>
          </li>
        </ul>
      </li>

      <li class="nav-item">
        <a class="nav-link collapsed" data-bs-target="#paket-nav" data-bs-toggle="collapse" href="#">
          <i class="bi bi-bar-chart"></i><span>Paket İşlemleri</span><i class="bi bi-chevron-down ms-auto"></i>
        </a>
        <ul id="paket-nav" class="nav-content collapse " data-bs-parent="#sidebar-nav">
          <li>
            <a href="paketliste.php">
              <i class="bi bi-circle"></i><span> Paket Listesi </span>
            </a>
          </li>
          <li>
            <a href="paketekle.php">
              <i class="bi bi-circle"></i><span> Paket Ekle  </span>
            </a>
          </li>
        </ul>
      </li>

      <li class="nav-item">
        <a class="nav-link collapsed" data-bs-target="#duyuru-nav" data-bs-toggle="collapse" href="#">
          <i class="bi bi-megaphone"></i><span>Duyuru İşlemleri</span><i class="bi bi-chevron-down ms-auto"></i>
        </a>
        <ul id="duyuru-nav" class="nav-content collapse " data-bs-parent="#sidebar-nav">
          <li>
            <a href="duyurulistesi.php">
              <i class="bi bi-circle"></i><span> Duyuru Listesi </span>
            </a>
          </li>
          <li>
            <a href="duyuruekle.php">
              <i class="bi bi-circle"></i><span> Duyuru Ekle  </span>
            </a>
          </li>
        </ul>
      </li>

      <li class="nav-item">
        <a class="nav-link collapsed" data-bs-target="#charts-nav" data-bs-toggle="collapse" href="#">
          <i class="bi bi-gear"></i><span>Site Ayarları</span><i class="bi bi-chevron-down ms-auto"></i>
        </a>
        <ul id="charts-nav" class="nav-content collapse " data-bs-parent="#sidebar-nav">
          <li>
            <a href="smtpayar.php">
              <i class="bi bi-circle"></i><span>SMTP Ayarları</span>
            </a>
          </li>
          <li>
            <a href="posayar.php">
              <i class="bi bi-circle"></i><span>Sanal Pos Ayarları</span>
            </a>
          </li>
          <li>
            <a href="ayarlar.php">
              <i class="bi bi-circle"></i><span>Genel Ayarlar</span>
            </a>
          </li>
          <li>
            <a href="headerayar.php">
              <i class="bi bi-circle"></i><span>Header Ayarlar</span>
            </a>
          </li>
          <li>
            <a href="sksorular.php">
              <i class="bi bi-circle"></i><span>Sıkca Sorulan Sorular</span>
            </a>
          </li>
        </ul>
      </li>
      <li class="nav-item">
        <a class="nav-link collapsed" href="cron.php">
          <i class="bi bi-check-circle"></i>
          <span>Üye Çark Sıfırlama</span>
        </a>
      </li>
    </ul>
  </aside>
