<?php 
include ('session.php'); 
if (isset($_SESSION['user'])) {
  $user = mysqli_query($conn, "SELECT * FROM `tb_user` WHERE user = '" . $_SESSION['user'] . "'") or die(mysqli_error());
  $u = mysqli_fetch_array($user);
  $users = $u['user'];
  $userid = $u['user'];
  $id_user = $u['cuid'];
  $userID = $u['cuid'];
  $token_id = isset($u['token_id']) ? $u['token_id'] : false;
  $level = isset($u['level']) ? $u['level'] : false;
  $sql_banks = mysqli_query($conn,"SELECT * FROM `tb_bank` WHERE userID = '$userID'") or die(mysqli_error());
  $sbs = mysqli_fetch_array($sql_banks);
  $sql_balance = mysqli_query($conn, "SELECT * FROM `tb_balance` WHERE userID = '$userID'") or die(mysqli_error());
  $sb = mysqli_fetch_array($sql_balance);
  ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="id">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0">
        <title><?php echo $instansi ?>: Daftar Situs Slot Gacor Online Terpercaya Gampang Menang Hari Ini</title>
        <meta name="keywords" content="<?php echo $instansi ?>, slot, situs slot gacor, slot88, slot online, link slot gacor, slot gacor gampang menang, judi slot online, slot gacor, slot gacor hari ini, slot resmi, slot terpercaya, rtp slot">
        <meta name="description" content="<?php echo $instansi ?> adalah link situs slot gacor termaxwin hari ini yang menyediakan tempat bermain slot online terbaik seperti slot88 dengan bonus sensasional gampang menang.">

        <script src="/js/jquery-3.6.1.min.js" integrity="sha256-o88AwQnZB+VDvE9tvIXrMQaPlFFSUTR+nldQm1LuPXQ=" crossorigin="anonymous"></script>
        <script type="text/javascript">
            var cmsData = {
value: '{"runningText":"Selamat datang di <?php echo $instansi ?> Situs Slot Gacor Bet 50 Terbaik Indonesia. Nikmati jackpot besar dan kemenangan tak terbatas setiap hari. Daftar sekarang dan raih maxwin berlimpah!","popupAd":"","google":"<?php echo $instansi ?>","yahoo":"","bbm":"","wechatId":"","line":"","facebook":"","twitter":"","skype":"","telephone":"","instagram":"<?php echo $instansi ?>","whatsapp":"6281315780524","sms":"","telegram":"<?php echo $instansi ?>","youtube":"","tiktok":""}',
}

            var playerData = {
value: '{"isSuccessPopDeposit":false,"username":"","balance":"<?php echo $sb['active']; ?>","socketUrl":"ws.bo11bw.com","nofId":"7d943c7f-df6a-45eb-8320-12c4616a8981"}',
}

            var depositData = {
value: '{"depositToList":[{"playerGameIdId":"","providerName":"Dompet Utama"}],"depositBankList":[{"bankAccId":2285,"bankId":38,"bankName":"Bank BCA","accountNo":"00000000","accountName":"SILAHKAN DEPOSIT KE QRIS","bankType":"1"},{"bankAccId":2286,"bankId":39,"bankName":"Bank BNI","accountNo":"1883814075 ","accountName":"YONGKI FERI DARMAWAN","bankType":"1"},{"bankAccId":2287,"bankId":40,"bankName":"Bank BRI","accountNo":"078001000019568","accountName":"Muhammad Bintang Sinar Prawira","bankType":"1"},{"bankAccId":2288,"bankId":42,"bankName":"Bank CIMB Niaga","accountNo":"707922446900","accountName":"Dewi Wachyuni","bankType":"1"},{"bankAccId":2349,"bankId":54,"bankName":"Bank Danamon","accountNo":"003657155705","accountName":"DANIS WULANDE SUKMANIYON","bankType":"1"},{"bankAccId":2289,"bankId":41,"bankName":"Bank Mandiri","accountNo":"1310022442257","accountName":"ADE PISCA APRILIA","bankType":"1"},{"bankAccId":2387,"bankId":45,"bankName":"DANA","accountNo":"00000000000","accountName":"NELLY BR SARAGIH","bankType":"11"},{"bankAccId":2409,"bankId":46,"bankName":"LinkAja","accountNo":"081336359225","accountName":"LINKAJA02 | ASEP","bankType":"11"},{"bankAccId":2394,"bankId":43,"bankName":"OVO","accountNo":"00000000000","accountName":"KONFIRMASI CS","bankType":"11"},{"bankAccId":2421,"bankId":48,"bankName":"Sakuku","accountNo":"000000000000","accountName":"SILAHKAN DEPOSIT KE QRIS","bankType":"11"}],"minDeposit":"1.000","maxDeposit":"100.000.000","minPulsaDeposit":"1.000","maxPulsaDeposit":"1.000.000","minEmoneyDeposit":"1.000","maxEmoneyDeposit":"10.000.000","minVADeposit":"1.000","maxVADeposit":"100.000.000"}',
}

            let globalObj = JSON.parse(playerData.value);
            globalObj.currency='IDR';
            globalObj.isMission=false;
            globalObj.isWdUseIdr=true;
            globalObj.login=true;
            globalObj.rate=1000;
            globalObj.isSpecialWallet=false;
            let entityData = JSON.parse(cmsData.value);
            let depoData = JSON.parse(depositData.value);
            $(document).ready(function() {
                $('.minReq').text(depoData.minDeposit);
                $('.maxReq').text(depoData.maxDeposit);
                $('.minVaReq').text(depoData.minVADeposit);
                $('.maxVaReq').text(depoData.maxVADeposit);
                $('.minPulsa').text(depoData.minPulsaDeposit);
                $('.maxPulsa').text(depoData.maxPulsaDeposit);
                $('.minEMoney').text(depoData.minEmoneyDeposit);
                $('.maxEMoney').text(depoData.maxEmoneyDeposit);
            });
        </script>
<link rel="icon" href="/stream/id?attachId=1421878" type="image/x-icon">
<link rel="amphtml" href="https://ampjanjiwin.com/amp/">
        <link rel="preconnect" href="https://fonts.googleapis.com">
        <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
        <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&amp;display=swap" crossorigin="anonymous">
        <link rel="stylesheet" href="/assets/css/style.css" media="only screen and (min-width: 769px)">
        <link rel="stylesheet" href="/assets/css/style-m.css" media="only screen and (max-width: 768px)">
        <link rel="stylesheet" href="/assets/css/jquery-alerts.css">
        <link rel="stylesheet" href="/css/fonts/fa/css/all.min.css">
        <style>
            .promotion-info .promo-wrap {
                background-color: #fff;
                border: 1px solid #aeaeae;
                padding: 10px;
                border-radius: 3px;
            }

            .promotion-info .promo-wrap .title {
                text-transform: uppercase;
                background-color: #bfbfbf;
                padding: 8px;
                border-radius: 4px;
                text-align: center;
                font-size: larger;
                color: #000000;
                margin-bottom: 15px;
            }

            .promotion-info ul {
                display: inherit;
                background-color: #fff;
            }

            .promotion-info.mob .promo-wrap {
                border-radius: 10px;
            }

            .promotion-info ul li {
                padding: 10px 0;
                border-bottom: 1px solid #ddd;
                display: flex;
                justify-content: space-between;
                align-items: center;
                color: #3d3d3d;
            }

            .promotion-info ul li:last-child {
                border-bottom: none;
                padding-bottom: 0;
            }

            .promotion-info ul li span {
                border: 1px solid #999797;
                padding: 5px;
                border-radius: 6px;
            }
        </style>
    </head>
    <script>
    function isMobile() {
        const userAgent = navigator.userAgent || navigator.vendor || window.opera;
        return /android|ipad|iphone|ipod|windows phone/i.test(userAgent);
    }

    if (!isMobile()) {
        // Redirect ke halaman pemberitahuan jika bukan perangkat mobile
        window.location.href = "/no-access.html";
    }
</script>

    <body>
        <div class="mlwrap">
            <div class="overlay"></div>
            <div class="mlbox">
                <div class="mlhead">
                    <h2></h2>
                    <a href="#" class="mlclose">
                        <i class="fa fa-times"></i>
                    </a>
                </div>
                <div class="mlbody"></div>
            </div>
        </div>
        <div class="miswrap">
            <div class="overlay"></div>
            <div class="misbox">
                <div class="mishead">
                    <h2>
                        <i class="fa fa-star"></i> Mission List
                    </h2>
                    <div class="mistol"></div>
                    <a href="#" class="misclose">
                        <i class="fa fa-times"></i>
                    </a>
                </div>
                <div class="misbody">
                    <div class="misbodyin"></div>
                </div>
            </div>
        </div>
        <!-- START MOBILE -->
        <div id="showM">
            <div class="overlap g8mmenu-close"></div>
            <nav class="nav">
                <div class="nav__logo">
                    <a href="/secure/home"><img src="<?php echo $urlweb; ?>/upload/<?php echo $s0['image']; ?>" style="filter:brightness(100%)"></a>
                </div>
                <div class="nav__menu g8mmenu">
                    <button class="hamburger hamburger--squeeze" type="button" aria-label="menu">
                        <span class="hamburger-box">
                            <span class="hamburger-inner"></span>
                        </span>
                    </button>
                </div>
                <div class="nav-bals g8-nav-bals">
                    <div class="nav-bals-details">
                        <span class="g8-name"><?php echo $u['user']; ?></span>
                        <span>
                            <strong class="g8-bal-total"><?php echo number_format($sb['active'], 0, ',', '.'); ?></strong>
                        </span>
                    </div>
                    <div class="nav-bals-arrow"></div>
                </div>
            </nav>
            <div class="menu menu--login">
                <div class="sidenav">
                    <div>
                        Selamat Datang, <?php echo $u['user']; ?>
                        <span class="g8-name"></span>
                    </div>
                    <div class="sidenav_logo">
                        <a href="/"><img src="<?php echo $urlweb; ?>/upload/<?php echo $s0['image']; ?>" style="filter:brightness(100%)"></a>
                    </div>
                    <h1>
                        <strong class="g8-bal-total">IDR <?php echo number_format($sb['active'], 0, ',', '.'); ?></strong>
                    </h1>
                    <h2 class="sw-a">
                        SC :
                        <span class="sw-b">0</span>
                    </h2>
                    <div class="sidenav_btn">
                        <a href="javascript:void(0)" class="g8-logout">
                            Logout
                            <i class="fa fa-sign-out-alt"></i>
                        </a>
                    </div>
                </div>
                <div class="sidenav-games">
                    <ul>
                        <li class="misbtn">
                            <a href="#" class="openmis-mob">
                                <img src="/common/assets/images/icon/menu/v2/mission-menu-sidebar.png" alt="mission" loading="lazy">
                                <span>Mission</span>
                            </a>
                        </li>
                        <li>
                            <a href="/secure/admin/profile">
                                <img src="/common/assets/images/icon/menu/v2/profile-menu-sidebar.png" alt="profile" loading="lazy">
                                <span>Profile</span>
                            </a>
                        </li>
                        <li>
                            <a href="/secure/admin/deposit">
                                <img src="/common/assets/images/icon/menu/v2/banking-menu-sidebar.png" alt="banking" loading="lazy">
                                <span>Banking</span>
                            </a>
                        </li>
                        <li class="games">
                            <div style="flex-direction: row; display: flex; align-items: center;">
                                <div style="display: flex; justify-content: center; align-items: center; width: 26px; height: 26px; margin-right: 10px">
                                    <svg viewBox="0 0 24 24" style="width: 26px; height: 26px; overflow: visible; opacity: 1; z-index: 1; fill: rgb(255, 255, 255);">
                                        <path d="M0 0h24v24H0z" fill="none"></path>
                                        <path d="M15 7.5V2H9v5.5l3 3 3-3zM7.5 9H2v6h5.5l3-3-3-3zM9 16.5V22h6v-5.5l-3-3-3 3zM16.5 9l-3 3 3 3H22V9h-5.5z"></path>
                                    </svg>
                                </div>
                                <span>Games</span>
                            </div>
                            <svg xmlns="http://www.w3.org/2000/svg" height="16" width="10" viewBox="0 0 320 512"><path d="M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z"></path></svg>
                            <ul class="all-games" style="display: none;">
                                <li>
                                    <a href="/secure/sportsbook">
                                        <img src="/common/assets/images/icon/menu/v2/sportsbook-menu-sidebar.png" class="sub-menu black-to-white" alt="sportsbook" loading="lazy">
                                        <span>Sportsbook</span>
                                    </a>
                                </li>
                                <li>
                                    <a href="/secure/slots-provider">
                                        <img src="/common/assets/images/icon/menu/v2/slots-menu-sidebar.png" class="sub-menu black-to-white" alt="slot" loading="lazy">
                                        <span>Slots</span>
                                    </a>
                                </li>
                                <li>
                                    <a href="/secure/livecasino">
                                        <img src="/common/assets/images/icon/menu/v2/livecasino-menu-sidebar.png" class="sub-menu black-to-white" alt="livecasino" loading="lazy">
                                        <span>Live Casino</span>
                                    </a>
                                </li>
                                <li>
                                    <a href="/secure/poker">
                                        <img src="/common/assets/images/icon/menu/v2/poker-menu-sidebar.png" class="sub-menu black-to-white" alt="poker" loading="lazy">
                                        <span>Poker</span>
                                    </a>
                                </li>
                                <li>
                                    <a href="/secure/tangkas">
                                        <img src="/common/assets/images/icon/menu/v2/tangkas-menu-sidebar.png" class="sub-menu black-to-white" alt="tangkas" loading="lazy">
                                        <span>Tangkas</span>
                                    </a>
                                </li>
                                <li>
                                    <a href="/secure/fish">
                                        <img src="/common/assets/images/icon/menu/v2/fish-menu-sidebar.png" class="sub-menu black-to-white" alt="fish" loading="lazy">
                                        <span>Fish</span>
                                    </a>
                                </li>
                                <li>
                                    <a href="/secure/others">
                                        <img src="/common/assets/images/icon/menu/v2/others-menu-sidebar.png" class="sub-menu black-to-white" alt="game" loading="lazy">
                                        <span>Others</span>
                                    </a>
                                </li>
                                <li>
                                    <a href="/secure/hot">
                                        <img src="/common/assets/images/icon/menu/v2/hot-menu-sidebar.png" class="sub-menu black-to-white" alt="vip" loading="lazy">
                                        <span>Hot</span>
                                    </a>
                                </li>
                            </ul>
                        </li>
                        <li>
                            <a href="/secure/admin/bonus">
                                <img src="/common/assets/images/icon/menu/v2/bonus-menu-sidebar.png" alt="bonus" loading="lazy">
                                <span>Bonus</span>
                            </a>
                        </li>
                        <li>
                            <a href="/secure/promotions">
                                <img src="/common/assets/images/icon/menu/v2/promotion-menu-sidebar.png" class="black-to-white" alt="promotion" loading="lazy">
                                <span>Promosi</span>
                            </a>
                        </li>
                        <li>
                            <a href="/secure/mobile">
                                <img src="/common/assets/images/icon/menu/v2/download-menu-sidebar.png" class="black-to-white" alt="download" loading="lazy">
                                <span>Download</span>
                            </a>
                        </li>
                        <li>
                            <a href="/secure/admin/messages">
                                <img src="/common/assets/images/icon/menu/v2/messages-menu-sidebar.png" alt="messages" loading="lazy">
                                <span>Messages</span>
                            </a>
                        </li>
                        <li>
                            <a href="/secure/admin/referral">
                                <img src="/common/assets/images/icon/menu/v2/referral-menu-sidebar.png" alt="referral" loading="lazy">
                                <span>Refferal</span>
                            </a>
                        </li>
                        <li>
                            <a href="/secure/admin/history">
                                <img src="/common/assets/images/icon/menu/v2/history-menu-sidebar.png" alt="history" loading="lazy">
                                <span>History</span>
                            </a>
                        </li>
                        <li>
                            <a href="<?php echo $s1a['livechat']; ?>">
                                <img src="/common/assets/images/icon/menu/v2/contact-menu-sidebar.png" class="black-to-white" alt="affiliate" loading="lazy">
                                <span>Hubungi kami</span>
                            </a>
                        </li>
                        <!-- <li>
                            <a href="javascript:void(0)" class="g8-logout">
                                <img src="/common/assets/images/icon/menu/desktop.svg" alt="desktop" loading="lazy">
                                <span>Logout</span>
                            </a>
                        </li> -->
                    </ul>
                </div>
            </div>
            <div class="content">
                <div class="funds__container-section">
                    <div class="wrapper-toggle">
                       <a href="/secure/admin/qris" class="btn ">
                            <svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 512 512" fill='white'><!--! Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path d="M326.7 403.7c-22.1 8-45.9 12.3-70.7 12.3s-48.7-4.4-70.7-12.3c-.3-.1-.5-.2-.8-.3c-30-11-56.8-28.7-78.6-51.4C70 314.6 48 263.9 48 208C48 93.1 141.1 0 256 0S464 93.1 464 208c0 55.9-22 106.6-57.9 144c-1 1-2 2.1-3 3.1c-21.4 21.4-47.4 38.1-76.3 48.6zM256 91.9c-11.1 0-20.1 9-20.1 20.1v6c-5.6 1.2-10.9 2.9-15.9 5.1c-15 6.8-27.9 19.4-31.1 37.7c-1.8 10.2-.8 20 3.4 29c4.2 8.8 10.7 15 17.3 19.5c11.6 7.9 26.9 12.5 38.6 16l2.2 .7c13.9 4.2 23.4 7.4 29.3 11.7c2.5 1.8 3.4 3.2 3.7 4c.3 .8 .9 2.6 .2 6.7c-.6 3.5-2.5 6.4-8 8.8c-6.1 2.6-16 3.9-28.8 1.9c-6-1-16.7-4.6-26.2-7.9l0 0 0 0 0 0c-2.2-.7-4.3-1.5-6.4-2.1c-10.5-3.5-21.8 2.2-25.3 12.7s2.2 21.8 12.7 25.3c1.2 .4 2.7 .9 4.4 1.5c7.9 2.7 20.3 6.9 29.8 9.1V304c0 11.1 9 20.1 20.1 20.1s20.1-9 20.1-20.1v-5.5c5.3-1 10.5-2.5 15.4-4.6c15.7-6.7 28.4-19.7 31.6-38.7c1.8-10.4 1-20.3-3-29.4c-3.9-9-10.2-15.6-16.9-20.5c-12.2-8.8-28.3-13.7-40.4-17.4l-.8-.2c-14.2-4.3-23.8-7.3-29.9-11.4c-2.6-1.8-3.4-3-3.6-3.5c-.2-.3-.7-1.6-.1-5c.3-1.9 1.9-5.2 8.2-8.1c6.4-2.9 16.4-4.5 28.6-2.6c4.3 .7 17.9 3.3 21.7 4.3c10.7 2.8 21.6-3.5 24.5-14.2s-3.5-21.6-14.2-24.5c-4.4-1.2-14.4-3.2-21-4.4V112c0-11.1-9-20.1-20.1-20.1zM48 352H64c19.5 25.9 44 47.7 72.2 64H64v32H256 448V416H375.8c28.2-16.3 52.8-38.1 72.2-64h16c26.5 0 48 21.5 48 48v64c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V400c0-26.5 21.5-48 48-48z"/></svg>
                            Qris Instan
                        </a>
                        <a href="/secure/admin/deposit" class="btn ">
                            <svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 512 512" fill='white'><!--! Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path d="M326.7 403.7c-22.1 8-45.9 12.3-70.7 12.3s-48.7-4.4-70.7-12.3c-.3-.1-.5-.2-.8-.3c-30-11-56.8-28.7-78.6-51.4C70 314.6 48 263.9 48 208C48 93.1 141.1 0 256 0S464 93.1 464 208c0 55.9-22 106.6-57.9 144c-1 1-2 2.1-3 3.1c-21.4 21.4-47.4 38.1-76.3 48.6zM256 91.9c-11.1 0-20.1 9-20.1 20.1v6c-5.6 1.2-10.9 2.9-15.9 5.1c-15 6.8-27.9 19.4-31.1 37.7c-1.8 10.2-.8 20 3.4 29c4.2 8.8 10.7 15 17.3 19.5c11.6 7.9 26.9 12.5 38.6 16l2.2 .7c13.9 4.2 23.4 7.4 29.3 11.7c2.5 1.8 3.4 3.2 3.7 4c.3 .8 .9 2.6 .2 6.7c-.6 3.5-2.5 6.4-8 8.8c-6.1 2.6-16 3.9-28.8 1.9c-6-1-16.7-4.6-26.2-7.9l0 0 0 0 0 0c-2.2-.7-4.3-1.5-6.4-2.1c-10.5-3.5-21.8 2.2-25.3 12.7s2.2 21.8 12.7 25.3c1.2 .4 2.7 .9 4.4 1.5c7.9 2.7 20.3 6.9 29.8 9.1V304c0 11.1 9 20.1 20.1 20.1s20.1-9 20.1-20.1v-5.5c5.3-1 10.5-2.5 15.4-4.6c15.7-6.7 28.4-19.7 31.6-38.7c1.8-10.4 1-20.3-3-29.4c-3.9-9-10.2-15.6-16.9-20.5c-12.2-8.8-28.3-13.7-40.4-17.4l-.8-.2c-14.2-4.3-23.8-7.3-29.9-11.4c-2.6-1.8-3.4-3-3.6-3.5c-.2-.3-.7-1.6-.1-5c.3-1.9 1.9-5.2 8.2-8.1c6.4-2.9 16.4-4.5 28.6-2.6c4.3 .7 17.9 3.3 21.7 4.3c10.7 2.8 21.6-3.5 24.5-14.2s-3.5-21.6-14.2-24.5c-4.4-1.2-14.4-3.2-21-4.4V112c0-11.1-9-20.1-20.1-20.1zM48 352H64c19.5 25.9 44 47.7 72.2 64H64v32H256 448V416H375.8c28.2-16.3 52.8-38.1 72.2-64h16c26.5 0 48 21.5 48 48v64c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V400c0-26.5 21.5-48 48-48z"/></svg>
                            Deposit
                        </a>
                        <a href="/secure/admin/withdrawal" class="btn active">
                            <svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 384 512" fill='white'><!--! Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path d="M64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V160H256c-17.7 0-32-14.3-32-32V0H64zM256 0V128H384L256 0zM64 80c0-8.8 7.2-16 16-16h64c8.8 0 16 7.2 16 16s-7.2 16-16 16H80c-8.8 0-16-7.2-16-16zm0 64c0-8.8 7.2-16 16-16h64c8.8 0 16 7.2 16 16s-7.2 16-16 16H80c-8.8 0-16-7.2-16-16zm128 72c8.8 0 16 7.2 16 16v17.3c8.5 1.2 16.7 3.1 24.1 5.1c8.5 2.3 13.6 11 11.3 19.6s-11 13.6-19.6 11.3c-11.1-3-22-5.2-32.1-5.3c-8.4-.1-17.4 1.8-23.6 5.5c-5.7 3.4-8.1 7.3-8.1 12.8c0 3.7 1.3 6.5 7.3 10.1c6.9 4.1 16.6 7.1 29.2 10.9l.5 .1 0 0 0 0c11.3 3.4 25.3 7.6 36.3 14.6c12.1 7.6 22.4 19.7 22.7 38.2c.3 19.3-9.6 33.3-22.9 41.6c-7.7 4.8-16.4 7.6-25.1 9.1V440c0 8.8-7.2 16-16 16s-16-7.2-16-16V422.2c-11.2-2.1-21.7-5.7-30.9-8.9l0 0c-2.1-.7-4.2-1.4-6.2-2.1c-8.4-2.8-12.9-11.9-10.1-20.2s11.9-12.9 20.2-10.1c2.5 .8 4.8 1.6 7.1 2.4l0 0 0 0 0 0c13.6 4.6 24.6 8.4 36.3 8.7c9.1 .3 17.9-1.7 23.7-5.3c5.1-3.2 7.9-7.3 7.8-14c-.1-4.6-1.8-7.8-7.7-11.6c-6.8-4.3-16.5-7.4-29-11.2l-1.6-.5 0 0c-11-3.3-24.3-7.3-34.8-13.7c-12-7.2-22.6-18.9-22.7-37.3c-.1-19.4 10.8-32.8 23.8-40.5c7.5-4.4 15.8-7.2 24.1-8.7V232c0-8.8 7.2-16 16-16z"/></svg>
                            Withdrawal
                        </a>
                    </div>
                </div>
                <div class="funds tab-deposit">
                    <div class="funds__container">
                        <div class="funds__container-section depo-wrap">
                            <div class="wrapper-balance">
                                <span>Saldo</span>
                                <div class="header-balance">
                                    <strong class="g8-bal-total total-icon-new"><?php echo number_format($sb['active'], 0, ',', '.'); ?></strong>
                                </div>
                            </div>
                            
                            <div class="form-detail form-detail--full depo-select-wrap hide">
                                <ul class="depo-select">
                                    <li data-target=".depo-select-form" data-subtarget=".manual" class="active">Withdraw</li>
                                </ul>
                            </div>
                            <?php
                            error_reporting(0);
                            if (!empty($_SESSION['notif'])) {
                                $notif = $_SESSION['notif'];
                                echo '
                                <div class="alert alert-' . htmlspecialchars($notif['type']) . ' alert-dismissible" role="alert">
                                <button type="button" class="close" data-dismiss="alert">&times;</button>
                                <div class="alert-message">
                                <span>' . htmlspecialchars($notif['message']) . '</span>
                                </div>
                                </div>
                                ';
                                unset($_SESSION['notif']); // Hapus notifikasi setelah ditampilkan
                                }
                            $useridnya = $u['cuid'];
                            $cekTransaksi = mysqli_query($conn,"SELECT * FROM `tb_transaksi` WHERE userID = '$useridnya' AND jenis = 2 AND status = 0") or die(mysqli_error());
                            $ct = mysqli_num_rows($cekTransaksi);
                            if($ct > 0){
                                echo '
                                <div class="alert alert-success alert-dismissible mb-2" role="alert">
                                <div class="alert-message">
                                <span>Anda masih memiliki Permintaan Penarikan yang Belum Diproses. Silahkan Tunggu Hingga Proses Penarikan Sebelumnya Selesai.</span>
                                </div>
                                </div>
                                ';
                            } else { ?>
                            <form action="<?php echo $urlweb; ?>/function/withdraw.php" method="post" class="depo-select-form">
    <input type="hidden" name="metode" value="<?php echo $sbs['cuid']; ?>" />

   <div class="form-group depo-form manual">
    <label><span class="text-danger"> *</span> Bank Tujuan</label>
    <select name="metode" class="custom-select required">
        <?php
        $userID = $u['cuid'];

        $sql_bank_user = mysqli_query($conn, "SELECT * FROM tb_bank WHERE userID = '$userID'");

        if(mysqli_num_rows($sql_bank_user) > 0){
            while($b = mysqli_fetch_array($sql_bank_user)){
                ?>
                <option value="<?php echo $b['akun'].'|'.$b['no_rek'].'|'.$b['pemilik']; ?>">
                    <?php echo $b['akun'].' - '.$b['pemilik'].' - '.$b['no_rek']; ?>
                </option>
                <?php
            }
        } else {
            ?>
            <option value="">Belum ada rekening</option>
            <?php
        }
        ?>
    </select>
</div>

    <div class="form-group g8b-rpp-holder" style="display: none;">
        <label><span class="text-danger"> *</span> Serial No.</label>
        <input type="text" name="telcoSno" class="form-control required" placeholder="">
    </div>

    <div class="form-group">
        <label><span class="text-danger"> *</span> Total (IDR)</label>
        <input type="text" name="nominal" class="form-control" placeholder="">
    </div>

    <div class="form-group promotion-info mob hide">
        <div class="promo-wrap">
            <div class="title"></div>
            <ul>
                <li>
                    Min. Withdraw
                    <span class="min-depo">IDR 100.000</span>
                </li>
            </ul>
        </div>
    </div>

    <div class="form-group depo-form manual">
        <label> Catatan </label>
        <input type="text" id="telcoRemark" name="telcoRemark" class="form-control textfield1 dp-remark" placeholder="Peringatan : <?php echo $unik ?>">
    </div>

    <div class="form-group">
        <input type="hidden" name="userID" value="<?php echo $u['cuid']; ?>" readonly>
        <button type="submit" name="submit" class="button button--yellow">SUBMIT</button>
    </div>

    <div class="deposit-option__info depo-form cepat hide">
        <div class="form-detail form-detail--full">
            <div class="wrapper-information">
                <div class="wrapper-icon-img">
                    <i class="fa fa-info"></i>
                </div>
                <div class="wrapper-description-information">
                    <img src="/common/assets/images/dana-logo.svg" alt="img-description-deposit-cepat" class="img-description-deposit-cepat">
                    <br/>
                    <span class="depo-cepat-wording dana hide">Anda akan diarahkan ke halaman resmi DANA untuk melakukan pembayaran dengan menggunakan akun DANA</span>
                    <span class="depo-cepat-wording ovo hide">Anda akan menerima notifikasi di aplikasi OVO anda untuk melakukan pembayaran</span>
                    <span class="depo-cepat-wording qris hide">Anda akan menerima QR CODE (QRIS), dan scan QR CODE untuk melakukan pembayaran</span>
                </div>
            </div>
        </div>
    </div>
</form>
                            <?php } ?>  
                            <iframe src="about:blank" class="depo-select-iframe hide"></iframe>
                        </div>
                    </div>
                </div>
                <div class="funds tab-withdrawal hide">
                    withdrawal
                </div>
            </div>
            <nav class="bottom-nav">
                <ul>
                    <li>
                        <a href="/secure/home">
                            <img src="/common/assets/images/icon/nav/home.svg" alt="Beranda"> Beranda
                        </a>
                    </li>
                    <li>
                        <a href="/secure/mobile">
                            <img src="/common/assets/images/icon/nav/v2/download-menu.png" alt="Unduh"> Unduh
                        </a>
                    </li>
                    <li>
                        <a href="/secure/admin/deposit" class="banking">
                            <div class="wrap">
                                <img src="/common/assets/images/icon/nav/banking.svg" alt="Banking">
                            </div>
                            Banking
                        </a>
                    </li>
                    <li>
                        <a href="/secure/promotions">
                            <img src="/common/assets/images/icon/nav/v2/promo-menu.png" alt="Promosi"> Promosi
                        </a>
                    </li>
                    <li>
                        <a href="<?php echo $s1a['livechat']; ?>">
                            <img src="/common/assets/images/icon/nav/live-chat.svg" alt="Live Chat" class="live-chat"> Live Chat
                        </a>
                    </li>
                </ul>
            </nav>
        </div>
        <!-- END MOBILE -->
        <!-- START DESKTOP -->
        <div id="showD">
            <header>
                <section class="header-top">
                    <div class="wrapper">
                        <div class="header-top__detail">
                            <ul>
                                <li class="timer">
                                    <i class="fa fa-clock"></i>
                                    <span id="timer"></span>
                                </li>
                                <li>
                                    <span class="g8-livechat" onclick="LC_API.open_chat_window(); return false;">
                                        <i class="fa fa-comment"></i>
                                        <span> Live Chat</span>
                                    </span>
                                </li>
                                <li>
                                    <a href="javascript:void(0)" class="g8-logout">
                                        <i class="fas fa-sign-out-alt"></i>
                                        <span> Logout</span>
                                    </a>
                                </li>
                            </ul>
                        </div>
                    </div>
                </section>
                <section class="header-mdl">
                    <div class="wrapper">
                        <a href="/secure/home" class="header-mdl__logo"><img src="<?php echo $urlweb; ?>/upload/<?php echo $s0['image']; ?>" style="filter:brightness(100%)"></a>
                        <div class="header-mdl__login">
                            <div class="header-mdl__login-account">
                                <ul>
                                    <li>
                                        <i class="fas fa-user"></i>
                                        <span class="g8-name"></span>
                                        <i class="fas fa-chevron-down"></i>
                                        <div class="dropdown">
                                            <ul>
                                                <li>
                                                    <a href="/secure/admin/profile">
                                                        <i class="fas fa-user"></i>
                                                        <span>Edit Profile</span>
                                                    </a>
                                                </li>
                                                <li>
                                                    <a href="/secure/admin/withdrawal">
                                                        <i class="fas fa-money-bill"></i>
                                                        <span>Withdrawal</span>
                                                    </a>
                                                </li>
                                                <li>
                                                    <a href="/secure/admin/bonus" class="checkstatus">
                                                        <i class="fas fa-dollar-sign"></i>
                                                        <span>Bonus</span>
                                                    </a>
                                                </li>
                                                <li>
                                                    <a href="/secure/admin/history">
                                                        <i class="fas fa-history"></i>
                                                        <span>History</span>
                                                    </a>
                                                </li>
                                                <li>
                                                    <a href="/secure/admin/referral">
                                                        <i class="fas fa-users"></i>
                                                        <span>Referral</span>
                                                    </a>
                                                </li>
                                                <li>
                                                    <a href="/secure/admin/messages">
                                                        <i class="fas fa-envelope"></i>
                                                        <span>Messages</span>
                                                    </a>
                                                </li>
                                            </ul>
                                        </div>
                                    </li>
                                    <li>
                                        <span>Saldo :</span>
                                        <span class="g8-bal-total"><?php echo $sb['active']; ?></span>
                                    </li>
                                    <li class="sw-a">
                                        <span>SC :</span>
                                        <span class="sw-b">0</span>
                                    </li>
                                    <li class="misbtn">
                                        <a href="#" class="button button--yellow openmis">MISSION</a>
                                    </li>
                                    <li>
                                        <a href="/secure/admin/deposit" class="button button--yellow">DEPOSIT</a>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </section>
                <section class="header-menu">
                    <div class="wrapper">
                        <ul>
                            <li>
                                <a href="/secure/home" aria-label="home">
                                    <i class="fa fa-home"></i>
                                </a>
                            </li>
                            <li>
                                <a href="/secure/hot">
                                    <div class="row-hot-games">
                                        <span><span class="text-gold">Hot</span> Games</span>
                                        <img src="/common/assets/images/hot-menu.png" alt="hot" loading="lazy" class="hot">
                                    </div>
                                </a>
                                <div class="dropdown-menu">
                                    <div class="dropdown-menu__detail">
                                        <div class="dropdown-menu__detail-list">
                                            <a href="#" class="j-winopen" action="balakplay">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/poker-BALAK.png" alt="BalakPlay" loading="lazy">
                                                </div>
                                                <span class="title">BalakPlay</span>
                                            </a>
                                        </div>
                                        <div class="dropdown-menu__detail-list">
                                            <a href="#" class="j-winopen" action="s88-slot">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/slot-SLOT88.png" alt="Slot88" loading="lazy">
                                                </div>
                                                <span class="title">Slot88</span>
                                            </a>
                                        </div>
                                        <div class="dropdown-menu__detail-list">
                                            <a href="/secure/slots?sg=pm">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/slot-PRAGMATIC.png" alt="PP Slot" loading="lazy">
                                                </div>
                                                <span class="title">PP Slot</span>
                                            </a>
                                        </div>
                                        <div class="dropdown-menu__detail-list">
                                            <a href="#" class="j-winopen" action="ion-suit">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/lc-ION.png" alt="ION Suite" loading="lazy">
                                                </div>
                                                <span class="title">ION Suite</span>
                                            </a>
                                        </div>
                                        <div class="dropdown-menu__detail-list">
                                            <a href="#" class="j-winopen" action="evo-suit">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/lc-EVO.png" alt="EVO Suite" loading="lazy">
                                                </div>
                                                <span class="title">EVO Suite</span>
                                            </a>
                                        </div>
                                    </div>
                                </div>
                            </li>
                            <li>
                                <a href="/secure/sportsbook">Sportsbook</a>
                                <div class="dropdown-menu">
                                    <div class="dropdown-menu__detail">
                                        <div class="dropdown-menu__detail-list">
                                            <a href="#" class="j-winopen" action="wbsport">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/sportsbook-WBET.png" alt="WB Sport" loading="lazy">
                                                </div>
                                                <span class="title">WB Sport</span>
                                            </a>
                                        </div>
                                        <div class="dropdown-menu__detail-list">
                                            <a href="#" class="j-winopen" action="isport">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/sportsbook-IBCBET.png" alt="I Sport" loading="lazy">
                                                </div>
                                                <span class="title">I Sport</span>
                                            </a>
                                        </div>
                                        <div class="dropdown-menu__detail-list">
                                            <a href="#" class="j-winopen" action="ssport">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/sportsbook-SBOBET.png" alt="S Sport" loading="lazy">
                                                </div>
                                                <span class="title">S Sport</span>
                                            </a>
                                        </div>
                                        <div class="dropdown-menu__detail-list">
                                            <a href="#" class="j-winopen" action="ssport2g">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/sportsbook-SBOBET-2G.png" alt="S Sport (WAP 2G)" loading="lazy">
                                                </div>
                                                <span class="title">S Sport (WAP 2G)</span>
                                            </a>
                                        </div>
                                        <div class="dropdown-menu__detail-list">
                                            <a href="#" class="j-winopen" action="sbsport">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/sportsbook-BTI.png" alt="BTI Sport" loading="lazy">
                                                </div>
                                                <span class="title">BTI Sport</span>
                                            </a>
                                        </div>
                                        <div class="dropdown-menu__detail-list">
                                            <a href="#" class="j-winopen" action="flashtech">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/sportsbook-CMD.png" alt="CMD Sport" loading="lazy">
                                                </div>
                                                <span class="title">CMD Sport</span>
                                            </a>
                                        </div>
                                    </div>
                                </div>
                            </li>
                            <li>
                                <a href="/secure/slots-provider">Slots</a>
                                <div class="dropdown-menu">
                                    <div class="dropdown-menu__detail">
                                        <div class="dropdown-menu__detail-list">
                                            <a href="/secure/slots?sg=pm" action="pm-slot">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/slot-PRAGMATIC.png" alt="PP Slot" loading="lazy">
                                                </div>
                                                <span class="title">PP Slot</span>
                                            </a>
                                        </div>
                                        <div class="dropdown-menu__detail-list">
                                            <a href="/secure/slots?sg=mgp" action="mg-slot">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/slot-MICROGAMING.png" alt="MG Slot" loading="lazy">
                                                </div>
                                                <span class="title">MG Slot</span>
                                            </a>
                                        </div>
                                        <div class="dropdown-menu__detail-list">
                                            <a href="/secure/slots?sg=s88" action="s88-slot">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/slot-SLOT88.png" alt="Slot88" loading="lazy">
                                                </div>
                                                <span class="title">Slot88</span>
                                            </a>
                                        </div>
                                        <div class="dropdown-menu__detail-list">
                                            <a href="/secure/slots?sg=pg" action="pgsoft">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/slot-PGSOFT.png" alt="PGSoft" loading="lazy">
                                                </div>
                                                <span class="title">PGSoft</span>
                                            </a>
                                        </div>
                                        <div class="dropdown-menu__detail-list">
                                            <a href="/secure/slots?sg=lv2" action="live22-slot">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/slot-LIVE22.png" alt="Live22" loading="lazy">
                                                </div>
                                                <span class="title">Live22</span>
                                            </a>
                                        </div>
                                        <div class="dropdown-menu__detail-list">
                                            <a href="/secure/slots?sg=jl" action="jili">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/slot-JILI.png" alt="Jili" loading="lazy">
                                                </div>
                                                <span class="title">Jili</span>
                                            </a>
                                        </div>
                                        <div class="dropdown-menu__detail-list">
                                            <a href="/secure/slots?sg=vp" action="vp-slot">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/slot-VPOWER.png" alt="V Power" loading="lazy">
                                                </div>
                                                <span class="title">V Power</span>
                                            </a>
                                        </div>
                                        <div class="dropdown-menu__detail-list">
                                            <a href="/secure/slots?sg=jk" action="jk-slot">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/slot-JOKER.png" alt="Joker" loading="lazy">
                                                </div>
                                                <span class="title">Joker</span>
                                            </a>
                                        </div>
                                        <div class="dropdown-menu__detail-list">
                                            <a href="/secure/slots?sg=hb" action="habanero">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/slot-HABANERO.png" alt="Habanero" loading="lazy">
                                                </div>
                                                <span class="title">Habanero</span>
                                            </a>
                                        </div>
                                        <div class="dropdown-menu__detail-list">
                                            <a href="/secure/slots?sg=sg" action="spadegaming">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/slot-SPADEGAMING.png" alt="SG Slot" loading="lazy">
                                                </div>
                                                <span class="title">SG Slot</span>
                                            </a>
                                        </div>
                                        <div class="dropdown-menu__detail-list">
                                            <a href="/secure/slots?sg=cq9" action="cq-slot">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/slot-CQ9.png" alt="CQ9" loading="lazy">
                                                </div>
                                                <span class="title">CQ9</span>
                                            </a>
                                        </div>
                                        <div class="dropdown-menu__detail-list">
                                            <a href="/secure/slots?sg=ka" action="ka-slot">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/slot-KAGAMING.png" alt="KA Gaming" loading="lazy">
                                                </div>
                                                <span class="title">KA Gaming</span>
                                            </a>
                                        </div>
                                        <!-- <div class="dropdown-menu__detail-list">
                                            <a href="/secure/slots?sg=ion" action="ion-slot">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu/sg-ion.png" alt="ION" loading="lazy">
                                                </div>
                                                <span class="title">ION</span>
                                            </a>
                                        </div> -->
                                        <div class="dropdown-menu__detail-list">
                                            <a href="/secure/slots?sg=gp" action="gp-slot">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/slot-GAMEPLAY.png" alt="GP Slot" loading="lazy">
                                                </div>
                                                <span class="title">GP Slot</span>
                                            </a>
                                        </div>
                                        <div class="dropdown-menu__detail-list">
                                            <a href="/secure/slots?sg=pt" action="pt-slot">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/slot-PLAYTECH.png" alt="PT Slot" loading="lazy">
                                                </div>
                                                <span class="title">PT Slot</span>
                                            </a>
                                        </div>
                                        <div class="dropdown-menu__detail-list">
                                            <a href="/secure/slots?sg=ps" action="playstar">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/slot-PLAYSTAR.png" alt="Playstar" loading="lazy">
                                                </div>
                                                <span class="title">Playstar</span>
                                            </a>
                                        </div>
                                        <!-- <div class="dropdown-menu__detail-list">
                                            <a href="/secure/slots?sg=tsg" action="tsg-slot">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu/sg-tsg.png" alt="TSG" loading="lazy">
                                                </div>
                                                <span class="title">TSG</span>
                                            </a>
                                        </div> -->
                                        <!-- <div class="dropdown-menu__detail-list">
                                            <a href="/secure/slots?sg=sa" action="slotace">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu/sg-sa.png" alt="Slot Ace" loading="lazy">
                                                </div>
                                                <span class="title">Slot Ace</span>
                                            </a>
                                        </div> -->
                                        <div class="dropdown-menu__detail-list">
                                            <a href="/secure/slots?sg=nt" action="nt-slot">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/slot-NETENT.png" alt="Netent" loading="lazy">
                                                </div>
                                                <span class="title">Netent</span>
                                            </a>
                                        </div>
                                        <div class="dropdown-menu__detail-list">
                                            <a href="/secure/slots?sg=nc" action="nc-slot">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/slot-NLC.png" alt="NoLimit City" loading="lazy">
                                                </div>
                                                <span class="title">NoLimit City</span>
                                            </a>
                                        </div>
                                        <div class="dropdown-menu__detail-list">
                                            <a href="/secure/slots?sg=rt" action="rt-slot">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/slot-RED-TIGER.png" alt="Red Tiger" loading="lazy">
                                                </div>
                                                <span class="title">Red Tiger</span>
                                            </a>
                                        </div>
                                        <!-- <div class="dropdown-menu__detail-list">
                                            <a href="/secure/slots?sg=fs" action="fs-slot">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/slot-FASTSPIN.png" alt="FastSpin" loading="lazy">
                                                </div>
                                                <span class="title">FastSpin</span>
                                            </a>
                                        </div> -->
                                        <div class="dropdown-menu__detail-list">
                                            <a href="/secure/slots?sg=jb" action="jb-slot">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/slot-JDB.png" alt="JDB" loading="lazy">
                                                </div>
                                                <span class="title">JDB</span>
                                            </a>
                                        </div>
                                        <div class="dropdown-menu__detail-list">
                                            <a href="/secure/slots?sg=fc" action="fc-slot">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/slot-FACHAI.png" alt="Fa Chai" loading="lazy">
                                                </div>
                                                <span class="title">Fa Chai</span>
                                            </a>
                                        </div>
                                        <!-- <div class="dropdown-menu__detail-list">
                                            <a href="/secure/slots?sg=sp" action="sp-slot">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/slot-SPINIX.png" alt="Spinix" loading="lazy">
                                                </div>
                                                <span class="title">Spinix</span>
                                            </a>
                                        </div> -->
                                        <div class="dropdown-menu__detail-list">
                                            <a href="/secure/slots?sg=ap" action="ap-slot">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/slot-AP.png" alt="AdvantPlay" loading="lazy">
                                                </div>
                                                <span class="title">AdvantPlay</span>
                                            </a>
                                        </div>
                                        <div class="dropdown-menu__detail-list">
                                            <a href="/secure/slots?sg=hs" action="hs-slot">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/slot-HACKSAW.png" alt="Hacksaw" loading="lazy">
                                                </div>
                                                <span class="title">Hacksaw</span>
                                            </a>
                                        </div>
                                        <div class="dropdown-menu__detail-list">
                                            <a href="/secure/slots?sg=bng" action="bng-slot">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/slot-BNG.png" alt="BNG" loading="lazy">
                                                </div>
                                                <span class="title">BNG</span>
                                            </a>
                                        </div>
                                        <div class="dropdown-menu__detail-list">
                                            <a href="/secure/slots?sg=png" action="png-slot">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/slot-PLAYNGO.png" alt="PLAYNGO" loading="lazy">
                                                </div>
                                                <span class="title">PlaynGo</span>
                                            </a>
                                        </div>
                                        <!-- <div class="dropdown-menu__detail-list">
                                            <a href="/secure/slots?sg=ams" action="ams-slot">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/slot-ASKME.png" alt="ASKME" loading="lazy">
                                                </div>
                                                <span class="title">Askmeslot</span>
                                            </a>
                                        </div> -->
                                        <div class="dropdown-menu__detail-list">
                                            <a href="/secure/slots?sg=alz" action="alz-slot">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/slot-ALIZE.png" alt="Alize" loading="lazy">
                                                </div>
                                                <span class="title">Alize</span>
                                            </a>
                                        </div>
                                        <div class="dropdown-menu__detail-list">
                                            <a href="/secure/slots?sg=ep" action="ep-slot">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/slot-EVOPLAY.png" alt="Evoplay" loading="lazy">
                                                </div>
                                                <span class="title">Evoplay</span>
                                            </a>
                                        </div>
                                        <div class="dropdown-menu__detail-list">
                                            <a href="/secure/slots?sg=ebtg" action="ebtg-slot">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/slot-BTG.png" alt="Big Time Game" loading="lazy">
                                                </div>
                                                <span class="title">Big Time Game</span>
                                            </a>
                                        </div>
                                        <div class="dropdown-menu__detail-list">
                                            <a href="/secure/slots?sg=ibx" action="ibx-slot">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/slot-IBEX.png" alt="Ibex" loading="lazy">
                                                </div>
                                                <span class="title">Ibex</span>
                                            </a>
                                        </div>
                                        <!-- <div class="dropdown-menu__detail-list">
                                            <a href="/secure/slots?sg=rlx" action="rlx-slot">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/slot-RELAX.png" alt="Relax Gaming" loading="lazy">
                                                </div>
                                                <span class="title">Relax Gaming</span>
                                            </a>
                                        </div> -->
                                        <div class="dropdown-menu__detail-list">
                                            <a href="/secure/slots?sg=emp" action="emp-slot">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/slot-IMPERIUM.png" alt="Imperium Games" loading="lazy">
                                                </div>
                                                <span class="title">Imperium Games</span>
                                            </a>
                                        </div>
                                        <!-- <div class="dropdown-menu__detail-list">
                                            <a href="/secure/slots?sg=ns" action="ns-slot">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/slot-NEXTSPIN.png" alt="Nextspin" loading="lazy">
                                                </div>
                                                <span class="title">Nextspin</span>
                                            </a>
                                        </div> -->
                                        <!-- <div class="dropdown-menu__detail-list">
                                            <a href="/secure/slots?sg=ss" action="ss-slot">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/slot-SMARTSOFT.png" alt="Smartsoft" loading="lazy">
                                                </div>
                                                <span class="title">Smartsoft</span>
                                            </a>
                                        </div> -->
                                    </div>
                                </div>
                            </li>
                            <li>
                                <a href="/secure/livecasino">Live Casino</a>
                                <div class="dropdown-menu">
                                    <div class="dropdown-menu__detail">
                                        <div class="dropdown-menu__detail-list">
                                            <a href="#" class="j-winopen" action="pm-suit">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/lc-PP.png" alt="PP Suite" loading="lazy">
                                                </div>
                                                <span class="title">PP Suite</span>
                                            </a>
                                        </div>
                                        <div class="dropdown-menu__detail-list">
                                            <a href="#" class="j-winopen" action="wm-suit">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/lc-WM.png" alt="WM Suite" loading="lazy">
                                                </div>
                                                <span class="title">WM Suite</span>
                                            </a>
                                        </div>
                                        <!-- <div class="dropdown-menu__detail-list">
                                            <a href="#" class="j-winopen" action="vivo-suit">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/lc-VIVO.png" alt="Vivo Suite" loading="lazy">
                                                </div>
                                                <span class="title">Vivo Suite</span>
                                            </a>
                                        </div> -->
                                        <div class="dropdown-menu__detail-list">
                                            <a href="#" class="j-winopen" action="ebet-suit">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/lc-EB.png" alt="EBET Suite" loading="lazy">
                                                </div>
                                                <span class="title">EBET Suite</span>
                                            </a>
                                        </div>
                                        <div class="dropdown-menu__detail-list">
                                            <a href="#" class="j-winopen" action="sexy-suit">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/lc-SXY.png" alt="SEXY Suite" loading="lazy">
                                                </div>
                                                <span class="title">SEXY Suite</span>
                                            </a>
                                        </div>
                                        <div class="dropdown-menu__detail-list">
                                            <a href="#" class="j-winopen" action="sa-suit">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/lc-SA.png" alt="SA Suite" loading="lazy">
                                                </div>
                                                <span class="title">SA Suite</span>
                                            </a>
                                        </div>
                                        <div class="dropdown-menu__detail-list">
                                            <a href="#" class="j-winopen" action="ion-suit">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/lc-ION.png" alt="ION Suite" loading="lazy">
                                                </div>
                                                <span class="title">ION Suite</span>
                                            </a>
                                        </div>
                                        <div class="dropdown-menu__detail-list">
                                            <a href="#" class="j-winopen" action="evo-suit">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/lc-EVO.png" alt="EVO Suite" loading="lazy">
                                                </div>
                                                <span class="title">EVO Suite</span>
                                            </a>
                                        </div>
                                        <!-- <div class="dropdown-menu__detail-list">
                                            <a href="#" class="j-winopen" action="evo-suit2">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/lc-EVO.png" alt="EVO Suite 2" loading="lazy">
                                                </div>
                                                <span class="title">EVO Suite 2</span>
                                            </a>
                                        </div> -->
                                        <div class="dropdown-menu__detail-list">
                                            <a href="#" class="j-winopen" action="ab-suit">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/lc-AB.png" alt="AB Suite" loading="lazy">
                                                </div>
                                                <span class="title">AB Suite</span>
                                            </a>
                                        </div>
                                        <div class="dropdown-menu__detail-list">
                                            <a href="#" class="j-winopen" action="gp-suit">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/lc-GP.png" alt="GP Suite" loading="lazy">
                                                </div>
                                                <span class="title">GP Suite</span>
                                            </a>
                                        </div>
                                        <div class="dropdown-menu__detail-list">
                                            <a href="#" class="j-winopen" action="p-suit">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/lc-PT.png" alt="PT Suite" loading="lazy">
                                                </div>
                                                <span class="title">PT Suite</span>
                                            </a>
                                        </div>
                                        <div class="dropdown-menu__detail-list">
                                            <a href="#" class="j-winopen" action="ag-suit">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/lc-AG.png" alt="AG Suite" loading="lazy">
                                                </div>
                                                <span class="title">AG Suite</span>
                                            </a>
                                        </div>
                                        <div class="dropdown-menu__detail-list">
                                            <a href="#" class="j-winopen" action="mg-suit">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/lc-MG.png" alt="MG Suite" loading="lazy">
                                                </div>
                                                <span class="title">MG Suite</span>
                                            </a>
                                        </div>
                                        <div class="dropdown-menu__detail-list">
                                            <a href="#" class="j-winopen" action="s-suit">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/lc-SBO.png" alt="S Suite" loading="lazy">
                                                </div>
                                                <span class="title">S Suite</span>
                                            </a>
                                        </div>
                                        <!-- <div class="dropdown-menu__detail-list">
                                            <a href="#" class="j-winopen" action="og-suit">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/lc-OG.png" alt="OG Suite" loading="lazy">
                                                </div>
                                                <span class="title">OG Suite</span>
                                            </a>
                                        </div> -->
                                        <!-- <div class="dropdown-menu__detail-list">
                                            <a href="#" class="j-winopen" action="dg-suit">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu/lc-dg.png" alt="DG Suite" loading="lazy">
                                                </div>
                                                <span class="title">DG Suite</span>
                                            </a>
                                        </div> -->
                                    </div>
                                </div>
                            </li>
                            <li>
                                <a href="/secure/poker">Poker</a>
                                <div class="dropdown-menu">
                                    <div class="dropdown-menu__detail">
                                        <div class="dropdown-menu__detail-list">
                                            <a href="#" class="j-winopen" action="balakplay">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/poker-BALAK.png" alt="Balak Poker" loading="lazy">
                                                </div>
                                                <span class="title">Balak Poker</span>
                                            </a>
                                        </div>
                                        <!-- <div class="dropdown-menu__detail-list">
                                            <a href="#" class="j-winopen" action="1gaming">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu/poker-9gaming.png" alt="9GAMING" loading="lazy">
                                                </div>
                                                <span class="title">9GAMING</span>
                                            </a>
                                        </div> -->
                                        <div class="dropdown-menu__detail-list">
                                            <a href="#" class="j-winopen" action="p2play">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/poker-P2P.png" alt="P2PLAY" loading="lazy">
                                                </div>
                                                <span class="title">P2PLAY</span>
                                            </a>
                                        </div>
                                        <!-- <div class="dropdown-menu__detail-list">
                                            <a href="#" class="j-winopen" action="sukagaming">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/poker-SUKA.png" loading="lazy">
                                                </div>
                                                <span class="title">SukaGaming</span>
                                            </a>
                                        </div> -->
                                    </div>
                                </div>
                            </li>
                            <li>
                                <a href="/secure/tangkas">Tangkas</a>
                                <div class="dropdown-menu">
                                    <div class="dropdown-menu__detail">
                                        <div class="dropdown-menu__detail-list">
                                            <a href="#" class="j-winopen" action="tangkas">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/tangkas.png" alt="Tangkas" loading="lazy">
                                                </div>
                                                <span class="title">Tangkas</span>
                                            </a>
                                        </div>
                                    </div>
                                </div>
                            </li>
                            <li>
                                <a href="/secure/fish">Fish</a>
                                <div class="dropdown-menu">
                                    <div class="dropdown-menu__detail">
                                        <div class="dropdown-menu__detail-list">
                                            <a href="#" class="j-winopen" action="vp-fish">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/fish-VPOWER.png" alt="V Power" loading="lazy">
                                                </div>
                                                <span class="title">V Power</span>
                                            </a>
                                        </div>
                                        <!-- <div class="dropdown-menu__detail-list">
                                            <a href="#" class="j-winopen" action="fishace">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu/fish-fa.png" alt="Fish Ace" loading="lazy">
                                                </div>
                                                <span class="title">Fish Ace</span>
                                            </a>
                                        </div> -->
                                        <div class="dropdown-menu__detail-list">
                                            <a href="#" class="j-winopen" action="ka-fish">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/fish-KAGAMING.png" alt="KA Gaming" loading="lazy">
                                                </div>
                                                <span class="title">KA Gaming</span>
                                            </a>
                                        </div>
                                        <div class="dropdown-menu__detail-list">
                                            <a href="#" class="j-winopen" action="jk-fish">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/fish-JOKER.png" alt="Joker" loading="lazy">
                                                </div>
                                                <span class="title">Joker</span>
                                            </a>
                                        </div>
                                        <!-- <div class="dropdown-menu__detail-list">
                                            <a href="#" class="j-winopen" action="others-pt">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu/others-pt.png" alt="Playtech" loading="lazy">
                                                </div>
                                                <span class="title">Playtech</span>
                                            </a>
                                        </div> -->
                                    </div>
                                </div>
                            </li>
                            <li>
                                <a href="/secure/others">Others</a>
                                <div class="dropdown-menu">
                                    <div class="dropdown-menu__detail">
                                        <!-- <div class="dropdown-menu__detail-list">
                                            <a href="#" class="j-winopen" action="luxe4d">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/others-LUXE4D.png" alt="LUXE4D" loading="lazy">
                                                </div>
                                                <span class="title">LUXE4D</span>
                                            </a>
                                        </div> -->
                                        <div class="dropdown-menu__detail-list">
                                            <a href="#" class="j-winopen" action="balak4d">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/others-NEX4D.png" alt="NEX4D" loading="lazy">
                                                </div>
                                                <span class="title">NEX4D</span>
                                            </a>
                                        </div>
                                        <div class="dropdown-menu__detail-list">
                                            <a href="#" class="j-winopen" action="p93">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/others-93CONNECT.png" alt="93Connect" loading="lazy">
                                                </div>
                                                <span class="title">93Connect</span>
                                            </a>
                                        </div>
                                        <div class="dropdown-menu__detail-list">
                                            <a href="#" class="j-winopen" action="cf388">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/others-COCKFIGHT.png" alt="CockFT" loading="lazy">
                                                </div>
                                                <span class="title">CockFT</span>
                                            </a>
                                        </div>
                                        <!-- <div class="dropdown-menu__detail-list">
                                            <a href="#" class="j-winopen" action="ka-others">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu/others-ka.png" alt="KA Gaming" loading="lazy">
                                                </div>
                                                <span class="title">KA Gaming</span>
                                            </a>
                                        </div> -->
                                        <!-- <div class="dropdown-menu__detail-list">
                                            <a href="#" class="j-winopen" action="spribe">
                                                <div class="img-thumbnail">
                                                    <img src="/common/assets/images/banner/menu-v2/others-SPRIBE.png" alt="Spribe" loading="lazy">
                                                </div>
                                                <span class="title">Spribe</span>
                                            </a>
                                        </div> -->
                                    </div>
                                </div>
                            </li>
                            <li>
                                <a href="/secure/promotions">Promosi</a>
                            </li>
                        </ul>
                    </div>
                </section>
            </header>
            <section class="slider">
                <section class="marquee">
                    <div class="wrapper">
                        <div class="s-a">
                            <div class="marquee__bullhorn">
                                <i class="fas fa-bullhorn"></i>
                            </div>
                        </div>
                    </div>
                </section>
            </section>
            <section class="profile">
                <div class="wrapper">
                    <div class="profile__nav">
                        <ul>
                            <li>
                                <a href="/secure/admin/profile">
                                    <i class="far fa-user"></i>
                                    <span>Profile</span>
                                </a>
                            </li>
                            <li class="active">
                                <a href="/secure/admin/deposit">
                                    <i class="fas fa-wallet"></i>
                                    <span>Deposit</span>
                                </a>
                            </li>
                            <li>
                                <a href="/secure/admin/withdrawal">
                                    <i class="fas fa-money-bill"></i>
                                    <span>Withdrawal</span>
                                </a>
                            </li>
                            <li>
                                <a href="/secure/admin/bonus">
                                    <i class="fas fa-dollar-sign"></i>
                                    <span>Bonus</span>
                                </a>
                            </li>
                            <li>
                                <a href="/secure/admin/history">
                                    <i class="fas fa-history"></i>
                                    <span>History</span>
                                </a>
                            </li>
                            <li>
                                <a href="/secure/admin/referral">
                                    <i class="fas fa-users"></i>
                                    <span>Referral</span>
                                </a>
                            </li>
                            <li>
                                <a href="/secure/admin/messages">
                                    <i class="fas fa-envelope"></i>
                                    <span>Messages</span>
                                </a>
                                <div class="notif-wrapper hide">
                                    <div class="notif-info notanim"></div>
                                </div>
                            </li>
                        </ul>
                    </div>
                </div>
            </section>
            <div class="wrapper">
                <section class="balance">
                    <div class="g8-bal-top"><p>Saldo</p>
                        <span class="g8-bal-total"><?php echo $sb['active']; ?></span>
                    </div>
                </section>
                <section class="funds">
                    <div class="funds__detail">
                        <div class="funds__detail-left">
                            <ul>
                                <li>
                                    <span class="text-center">Bank Transfer</span>
                                </li>
                                <li>
                                    <span>Min/Max Limit (IDR):</span>
                                    <span>
                                        <span class="minReq"></span> /
                                        <span class="maxReq"></span>
                                    </span>
                                </li>
                                <li class="-va" style="display: none;">
                                    <span class="text-center">VA Bank</span>
                                </li>
                                <li class="-va" style="display: none;">
                                    <span>Min/Max Limit (IDR):</span>
                                    <span>
                                        <span class="minVaReq"></span> /
                                        <span class="maxVaReq"></span>
                                    </span>
                                </li>
                                <li>
                                    <span class="text-center">Pulsa</span>
                                </li>
                                <li>
                                    <span>Min/Max Limit (IDR):</span>
                                    <span>
                                        <span class="minPulsa"></span> /
                                        <span class="maxPulsa"></span>
                                    </span>
                                </li>
                                <li>
                                    <span class="text-center">E-Money</span>
                                </li>
                                <li>
                                    <span>Min/Max Limit (IDR):</span>
                                    <span>
                                        <span class="minEMoney"></span> /
                                        <span class="maxEMoney"></span>
                                    </span>
                                </li>
                                <li class="g8qris" style="display:none;">
                                    <img src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=" style="max-width: 100%;">
                                </li>
                            </ul>
                        </div>
                        <div class="funds__detail-right depo-wrap">
                            <div class="form-detail form-detail--full depo-select-wrap hide">
                                <ul class="depo-select">
                                    <li data-target=".depo-select-form" data-subtarget=".manual" class="active">
                                        <div class="icon-menu">
                                            <i class="fa fa-inbox"></i>
                                        </div>
                                        <p>Deposit (Manual)</p>
                                    </li>
                                    <li data-target=".depo-select-form" data-subtarget=".cepat" class="depocepat">
                                        <div class="icon-menu">
                                            <i class="fa fa-mobile"></i>
                                        </div>
                                        <p>Deposit Cepat (Ewallet & QRIS)</p>
                                        <div class="badge-description bg-green fly">
                                            <span class="field-description">Otomatis</span>
                                        </div>
                                    </li>
                                    <li data-target=".depo-select-form" data-subtarget=".cepat" class="depovip">
                                        <div class="icon-menu">
                                            <i class="fa fa-qrcode"></i>
                                        </div>
                                        <p>Otomatis VIP (QRIS)</p>
                                        <div class="badge-description bg-green fly">
                                            <span class="field-description">Otomatis</span>
                                        </div>
                                    </li>
                                    <li data-target=".depo-select-iframe" class="instant-deposit">
                                        <div class="icon-menu">
                                            <i class="fa fa-qrcode"></i>
                                        </div>
                                        <p>Instan Deposit (QRIS)</p>
                                        <div class="badge-description bg-green fly">
                                            <span class="field-description">Otomatis</span>
                                        </div>
                                    </li>
                                </ul>
                            </div>
                            <form id="confirm-form" action="/ajax/cm/reqDeposit" method="post" class="depo-select-form">
                                <div class="detail-box">
                                    <div class="form-detail form-detail--full depo-form manual">
                                        <div class="row-title">
                                            <span class="field-title">DEPOSIT INFORMATION</span>
                                            <div class="badge-description">
                                                <span class="field-description">Proses pengecekan manual</span>
                                            </div>
                                        </div>
                                        <hr>
                                    </div>
                                    <div class="form-detail form-detail--full depo-form cepat hide">
                                        <div class="row-title">
                                            <span class="field-title">DEPOSIT CEPAT</span>
                                            <div class="badge-description bg-green">
                                                <span class="field-description">Proses otomatis</span>
                                            </div>
                                        </div>
                                        <hr>
                                    </div>
                                    <div class="deposit-option__list-metode">
                                        <div class="form-group form-detail list-metode depo-form manual">
                                            <label>Pilih Metode Pembayaran:</label>
                                            <div class="row-list-metode">
                                                <div class="btn active" data-type="1">
                                                    <i class="fa fa-credit-card"></i>
                                                    <span>BANK</span>
                                                </div>
                                                <div class="btn" data-type="11">
                                                    <i class="fa fa-wallet"></i>
                                                    <span>E-WALLET</span>
                                                </div>
                                                <div class="btn" data-type="10">
                                                    <i class="fa fa-mobile"></i>
                                                    <span>PULSA</span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="form-group form-detail list-metode depo-form cepat hide">
                                            <label>Pilih Metode Pembayaran:</label>
                                            <div class="row-list-metode">
                                                <div class="btn-img" data-bid="1001">
                                                    <img data-name=".dana" src="/common/assets/images/dana-logo.svg" alt="">
                                                </div>
                                                <div class="btn-img" data-bid="1002">
                                                    <img data-name=".ovo" src="/common/assets/images/ovo-logo.png" alt="">
                                                </div>
                                                <div class="btn-img" data-bid="1000">
                                                    <img data-name=".qris" src="/common/assets/images/qris-logo.png" alt="">
                                                </div>
                                                <div class="btn-img" data-bid="1003">
                                                    <img data-name=".qris" src="/common/assets/images/qris-logo.png" alt="">
                                                </div>
                                                <div class="btn-img" data-bid="1021">
                                                    <img data-name=".dana" src="/common/assets/images/dana-logo.svg" alt="">
                                                </div>
                                                <div class="btn-img" data-bid="1022">
                                                    <img data-name=".ovo" src="/common/assets/images/ovo-logo.png" alt="">
                                                </div>
                                                <div class="btn-img" data-bid="1020">
                                                    <img data-name=".qris" src="/common/assets/images/qris-logo.png" alt="">
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="deposit-option">
                                        <div class="deposit-option__form">
                                            <div class="form-detail form-detail--full form-group depo-form manual">
                                                <label><span class="text-danger">*</span> Bank</label>
                                                <select name="bankId" class="form-control required bank-get">
                                                    <option value="">Silahkan Pilih</option>
                                                </select>
                                                <button type="button" class="button button-sm button--yellow copyBtn" data-clipboard-text="" style="display: none;">Salin No Rek Bank</button>
                                            </div>
                                            <div class="form-detail form-detail--full g8b-rpp-holder" style="display: none;">
                                                <div class="dib d50">
                                                    <div>
                                                        <strong>Account Name</strong><br>
                                                        <span class="g8b-rpp-accname">-</span>
                                                    </div>
                                                    <div>
                                                        <strong>Mobile Number</strong><br>
                                                        <span class="g8b-rpp-mno">-</span>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="form-detail form-detail--full g8b-rpp-holder" style="display: none;">
                                                <label><span class="text-danger">*</span> Serial No.</label>
                                                <input type="text" name="telcoSno" class="form-control required" placeholder="">
                                            </div>
                                            <div class="form-detail form-detail--full">
                                                <label><span class="text-danger">*</span> Total (IDR) </label>
                                                <input type="text" class="form-control required amo" placeholder="">
                                                <input type="hidden" name="amount">
                                                <div class="g8qris" style="text-align: center; padding-top: 5px; font-size: 11px; display: none;">
                                                    <p style="padding: 0px; margin:0px; font-size: 14px; font-weight: bold; color: #fbb11a;"></p>
                                                    <span>Silahkan Transfer Mengunakan Barcode QRIS</span>
                                                </div>
                                            </div>
                                            <div class="form-detail form-detail--full gPromo">
                                                <label>Promotion (Bonus)</label>
                                                <select name="promotionId" class="form-control promotionId">
                                                    <option value="">Silahkan Pilih</option>
                                                    <option value="">No Bonus</option>
                                                </select>
                                            </div>
                                            <div class="form-detail form-detail--full promotion-info hide">
                                                <div class="promo-wrap">
                                                    <div class="title"></div>
                                                    <ul>
                                                        <li>
                                                            Min. Depo
                                                            <span class="min-depo">IDR 100.000</span>
                                                        </li>
                                                        <li>
                                                            Max. Bonus
                                                            <span class="max-bonus">IDR 100.000.000</span>
                                                        </li>
                                                        <li>
                                                            Syarat Turnover
                                                            <span class="syarat-turnover">25x</span>
                                                        </li>
                                                    </ul>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="deposit-option__info depo-form manual">
                                            <div class="form-detail form-detail--full">
                                                <div class="wrapper-information">
                                                    <div class="wrapper-icon">
                                                        <i class="fa fa-info"></i>
                                                    </div>
                                                    <span>Silakan transfer ke rekening yang tertera terlebih dahulu, setelah anda melakukan transfer, kemudia isi dan lengkapi form deposit berikut</span>
                                                </div>
                                            </div>
                                            <div class="form-detail form-detail--full depo-form manual">
                                                <label> Catatan </label>
                                                <input type="text" id="telcoRemark" name="telcoRemark" class="form-control textfield1 dp-remark" placeholder="No. Referensi/ Name Pengirim">
                                            </div>
                                            <div class="form-detail form-detail--full depo-form manual">
                                                <label>Bukti Setoran</label>
                                                <input id="receipt" name="receipt" type="file" accept=".pdf,.jpg,.jpeg,.png,.gif" class="rpb" filesize="5">
                                            </div>
                                        </div>
                                        <div class="deposit-option__info depo-form cepat hide">
                                            <div class="form-detail form-detail--full">
                                                <div class="wrapper-information">
                                                    <div class="wrapper-icon-img">
                                                        <i class="fa fa-info"></i>
                                                    </div>
                                                    <div class="wrapper-description-information">
                                                        <img src="/common/assets/images/dana-logo.svg" alt="img-description-deposit-cepat" class="img-description-deposit-cepat">
                                                        <br/>
                                                        <span class="depo-cepat-wording dana hide">Anda akan diarahkan ke halaman resmi DANA untuk melakukan pembayaran dengan menggunakan akun DANA</span>
                                                        <span class="depo-cepat-wording ovo hide">Anda akan menerima notifikasi di aplikasi OVO anda untuk melakukan pembayaran</span>
                                                        <span class="depo-cepat-wording qris hide">Anda akan menerima QR CODE (QRIS), dan scan QR CODE untuk melakukan pembayaran</span>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <button type="submit" class="button button--yellow btn-submit">SUBMIT</button>
                                </div>
                            </form>
                            <iframe src="about:blank" class="depo-select-iframe hide"></iframe>
                        </div>
                    </div>
                </section>
            </div>
            <section class="sidebar s-sidebar"></section>
            <footer>
                <div class="wrapper">
                    <section class="social-logo s-cs2">
                        <ul></ul>
                    </section>
                    <section class="nav-bottom">
                        <ul>
                            <li>
                                <a href="/secure/aboutus">Tentang Kami</a>
                            </li>
                            <li>
                                <a href="/secure/tnc">Syarat & Ketentuan</a>
                            </li>
                            <li>
                                <a href="/secure/policy">Pribadi</a>
                            </li>
                            <li>
                                <a href="/secure/responsible-gaming">Tanggung Jawab</a>
                            </li>
                            <li>
                                <a href="/secure/faq">Pusat Info</a>
                            </li>
                            <li>
                                <a href="<?php echo $s1a['livechat']; ?>">Hubungi Kami</a>
                            </li>
                        </ul>
                        <div class="seo">
                            <h1 style="text-align:center"><?php echo $instansi ?>: Daftar Situs Slot Gacor Online Terpercaya Gampang Menang Hari Ini  <br></h1><p style="text-align:justify"><?php echo $instansi ?> adalah <a href="https://dimitriospizza.com/" style="color:#32a8ea">situs slot gacor</a> terbaik yang menghadirkan pengalaman bermain slot online terpercaya seperti slot88 dengan modal taruhan terkecil namun gampang maxwin. Mesin <a href="https://pulanginsanity.com/" style="color:#32a8ea">slot</a> merupakan permainan tarik tuas yang terdiri dari tiga gulungan dengan simbol unik pada setiap putarannya. Sedangkan, <a href="https://dimitriospizza.com/" style="color:#32a8ea">slot online</a> adalah permainan mesin slot yang dapat dimainkan secara online (daring) dan merupakan permainan hiburan yang menawarkan kemenangan terus menerus dan peluang gacor maxwin tertinggi.</p>
<p style="text-align:justify"><a href="https://dimitriospizza.com/" style="color:#32a8ea">Link slot gacor</a> gampang menang&nbsp;tersedia 24 jam nonstop memberikan pelayanan terbaik dengan kenikmatan bermain judi slot online nomor 1 di indonesia. Permainan slot gacor dengan minimal deposit 5000 dan bet hanya 50 perak menjadi&nbsp;pilihan terbaik&nbsp;sebagai situs <a href="https://dimitriospizza.com/" style="color:#32a8ea">slot gacor hari ini</a> yang paling gampang dapat sensational. Slot resmi anti rungkat dilengkapi rtp slot terpercaya kami sajikan agar setiap pemain bisa dengan mudah mendapatkan live rtp terbaru dengan persentase menang lebih tinggi. Ayo gabung&nbsp;sekarang,&nbsp;mainkan game slot gacor 2025 terbaru dan raih peluang maxwin lebih besar.</p>
                        </div>
                    </section>
                    <section class="information">
                        <div class="information__detail">
                            <h1 class="heading">INFORMASI</h1>
                            <h2 class="subheading">Daftar</h2>
                            <p>Buka akun untuk menikmati semua promosi taruhan online kami dan hiburan game berkualitas premium dengan kualitas luar biasa. Kami menyediakan semua produk yang Anda butuhkan, terutama untuk pasar Indonesia saja. Deposit / Penarikan cepat, grafik yang menarik, mudah diakses dengan banyak browser.</p>
                            <h2 class="subheading">Pribadi</h2>
                            <p>Dengan menerapkan teknologi keamanan paling canggih yang tersedia saat ini, kami memastikan bahwa semua informasi pribadi dan transaksi anggota akan benar-benar aman.</p>
                        </div>
                        <div class="information__detail">
                            <h1 class="heading">PRODUK</h1>
                            <h2 class="subheading">Taruhan Sports & Taruhan Live</h2>
                            <p>Kami menawarkan semua olahraga utama seperti Liga Inggris, La Liga, Serie A, Liga Champion, Ligue 1, Liga Jerman, NFL, NBA, NCAA, Basketball, Tenis, Formula 1 dan banyak lagi. Kami menawarkan hingga 4,000 Taruhan Live pertandingan sepakbola setiap bulannya untuk kesenangan bermain anda.</p>
                            <h2 class="subheading">Live Casino</h2>
                            <p>Kami memiliki berbagai pilihan penawaran. Ini termasuk Live Dealer Kasino dengan tampilan Live Lobby, Dealer Asia cantik, Live Baccarat, Live Sic Bo, Live Dragon Tiger, Live Roulette, Slot Online Kasino dan permainan Keno.</p>
                            <h2 class="subheading">Game Slot</h2>
                            <p>Ratusan permainan Slot yang menarik dan penuh warna dengan peluang untuk memenangkan Jackpot hingga miliaran Rupiah selalu siap untuk Anda taklukkan.</p>
                        </div>
                        <div class="information__detail">
                            <h1 class="heading">PUSAT INFO</h1>
                            <h2 class="subheading">Pusat Bantuan</h2>
                            <p>Lihat halaman FAQ kami untuk aturan taruhan dan bantuan game. Ini berisi bantuan pada pembukaan akun, deposit, penarikan dan bantuan teknis.</p>
                            <h2 class="subheading">Cara Pembayaran</h2>
                            <p>Kami memberikan pilihan tepat bagi pelanggan untuk melakukan deposit dan penarikan. Semua transaksi akan diproses dengan cepat dan aman.</p>
                            <h2 class="subheading">Hubungi Kami</h2>
                            <p>Jika Anda memerlukan bantuan atau memiliki pertanyaan tentang taruhan, kami tersedia 24/7 melalui Live Chat (Whatsapp, Line, Skype...), Telepon dan Email.</p>
                        </div>
                        <div class="information__detail">
                            <h1 class="heading">PROMOSI DAN PENAWARAN KHUSUS</h1>
                            <h2 class="subheading">Promosi</h2>
                            <p>Kami menawarkan bonus penyambutan untuk anggota baru, reload bonus, promosi bulanan di semua produk, rebate harian dan mingguan. Selain itu, ada program ucapan terima kasih untuk anggota yang aktif dan banyak game mini untuk memberikan ribuan kartu game setiap minggu.</p>
                            <h2 class="subheading">Klub Reward</h2>
                            <p>Dapatkan poin dari setiap taruhan dan tukarkan produk fashion atau teknologi terbaru ketika Anda mengunjungi halaman tukar hadiah. Hadiah akan dikirimkan kepada Anda dalam waktu 7 hari.</p>
                            <h2 class="subheading">Klub VIP</h2>
                            <p>Menjadi VIP kami untuk mendapatkan layanan dan profesionalisme terbaik, dengan ribuan hadiah dan program promosi khusus untuk VIP!</p>
                        </div>
                    </section>
                    <div class="partner">
                        <div class="row">
                            <div class="provider_group">
                                <p>SPORTSBOOK</p>
                                <ul>
                                    <li>
                                        <i class="provider provider-wb"></i>
                                    </li>
                                    <li>
                                        <i class="provider provider-ibcbet"></i>
                                    </li>
                                    <li>
                                        <i class="provider provider-sbobet"></i>
                                    </li>
                                    <li>
                                        <i class="provider provider-cmd"></i>
                                    </li>
                                </ul>
                            </div>
                            <span>GAME PROVIDER</span>
                        </div>
                        <div class="provider_group">
                            <p>SLOTS</p>
                            <ul>
                                <li>
                                    <i class="provider provider-live22"></i>
                                </li>
                                <li>
                                    <i class="provider provider-pp"></i>
                                </li>
                                <li>
                                    <i class="provider provider-vp"></i>
                                </li>
                                <li>
                                    <i class="provider provider-s88"></i>
                                </li>
                                <li>
                                    <i class="provider provider-joker"></i>
                                </li>
                                <li>
                                    <i class="provider provider-pgsoft"></i>
                                </li>
                                <li>
                                    <i class="provider provider-hb"></i>
                                </li>
                                <li>
                                    <i class="provider provider-sg"></i>
                                </li>
                                <li>
                                    <i class="provider provider-cq"></i>
                                </li>
                                <li>
                                    <i class="provider provider-ka"></i>
                                </li>
                                <li>
                                    <i class="provider provider-gp"></i>
                                </li>
                                <li>
                                    <i class="provider provider-pt"></i>
                                </li>
                                <li>
                                    <i class="provider provider-mg"></i>
                                </li>
                                <li>
                                    <i class="provider provider-playstar"></i>
                                </li>
                            </ul>
                        </div>
                        <div class="provider_group">
                            <p>LIVE CASINO</p>
                            <ul>
                                <li>
                                    <i class="provider provider-pp"></i>
                                </li>
                                <li>
                                    <i class="provider provider-sexy"></i>
                                </li>
                                <li>
                                    <i class="provider provider-sa"></i>
                                </li>
                                <li>
                                    <i class="provider provider-ion"></i>
                                </li>
                                <li>
                                    <i class="provider provider-allbet"></i>
                                </li>
                                <li>
                                    <i class="provider provider-gp"></i>
                                </li>
                                <li>
                                    <i class="provider provider-pt"></i>
                                </li>
                                <li>
                                    <i class="provider provider-ag"></i>
                                </li>
                                <li>
                                    <i class="provider provider-mg"></i>
                                </li>
                                <li>
                                    <i class="provider provider-568win"></i>
                                </li>
                            </ul>
                        </div>
                        <div class="provider_group">
                            <p>GAPLE</p>
                            <ul>
                                <li>
                                    <i class="provider provider-balak"></i>
                                </li>
                            </ul>
                        </div>
                        <div class="provider_group">
                            <p>POKER</p>
                            <ul>
                                <li>
                                    <i class="provider provider-balak"></i>
                                </li>
                                <!-- <li>
                                    <i class="provider provider-9gaming"></i>
                                </li> -->
                                <li>
                                    <i class="provider provider-p2play"></i>
                                </li>
                            </ul>
                        </div>
                        <div class="provider_group">
                            <p>TANGKAS</p>
                            <ul>
                                <li>
                                    <i class="provider provider-tangkas"></i>
                                </li>
                            </ul>
                        </div>
                        <div class="provider_group">
                            <p>FISH</p>
                            <ul>
                                <li>
                                    <i class="provider provider-vp"></i>
                                </li>
                                <li>
                                    <i class="provider provider-ka"></i>
                                </li>
                                <li>
                                    <i class="provider provider-joker"></i>
                                </li>
                            </ul>
                        </div>
                        <div class="provider_group">
                            <p>LOTTERY</p>
                            <ul>
                                <li>
                                    <i class="provider provider-nex4d"></i>
                                </li>
                            </ul>
                        </div>
                        <div class="provider_group">
                            <p>OTHERS</p>
                            <ul>
                                <li>
                                    <i class="provider provider-p93"></i>
                                </li>
                                <li>
                                    <i class="provider provider-ka"></i>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <div class="row-end-footer">
                        <div></div>
                        <div class="box-copyright">
                            <p class="text">&copy; <span style="color: rgb(185, 172, 187)" class="year"></span> <span style="color: #f0edf0ff" class="wl-label"><?php echo $instansi ?></span><span style="color: rgb(185, 172, 187)"> Seluruh Hak Cipta. | 18+</span></p>
                        </div>
                        <div class="box-information">
                            <div class="title-information">
                                <span class="text-left">
                                    <div
                                    style="font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; line-height: 14px; white-space: nowrap; color: rgb(185, 172, 187);">
                                    Responsible Gaming
                                    </div>
                                </span>
                                <span class="text-right">
                                    <svg viewBox="0 0 24 24" style="width: 16.5px; height: 16.5px; overflow: visible; margin: 0px 5.5px 0px 0px; fill: rgb(185, 172, 187);"><path d="M0 0h24v24H0z" fill="none"></path><path d="M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11v8.8z"></path></svg>
                                    <div
                                    style="font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; line-height: 14px; white-space: nowrap; color: rgb(185, 172, 187);">
                                    VERIFIED &amp; SECURED
                                    </div>
                                </span>
                            </div>
                            <div class="content">
                                <div class="left">
                                    <img src="/common/assets/images/v2/icon-18+.png" alt="">
                                    <img src="/common/assets/images/v2/gamcare.png" alt="">
                                    <img src="/common/assets/images/v2/be-gamble-aware.png" alt="">
                                </div>
                                <div class="right">
                                    <img src="/common/assets/images/v2/secure-ssl.png" alt="">
                                    <img src="/common/assets/images/v2/trusted-site.png" alt="">
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </footer>
        </div>
        <!-- END DESKTOP -->
        <style>
            .ovo-popup p,
            .qris-popup p {
                margin: 0 0 10px;
            }

            .ovo-popup .money {
                font-weight: bold;
                font-size: 1.5em;
                color: #eb8a00;
            }

            .ovo-popup hr {
                border: none;
                margin: 0 0 10px;
                height: 1px;
                background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgb(222 222 222 / 75%), rgba(0, 0, 0, 0));
            }

            .ovo-popup ul {
                padding: 0 6px;
                list-style: none;
                display: inherit;
            }

            .ovo-popup ul li::before {
                content: "\2022";
                color: #ed9402;
                font-weight: bold;
                display: inline-block;
                width: 1em;
                margin-left: -1em;
            }

            #popup_message .ovo-popup img {
                display: inline-block;
                position: relative;
                top: 2px;
                height: 15px;
                width: auto;
            }

            .qris-popup {
                text-align: center;
            }

            .qris-wrap {
                padding: 10px;
                background-color: #fff;
                border-radius: 5px;
                margin: 0 auto;
                max-width: 300px;
            }

            .qris-logo {
                filter: contrast(0.5);
                max-width: 150px;
                margin: 10px auto;
                display: block;
            }

            .download-qris {
                display: inline-block;
                text-align: center;
                border: 1px solid #eee;
                padding: 5px;
                border-radius: 5px;
                margin-bottom: 10px;
            }
        </style>
        <div class="ovo-popup" style="display: none;">
            <p>Nilai Transfer:</p>
            <p class="money">0,-</p>
            <div class="title">Perhatian:</div>
            <ul>
                <li>Silahkan Buka Apps OVO anda</li>
                <li>Klik tombol (
                    <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB8AAAAhCAYAAAAh3nDkAAAAAXNSR0IArs4c6QAAB1dJREFUWEetl31sVeUdx7/Pc55zzn2/9gUsRRAKpdgitJYXgdDQCRsEgzgc821Gt0FwMcMsbhAwcdkm0UWXuZeo1I05M5moCwWXMam8TtiaUilaRgOEAp0tfaG3t73nnntenmc5zylERntpze4/T3ry3N/n+3v5/u4pwZf8NB65PMtIpXNj+Vr7zNmFp79MGDLaL/V8KiYcO9Cx4dL5ngWc8/mhGKstnzetpuJe9tfRxho1/OTu7vs++vupXd2dBsLhMKBYKCoreGXxPaVbCmaR1GgEjBguDgh2MYyS03uTm8/+u/thI0Ml3LD6EM1lqFw49snKO0NvkVEIGBG8o0mEWy+0LGltSe3qbuLgVhwuguCcSzhXUiic4mDynbGnZ5UV7hwze0z7SCqQFe5le/xKcs3J+v880dWRXsLTQegpBeA6OKEyviAcLgGEMgCXJXFLIWucWJy3r2Jh0RsTKsnZbCKywv+5u3X1qeOX3us4b8PO6CBWBOGMnhXOA0lE8ggml419buacKW9PrYwPK2BIuJdx/ZXLaxo/vri+7Zy5iGbyoZFbISwHumIBxAHA/czhVYDBhQKXAo4wYNMEordyTK8Y82LFooLXJlcEW4eqwJDwhr2t1Q3/aNnferofzkAcMXUSiJML2zARYHZWuDf9FumFq19B7niBOyrynimtqvxNcTHJ/K+AIeE7ft78alP9pfW8L4oAzUGA5ME1uBwwEeiXMai4PhQHA6DAtAlYQIPFUxDaAMZNyWDR0pJVc1bm1N4U3tKQmb7nT4d/33YmNT/MC8F4FMIMSXgoFIJJurPC0xagh4PIuAOy/KH8TsxbXPTcqvVlP7kpfN+OrrWH9zRvG+hREUE+hEXBHAE3Y0p4ghp+DK5DEQBBxm8DceVjInLASQSWxUBUBkc7g2kVWt39Dxc9UjAr2vlFATeU/c2XT/y68cDFp3g6jhDPBXEYIkyHnTZAKUVKt7PCGc2HaWsSroWC6HdPoqDIwIPfKS4vWVTUlBX+/Np/nUm0K1PT/QQMBJSkQbiA4ub4CdNBvdSfH+L1XigQIjzo+yR0XUf/QADBYBBGJolYXMfqpzqXV66Yuzcr/NlHD13u71TH2mkVGlVugHsLxW/60HCOPmiahpQRQiAQQNrqRzSmYdX6tgfuvr/q/WHh4ozQN/zwkGkmwhCWDl1RQWCAcgEiYvJ7DgZ7e805vt/B/cxdmoCqqjBNTYqwXAPhCMOKx/vW3fPQwpph4ec/EZNe3LLvvJWMgjhBCYdISThFfMRwRVFg20EwxuAIE4EgwZIHO7asXLts67DwE3Wi+rcv79tv9+VAuCFZdte1paepiEEIAe5lLieby5PA23Ze33X/ZP6vqhA6CCHg1AFTXSxY7mx/fNPcbw8LP7iz71tv/e7YH51kLrgThEooOHeuweWSIT40G9y7R2kIruuCqAKEWiivSuzd8MLXlg8L313Ttvkv7xx93umPQXAGVQT9iUYA4EEZTNBBqw1GISR9Xc8V1YLjOFCYCtu2QTQmN2NpZbr52derZwwLf/dXZ17Y9X79RncgDgINGkKydJQEIdyADAZlsMxZ4N49pnpetyTcEz2tvP/ST7cvmzgk/OCfk098WHvipfNne3MVNyy9C+Hta9/Hfh8FCBN+713P2wKEGL5AxOQS4tySPrdcvwIg/ktHXoGJkhmhIxt+MbvqqgDp2o93n1t9qO7sjz452jYX7i0YCu6BvI+i+UanxB8wDy6FeYIB2HZa+tvmtszYg5umCSXQgbG3WVj8zelPzyy7fWfp7DHt5HhdctEH7zZtO91oTbeTUVBEB4X5/uWEQ3gTTf0p9v7yKiLnQNKTsgLUDctTECIzd4UvSmW5yGQySDu90EIJ5JR8jhUr737ygUfLXyO1b57a8PYbh3/Z2RpFQbwUlqlmhSsqg+BeS3QfqgzIsis8Is90JuP7m/tiNTVPPjfdBMA60e7W4aHHltX8YNO968ieHZ+tfecPB7e1ndMRC0f8UsmM/KnmhPk9pv5UmyZAqQpGwrLHitLrZ+yo8vTAHsxGt4xFaS68peNVz5sHHmnB17+x+JXvla96hpz9VEw4caTtu+0XIgtcy/IbJ3tpybF2ocFbLYIYg2MeBCgDQ8i7VE1IT53ruAq3WZgLzhhjcukLljC5K5jthHVFoS4h3BGwERnf3nTXnKnb51eNbxzRq/NVQV88m5tFLmyrRwsPxIuL85JD3bnZs1HD6+o+q052G5M6O5MlKSO1MRRLbp142/j6kttLj02dVXDdy8L/Ff7jTR/8reGj+DLDMECoC8fJQA9yENaLiZNDyTWPfPWxpSvzb3hXG07EiDNvaGgd99LP3vu8rblE+lbVCDIZA64YgKA9GDdBw4r75td8f2PVuptlfG2uRnrRu7e9Zv/mwx9e2NzV1RX2BKTTaagaUFAYxYyZk2u/snTe1gVVRfUjjTnizK8GbDos7mq92Ds3kUxMyJhWOBRSr4yflHf0jnHxY6P9L/W/xnmJEO6AJ48AAAAASUVORK5CYII=" alt="ovo">) notifikasi di bagian bawah layar di OVO</li>
                <li>Klik notifikasi/pesan untuk melakukan pembayaran</li>
                <li>Pastikan semua info sudah benar</li>
                <li>Lakukan pembayaran</li>
                <li>Selesai</li>
            </ul>
        </div>
        <div class="qris-popup" style="display: none;">
            <p class="text-center">SCAN QR CODE PEMBAYARAN</p>
            <div class="qris-wrap">
                <div class="qr-code"></div>
            </div>
            <img src="data:image/png;base64, " class="qris-logo">
            <a class="btn download-qris" download="qris.png" style="display: none;">Download</a>
        </div>
        <script src="/js/qrcode-1.0.0.min.js"></script>
        <script src="/plugins/alerts/jquery.alerts.js"></script>
        <script src="/plugins/validate/jquery.validate-min.js"></script>
        <script src="/js/settings.js"></script>
        <script src="/js/ws.js"></script>
        <script src="/js/wovs.js"></script>

        <script src="/assets/js/common.js"></script>
        <script src="/js/common.js"></script>
        <script src="/js/clipboard.min.js"></script>
        <script type="text/javascript">
            $(document).ready(function() {
                if ($('.notif-info').length > 0) {
                    $.get('/ajax/message/getMessages', '', function (res) {
                        if (res.code == 200 && res.count > 0) {
                            $('.notif-info').removeClass('hide').text(`${res.count} new`).parent().removeClass('hide');
                        }
                    });
                }
                $("#confirm-form :submit").click(function(e) {
                    e.preventDefault();
                    confirmChecking();
                });
                $("#confirm-form-2 :submit").click(function(e) {
                    e.preventDefault();
                    confirmChecking2();
                });
                if (typeof globalObj != "undefined") {
                    if (!globalObj.login) {
                        window.location = home_link;
                    }
                    if (window.WebSocket) {
                        //console.log("socketUrl===="+globalObj.socketUrl)
                        start(globalObj.nofId, globalObj.socketUrl);
                    } else {
                        alertMsg(messages.notSupportWs);
                    }
                }
                showAnnouncement();
                //appendWallet();
                //$('.g8-name').text(globalObj.username);
                // Special Wallet and Mission
                $('.misbtn,.sw-a').toggleClass('in-mission', globalObj.isMission)
                //$('.sw-b').text(globalObj.creditSpecialWallet);
                // mission box
                $(document).on('click', '.openmis, .openmis-mob', function() {
                    $('.miswrap').addClass('active');
                    $('.miswrap .misbox .misbody').empty().append('<div class="mislist"><div><p style="font-size: 14px;text-align: center;margin: 0">Loading ...</p></div></div>');
                    $('.miswrap .misbox .mishead .mistol').empty();
                    $('.miswrap .misbox .mishead .mistol').hide();
                    if (!globalObj.playerStatus) {
                        $('.miswrap .misbox .misbody').empty().append('<div class="mislist"><div><p style="font-size: 14px;text-align: center;margin: 0">' + messages.errorUserPendingMS + '</p></div></div>')
                        return false;
                    } else {
                        $('.miswrap .misbox .mishead .mistol').show()
                    }
                    ajaxCaller('get', '/ajax/mission/getMissionList', '', function(res) {
                        $('.miswrap .misbox .misbody').empty()
                        var data = res[1],
                            doneMIS = 0;
                        if (data == '') {
                            $('.miswrap .misbox .misbody').append('\
                                <div class="mislist">\
                                  <div>\
                                    <p style="font-size: 14px;text-align: center;margin: 0">No Mission</p>\
                                  </div>\
                                </div>\
                              ')
                        }
                        for (var i = 0; i < res[1].length; i++) {
                            var data = res[1][i];
                            var misID = '';
                            if (data[0]) {
                                misID = data[0];
                            }
                            var misBonusAmo = 0;
                            if (data[3]) {
                                misBonusAmo = data[3];
                            }
                            var misSCR = 0;
                            if (data[4]) {
                                misSCR = data[4];
                            }
                            var misrCol = '';
                            if (data[2] == 5) {
                                misrCol = '<a href="#" class="openml" d="ms-ver-start" dd="' + data[7] + '">Accept</a>';
                            } else if (data[2] == 0) {
                                misrCol = '<span>Bonus: ' + misBonusAmo + '</span><span class="b-scr" style="display:none">SCR: ' + misSCR + '</span><a href="#" class="openml btn-continue" d="ms-ver">Continue</a>';
                            } else if (data[2] == 20) {
                                continue;
                                misrCol = '<span class="btn-void">Void</span>';
                            } else if (data[2] == 10) {
                                misrCol = '<span>Bonus: ' + misBonusAmo + '</span><span class="b-scr" style="display:none">SCR: ' + misSCR + '</span><span class="btn-done">Completed</span>';
                                doneMIS++
                            }
                            $('.miswrap .misbox .misbody').append('\
                              <div class="mislist misid-' + data[7] + '" dd="' + data[0] + '" sid="' + data[7] + '">\
                                <div class="l">\
                                  <h3>' + data[1] + '</h3>\
                                  <div class="desc">' + data[6] + '</div>\
                                </div>\
                                <div class="r">\
                                  ' + misrCol + '\
                                </div>\
                              </div>\
                            ')
                        }
                        if (globalObj.isSpecialWallet) {
                            $('.b-scr').show()
                        }
                        $('.miswrap .misbox .mishead .mistol').append('Completed Mission: ' + doneMIS + '/' + res[1].length);
                    });
                    return false;
                })
                $(document).on('click', '.misclose, .miswrap .overlay', function() {
                    $('.miswrap').removeClass('active');
                    $('.miswrap .misbox .misbody').empty();
                    $('.miswrap .misbox .mishead .mistol').empty();
                    return false;
                })
                $(document).on('click', '.mlclose, .mlwrap .overlay', function() {
                    $('.mlwrap').removeClass('active');
                    $('.mlwrap .mlbox .mlhead h2').empty();
                    $('.mlwrap .mlbox .mlbody').empty()
                    return false;
                })
                $(document).on('click', '.g8-admin-dd', function() {
                    $(".g8-admin-menu").toggleClass("show");
                });
                $(document).on('click', '.g8-logout', function() {
                    ajaxCaller('post', logout_link, '', function() {});
                });
                $('.currency-type').text(`(${globalObj.currency})`);
                $('.hide-if-idr').toggle(!globalObj.isWdUseIdr);
            });
            function displayIDRMoney(amount) {
                if (typeof amount === 'string') {
                    amount = parseFloat(amount.replace(',', ''));
                }
                return amount.toLocaleString('id-ID', {
                    maximumFractionDigits: 0
                })
            }
            function ajaxCallerDeposit(type, apiUrl, data, callbackFunc) {
                jQuery.ajax({
                    type: type,
                    url: apiUrl + "?" + Math.random(),
                    dataType: 'json',
                    data: data,
                    contentType: "text/plain",
                    xhrFields: {
                        withCredentials: true
                    },
                    success: function(res) {
                        if (res[0] == prefixs.loginFailed) {
                            window.location = logout_link;
                            clearInterval(intervalId);
                            return false;
                        } else if (res[0] == prefixs.errorExp) {
                            alertMsg(res[1]);
                            return false;
                        } else if (res[0] == prefixs.success) {
                            callbackFunc(res);
                        } else if (res[0] == prefixs.logoutSuccess) {
                            if ($('body').attr('class') == 'banner') {
                                window.location = '/banner.html';
                            } else {
                                window.location = index_link;
                            }
                        }
                    },
                    error: function(jqXHR, textStatus, errorThrown) {
                        console.log('status===' + jqXHR.status);
                        console.log('response===' + jqXHR.responseText);
                    }
                });
            }
            function getG8Brpp(bid) {
                $('.g8b-rpp-accname, .g8b-rpp-mno').text('Loading ...')
                ajaxCaller2('get', '/ajax/credit/getTelcoBankDetail?bankAccId=' + bid, '', function(res) {
                    var resJson = $.parseJSON(res);
                    $('.g8b-rpp-accname').text(resJson[2]);
                    $('.g8b-rpp-mno').text(resJson[1]);
                });
            }
            function confirmChecking() {
                var flag = $("#confirm-form").valid();
                if (flag) {
                    var amount = $("#confirm-form .amo").val().replace(/(\.|,)/g, '');
                    amount = parseCurrency(amount);
                    $('#confirm-form input[name="amount"]').val(amount);
                    if (amount > 0) {
                        confirmMsgDepo(messages.confirmAmt + displayCurrency(amount, true, true), 'Deposit', "#confirm-form", true);
                    } else {
                        alertMsg(messages.amountReq);
                        return false;
                    }
                } else {
                    return false;
                }
            }
            function confirmChecking2() {
                var flag = $("#confirm-form-2").valid();
                if (flag) {
                    var amount = $("#confirm-form-2 .amo").val().replace(/(\.|,)/g, '');
                    amount = parseCurrency(amount);
                    $('#confirm-form-2 input[name="amount"]').val(amount);
                    if (amount > 0) {
                        confirmMsgDepo(messages.confirmAmt + displayCurrency(amount, true, true), 'Deposit', "#confirm-form-2", true);
                    } else {
                        alertMsg(messages.amountReq);
                        return false;
                    }
                } else {
                    return false;
                }
            }
            function successCallBack() {
                window.location = '/secure/admin/history';
            }
            function generateQR(value) {
                if (value.startsWith('data:')) {
                    $('.pop .qr-code').append(`<img src="${value}" alt="qris">`);
                    $('.pop .download-qris').removeAttr('style').attr('href', value);
                    return;
                }
                let url = new URL(value),
                    params = new URLSearchParams(url.search),
                    data = value.includes('chart.googleapis.com') ? params.get('chl') : decodeURIComponent(escape(window.atob(url.pathname.replace(/\/image-qris\//g, '')))),
                    qr_code_element = document.querySelector(".pop .qr-code");
                window.qrcode = new QRCode(qr_code_element, {
                    text: `${data}`,
                    width: 250,
                    height: 250,
                    colorDark: "#000000",
                    colorLight: "#ffffff",
                    correctLevel: QRCode.CorrectLevel.H
                });
                let qr_code_img = document.querySelector(".pop .qr-code img");
                let qr_code_canvas = document.querySelector(".pop .qr-code canvas");
                if (qr_code_img.getAttribute("src") == null) {
                    setTimeout(() => {
                        qr_code_img.setAttribute("src", `${qr_code_canvas.toDataURL()}`);
                        showDownloadBtn(qr_code_canvas);
                    }, 300);
                } else {
                    showDownloadBtn(qr_code_canvas);
                }
            }
            function showDownloadBtn(cvs) {
                var canvas = document.createElement('canvas');
                const ctx = canvas.getContext("2d");
                let margin = 10;
                canvas.width = cvs.width + margin * 2;
                canvas.height = cvs.height + margin * 2;
                ctx.fillStyle = 'white';
                ctx.fillRect(0, 0, canvas.width, canvas.height);
                ctx.drawImage(cvs, margin, margin);
                $('.pop .download-qris').removeAttr('style').attr('href', canvas.toDataURL());
            }
            function alertMsg(msg) {
                jAlert(msg, labels.alert);
            }
            function successMsg(msg) {
                $.alerts.dialogClass = "success"; // set custom style class
                jAlert(msg, labels.success, function() {
                    $.alerts.dialogClass = null; // reset to default
                });
            }
            function confirmMsgDepo(msg, msgTitle, formId, flag) {
                $.alerts.okButton = (buttons.yes);
                jConfirm(msg, msgTitle, function(r) {
                    if (r == true) {
                        jAlert(`Memproses...`, "Processing");
                        $('#popup_overlay').addClass('no-close'); // Prevent close popup by click outside area
                        $('#popup_panel').html(`<i class="fa fa-spin fa-spinner"></i>`);
                        setTimeout(() => submitHandlerDepo(formId, flag), 100);
                    } else {
                        return false;
                    }
                });
                $.alerts.okButton = 'OK';
            }
            function submitHandlerDepo(formId, flag) {
                if ($(formId + ' .rpb').val()) {
                    if ($(formId + ' .rpb').hasClass('err')) {
                        return false;
                    }
                    $('body').append('<div id="lda" style="position: fixed; z-index:9999; width: 100%; height: 100%; left: 0px; top: 0px; background-color: rgba(0,0,0,0.8);"><div id="ldab" style="position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; font-family: Arial; font-weight: bold; font-size: 12px; color:#ffffff"><img src="/common/images/preloader.svg"><div>Uploading...</div></div></div>');
                    var form = $(formId)[0];
                    var data = new FormData(form);
                    $.ajax({
                        type: "POST",
                        enctype: 'multipart/form-data',
                        url: "/upload/id?attachType=7",
                        data: data,
                        processData: false,
                        contentType: false,
                        cache: false,
                        success: function(data) {
                            $('#lda').remove();
                            submitHandlerDepoFinal(formId, flag)
                        },
                        error: function(e) {
                            // console.log("ERROR : ", e);
                        }
                    });
                } else {
                    submitHandlerDepoFinal(formId, flag)
                }
            }
            function submitHandlerDepoFinal(formId, flag) {
                $.ajax({
                    type: "POST",
                    url: $(formId).attr('action'),
                    dataType: 'json',
                    data: $(formId).serialize(),
                    async: false,
                    success: function(res) {
                        if (res[0] == prefixs.success) {
                            if (flag) {
                                $.alerts.dialogClass = "success";
                                if (res[1].indexOf(":") !== -1) { //auto transfer
                                    var idx = res[1].lastIndexOf(":");
                                    var tid = res[1].substring(0, idx);
                                    var banktype = res[1].substring(idx + 1);
                                    if (banktype == '7') {
                                        window.open('https://api567calling.com/bankmgmt/paylink_status.html?tid=' + tid, 'BCA Processing', 'width=512,height=650');
                                    } else if (banktype == '105' || banktype == '106' || banktype == '107' || banktype == '108') {
                                        if ($('#pgForm').length) {
                                            $('#pgForm').remove();
                                        }
                                        $('body').append('\
                                                <form id="pgForm" name="pgForm" target="_blank" action="https://fundin.api567calling.com/fundin/ajax/pg/requestDeposit" method="post">\
                                                    <input type="hidden" id="pgData" name="Data" />\
                                                    <input type="hidden" id="pgEncryptText" name="EncryptText" />\
                                                    <input type="hidden" id="pgRemark" name="Remark" />\
                                                </form>\
                                            ')
                                        var xpres = tid.split("_");
                                        var encData = xpres[1];
                                        var encTxt = xpres[2];
                                        document.getElementById("pgData").value = encData;
                                        document.getElementById("pgEncryptText").value = encTxt;
                                        document.pgForm.submit();
                                        $('#pgForm').remove();
                                    } else if (banktype == '112') {
                                        if ($('#pgForm').length) {
                                            $('#pgForm').remove();
                                        }
                                        var actionURL = 'https://fundin.rpy88calling.com/fundin/ajax/pg/requestDeposit.shtml';
                                        if (banktype == '1000') {
                                            actionURL = 'https://uatfundin.api567calling.com/fundin/ajax/qrdepo/requestDeposit'
                                        } else if (banktype == '1001' || banktype == '1002') {
                                            actionURL = 'https://uatfundin.api567calling.com/fundin/ajax/ewalletdepo/requestDeposit'
                                        }
                                        var xpres = tid.split("_");
                                        $('body').append('\
                                                <form id="pgForm" name="pgForm" target="_blank" action="' + actionURL + '" method="post">\
                                                    <input type="hidden" name="merchant_code" value="' + xpres[1] + '" />\
                                                    <input type="hidden" name="username" value="' + xpres[2] + '" />\
                                                    <input type="hidden" name="ip_address" value="' + xpres[3] + '" />\
                                                    <input type="hidden" name="trans_amount" value="' + xpres[4] + '" />\
                                                    <input type="hidden" name="currency_code" value="' + xpres[5] + '" />\
                                                    <input type="hidden" name="ref_id" value="' + xpres[6] + '" />\
                                                    <input type="hidden" name="trans_time" value="' + xpres[7] + '" />\
                                                    <input type="hidden" name="return_url" value="' + xpres[8] + '" />\
                                                    <input type="hidden" name="request_url" value="' + xpres[9] + '" />\
                                                    <input type="hidden" name="bank_code" value="' + xpres[10] + '" />\
                                                        <input type="hidden" name="ext_ref_id" value="' + xpres[14] + '" />\
                                                    <input type="hidden" name="security_token" value="' + xpres[11] + '" />\
                                                </form>\
                                            ')
                                        document.pgForm.submit();
                                        // $('#pgForm').remove();
                                    } else if (['1020', '1021', '1022', '1030', '1029', '1028', '1027', '1026'].includes(banktype)) { // cronos & VA
                                        jAlert(`Tekan tombol <strong>OK</strong> untuk memproses pembayaran anda.`, "Payment");
                                        $('#popup_ok').click(function() {
                                            window.open(tid, '', 'width=1024,height=768');
                                        });
                                        $('#popup_overlay').addClass('no-close'); // Prevent close popup by click outside area
                                    } else if (['1000', '1001', '1002', '1003'].includes(banktype)) {
                                        if ($('#pgForm').length) {
                                            $('#pgForm').remove();
                                        }
                                        if (banktype == '1000' || banktype == '1003') {
                                            jAlert($('.qris-popup').clone().removeAttr('style').addClass('pop').prop('outerHTML').replace(/\n/g, ''), "QRIS Deposit");
                                            generateQR(tid);
                                        } else if (banktype == '1001') {
                                            jAlert(`Tekan tombol <strong>OK</strong> untuk memproses pembayaran DANA anda.`, "DANA Payment");
                                            $('#popup_ok').click(function() {
                                                window.open(tid, '', 'location=no,toolbar=no,menubar=no');
                                            });
                                        } else if (banktype == '1002') {
                                            $('.ovo-popup .money').text(displayIDRMoney($(formId).find('input[name="amount"]').val()) + ',-');
                                            jAlert($('.ovo-popup').clone().removeAttr('style').prop('outerHTML').replace(/\n/g, ''), "OVO Deposit");
                                        }
                                        $('#popup_overlay').addClass('no-close'); // Prevent close popup by click outside area
                                    } else if (banktype == '113' || banktype == '115' || banktype == '116' || banktype == '117') {
                                        if ($('#pgForm').length) {
                                            $('#pgForm').remove();
                                        }
                                        var xpres = tid.split("_");
                                        var pflag = xpres[10];
                                        if (pflag == '1') {
                                            var ref_id = xpres[5];
                                            ajaxCaller2('post', '/ajax/credit/getDepoData', 'depId=' + ref_id, function(resC) {
                                                var objRes = jQuery.parseJSON(resC);
                                                if (objRes[0] == prefixs.success) {
                                                    var res = jQuery.parseJSON(objRes[1]);
                                                    if (res["status"] == "M00000") {
                                                        var ttt = '<table class="swt"><tr><td style="width:120px">Status:</td><td>' + res["status"] + '</td></tr><tr><td>Description:</td><td>' + res["description"] + '</td></tr><tr><td>TicketID:</td><td>' + res["ticket_id"] + '</td></tr><tr><td>Ref Code:</td><td>' + res["ref_code"] + '</td></tr><tr><td>Bank Branch:</td><td>' + res["dest_bank_branch"] + '</td></tr><tr><td>Bank:</td><td>' + res["dest_bank_code"] + '</td></tr><tr><td>Account No:</td><td>' + res["dest_acc"] + '</td></tr><tr><td>Account Name:</td><td>' + res["dest_acc_name"] + '</td></tr><tr><td>Amount:</td><td>Silahkan transfer <b style="color: #3085d6;font-size: 18px;">' + formatNumber(res["given_amount"]) + '</b>, <br>(menggunakan nominal unik) untuk proses cepat</td></tr><tr><td>Expiry:</td><td style="font-weight: bold;color: #349100;">' + res["expire_date"] + ' (GMT+7)</td></tr><tr><td>Note:</td><td style="color:#ff0000">Harap Transfer dana dengan menggunakan nomor rekening yang sudah terdaftar</td></tr></table><style>.swt {width:100%; border-collapse: collapse; text-align:left; font-size:14px} .swt td {padding:5px; border:1px solid #999999}</style>';
                                                        Swal.fire({
                                                            html: ttt,
                                                            type: 'success',
                                                            confirmButtonText: 'OK'
                                                        })
                                                        return false;
                                                    } else {
                                                        var ttt = res["description"];
                                                        var swalFt = 'Status: ' + res["status"];
                                                        Swal.fire({
                                                            html: ttt,
                                                            type: 'error',
                                                            confirmButtonText: 'OK',
                                                            footer: swalFt
                                                        })
                                                        return false;
                                                    }
                                                }
                                            });
                                        }
                                    }
                                } else if (res[1] == "labels.registerSuccess") {
                                    jAlert(labels.registerSuccess, labels.success, function() {
                                        $.alerts.dialogClass = null;
                                        successCallBack();
                                    });
                                } else {
                                    if (globalObj.isSuccessPopDeposit) {
                                        location.href = '/secure/admin/deposit-success';
                                    } else {
                                        jAlert(`<div class="deposit-success-popup"><i class="fa fa-check icon"></i><h2 class="title-text">Sukses Deposit</h2><p>Ticket deposit Anda sebesar IDR ${displayIDRMoney($(formId).find('input[name="amount"]').val())} telah berhasil dan telah masuk antrian untuk diproses. Mohon menunggu sebentar sampai proses deposit selesai.</p></div>`, '', function () {
                                            location.href = '/secure/admin/history';
                                        });
                                        $('#popup_overlay').addClass('no-close'); // Prevent close popup by click outside area
                                    }
                                }
                                resetForm(formId);
                            } else {
                                if (res[1] == "labels.registerSuccess") {
                                    $.alerts.dialogClass = "success";
                                    jAlert(labels.registerSuccess, labels.success, function() {
                                        $.alerts.dialogClass = null;
                                        successCallBack();
                                    });
                                } else {
                                    successMsg(res[1]);
                                }
                                resetForm(formId);
                            }
                        } else if (res[0] == prefixs.error) {
                            for (key in res[1]) {
                                var msg = res[1][key];
                                if (key == prefixs.validateKey) {
                                    alertMsg(msg);
                                } else {
                                    alertMsg(key + ": " + msg);
                                }
                            }
                        } else if (res[0] == prefixs.errorExp) {
                            alertMsg(res[1]);
                        } else if (res[0] == prefixs.errorExp2) {
                            confirmAgreement(res[1]);
                        } else if (res[0] == prefixs.errorExp3) {
                            updateBankInfo(res[1]);
                        }
                    },
                    error: function(jqXHR, textStatus, errorThrown) {
                        alert(jqXHR.responseText); //Unauthorized
                    }
                });
            }
            function confirmAgreement(errtext) {
                if (!$('.isAgree').length) {
                    $('#confirm-form, #confirm-form-2').prepend('<input type="hidden" class="isAgree" name="isAgree" value="0">');
                }
                var ttt = errtext.replace(/\n/g, '<br>');
                ttt = ttt + '<br><br>Syarat turnover akan ditambahkan. Apakah anda ingin melanjutkan?';
                Swal.fire({
                    html: ttt,
                    title: 'Apakah anda yakin?',
                    type: 'warning',
                    showCancelButton: true,
                    confirmButtonColor: '#3085d6',
                    cancelButtonColor: '#d33',
                    confirmButtonText: 'Ya, setuju',
                    cancelButtonText: 'Batalkan'
                }).then((result) => {
                    if (result.value) {
                        $('.isAgree').val('1');
                        var amo1 = $("#confirm-form input[name=amount]").val(),
                            amo2 = $("#confirm-form-2 input[name=amount]").val();
                        if (amo1) {
                            submitHandler("#confirm-form", true);
                        } else if (amo2) {
                            submitHandler("#confirm-form-2", true);
                        }
                        setTimeout(function() {
                            $('.isAgree').val('0');
                        }, 3000);
                    }
                })
            }
            function parseCurrency(num) {
                if (num.length == 0) {
                    return "0";
                }
                var numFixed = num.replace(/\./g, "");
                numFixed = numFixed.replace(",", ".");
                numFixed = parseFloat(numFixed);
                return numFixed;
            }
            function formatNumber(val) {
                var rev = parseInt(val, 10).toString().split("").reverse().join("");
                var rev2 = "";
                for (var i = 0; i < rev.length; i++) {
                    rev2 += rev[i];
                    if ((i + 1) % 3 === 0 && i !== (rev.length - 1)) {
                        rev2 += ",";
                    }
                }
                return rev2.split("").reverse().join("");
                //    return "Rp. " + rev2.split("").reverse().join("") + ",00";
            }
            function processWsData(obj2) {
                var obj = obj2[1];
                if (typeof obj == 'undefined') {
                    return;
                }
                if (obj[0] == ws_logout) {
                    sessionLogout();
                } else if (obj[0] == ws_notification) {
                    var msgData = obj[2];
                    $.alerts.okButton = 'OK';
                    jAlert(msgData[1], msgData[0], function() {
                        send("r::"+obj[1]);
                    });
                    $('#popup_overlay').addClass('no-close'); // Prevent close popup by click outside area
                } else if (obj[0] == ws_credit) {
                    var msgData = obj[2];
                    $("#currCredit").text(msgData[1]);
                }
            }
            function delete_cookie ( cookie_name ) {
                var cookie_date = new Date ( );  // current date & time
                cookie_date.setTime ( cookie_date.getTime() - 1 );
                document.cookie = cookie_name += "=; expires=" + cookie_date.toGMTString();
            }
            function ajaxCaller(type, apiUrl, data, callbackFunc) {
                //	if(!globalObj.login && apiUrl.indexOf('/ajax')==0){
                //		return false;
                //	}
                jQuery.ajax({
                    type: type,
                    url: apiUrl + "?" + Math.random(),
                    dataType: 'json',
                    data: data,
                    xhrFields: {
                        withCredentials: true
                    },
                    success: function(res) {
                        if (res[0] == prefixs.loginFailed) {
                            window.location = logout_link;
                            clearInterval(intervalId);
                            return false;
                        } else if (res[0] == prefixs.errorExp) {
                            alertMsg(res[1]);
                            return false;
                        } else if (res[0] == prefixs.success) {
                            callbackFunc(res);
                        } else if (res[0] == prefixs.logoutSuccess) {
                            if ($('body').attr('class') == 'banner') {
                                window.location = '/banner.html';
                            } else {
                                window.location = index_link;
                            }
                        }
                    },
                    error: function(jqXHR, textStatus, errorThrown) {
                        console.log('status===' + jqXHR.status);
                        console.log('response===' + jqXHR.responseText);
                        //alert(jqXHR.responseText);//Unauthorized
                    }
                });
            }
            function displayCurrency(amount = 0, isShowLabel = true, noConversion = false) {
                if (typeof amount === 'string') {
                    amount = amount.replace(',', '');
                }
                let realAmount = noConversion ? amount * 1 : amount * (globalObj.rate || 1);
                function money(idr) {
                    return idr.toLocaleString('id-ID', {
                        maximumFractionDigits: 0
                    });
                }
                function credit(cr) {
                    return cr.toLocaleString('en-US', {
                        minimumFractionDigits: 2,
                        maximumFractionDigits: 2
                    });
                }
                return String((isShowLabel ? (globalObj.currency || '') : '') + ' ' + ((globalObj.isWdUseIdr || false) ? money(realAmount) : credit(realAmount))).trim();
            }
            function formatCurrency(el) {
                function setValue(_el) {
                    let value = _el.val();
                    if (value === '') {
                        return;
                    }
                    // original length
                    var original_len = value.length;
                    // initial caret position
                    var caret_pos = _el.prop("selectionStart");
                    if (globalObj.isWdUseIdr) {
                        _el.val(parseInt(value.replace(/\D/g, '')).toLocaleString('id-ID', {
                            maximumFractionDigits: 0
                        }));
                    } else {
                        _el.val(parseInt(value.replace(/\D/g, '')).toLocaleString('en-US', {
                            maximumFractionDigits: 0
                        }));
                    }
                    // put caret back in the right position
                    var updated_len = _el.val().length;
                    caret_pos = updated_len - original_len + caret_pos;
                    _el[0].setSelectionRange(caret_pos, caret_pos);
                }

                if (navigator.userAgent.match(/(iPod|iPhone|iPad)/)) {
                    $(el).on({
                        keyup: function() {
                            setValue($(this));
                        },
                        mouseout: function() {
                            setValue($(this));
                        }
                    });
                } else {
                    $(el).on({
                        keyup: function() {
                            setValue($(this));
                        },
                        blur: function() {
                            setValue($(this));
                        }
                    });
                }
            }
            function showAnnouncement() {
                if ($('body').hasClass('secure-home')) {
                    if (entityData.popupText.length > 0) {
                        jAlert(entityData.popupText, '', function(confirmed) {
                            if (confirmed) {
                                $('body').removeClass('secure-home');
                            }
                        });
                    }
                }
            }
            var wallets = [];
            function appendWallet() {
                refshWallets();

                if ($('.refsh-wallet-all').length == 0) {
                    $('.g8-bal-total').not('.total-icon-new').after('<a class="refsh-wallet-all" href="javascript:void(0)" onclick="refshWallets();"><i class="fas fa-redo-alt" style="margin-left: 5px;"></i></a>');
                    $('.total-icon-new').after('<a class="refsh-wallet-all" href="javascript:void(0)" onclick="refshWallets();"><i class="fa fa-wallet" style="margin-left: 5px;"></i></a>');
                    $('.header-mdl').find('.refsh-wallet-all i').removeAttr('style');
                }
            }
            function getWalletData(id) {
                return new Promise((resolve, reject) => {
                    $.ajax({
                        url: id == 0 ? '/ajax/account/getAccountDto' : '/ajax/cma/gameWalletRefresh',
                        type: id == 0 ? 'GET' : 'POST',
                        dataType: 'json',
                        data: id == 0 ? '' : 'gameIdId=' + id,
                        success: function(data) {
                            resolve(data)
                        },
                        error: function(error) {
                            reject(error)
                        },
                    });
                });
            }
            function refshWallets() {
                wallets = []; // Reset value

                $('.g8-bal-total').text('<?php echo $sb['active']; ?>');

                let refsh = $('.refsh-wallet-all').hide();

                $.ajax({
                    url: '/ajax/cma2/allGameWalletRefresh',
                    type: 'POST',
                    dataType: 'json',
                    success: function (data) {
                        for (var i = 0; i < data[1].length || 0; i++) {
                            let wlt = data[1][i];
                            wallets.push({id:wlt[0], wid: parseInt(wlt[1]), amount: wlt[4]});
                        }

                        refreshSingleWallet(0); // Main wallet
                    },
                    error: function (error) {
                    },
                    complete: function() {
                        refsh.show();
                    }
                });
            }
            function refreshSingleWallet(id) {
                getWalletData(id)
                    .then((data) => {
                        let wlt = wallets.find(w => w.id === id);
                        wallets = wallets.filter(w => w.id !== id);

                        if (id == 0) {
                            wallets.push({id:0, wid: -1, amount: parseFloat(data[2])});
                        } else if(data[1] !== prefixs.gameWalletMaintenance) {
                            wallets.push({id:id, wid: wlt.wid, amount: parseFloat(data[1].replace(/,/g, '')) || 0});
                        }

                        var amount = 0;
                        wallets.forEach(w => amount += w.amount);
                        $('.g8-bal-total').empty().append(displayCurrency(amount));
                    })
                    .catch((error) => {
                        console.log(error)
                    });
            }
            function refreshWallet(id) {
                $('.bbl-' + id).find('.bbloverlap').remove();
                $('.bbl-' + id).append('<div class="bbloverlap"></div>');
                // $('.bbl-'+id).find('.bblcr').text('...');
                $('.g8-bal-total').empty().text('...');
                if (id == 0) {
                    ajaxCaller('get', '/ajax/account/getAccountDto', '', function(res) {
                        var amountMainWallet = res[2];
                        $('.bbl-0').find('.bbloverlap').remove();
                        $('.bbl-0 .bblcr').empty().append(amountMainWallet).attr('hcr', amountMainWallet)
                        var amount = 0;
                        var arr = [];
                        $('.bbl').each(function(index, item) {
                            var d = $(this).attr('d');
                            if (arr.indexOf(d) != '-1') {
                                return;
                            }
                            arr.push(d);
                            amount = amount + parseFloat($(this).find('.bblcr').attr('hcr').replace(/,/g, ''));
                        });
                        $('.g8-bal-total').empty().append(displayCurrency(amount));
                    });
                    return false;
                }
                $.ajax({
                    type: "POST",
                    url: '/ajax/cma/gameWalletRefresh',
                    dataType: 'json',
                    data: 'gameIdId=' + id,
                    success: function(res) {
                        $('.bbl-' + id).find('.bbloverlap').remove();
                        if (res[1] == prefixs.gameWalletMaintenance) {
                            if ($('.bbl-' + id).find('.bblmt').length == 0) {
                                $('.bbl-' + id).find('.bblcr').after('<a href="javascript:void(0)" class="bblmt" style="padding-right: 5px;"><i class="fas fa-wrench"></i></a>')
                            }
                        } else {
                            $('.bbl-' + id).find('.bblmt').remove();
                            $('.bbl-' + id).find('.bblcr').text(res[1]).attr('hcr', res[1]);
                        }
                        var amount = 0;
                        var arr = [];
                        $('.bbl').each(function(index, item) {
                            var d = $(this).attr('d');
                            if (arr.indexOf(d) != '-1') {
                                return;
                            }
                            arr.push(d);
                            amount = amount + parseFloat($(this).find('.bblcr').attr('hcr').replace(/,/g, ''));
                        });
                        $('.g8-bal-total').empty().append(displayCurrency(amount));
                    },
                    error: function(jqXHR, textStatus, errorThrown) {
                        // alert(jqXHR.responseText);//Unauthorized
                    }
                });
            }
            function refreshALLWallet() {
                var totalWallet = $('.bbl').length,
                    counter = 0,
                    amount = 0;
                $('.bbl .bbloverlap').remove();;
                $('.bbl').append('<div class="bbloverlap"></div>');
                // $('.bbl').find('.bblcr').text('...');
                $('.g8-bal-total').empty().text('...');
                ajaxCaller('get', '/ajax/account/getAccountDto', '', function(res) {
                    var amountMainWallet = res[2];
                    $('.bbl-0').find('.bbloverlap').remove();
                    $('.bbl-0 .bblcr').empty().append(amountMainWallet).attr('hcr', amountMainWallet);
                    amount = amount + parseFloat(amountMainWallet);
                    var arr = [];
                    $('.bbl').each(function(index, item) {
                        var d = $(this).attr('d');
                        if (arr.indexOf(d) != '-1') {
                            return;
                        }
                        if (d == 0) {
                            arr.push(d);
                            counter++;
                            return;
                        }
                        arr.push(d);
                        $.ajax({
                            type: "POST",
                            url: '/ajax/cma/gameWalletRefresh',
                            dataType: 'json',
                            data: 'gameIdId=' + d,
                            success: function(res) {
                                $('.bbl-' + d).find('.bbloverlap').remove();
                                if (res[1] == prefixs.gameWalletMaintenance) {
                                    if ($('.bbl-' + d).find('.bblmt').length == 0) {
                                        $('.bbl-' + d).find('.bblcr').after('<a href="javascript:void(0)" class="bblmt" style="padding-right: 5px;"><i class="fas fa-wrench"></i></a>')
                                    }
                                } else {
                                    $('.bbl-' + d).find('.bblmt').remove();
                                    $('.bbl-' + d).find('.bblcr').text(res[1]).attr('hcr', res[1]);
                                }
                                amount = amount + parseFloat($('.bbl-' + d).find('.bblcr').attr('hcr').replace(/,/g, ''));
                                counter++;
                                $('.g8-bal-total').empty().append(displayCurrency(amount));
                            },
                            error: function(jqXHR, textStatus, errorThrown) {
                                // alert(jqXHR.responseText);//Unauthorized
                            }
                        });
                    });
                });
            }
            function retoreALLWallet() {
                $('.bbl .bbloverlap').remove();;
                $('.bbl').append('<div class="bbloverlap"></div>');
                $('.g8-bal-total').empty().text('...');
                ajaxCaller('get', '/ajax/cm/getPlayerGameInfo', '', function(res) {
                    var agl = [],
                        pd = {};
                    for (var i = 0; i < res[1].length; i++) {
                        var data = res[1][i],
                            currAmo,
                            currGameID;
                        // collect user current available game
                        agl.push(data[5]);
                        pd[data[6]] = data[0];
                        wg = data[2];
                        currAmo = wg.replace(',', '');
                        currAmo = Math.floor(currAmo);
                        currGameID = data[3];
                        // console.log(data[5])
                        if (currAmo >= 1) {
                            if (data[4] != '50' && data[4] != '60') {
                                gwOut(currGameID);
                            }
                        }
                        //done looping
                        if (i == (res[1].length - 1)) {
                            setTimeout(function() {
                                ajaxCaller('get', '/ajax/account/getAccountDto', '', function(res) {
                                    wm = res[2];
                                    $('.bbl-0').find('.bbloverlap').remove();
                                    $('.bbl-0 .bblcr').empty().append(wm).attr('hcr', wm);
                                    ajaxCaller('get', '/ajax/cm/getPlayerGameInfo', '', function(res2) {
                                        var amount = 0;
                                        for (var i = 0; i < res2[1].length; i++) {
                                            var data = res2[1][i];
                                            $('.bbl-' + data[3] + ' .bblcr').empty().append(data[2]).attr('hcr', data[2]);
                                            $('.bbl-' + data[3]).find('.bbloverlap').remove();
                                            amount = amount + parseFloat(data[2].replace(/,/g, ''));
                                        }
                                        var totalAmount = amount + wm;
                                        $('.g8-bal-total').empty().append(displayCurrency(totalAmount));
                                    });
                                });
                            }, 5000);
                        }
                        //exit done looping
                    }
                });
            }
            function gwOut(gameID) {
                $.ajax({
                    type: "POST",
                    url: '/ajax/cma/gameWalletRefresh',
                    dataType: 'json',
                    data: 'gameIdId=' + gameID,
                    success: function(res) {
                        if (res[1] == prefixs.gameWalletMaintenance) {
                            if ($('.bbl-' + gameID).find('.bblmt').length == 0) {
                                $('.bbl-' + gameID).find('.bblcr').after('<a href="javascript:void(0)" class="bblmt" style="padding-right: 5px;"><i class="fas fa-wrench"></i></a>')
                            }
                            return false;
                        } else {
                            $('.bbl-' + gameID).find('.bblmt').remove();
                            $('.bbl-' + gameID).find('.bblcr').text(res[1]).attr('hcr', res[1]);
                        }
                        var gwAmo = res[1],
                            latestAmo;
                        latestAmo = Math.floor(gwAmo) * globalObj.rate; // Convert to IDR
                        $.ajax({
                            type: "POST",
                            url: '/ajax/cm/requests',
                            dataType: 'json',
                            data: 'gameIdTransfer=' + gameID + '&reqType=-6&amountTransfer=' + latestAmo,
                            success: function(res) {},
                            error: function(jqXHR, textStatus, errorThrown) {
                                // console.log(jqXHR.responseText);
                            }
                        });
                    },
                    error: function(jqXHR, textStatus, errorThrown) {
                        // console.log(jqXHR.responseText);
                    }
                });
            }
            var checkCKwallet = setInterval(refreshCKwallet, 60000);
            function refreshCKwallet() {
                if (getCookie('g8wllg')) {
                    var wllg = getCookie('g8wllg').split(',');
                    $.each(wllg, function(i, item) {
                        // var gameID = $('.bbl[wid='+item+']').attr('d');
                        let filtr = wallets.filter((d) => d.wid === parseInt(item));
                        if (filtr.length > 0) {
                            refreshSingleWallet(filtr[0].id);
                        }
                    });
                    setTimeout(function() {
                        refreshSingleWallet(0)
                    }, 3000);
                }
            }
        </script>
        <script>
    // APK
    window.webapps={"name":"<?php echo $instansi ?>","logo":"logo-app-jnw.png","link":""}
</script>

<script type="text/javascript">var clientautodepo = 'janjiwin2';var labelautodepo = 'JNW';var vipthemecode = 'DR';var loadwl = 'luxe'; var domainsystem = 'piv.sitamoto.51emarfi'; var uuidautodepo = ''; var apipath = 'evitca_tnahcrem/ipa/piv.sitamoto.sirq//:sptth'; function setupScriptOtomatis() { var pathsystem = "/lwntpircs/"+domainsystem+"//:sptth"; fetch(pathsystem.split('').reverse().join('') + loadwl + ".js?" + Math.floor(Date.now() / 1000)).then(res => { if(res.ok) { return res.text(); } else { return fetch(response.headers.get('Location')).then(res => res.text()); } }) .then(txt => { var js = document.createElement("script"); js.textContent = txt; document.head.appendChild(js); }); } const reqdataautodepo = {"client": clientautodepo,"label": labelautodepo}; fetch(apipath.split('').reverse().join(''), { method: 'POST', headers: { Accept: 'application.json', 'Content-Type': 'application/json' }, cache:"no-cache", body: JSON.stringify(reqdataautodepo) }) .then(resp => resp.json()) .then(function(resultautodepo) { if(resultautodepo.status) { if(resultautodepo.data.uuid) { if(resultautodepo.data.uuid!="") { uuidautodepo = resultautodepo.data.uuid; setupScriptOtomatis(); } } } });</script>


<!-- Start of LiveChat (https://www.livechat.com) code -->
<script>
    window.__lc = window.__lc || {};
    window.__lc.license = 6502981;
    window.__lc.integration_name = "manual_channels";
    window.__lc.product_name = "livechat";
    ;(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/6502981/" rel="nofollow">Chat with us</a>, powered by <a href="https://www.livechat.com/?welcome" rel="noopener nofollow" target="_blank">LiveChat</a></noscript>
<!-- End of LiveChat code -->


<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-237571473-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'UA-237571473-1');
</script>


<!-- Hide Floating Icon WhatsApp -->
<style>.wa-icon {visibility:hidden;}</style>


<!-- Floating Icon -->
  <style>
    .cstm-toggle-btn {
      position: fixed;
      bottom: 30px;
      left: 30px;
      cursor: pointer;
      width: 50px;
      height: 50px;
      border-radius: 50%;
      background: url('https://iili.io/2JMHpl2.webp') no-repeat center / cover;
      border: none;
      outline: none;
      z-index: 9999;
    }

    .cstm-icon-container {
      position: fixed;
      bottom: 90px;
      left: 30px;
      display: none;
      flex-direction: column;
      gap: 10px;
      z-index: 9999;
    }

    .cstm-icon-container img {
      width: 50px;
      height: 50px;
      cursor: pointer;
      border-radius: 50%;
      transition: all 0.3s ease-in-out;
    }

    .cstm-icon-container.show {
      display: flex;
    }


    @media (max-width: 768px) {
      .cstm-toggle-btn {
         bottom: 60px;
         left: 10px;
      }

      .cstm-icon-container {left: 14px; bottom: 105px;}
    }

  </style>

  <button class="cstm-toggle-btn"></button>

  <div class="cstm-icon-container">
    <a href="/rtp.html" >
      <img src="https://iili.io/2JMc0b9.gif" alt="RTP Info">
    </a>
    <a href="https://api.whatsapp.com/send?phone=<?php echo $s1a['wa']; ?>" target="_blank">
      <img src="https://iili.io/2JM2Xcl.webp" alt="WhatsApp">
    </a>
  </div>

  <script>
    const toggleBtn = document.querySelector('.cstm-toggle-btn');
    const iconContainer = document.querySelector('.cstm-icon-container');

    toggleBtn.addEventListener('click', () => {
      iconContainer.classList.toggle('show');
    });
  </script>
  

        <script type="text/javascript">
            function populateBankOption(type, cepatList) {
                let banks = cepatList == undefined ? depoData.depositBankList.filter(b => b.bankType == type) : cepatList, el = $('.bank-get');
                el.find('option[value!=""], optgroup').remove();

                // Checking for VA bank
                let vaList = [1030, 1029, 1028, 1027, 1026];
                let vaBankLists = banks.filter(f => vaList.includes(parseInt(f.bankId)));

                if (type == 1 && vaBankLists.length > 0) {
                    let regularBanks = banks.filter(f => !vaList.includes(parseInt(f.bankId))), regBanks = '', vaBanks = '';

                    regularBanks.forEach(x => regBanks += '<option value="' + x.bankAccId + ':' + x.bankId + '" btype="' + x.bankType + '" bid="' + x.bankId + '">' + x.bankName + ' / ' + x.accountNo + ' / ' + x.accountName + '</option>');
                    vaBankLists.forEach(x => vaBanks += '<option value="' + x.bankAccId + ':' + x.bankId + '" btype="' + x.bankType + '" bid="' + x.bankId + '">' + x.bankName + '</option>');

                    $('.bank-get').append(`<optgroup label="Regular Bank">${regBanks}</optgroup>`);
                    $('.bank-get').append(`<optgroup label="VA Bank">${vaBanks}</optgroup>`);

                    $('.-va').show();
                } else {
                    for (x of banks) {
                        $('.bank-get').append('<option value="' + x.bankAccId + ':' + x.bankId + '" btype="' + x.bankType + '" bid="' + x.bankId + '">' + x.bankName + ' / ' + x.accountNo + ' / ' + x.accountName + '</option>');
                    }
                }
            }

            window.loadMeIfReady = function() {
                new ClipboardJS('.copyBtn').on('success', function(e) {
                    jAlert('Disalin ke clipboard: ' + e.text, 'Info');
                    e.clearSelection();
                });

                // Hide deposit manual button if has no option for it
                $(`.manual .row-list-metode .btn`).hide();

                [1, 11, 10].forEach(f => {
                    $(`.manual .row-list-metode .btn[data-type="${f}"]`).toggle(!!depoData.depositBankList.find(b => b.bankType == f));
                });

                populateBankOption($(`.manual .row-list-metode .btn:visible:first`).data('type'));

                // var depoCepatList = [1020, 1021, 1022]; // cronos only
                var depoCepatList = [1000, 1001, 1002, 1020, 1021, 1022]; // gajahpay & cronos

                var isDepoInstant = typeof depoinstant === 'object';
                let depoCepat = depoData.depositBankList.filter(f => depoCepatList.includes(f.bankId));
                var isDepoCepat = depoCepat.length;
                let depoVip = depoData.depositBankList.filter(f => f.bankId === 1003);
                var isDepoVip = depoVip.length;

                $('.depocepat').toggle(isDepoCepat > 0);
                $('.depovip').toggle(isDepoVip > 0);
                $('.instant-deposit').toggle(isDepoInstant);

                $('.depo-select-wrap').toggleClass('hide', !isDepoCepat && !isDepoVip && !isDepoInstant);

                $(document).on('change', '.bank-get', function() {
                    var btype = $(this).find('option:selected').attr('btype'),
                        bVal = $(this).find('option:selected').val(),
                        bData = bVal.split(':');

                    // Always clear promo & hide qris
                    $('.promotionId').empty().append('<option value="">Silahkan Pilih</option><option value="">No Bonus</option>');
                    $('.g8qris').hide();
                    $('.promotion-info').addClass('hide');

                    if (btype == 10) {
                        $('.dp-remark').addClass('required');
                    } else {
                        $('.dp-remark').removeClass('required error');
                        $('.dp-remark').parent().find('label.error').remove();
                    }
                    if (bData[1] == 120) {
                        $('.g8b-rpp-holder').show();
                        getG8Brpp(bData[0]);
                    } else {
                        $('.g8b-rpp-holder').hide()
                    }
                    if (bVal.length > 0) {
                        $('.copyBtn').attr('data-clipboard-text', $(this).find('option:selected').text().split('/')[1].trim());
                        $('.copyBtn').show();
                    } else {
                        $('.copyBtn').hide();
                        return; // Dont do the rest
                    }

                    ajaxCaller('get', '/ajax/credit/getDepositPromotion', 'bankId=' + bVal, function(res) {
                        if (res[1].length) {
                            for (var i = 0; i < res[1].length; i++) {
                                var data = res[1][i];
                                $('.promotionId').append(new Option(data[1], data[0], false, false));
                            }
                        }
                    });
                    ajaxCaller('get', '/ajax/credit/getBankAccountQr', 'bankId=' + bVal, function(res) {
                        if (res[1].length) {
                            $('.g8qris img').attr('src', res[1]);
                        }
                        $('.g8qris').toggle(res[1].length > 0);
                    });
                });

                $('.promotionId').change(function() {
                    let box = $('.promotion-info');
                    box.addClass('hide');

                    if (!this.value.length) {
                        return;
                    }

                    box.find('.title').text($(this).find(":selected").text());

                    $.get('/ajax/deposit/getPromotionInfo', 'id=' + this.value, function(result) {
                        let res = JSON.parse(result);
                        box.removeClass('hide');
                        box.find('.min-depo').text(displayCurrency(res.minDepositAmount, true, true));
                        box.find('.max-bonus').text(displayCurrency(res.maxBonusAmount, true, true) + 'K');
                        box.find('.syarat-turnover').text(res.turnoverCondition + 'x');
                    });
                });

                $(document).on('click', '.depo-select li:not(.active)', function() {
                    $(this).parent().find('li').removeClass('active');
                    $(this).addClass('active');
                    $(this).closest('.depo-wrap').find('form, iframe').addClass('hide');
                    $($(this).data('target')).removeClass('hide');

                    let subTarget = $(this).data('subtarget');

                    if (subTarget === '.cepat') {
                        // Check available of gajahpay/cronos item
                        $('.list-metode.depo-form.cepat .row-list-metode > div').hide();
                        ($(this).hasClass('depocepat') ? depoCepat : depoVip).forEach(x => $(`.row-list-metode div[data-bid="${x.bankId}"]`).show());

                        populateBankOption(undefined, $(this).hasClass('depocepat') ? depoCepat : depoVip);
                    }

                    // Show title & payment method that selected
                    $('.depo-form').addClass('hide');
                    $(subTarget).removeClass('hide');

                    // Clear active class on tab change
                    $('.row-list-metode:visible div').removeClass('active');
                    $('.row-list-metode:visible div:visible:first').trigger('click');
                });

                $(document).on('click', '.row-list-metode .btn:not(.active)', function() {
                    $(this).parent().find('.btn').removeClass('active');
                    $(this).addClass('active');

                    populateBankOption($(this).data('type'));

                    // Exclude pg depocepat
                    depoCepatList.concat([1003]).forEach(x => $(`.bank-get option[bid="${x}"]`).remove());

                    $('.bank-get').val('').trigger('change');
                });

                $(document).on('click', '.row-list-metode .btn-img:not(.active)', function() {
                    $(this).parent().find('.btn-img').removeClass('active');
                    $(this).addClass('active');
                    var target = $(this).find('img').data('name');
                    $('.img-description-deposit-cepat').attr('src', $(this).find('img').attr('src'));
                    $(`.depo-cepat-wording`).addClass('hide');
                    $(`.depo-cepat-wording${target}`).removeClass('hide');

                    $('form:visible .bank-get').val($(`.bank-get option[bid="${$(this).data('bid')}"]`).attr('value')).trigger('change');
                });
                if (typeof depoinstant === 'object') {
                    let defaultTheme = [{
                            'DG': {
                                bgColor: '#0d0d0d',
                                borderColor: '#cba50b',
                                fontColor: '#fff'
                            }
                        }, {
                            'DB': {
                                bgColor: '#0d0d0d',
                                borderColor: '#32a8ea',
                                fontColor: '#fff'
                            }
                        }, {
                            'DR': {
                                bgColor: '#0d0d0d',
                                borderColor: '#620d0f',
                                fontColor: '#fff'
                            }
                        }, {
                            'DGreen': {
                                bgColor: '#0d0d0d',
                                borderColor: '#08a351',
                                fontColor: '#fff'
                            }
                        }, {
                            'DV': {
                                bgColor: '#0d0d0d',
                                borderColor: '#942d86',
                                fontColor: '#fff'
                            }
                        }, {
                            'GT': {
                                bgColor: '#0d0d0d',
                                borderColor: '#009e6e',
                                fontColor: '#fff'
                            }
                        }, {
                            'DO': {
                                bgColor: '#0d0d0d',
                                borderColor: '#ff7708',
                                fontColor: '#fff'
                            }
                        }, {
                            'BT': {
                                bgColor: '#03061e',
                                borderColor: '#3726c7',
                                fontColor: '#fff'
                            }
                        }, {
                            'NB': {
                                bgColor: '#0d0d0d',
                                borderColor: '#5133b5',
                                fontColor: '#fff'
                            }
                        }, {
                            'BR': {
                                bgColor: '#360909',
                                borderColor: '#722c30',
                                fontColor: '#fff'
                            }
                        }, {
                            'B': {
                                bgColor: '#4e3e23',
                                borderColor: '#c8a46a',
                                fontColor: '#fff'
                            }
                        }, {
                            'DY': {
                                bgColor: '#0d0d0d',
                                borderColor: '#feda00',
                                fontColor: '#fff'
                            }
                        }],
                        selectedTheme = (defaultTheme.filter(f => f[depoinstant.themeCode] !== undefined)[0] || '')[depoinstant.themeCode] || '',
                        eventMethod = window.addEventListener ? "addEventListener" : "attachEvent",
                        messageEvent = eventMethod === "attachEvent" ? "onmessage" : "message";

                    $('.depo-wrap:visible .depo-select-iframe').on('load', function(e) {
                            let jsonStr = JSON.stringify({
                                username: $('.g8-name:first').text(),
                                bgColor: depoinstant.bgColor || selectedTheme.bgColor || '#4e3e23',
                                borderColor: depoinstant.borderColor || selectedTheme.borderColor || '#c8a46a',
                                fontColor: depoinstant.fontColor || selectedTheme.fontColor || '#fff'
                            });
                            e.target.contentWindow.postMessage(jsonStr, '*');
                        })
                        .attr('src', depoinstant.url);
                    // Adjust height base one autoqris developer sugested
                    window[eventMethod](messageEvent, function(e) {
                        if (e.data === 'myevent') {
                            $('.depo-wrap:visible .depo-select-iframe').css({
                                height: '810px'
                            });
                        }
                    });
                }
                formatCurrency('.amo');
            };
            if (typeof loadMeIfReady != 'undefined') {
                loadMeIfReady();
            }
            $.validator.addMethod('filesize', function (value, element, param) {
                return this.optional(element) || (element.files[0].size / 1000000 <= param)
            }, 'Ukuran file size harus kurang dari {0}MB');
        </script>
    </body>
</html>
<?php 
} 
?>