<?php
include( 'session.php' );

?>
<html lang="en">

<head>
    <title><?php echo $urlweb; ?>: User Area</title>

    <!-- Meta -->
    <meta charset="utf-8">
    <!-- <meta content="width=device-width, initial-scale=1.0" name="viewport"> -->
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, height=device-height, initial-scale=0.65, maximum-scale=1, minimum-scale=0.65">
    <meta name="theme-color" content="#272b30">

    <!-- Favicon -->
    <link rel="icon" type="image/png" href="<?php echo $urlwebs; ?>/upload/favicon.png">

    <!-- CSS Global Compulsory -->

    <link rel="stylesheet" href="<?php echo $urlwebs; ?>/assets/home/bootstrap.web.min.css">
    <link href="https://fonts.googleapis.com/css?family=Abel" rel="stylesheet">
    <style>
        .blink_me {
            animation: blinker 1s step-start infinite;
        }

        @keyframes blinker {
            20% {
                opacity: 0.2;
            }
        }
    </style>
    <!-- JS Global Compulsory -->
    <script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@3.4.1/dist/js/bootstrap.min.js" integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd" crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
    <script src="<?php echo $urlwebs; ?>/js/4dv5.js"></script>
    <script>
        function secondtominute(d) {
            var m = Math.floor(d / (60));
            var s = d - (m * 60);
            if (s < 10) s = '0' + s;
            return m + ':' + s;
        }
    </script>

</head>


<body>
                            <!--tampilan /m/ versi mobile atas-->
<?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'];
                    $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_balance = mysqli_query($conn,"SELECT * FROM `tb_balance` WHERE userID = '$userID'") or die(mysqli_error());
                    $sb = mysqli_fetch_array($sql_balance);
                ?>
<nav class="navbar navbar-inverse" style="border-radius: 0px; margin-bottom:8px">
        <div class="container">
            <div class="navbar-header" style="background-color:#32363b;">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="<?php echo $urlwebs; ?>/m/index.php" style=" margin-top:-3px"><span style="color:#fc0; font-size:14px; font-weight:bold">USER AREA</span></a>
                <a class="btn btn-default " href="<?php echo $urlwebs; ?>/m/deposit.php" style=" margin-top:7px"><span class="glyphicon glyphicon-import"></span>Deposit</a>
                <a class="btn btn-default " href="<?php echo $urlwebs; ?>/m/withdraw.php" style=" margin-top:7px"><span class="glyphicon glyphicon-export"></span>Withdraw</a>
                <a class="btn btn-default " href="<?php echo $urlwebs; ?>/m/history.php" style=" margin-top:7px"><span class="glyphicon glyphicon-calendar"></span>History</a>
                <a class="btn btn-default " href="<?php echo $urlwebs; ?>/m/memo.php" style=" margin-top:7px">Memo<span class="badge badgeTotal" style="margin-left:5px; margin-right:10px; font-size:9px; font-weight:bold"></span></a>
            </div>
            <div class="collapse navbar-collapse" id="myNavbar" style="background-color:#000;">
                <ul class="nav navbar-nav">
                    <li><a href="<?php echo $urlwebs; ?>/m/index.php"><span class="glyphicon glyphicon-home"></span>Home</a></li>
                    <li><a href="<?php echo $urlwebs; ?>/m/rekening.php"><span class="glyphicon glyphicon-briefcase"></span>Rekening</a></li>
                    <li><a href="<?php echo $urlwebs; ?>/m/password.php"><span class="glyphicon glyphicon-user"></span>Ubah Password</a></li>
                    <li><a href="<?php echo $urlwebs; ?>/m/history.php"><span class="glyphicon glyphicon-calendar"></span>History Transaksi</a></li>
                    <li><a href="<?php echo $urlwebs; ?>/m/deposit.php"><span class="glyphicon glyphicon-import"></span>Deposit</a></li>
                    <li><a href="<?php echo $urlwebs; ?>/m/withdraw.php"><span class="glyphicon glyphicon-export"></span>Withdraw</a></li>
                    <li><a href="<?php echo $urlwebs; ?>/m/memo.php"><span class="glyphicon glyphicon-edit"></span>Memo<span class="badge badgeTotal" style="margin-left:5px; margin-right:5px; font-size:9px; font-weight:bold"></span></a></li>
                    <li><a href="<?php echo $urlwebs; ?>/m/refferal.php"><span class="glyphicon glyphicon-user"></span>Referal</a></li>
                </ul>
                <ul class="nav navbar-nav navbar-right">
                    <hr style="margin:0px;">
                    <li><a href="<?php echo $urlwebs; ?>/m/logout.php"><span class="glyphicon glyphicon-log-in"></span> Logout</a></li>
                </ul>
            </div>
        </div>
    </nav>




    <?php } ?>


    
    <!--tampilan /m/ versi mobile trakhir bawah mentok logo-->
    <div class="container">
