<?php
$uyeid = $_SESSION["uyeid"];
$uyesor = mysqli_query($db, "SELECT * FROM uyeler WHERE id = '$uyeid'");
$uyedetay = mysqli_fetch_array($uyesor);
$uyesay = mysqli_num_rows($uyesor);
if ($uyesay < 1) {
  echo '<script>window.location.href = "giris.php";</script>';
}
 ?>
<div data-aos="fade-right" data-aos-delay="100">
<div class="card" style="background: rgba(1, 4, 136, 0.9); border-radius: 2px; color: #fff;">
  <div class="card-body" style="text-align: center;">
    <?php echo $uyedetay["uye_kredi"]; ?> <br />Kredi<br>
  </div>
</div><br />

<center><a href="paketler.php"><button style="background: rgba(1, 4, 136, 0.9); color: white;" type="button" class="btn btn-light"><i class="bi bi-cash-coin"></i> Kredi Satın Al</button></a></center>
<br /><br />
<div class="card" style="text-align: left;">
  <ul class="list-group list-group-flush">
    <li id="butonlar" class="list-group-item"><a class="yazi" href="panel.php"><i class="bi bi-app-indicator"></i> Kullanıcı Paneli </a></li>
    <li id="butonlar" class="list-group-item"><a class="yazi" href="yorumcular.php"><i class="bi bi-app-indicator"></i> Fal Baktır </a></li>
    <li id="butonlar" class="list-group-item"><a class="yazi" href="bekleyenfallar.php"><i class="bi bi-app-indicator"></i> Bekleyen Fallarım </a></li>
    <li id="butonlar" class="list-group-item"><a class="yazi" href="bakilanfallar.php"><i class="bi bi-app-indicator"></i> Bakılan Fallarım </a></li>
    <li id="butonlar" class="list-group-item"><a class="yazi" href="kredii.php"><i class="bi bi-app-indicator"></i> Kredi İşlemleri </a></li>
    <li id="butonlar" class="list-group-item" style="background: rgba(1, 4, 136, 0.9);"><a style="color: #fff;" href="profil.php"><i class="bi bi-person-check-fill"></i> Bilgilerini Güncelle</a></li>
  </ul>
</div>
</div>
<style>
.yazi{
  color: rgba(1, 4, 136, 0.9);
  text-decoration:none
}
#butonlar{
  transition: all 0.3s;
}
#butonlar:hover {
  background: rgba(1, 4, 136, 0.9);
  }
  #butonlar:hover a {
  color: #FFF !important;
  text-decoration: none;
  transition: all 0.3s;
  }
</style>
