<!--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="100" 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=""><input type="hidden" id="max_lose" value=""><input type="hidden" id="min_deposit" value=""><input type="hidden" id="min_withdraw" value="">
            <?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>