<?php
ob_start();
session_start();
date_default_timezone_set("Asia/Jakarta");
include('config/koneksi.php');
$sid = session_id();
$sql_0 = mysqli_query($conn,"SELECT * FROM `tb_seo` WHERE cuid = 1") or die(mysqli_error());
$s0 = mysqli_fetch_array($sql_0);
$urlweb = $s0['urlweb'];
$urlwebs = $s0['urlweb'];
$pengguna = $s0['user'];
$sql_1a = mysqli_query($conn,"SELECT * FROM `tb_social` WHERE user = '$pengguna'") or die(mysqli_error());
$s1a = mysqli_fetch_array($sql_1a);
$sql_1b = mysqli_query($conn,"SELECT * FROM `tb_user` WHERE user = '$pengguna'") or die(mysqli_error());
$s1b = mysqli_fetch_array($sql_1b);
$ip = $_SERVER['REMOTE_ADDR'];
$date = date('Y-m-d');
$stat = mysqli_query($conn,"INSERT INTO `tb_stat` (`ip`, `date`, `hits`, `page`, `user`) VALUES ('$ip', '$date', 1, 'Beranda', '$pengguna')") or die (mysqli_error());


?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title><?php echo $s0['instansi']; ?></title>
    <!-- Default -->
    <meta name="description" content="cuan4d merupakan daftar situs 4d slot gacor terbaru 2023 terpercaya di Indonesia dengan server situs4d slot gacor resmi terbaik deposit dana mudah menang.">
    <meta name="keywords" content="cuan4d, 4D Slot, 4D Slot Login, Situs 4D, Situs4D, Slot Gacor">
    <link href="upload/favicon.png" rel="shortcut icon" type="image/x-icon" />
    <link rel="canonical" href="https://cuan4d.click/">
    <meta name="robots" content="index,follow">
    <meta name="language" content="Indonesia">
    <meta name="author" content="<?php echo $urlweb; ?>">
    <meta name="googlebot" content="index,follow" />
    <meta content="1 days" name="revisit-after">
    <meta content="general" name="rating">
    <meta content="id" name="geo.country">
    <meta content="Indonesia" name="geo.placename">

    <!-- Meta OG -->
    <meta property="og:title" content="<?php echo $s0['instansi']; ?>">
    <meta property="og:description" content="cuan4d merupakan daftar situs 4d slot gacor terbaru 2023 terpercaya di Indonesia dengan server situs4d slot gacor resmi terbaik deposit dana mudah menang.">
    <meta property="og:type" content="website">
    <meta property="og:site_name" content="cuan4d">
    <meta property="og:locale" content="id_ID">

    <!-- Geo Settings -->
    <meta name="geo.country" content="ID" />
    <meta name="geo.region" content="ID">
    <meta name="geo.placename" content="Indonesia" />
    <meta name="language" content="ID" />
    <meta name="tgn.nation" content="Indonesia" />

    <!-- Additional Settings -->
    <meta name="author" content="<?php echo $urlweb; ?>" />
    <meta name="categories" content="website">
    <meta name="copyright" content="<?php echo $urlweb; ?>" />
    <meta name="distribution" content="global" />
    <meta name="publisher" content="cuan4d" />
    <meta name="rating" content="general" />
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@splidejs/splide@latest/dist/css/splide.min.css">

    <!-- GOOGLE SITE VERIFICATION -->
    <meta name="google-site-verification" content="T_AHuKal7bfZxxZHNZ1K2_7PjJp7I1MBvq8P4C2Dt7E" />
    <meta name="google-site-verification" content="1EKYC7CpkGmXSu2auOTePKg8vLDc2jjaBf_Fy95Pr6o" />

    <!-- Script Schemas -->


    <div style="position: fixed; bottom: 100px; left: 5px; z-index: 10; opacity: 0.98;">
        <a href="rtp.html" target="_blank" rel="noopener"><img src="images/rtp.gif" alt="rtp slot hari ini" title="Rtp Slot Hari Ini" width="100" height="100"></a>
    </div>
    <meta name="viewport" content="width=device-width, initial-scale=0.8">

    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.3/font/bootstrap-icons.css">
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>

    <!--<link rel="stylesheet" href="/css/template/GM.css">-->
    <link rel="stylesheet" href="assets/home/GM.css">

    <link rel="stylesheet" href="assets/home/variable.css">

    <link rel="stylesheet" href="assets/home/dark.css">

    <link rel="stylesheet" href="assets/home/style.css">
    <link rel="icon" type="upload/favicon.png">


    <script src="assets/home/jquery-3.6.4.min.js"></script>
    <style>
    html,
    body {
        background: var(--primary-background);
        height: 100%;
    }

    main {
        padding: 24px;
        border-top: 3px solid var(--primary-color);
    }

    .list {
        display: flex;
        flex-direction: column;
        gap: 24px;
        padding-top: 16px;
        padding-bottom: 80px;

    }
