<?php
ob_start();
session_start();
error_reporting(0);
date_default_timezone_set('Asia/Jakarta');

$id_login = $_SESSION['id'];
$extplayer = $_SESSION['extplayer'];
include '../function/connect.php';

$query1 = mysqli_query($koneksi, "SELECT active FROM tb_saldo WHERE id_user = '$extplayer' ");
$liat = mysqli_fetch_array($query1);

$query2 = mysqli_query($koneksi, "SELECT * FROM tb_user WHERE id = '$id_login' ");
$punya_user = mysqli_fetch_array($query2);

$query3 = mysqli_query($koneksi, "SELECT * FROM tb_bank WHERE id_user = '$extplayer' ");
$bank_user = mysqli_fetch_array($query3);

$query3 = mysqli_query($koneksi, "SELECT * FROM tb_bank WHERE id_user = '$extplayer' ");
$b = mysqli_fetch_array($query3);

$query1010 = mysqli_query($koneksi, "SELECT * FROM tb_contact");
$ssa = mysqli_fetch_array($query1010);

$whatsapp = $ssa['no_whatsapp'];
$id_livechat = $ssa['id_livechat'];

$cuk = mysqli_query($koneksi, "SELECT * FROM tb_web");
$cek_web = mysqli_fetch_array($cuk);
$urlweb = $cek_web['url'];
$logo = $cek_web['logo'];
$warna = $cek_web['warna'];
$min_depo = $cek_web['min_depo'];
$min_wd = $cek_web['min_wd'];
$icon = $cek_web['icon_web'];
$title = $cek_web['title'];
$deskripsi = $cek_web['deskripsi'];
$keyword = $cek_web['keyword'];

$pisah = explode('|', $title);
$judul = trim($pisah[0]);

if ($punya_user['status'] == "Suspend") {
  session_start();
  session_destroy();
  header("Location:index.php?pesan=29");
}



?>
<!DOCTYPE html>
<html lang=id data-browser=chrome>
<head>
    <meta charset=utf-8>
    <meta name=viewport content="width=device-width, initial-scale=0.30, maximum-scale=1.0, user-scalable=0">
    <title><?php echo $title; ?></title>

    <meta name="description" content="<?php echo $deskripsi ?>">
    <meta name="keywords" content="<?php echo $keyword ?>">
    <meta property="og:description" content="<?php echo $deskripsi ?>" />
    <meta property="og:type" content="website" />
    <meta property="og:url" content="<?php echo $urlweb ?>">
    <meta property="og:image" content="<?php echo $urlweb ?>/assets/img/<?php echo $logo ?>">
    <meta name="robots" content="index, follow">
    <meta name="author" content="<?php echo $urlweb ?>">
    <meta content=id-ID property=og:locale>
    <meta content=website property=og:type>
    <!-- End Canonical -->
    <meta name="description" itemprop="description" content="<?php echo $deskripsi ?>" />
    <meta name="keywords" content="<?php echo $keyword ?>" />

    <meta content='$urlweb' property=og:url>
    <meta content=sirmenang property=og:site_name>
    <meta content=Red name=theme-color>
    <meta content=id-ID name=language>
    <meta content=ID name=geo.region>
    <meta content=Indonesia name=geo.placename>
    <meta content=website name=categories>
    <link rel=preload href=fonts/digital_sans_ef_medium.woff2 as=font type=font/woff2 crossorigin>
    <link rel=preload href=fonts/advanced_dot_digital7.woff2 as=font type=font/woff2 crossorigin>
    <link href=https://sirmenanghoki.xyz rel=canonical>
    <link href="../assets/img/<?php echo $logo ?>" rel="shortcut icon" type=image/x-icon>
    <link href="Content/dekstop.css" rel="stylesheet" type="text/css">
    <link href="Content/Home/dekstop.css" rel="stylesheet" type="text/css">
    <link href="Content/Theme/dekstop.css" rel="stylesheet" type="text/css">
    <link href="Content/Slots/dekstop.css" rel="stylesheet" type="text/css">
    <link href="Content/Profile/profil.css" rel="stylesheet" type="text/css">
    <link href="Content/deposit/deposit.css" rel="stylesheet" type="text/css">
    <link href="Content/withdraw/withdraw.css" rel="stylesheet" type="text/css">
    <link href="Content/Promosi/dekstop.css" rel="stylesheet" type="text/css">
    <link href="Content/Refferal/dekstop.css" rel="stylesheet" type="text/css">