<div class="col-xs-12" style="padding:0px; margin:0px;">
    <div class="col-xs-6" style="padding:0px; margin:0px;">
        <div id="logo"><a href="?home"><img src="<?php echo $urlwebs; ?>/upload/favicon.png" width="90" alt="" style="margin:0px 0px 5px 0px"></a></div>
    </div>
    
    <div class="col-xs-6" style="padding:0px; margin-top:0px; margin-bottom:5px;font-weight:bold; text-align:right">
<a href="?memo&amp;head=home"><span class="glyphicon glyphicon-envelope"><span class="badge badgeTotal" style="margin-left:5px; margin-right:10px; font-size:9px; font-weight:bold"></span></span></a><span style="font-weight:bold"><?php echo $u['user']; ?></a></span><span style="font-weight:normal"> | <?php echo $u['full_name']; ?></span>
    </div>
</div>
<div class="col-xs-12" style="padding:0px; margin:0px;">
    <div class="col-xs-6" style="padding:0px; margin:0px;">
        <div class="panel panel-default">
            <div class="panel-heading" style="padding-top:5px; padding-bottom:5px">User Data</div>
            
            <div class="panel-body" style="padding:10px;padding-top:3px;height:65px;overflow:hidden; font-size:10px"><input type="hidden" class="userstatus" value="1"><input type="hidden" class="credit" name="credit" value="0"><input type="hidden" id="max_lose" value="0"><input type="hidden" id="min_deposit" value="20000"><input type="hidden" id="min_withdraw" value="50000">
            <?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'];
                    $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_balance = mysqli_query($conn,"SELECT * FROM `tb_balance` WHERE userID = '$userID'") or die(mysqli_error());
                    $sb = mysqli_fetch_array($sql_balance);
                ?>
                <div>Balance: Rp <strong><span class="userCredit" style="font-size:14px; color:#FFCC00"><?php echo number_format($sb['active']); ?></span></strong></div>
                <div>Last Login: <?php echo date('d M Y H:i:s', strtotime($u['last_login'])); ?><br>Last IP: 114.125.253.159</div>
                <?php } ?>
            </div>
        </div>
    </div>
    <div class="col-xs-6" style="padding:0px; margin:0px; padding-left:8px;">
        <div class="panel panel-default">
            <div class="panel-heading" style="padding-top:5px; padding-bottom:5px">Last Bet/Win Report</div>
            <div class="panel-body" id="winBet" style="padding:10px;padding-top:8px;height:65px; overflow:auto; font-size:10px">No Data<br>No Data<br>No Data</div>
        </div>
    </div>