</style>

</head>

<body>
    <style>
        .my-navbar {
            height: 52px;
            padding: 0px;
            width: 100%;
            background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.6) 100%), var(--primary-color);
            position: fixed;
            bottom: 0;
            color: white;
            z-index: 1100;
            display: flex;
            box-shadow: 0px -4px 3px rgba(0, 0, 0, 0.75);
        }

        .navbar-item {
            height: 100%;
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .navbar-item-content {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            position: absolute;
            top: -16px
        }

        .navbar-item-content>i {
            font-size: 20px;
            line-height: 22px;
            color: white;
            padding-bottom: 4px;
        }

        .navbar-item-content>img {
            height: 36px;
            width: 36px;
        }

        .navbar-item-content>label {
            white-space: nowrap;
            margin-top: 4px;
            font-weight: bold;
            font-size: var(--text-size-default);
            color: white
        }
    </style>


   
<?php include('footerindex.php'); ?>

    <div class="mobile-only" style="position: relative; background: var(--primary-background);">
        <div class="appbar">
            <a href="/" style="width: auto"><img class="logoimg" src="<?php echo $urlweb; ?>/upload/favicon.png" alt=""></a>
        </div>
    </div>
    <main style="">

        <div class="bg-custom pt-5 pb-5">
      <div class="container">
        <h5>Event</h5>
        <p>&nbsp;</p>
        <div class="accordion" id="accordionExample">
          <?php
            $sql_promo = mysqli_query($conn,"SELECT * FROM `tb_event` ORDER BY cuid DESC") or die(mysqli_error());
            $no=0;
            while($sp = mysqli_fetch_array($sql_promo)){
              $no++;
          ?>
          <div class="card mb-4 p-0">
            <div class="card-header p-0" id="headingOne<?php echo $no; ?>">
              <img src="<?php echo $urlweb; ?>/upload/<?php echo $sp['image']; ?>" class="img-fluid" alt="...">
              <div class="p-2">
                <div class="row">
                  <div class="col-sm-8">
                    <h5 class="mt-2"><?php echo $sp['title']; ?></h5>
                  </div>
                  <div class="col-sm-4">
                    <button class="btn btn-warning btn-block" type="button" data-toggle="collapse" data-target="#collapseOne<?php echo $no; ?>" aria-expanded="true" aria-controls="collapseOne">
                      Klik Info Lebih Lanjut
                    </button>
                  </div>
                </div>
                </div>
            </div>

            <div id="collapseOne<?php echo $no; ?>" class="collapse" aria-labelledby="headingOne<?php echo $no; ?>" data-parent="#accordionExample">
              <div class="card-body">
                <small><?php echo $sp['content']; ?></small >
              </div>
            </div>
          </div>
          <?php } ?>
        </div>
      </div>
    </div>
    




    </main>

    <div class="bg-custom" style="height: 100px;"></div>
    <!--Start Back To Top Button-->
    <a href="javaScript:void();" class="back-to-top"><i class="fa fa-angle-double-up"></i> </a>


    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js" integrity="sha384-w76AqPfDkMBDXo30jS1Sgez6pr3x5MlQ1ZAGC+nuZB+EYdgRZgiwxhTBTkF7CXvN" crossorigin="anonymous"></script>
</body>

</html>