<link rel='stylesheet' href='https://cdn.jsdelivr.net/npm/sweetalert2@7.12.15/dist/sweetalert2.min.css'>
    <link href="Content/input.css" rel="stylesheet" type="text/css">
    <script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
    <style>
        .swal2-popup {
        font-size: 17px;
        }
        .rtpslot {
            position: fixed;
            bottom: 190px;
            left: 13px;
            z-index: 50
        }

        .spinWhl {
            position: fixed;
            bottom: 130px;
            left: 14px;
            z-index: 100
        }

        .WaBtn {
            position: fixed;
            bottom: 70px;
            left: 14px;
            z-index: 100
        }

        .LCBtn {
            display: none
        }

        @media (max-width: 480px) {
            .LCBtn {
                position:fixed;
                bottom: 65px;
                right: 14px;
                z-index: 9;
                display: block
            }
        }
    </style>
    <a href="<?php echo $urlweb; ?>/assets/img/qrisss.jpeg" target=_blank rel="noopener noreferrer">
        <img src="<?php echo $urlweb; ?>/assets/img/XP46ElF.gif" style="width: 50px; margin-bottom:50px" class=spinWhl alt="QRIS Deposit" loading=lazy>
    </a>
    <a href="../rtp.php" target=_blank rel="noopener noreferrer">
        <img src="<?php echo $urlweb; ?>/assets/img/rtpslot.gif" style="width: 50px" class=spinWhl alt="RTP Slot" loading=lazy>
    </a>
    <a href="https://api.whatsapp.com/send?phone=<?php echo $whatsapp ?>" target=_blank>
        <img src="<?php echo $urlweb; ?>/assets/img/img/wa.gif" style="width: 50px" class=WaBtn alt=Whatsapp loading=lazy>
    </a>

    <script>
        !function(f, b, e, v, n, t, s) {
            if (f.fbq)
                return;
            n = f.fbq = function() {
                n.callMethod ? n.callMethod.apply(n, arguments) : n.queue.push(arguments)
            }
            ;
            if (!f._fbq)
                f._fbq = n;
            n.push = n;
            n.loaded = !0;
            n.version = '2.0';
            n.queue = [];
            t = b.createElement(e);
            t.async = !0;
            t.src = v;
            s = b.getElementsByTagName(e)[0];
            s.parentNode.insertBefore(t, s)
        }(window, document, 'script', 'https://connect.facebook.net/en_US/fbevents.js');
        fbq('init', '307512991727066');
        fbq('track', 'PageView');
    </script>
    <noscript>
        <img height=1 width=1 style=display:none src="https://www.facebook.com/tr?id=307512991727066&amp;ev=PageView&amp;noscript=1">
    </noscript>
    <script>
        !function(f, b, e, v, n, t, s) {
            if (f.fbq)
                return;
            n = f.fbq = function() {
                n.callMethod ? n.callMethod.apply(n, arguments) : n.queue.push(arguments)
            }
            ;
            if (!f._fbq)
                f._fbq = n;
            n.push = n;
            n.loaded = !0;
            n.version = '2.0';
            n.queue = [];
            t = b.createElement(e);
            t.async = !0;
            t.src = v;
            s = b.getElementsByTagName(e)[0];
            s.parentNode.insertBefore(t, s)
        }(window, document, 'script', 'https://connect.facebook.net/en_US/fbevents.js');
        fbq('init', '3548697528743011');
        fbq('track', 'PageView');
    </script>
    <noscript>
        <img height=1 width=1 style=display:none src="https://www.facebook.com/tr?id=3548697528743011&amp;ev=PageView&amp;noscript=1">
    </noscript>
    <script>
        !function(f, b, e, v, n, t, s) {
            if (f.fbq)
                return;
            n = f.fbq = function() {
                n.callMethod ? n.callMethod.apply(n, arguments) : n.queue.push(arguments)
            }
            ;
            if (!f._fbq)
                f._fbq = n;
            n.push = n;
            n.loaded = !0;
            n.version = '2.0';
            n.queue = [];
            t = b.createElement(e);
            t.async = !0;
            t.src = v;
            s = b.getElementsByTagName(e)[0];
            s.parentNode.insertBefore(t, s)
        }(window, document, 'script', 'https://connect.facebook.net/en_US/fbevents.js');
        fbq('init', '993697205076579');
        fbq('track', 'PageView');
    </script>
    <noscript>
        <img height=1 width=1 style=display:none src="https://www.facebook.com/tr?id=993697205076579&amp;ev=PageView&amp;noscript=1">
    </noscript>
    <script>
        !function(f, b, e, v, n, t, s) {
            if (f.fbq)
                return;
            n = f.fbq = function() {
                n.callMethod ? n.callMethod.apply(n, arguments) : n.queue.push(arguments)
            }
            ;
            if (!f._fbq)
                f._fbq = n;
            n.push = n;
            n.loaded = !0;
            n.version = '2.0';
            n.queue = [];
            t = b.createElement(e);
            t.async = !0;
            t.src = v;
            s = b.getElementsByTagName(e)[0];
            s.parentNode.insertBefore(t, s)
        }(window, document, 'script', 'https://connect.facebook.net/en_US/fbevents.js');
        fbq('init', '875479224220932');
        fbq('track', 'PageView');
    </script>
    <noscript>
        <img height=1 width=1 style=display:none src="https://www.facebook.com/tr?id=875479224220932&amp;ev=PageView&amp;noscript=1">
    </noscript>
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-DEMR8X28X3"></script>
    <script>
        window.dataLayer = window.dataLayer || [];
        function gtag() {
            dataLayer.push(arguments);
        }
        gtag('js', new Date());
        gtag('config', 'G-DEMR8X28X3');
    </script>
    <script>
        !function(f, b, e, v, n, t, s) {
            if (f.fbq)
                return;
            n = f.fbq = function() {
                n.callMethod ? n.callMethod.apply(n, arguments) : n.queue.push(arguments)
            }
            ;
            if (!f._fbq)
                f._fbq = n;
            n.push = n;
            n.loaded = !0;
            n.version = '2.0';
            n.queue = [];
            t = b.createElement(e);
            t.async = !0;
            t.src = v;
            s = b.getElementsByTagName(e)[0];
            s.parentNode.insertBefore(t, s)
        }(window, document, 'script', 'https://connect.facebook.net/en_US/fbevents.js');
        fbq('init', '688837020048195');
        fbq('track', 'PageView');
    </script>
    <noscript>
        <img height=1 width=1 style=display:none src="https://www.facebook.com/tr?id=688837020048195&amp;ev=PageView&amp;noscript=1">
    </noscript>
    <body style="--expand-icon-src:url(//nx-cdn.trgwl.com/Images/icons/expand.gif?v=20231212-1);
    --collapse-icon-src:url(//nx-cdn.trgwl.com/Images/icons/collapse.gif?v=20231212-1);
    --play-icon-src:url(//nx-cdn.trgwl.com/Images/icons/play.png?v=20231212-1);
    --jquery-ui-444444-src:url(//nx-cdn.trgwl.com/Images/jquery-ui/ui-icons_444444_256x240.png?v=20231212-1);
    --jquery-ui-555555-src:url(//nx-cdn.trgwl.com/Images/jquery-ui/ui-icons_555555_256x240.png?v=20231212-1);
    --jquery-ui-ffffff-src:url(//nx-cdn.trgwl.com/Images/jquery-ui/ui-icons_ffffff_256x240.png?v=20231212-1);
    --jquery-ui-777620-src:url(//nx-cdn.trgwl.com/Images/jquery-ui/ui-icons_777620_256x240.png?v=20231212-1);
    --jquery-ui-cc0000-src:url(//nx-cdn.trgwl.com/Images/jquery-ui/ui-icons_cc0000_256x240.png?v=20231212-1);
    --jquery-ui-777777-src:url(//nx-cdn.trgwl.com/Images/jquery-ui/ui-icons_777777_256x240.png?v=20231212-1)">

    <?php include 'template/nav.php'; ?>

    <?php
    if ($_GET['page'] == "") {
        include 'template/slider.php';
        include 'template/home.php';
    }else if ($_GET['page'] == "register") {
        include 'template/register.php';
    }else if ($_GET['page'] == "hot_games") {
        include 'template/menu/hot_games.php';
    }else if ($_GET['page'] == "profile") {
        include 'template/menu/profile.php';
    }else if ($_GET['page'] == "password") {
        include 'template/menu/password.php';
    }else if ($_GET['page'] == "deposit") {
        include 'template/menu/deposit.php';
    }else if ($_GET['page'] == "withdraw") {
        include 'template/menu/withdraw.php';
    }else if ($_GET['page'] == "promosi") {
        include 'template/menu/promosi.php';
    }else if ($_GET['page'] == "history") {
        include 'template/menu/history.php';
    }else if ($_GET['page'] == "refferal") {
        include 'template/menu/refferal.php';
    }else if ($_GET['page'] == "verifikasi") {
        include 'template/menu/verifikasi.php';
    }


    else if ($_GET['page'] == "slot") {
        include 'template/menu/slot.php';
    }

    else if ($_GET['provider'] == "evolution_gaming") {
        include 'template/menu/games/casino/evolution.php';
    }

    //Aksi
    else if ($_GET['page'] == "ubah_password") {
        include 'function/profil.php';
    }else if ($_GET['page'] == "proses_deposit") {
        include 'function/deposit.php';
    }else if ($_GET['page'] == "proses_withdraw") {
        include 'function/withdraw.php';
    }else if ($_GET['page'] == "verifikasi_kyc") {
        include 'function/kyc.php';
    }

    ?>
    <?php include 'template/footer.php';; ?>

    <div id=popup_modal class="modal popup-modal" role=dialog data-title="">
        <div class=modal-dialog>
            <div class=modal-content style="--desktop-popup-alert-src:url(//nx-cdn.trgwl.com/Images/nexus-alpha/red/desktop/layout/popup/alert.png?v=20231212-1);;--desktop-popup-notification-src:url(//nx-cdn.trgwl.com/Images/nexus-alpha/red/desktop/layout/popup/notification.png?v=20231212-1);;--mobile-popup-alert-src:url(//nx-cdn.trgwl.com/Images/nexus-alpha/red/mobile/layout/popup/alert.png?v=20231212-1);;--mobile-popup-notification-src:url(//nx-cdn.trgwl.com/Images/nexus-alpha/red/mobile/layout/popup/notification.png?v=20231212-1);;--event-giveaway-popper-src:url(//nx-cdn.trgwl.com/Images/giveaway/popper.png?v=20231212-1)">
                <div class=modal-header>
                    <button type=button class=close data-dismiss=modal aria-label=Close>
                        <span aria-hidden=true>×</span>
                    </button>
                    <h4 class=modal-title id=popup_modal_title></h4>
                </div>
                <div class=modal-body id=popup_modal_body></div>
                <div class=modal-footer>
                    <button type=button class="btn btn-primary" data-dismiss=modal id=popup_modal_dismiss_button>OK </button>
                    <button type=button class="btn btn-secondary" data-dismiss=modal id=popup_modal_cancel_button style=display:none>Batal </button>
                    <button type=button class="btn btn-primary" id=popup_modal_confirm_button style=display:none>OK </button>
                </div>
            </div>
        </div>
    </div>
    <script src="bundles/dekstop.js" defer></script>
    <script src="bundles/Home/dekstop.js" defer></script>
    <script src="Content/Slots/dekstop.js" defer></script>
    <script>
    var xhr = new XMLHttpRequest();
    xhr.open('POST', 'function/getBalances.php', true);
    xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    var username = '<?php echo $_SESSION["username"]; ?>';
    xhr.send('username=' + username);
</script>
  <script>
    function gameAlert() {
      return Swal.fire({
        icon: 'error',
        title: "Perhatian.",
        html: "Silakan login untuk bermain!",
        timerProgressBar: true,
        timer: 5000,
      });
    }

    function gamemaintenance() {
      return Swal.fire({
        icon: 'error',
        title: "Opps.",
        html: "Provider Ini Sedang Dalam Proses Maintenance!",
        timerProgressBar: true,
        timer: 5000,
      });
    }
  </script>

  <?php
  if (!empty($_GET['pesan'])) {
    if ($_GET['pesan'] == 1) {
  ?>
      <script type="text/javascript">
        Swal.fire({
          icon: 'error',
          title: 'Email Sudah Digunakan',
          text: 'Silakan coba email lain.'
        });
      </script>
    <?php
    }

    if ($_GET['pesan'] == 2) {
    ?>
      <script type="text/javascript">
        Swal.fire({
          icon: 'error',
          title: 'Captcha Anda Salah',
          text: 'Periksa Kembali Captcha Yang Anda Masukkan.',
          timerProgressBar: true,
          timer: 5000,
        });
      </script>
    <?php
    }

    if ($_GET['pesan'] == 3) {
    ?>
      <script type="text/javascript">
        Swal.fire({
          icon: 'success',
          title: 'Selamat!',
          text: 'Akun Anda Berhasil Dibuat',
          timerProgressBar: true,
          timer: 5000,
        });
      </script>
    <?php
    }

    if ($_GET['pesan'] == 4) {
    ?>
      <script type="text/javascript">
        Swal.fire({
          icon: 'error',
          title: 'Opps',
          text: 'Password Dan Konfirmasi Harus Sama.',
          timerProgressBar: true,
          timer: 5000,
        });
      </script>
    <?php
    }

    if ($_GET['pesan'] == 5) {
    ?>
      <script type="text/javascript">
        Swal.fire({
          icon: 'error',
          title: 'Opps',
          text: 'Daftar Akun Gagal.',
          timerProgressBar: true,
          timer: 5000,
        });
      </script>
    <?php
    }

    if ($_GET['pesan'] == 6) {
    ?>
      <script type="text/javascript">
        Swal.fire({
          icon: 'error',
          title: 'Opps',
          text: 'Akun Anda Di Suspend Oleh Admin.',
          timerProgressBar: true,
          timer: 5000,
        });
      </script>
    <?php
    }
    if ($_GET['pesan'] == 7) {
    ?>
      <script type="text/javascript">
        Swal.fire({
          icon: 'error',
          title: 'Opps',
          text: 'Username Dan Password Anda Salah.',
          timerProgressBar: true,
          timer: 5000,
        });
      </script>
    <?php
    }

    if ($_GET['pesan'] == 8) {
    ?>
      <script type="text/javascript">
        Swal.fire({
          icon: 'success',
          title: 'Selamat!',
          text: 'Anda Berhasil Logout',
          timerProgressBar: true,
          timer: 5000,
        });
      </script>
    <?php
    }

    if ($_GET['pesan'] == 9) {
    ?>
      <script type="text/javascript">
        Swal.fire({
          icon: 'success',
          title: 'Selamat!',
          text: 'Deposit Berhasil Silahkan Menghubungi Admin Untuk Proses Konfirmasi',
          timerProgressBar: true,
          timer: 5000,
        });
      </script>
    <?php
    }

    if ($_GET['pesan'] == 10) {
    ?>
      <script type="text/javascript">
        Swal.fire({
          icon: 'error',
          title: 'Opps',
          text: 'Gagal Mengupload Gambar.',
          timerProgressBar: true,
          timer: 5000,
        });
      </script>
    <?php
    }
    if ($_GET['pesan'] == 11) {
    ?>
      <script type="text/javascript">
        Swal.fire({
          icon: 'error',
          title: 'Opps',
          text: 'Ukuran File Terlalu Besar.',
          timerProgressBar: true,
          timer: 5000,
        });
      </script>
    <?php
    }
    if ($_GET['pesan'] == 12) {
    ?>
      <script type="text/javascript">
        Swal.fire({
          icon: 'error',
          title: 'Opps',
          text: 'Ekstensi Gambar Harus Jpg atau png.',
          timerProgressBar: true,
          timer: 5000,
        });
      </script>
    <?php
    }
    if ($_GET['pesan'] == 13) {
    ?>
      <script type="text/javascript">
        Swal.fire({
          icon: 'error',
          title: 'Opps',
          text: 'Anda Masih Memiliki Proses Deposit Yang Belum Selesai.',
          timerProgressBar: true,
          timer: 5000,
        });
      </script>
    <?php
    }
    if ($_GET['pesan'] == 14) {
    ?>
      <script type="text/javascript">
        Swal.fire({
          icon: 'error',
          title: 'Opps',
          text: 'Maaf Promo ini hanya berlaku untuk New Member.',
          timerProgressBar: true,
          timer: 5000,
        });
      </script>
    <?php
    }
    if ($_GET['pesan'] == 15) {
    ?>
      <script type="text/javascript">
        Swal.fire({
          icon: 'error',
          title: 'Opps',
          text: 'Maaf Nominal Deposit Tidak Sesuai Dengan Ketentuan Bonus.',
          timerProgressBar: true,
          timer: 5000,
        });
      </script>
    <?php
    }
    if ($_GET['pesan'] == 16) {
    ?>
      <script type="text/javascript">
        Swal.fire({
          icon: 'error',
          title: 'Opps',
          text: 'Deposit Minimal <?php echo $min_depo; ?> Ya',
          timerProgressBar: true,
          timer: 5000,
        });
      </script>
    <?php
    }
    if ($_GET['pesan'] == 17) {
    ?>
      <script type="text/javascript">
        Swal.fire({
          icon: 'error',
          title: 'Opps',
          text: 'Maaf Anda belum mencapai Target Turn Over yg sudah di tentukan, silahkan bermain kembali untuk menyelesaikan target turn over anda',
          timerProgressBar: true,
          timer: 5000,
        });
      </script>
    <?php
    }
    if ($_GET['pesan'] == 18) {
    ?>
      <script type="text/javascript">
        Swal.fire({
          icon: 'error',
          title: 'Opps',
          text: 'Saldo Anda Tidak Mencukupi Untuk Melakukan Withdraw',
          timerProgressBar: true,
          timer: 5000,
        });
      </script>
    <?php
    }
    if ($_GET['pesan'] == 19) {
    ?>
      <script type="text/javascript">
        Swal.fire({
          icon: 'error',
          title: 'Opps',
          text: 'Withdraw Minimal <?php echo $min_wd; ?> Ya',
          timerProgressBar: true,
          timer: 5000,
        });
      </script>
    <?php
    }
    if ($_GET['pesan'] == 20) {
    ?>
      <script type="text/javascript">
        Swal.fire({
          icon: 'success',
          title: 'Selamat!',
          text: 'Withdraw Berhasil Silahkan Menghubungi Admin Untuk Proses Konfirmasi',
          timerProgressBar: true,
          timer: 5000,
        });
      </script>
    <?php
    }

    if ($_GET['pesan'] == 21) {
    ?>
      <script type="text/javascript">
        Swal.fire({
          icon: 'error',
          title: 'Opps',
          text: 'Anda Masih Memiliki Proses Withdraw Yang Belum Selesai.',
          timerProgressBar: true,
          timer: 5000,
        });
      </script>
    <?php
    }

    if ($_GET['pesan'] == 22) {
    ?>
      <script type="text/javascript">
        Swal.fire({
          icon: 'error',
          title: 'Opps',
          text: 'Segera Hubungi Admin',
          timerProgressBar: true,
          timer: 5000,
        });
      </script>
    <?php
    }
    if ($_GET['pesan'] == 23) {
    ?>
      <script type="text/javascript">
        Swal.fire({
          icon: 'error',
          title: 'Opps',
          text: 'Anda Harus Login Terlebih Dahulu',
          timerProgressBar: true,
          timer: 5000,
        });
      </script>
    <?php
    }

    if ($_GET['pesan'] == 24) {
    ?>
      <script type="text/javascript">
        Swal.fire({
          icon: 'error',
          title: 'Sorry!',
          text: 'Ubah Password Gagal',
          timerProgressBar: true,
          timer: 5000,
        });
      </script>
    <?php
    }

    if ($_GET['pesan'] == 25) {
    ?>
      <script type="text/javascript">
        Swal.fire({
          icon: 'error',
          title: 'Sorry!',
          text: 'Password Lama Anda Salah',
          timerProgressBar: true,
          timer: 5000,
        });
      </script>
    <?php
    }

    if ($_GET['pesan'] == 26) {
    ?>
      <script type="text/javascript">
        Swal.fire({
          icon: 'error',
          title: 'Opps!',
          text: 'Password Baru Dan Konfirmasi Harus sama',
          timerProgressBar: true,
          timer: 5000,
        });
      </script>
    <?php
    }
    if ($_GET['pesan'] == 27) {
    ?>
      <script type="text/javascript">
        Swal.fire({
          icon: 'success',
          title: 'Selamat!',
          text: 'Password Anda Berhasil Di Ubah',
          timerProgressBar: true,
          timer: 5000,
        });
      </script>
    <?php
    }

    if ($_GET['pesan'] == 28) {
    ?>
      <script type="text/javascript">
        Swal.fire({
          icon: 'error',
          title: 'Opps',
          text: 'Silakan Login Untuk Bermain'
        });
      </script>
    <?php
    }

    if ($_GET['pesan'] == 29) {
    ?>
      <script type="text/javascript">
        Swal.fire({
          icon: 'error',
          title: 'Opps',
          text: 'Maaf Akun Anda Telah Disuspend Oleh Admin'
        });
      </script>
    <?php
    }

    if ($_GET['pesan'] == 30) {
    ?>
      <script type="text/javascript">
        Swal.fire({
          icon: 'error',
          title: 'Opps',
          text: 'Username Telah Di Gunakan, Silahkan Buat Username Lain'
        });
      </script>
  <?php
    }
  }


  ?>
    <template id=live_chat_template>
        <script>
            window.__lc = window.__lc || {};
            window.__lc.license = 12126543;
            ;(function(n, t, c) {
                function i(n) {
                    return e._h ? e._h.apply(null, n) : e._q.push(n)
                }
                var e = {
                    _q: [],
                    _h: null,
                    _v: "2.0",
                    on: function() {
                        i(["on", c.call(arguments)])
                    },
                    once: function() {
                        i(["once", c.call(arguments)])
                    },
                    off: function() {
                        i(["off", c.call(arguments)])
                    },
                    get: function() {
                        if (!e._h)
                            throw new Error("[LiveChatWidget] You can't use getters before load.");
                        return i(["get", c.call(arguments)])
                    },
                    call: function() {
                        i(["call", c.call(arguments)])
                    },
                    init: function() {
                        var n = t.createElement("script");
                        n.async = !0,
                        n.type = "text/javascript",
                        n.src = "https://cdn.livechatinc.com/tracking.js",
                        t.head.appendChild(n)
                    }
                };
                !n.__lc.asyncInit && e.init(),
                n.LiveChatWidget = n.LiveChatWidget || e
            }(window, document, [].slice))
        </script>
        <noscript>
            <a href="https://www.livechat.com/chat-with/12126543/" rel=nofollow>Chat with us</a>
            , powered by <a href=https://www.livechat.com/?welcome rel="noopener nofollow" target=_blank>LiveChat</a>
        </noscript>
        <noscript>
            <iframe src="https://www.googletagmanager.com/ns.html?id=GTM-N7SQH26B" height=0 width=0 style=display:none;visibility:hidden></iframe>
        </noscript>
    </template>
    <script>
        window.addEventListener('DOMContentLoaded', ()=>{
            const template = document.querySelector('#live_chat_template');
            document.body.append(template.content.cloneNode(true));
        }
        );
    </script>
    <script type="text/javascript">
        window.addEventListener('DOMContentLoaded',()=>{const modal=document.querySelector('#loyalty_daily_reward_modal');const closeBtn=document.querySelector('#close_popup_modal');$(modal).modal('show');$(modal).on('hidden.bs.modal',()=>$(modal).modal('hide'));if(modal){closeBtn.onclick=()=>$(modal).modal('hide');}});
    </script>