</div>

        <div class="clearfix"></div>
        <link rel="stylesheet" href="<?php echo $urlwebs; ?>/assets/home/m.css">

            <!-- MAIN TAB -->

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


        <div class="tab-content">

            <div id="dashboard_wrap" class="tab-pane fade in active">
                <div class="row" style="margin-bottom:0px">
                    <div class="col-xs-3" style="padding-right:2px">
                        <a class="btn btn-default btn-block active" href="index.php"><span class="glyphicon glyphicon-calendar"></span>Statement</a>
                    </div>
                    <div class="col-xs-3" style="padding-right:1px; padding-left: 1px;">
                        <a class="btn btn-default btn-block " href="history.php"><span class="glyphicon glyphicon-calendar"></span>History</a>
                    </div>
                    <div class="col-xs-3" style="padding-right:1px; padding-left: 2px;">
                        <a class="btn btn-default btn-block " href="memo.php"><span class="glyphicon glyphicon-edit"></span>Memo<span class="badge badgeTotal" style="margin-left:5px; margin-right:10px; font-size:9px; font-weight:bold"></span></a>
                    </div>
                    <div class="col-xs-3" style="padding-left:2px">
                        <a class="btn btn-default btn-block " href="refferal.php"><span class="glyphicon glyphicon-user"></span>Referal</a>
                    </div>
                </div>
                <div class="row" style="margin-bottom:10px">
                    <div class="col-xs-3" style="padding-right:2px">
                        <a class="btn btn-default btn-block " href="deposit.php"><span class="glyphicon glyphicon-import"></span>Deposit</a>
                    </div>
                    <div class="col-xs-3" style="padding-left:1px; padding-right:1px;">
                        <a class="btn btn-default btn-block " href="withdraw.php"><span class="glyphicon glyphicon-export"></span>Withdraw</a>
                    </div>
                    <div class="col-xs-3" style="padding-left:2px; padding-right:1px">
                        <a class="btn btn-default btn-block " href="rekening.php"><span class="glyphicon glyphicon-briefcase"></span>Rekening<span style="position:absolute; font-size: 10px; margin-top: -8px; margin-left:-85px">⭐</span></a>
                    </div>
                    <div class="col-xs-3" style="padding-left:2px">
                        <a class="btn btn-default btn-block " href="password.php"><span class="glyphicon glyphicon-user"></span>Password</a>
                    </div>
                </div>

                <!--menu payment pertama-->

                <div id=""></div>
                <div id="">
                    <div class="dashboard pt-5 pb-5">
                        <div class="container">
                            <div class="row">
                                <div class="col-sm-8">
                                    <div class="card">
                                    <div class="card-body p-2">
                <?php
                  error_reporting(0);
                  $trxID = $_GET['trxID'];
                  $sql_2 = mysqli_query($conn,"SELECT * FROM `tb_transaksi` WHERE kd_transaksi = '$trxID'") or die(mysqli_error());
                  $s2 = mysqli_fetch_array($sql_2);
                  $metode = $s2['metode'];
                  $getBank = mysqli_query($conn,"SELECT * FROM `tb_bank` WHERE cuid = '$metode'") or die(mysqli_error());
                  $gb = mysqli_fetch_array($getBank);
                ?>
                <div class="mt-2 mb-3 text-white" style="background: #151819; color: #fff; font-size: 18px; padding: 20px 10px;">
                  <div class="row">
                    <div class="col-sm-6">
                      <div class="pb-4">
                        Waktu Transaksi
                        <h5 class="mt-2"><?php echo $s2['date']; ?></h5>
                      </div>
                      <div class="pb-4">
                        No. Transaksi
                        <h5 class="mt-2"><?php echo $s2['kd_transaksi']; ?><i class="fa fa-clone pl-2 clip" onclick="copy_trxaku()" data-clipboard-text="<?php echo $s2['kd_transaksi']; ?>"></i></h5>
                      </div>
                      <div class="pb-4">
                        Jumlah Deposit
                        <h5 class="mt-2">Rp. <?php echo number_format($s2['total']); ?></h5>
                      </div>
                      
                    </div>
                    <div class="col-sm-6">
                      <div class="pb-4">
                        Metode Pembayaran
                        <h5 class="mt-2"><?php echo $gb['akun']; ?></h5>
                      </div>                                
                      <div class="pb-4">
                        No. Rekening Pembayaran<br>
                        <h5 class="mt-2"><?php echo $gb['no_rek']; ?><i class="fa fa-clone pl-2 clip" onclick="copy_virtualku()" data-clipboard-text="<?php echo $gb['no_rek']; ?>"></i></h5>
                        <p>a/n <?php echo $gb['pemilik']; ?></p>
                      </div>
                    </div>
                  </div>
                </div>
                <div class="mt-2 mb-3 text-white" style="background: #151819; color: #fff; padding: 20px 10px;">
                  Catatan :<br>
                  <ol>
                    <li>Lakukan Pembayaran Sesuai dengan Nominal Transaksi, Kegagalan Transaksi akibat salah transfer bukan tanggung jawab kami</li>
                    <li>Setelah Melakukan Pembayaran, Konfirmasi Pembayaran Anda melalui Form dibawah :</li>
                  </ol>
                  <?php
                    error_reporting(0);
                    if (!empty($_GET['notif'])) {
                      if ($_GET['notif'] == 1) {
                        echo '
                          <div class="alert alert-warning alert-dismissible mb-2" role="alert">
                            <button type="button" class="close" data-dismiss="alert">&times;</button>
                            <div class="alert-icon">
                              <i class="fa fa-exclamation-triangle"></i>
                            </div>
                            <div class="alert-message">
                              <span><strong>Warning!</strong> Deposit Akan diproses Jika Sudah Tersedia di Mutasi Kami!</span>
                            </div>
                          </div>
                        ';
                      }
                      if ($_GET['notif'] == 2) {
                        echo '
                          <div class="alert alert-warning alert-dismissible mb-2" role="alert">
                            <button type="button" class="close" data-dismiss="alert">&times;</button>
                            <div class="alert-message">
                              <span>Selamat Deposit Berhasil!!</span>
                            </div>
                          </div>
                        ';
                      }
                    }
                  ?>
                  <form role="form" action="<?php echo $urlweb; ?>function/konfirmasi.php" method="POST" enctype="multipart/form-data">
                    <div class="mt-2 mb-3 text-white" style="background: #000; color: #fff; padding: 20px 10px;">
                      <p>Jumlah Transfer</p>
                      <input type="text" name="nominal" class="form-control" value="<?php echo $s2['total']; ?>" readonly>
                      <input type="hidden" name="trxID" class="form-control" value="<?php echo $s2['kd_transaksi']; ?>">
                    </div>
                    <div class="mt-2 mb-3 text-white" style="background: none; color: #fff; padding: 20px 10px;">
                      <p>Bukti Transfer</p>
                      <input type="file" name="image" class="form-control"  value="<?php echo $s2['total']; ?>" required>
                    </div>
                    <div class="mt-2 mb-3 text-white" style="background: #000; color: #fff; padding: 20px 10px;">
                    <p>Konfirmasi Deposit Anda</p>
                    <input type="hidden" name="" class="form-control" style="display: block;" value="" required="">
                    </div>
                    <button type="submit" name="submit" value="submit" class="btn btn-warning text-dark">Konfirmasi</button>
                  </form>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div><a class="btn btn-primary btn-block" href="?deposit&amp;head=home" role="button" style="font-weight:bold; margin-top:20px"><span class="glyphicon glyphicon-menu-left"></span>Kembali</a>
    
                        <div style="margin-top:20px">

                        <div class="well well-sm" style="padding-top: 5px; padding-bottom:2px;">
                            <marquee><span class="broadcast" style="white-space:nowrap">Selamat Datang di cuan4d ! Situs Judi Online Terpercaya di Indonesia | Minimal Deposit 20rb | Transfer Via EDC / Echannel Akan di Proses 1x24 Jam.</span></marquee>
                        </div>
                        <div class="well well-sm bankOnline" style="margin-top:-10px; text-align:center"><span style="margin-left:10px; margin-right:10px; white-space:nowrap"><strong>BCA</strong> : <span class="text-success">ONLINE</span></span>
                            <span style="margin-left:10px; margin-right:10px; white-space:nowrap"><strong>Mandiri</strong> : <span class="text-success">ONLINE</span></span>
                            <span style="margin-left:10px; margin-right:10px; white-space:nowrap"><strong>BNI</strong> : <span class="text-success">ONLINE</span></span>
                            <span style="margin-left:10px; margin-right:10px; white-space:nowrap"><strong>BRI</strong> : <span class="text-success">ONLINE</span></span>
                            <span style="margin-left:10px; margin-right:10px; white-space:nowrap"><strong>CIMB</strong> : <span class="text-success">ONLINE</span></span>
                            <span style="margin-left:10px; margin-right:10px; white-space:nowrap"><strong>PANIN</strong> : <span class="text-success">ONLINE</span></span>
                            <span style="margin-left:10px; margin-right:10px; white-space:nowrap"><strong>DANA</strong> : <span class="text-success">ONLINE</span></span>
                            <span style="margin-left:10px; margin-right:10px; white-space:nowrap"><strong>OVO</strong> : <span class="text-success">ONLINE</span></span>
                            <span style="margin-left:10px; margin-right:10px; white-space:nowrap"><strong>GOPAY</strong> : <span class="text-success">ONLINE</span></span>
                            <span style="margin-left:10px; margin-right:10px; white-space:nowrap"><strong>LinkAja</strong> : <span class="text-success">ONLINE</span></span>
                        </div>
                        <div class="well well-sm" style="margin-top:-10px; padding-bottom:2px;">
                            <marquee><span class="listkeluaran" style="white-space:nowrap"> <span style="margin-left:30px;"><span style="color:#FC0 ">HK SIANG </span><span style="color:#CCC">23/05 </span><strong>2757</strong></span>
                                    <span style="margin-left:30px;"><span style="color:#FC0 ">SG METRO </span><span style="color:#CCC">23/05 </span><strong>5708</strong></span>
                                    <span style="margin-left:30px;"><span style="color:#FC0 ">SYDNEY </span><span style="color:#CCC">23/05 </span><strong>4454</strong></span>
                                    <span style="margin-left:30px;"><span style="color:#FC0 ">HAIPHONG </span><span style="color:#CCC">23/05 </span><strong>7076</strong></span>
                                    <span style="margin-left:30px;"><span style="color:#FC0 ">SINGAPORE </span><span style="color:#CCC">22/05 </span><strong>1263</strong></span>
                                    <span style="margin-left:30px;"><span style="color:#FC0 ">MALAYSIA </span><span style="color:#CCC">23/05 </span><strong>7084</strong></span>
                                    <span style="margin-left:30px;"><span style="color:#FC0 ">MACAU </span><span style="color:#CCC">23/05 </span><strong>5292</strong></span>
                                    <span style="margin-left:30px;"><span style="color:#FC0 ">QATAR </span><span style="color:#CCC">07/05 </span><strong>2516</strong></span>
                                    <span style="margin-left:30px;"><span style="color:#FC0 ">HONGKONG </span><span style="color:#CCC">23/05 </span><strong>6022</strong></span>
                                    <div style="clear:both"></div>
                                </span></marquee>
                        </div>

                    </div>

                    <a class="btn btn-danger btn-block" href="/" role="button" style="font-weight:bold; margin-top:20px"><span class="glyphicon glyphicon-menu-left"></span>Log out</a>

                </div>





                <div id="games_wrap" class="tab-pane fade in ">

                </div>
                </div>



            </div>
            <div class="well well-sm container-fluid text-center" style="margin:0px; padding:5px; border-radius:0px; padding-bottom: 55px">
                © 2018 - 2023 Copyright <?php echo $s0['instansi']; ?>. All Rights Reserved.
            </div>

<!--tampilan /m/ versi mobile bawah trakhir alias footer--><!--next halaman footer-->
<?php include('footer.php'); ?>
</html>
<?php
    