<?php 
ob_start();
session_start();
if($_SESSION['frontuserid']=="")
{header("location:login");exit();}?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<?php include'head.php' ?>
<link rel="stylesheet" href="assets/css/style.css">
<link rel="stylesheet" href="assets/css/main.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet">
<style>
body{ font-family: "Montserrat", sans-serif;}
.home[data-v-432e6ed0]{    padding-bottom: 3%;}
h3 {
	font-weight:normal;
}
.table td, .table th {
  
    background: #d7d3ff;
}
.appHeader1{height:auto;}
.tdtext{ font-size:16px !important; color:#090 !important; font-weight:normal; text-align:right;}
.tdtext2{ font-size:16px !important; color:#f00 !important; font-weight:normal; text-align:right;}
.tdtext3{ font-size:16px !important; color:#FFB400 !important; font-weight:normal; text-align:right;}

.text small{ font-size:12px; color:#333;}
.listView .listItem {
   padding: 0px 55px 0px 0px;
}
.listView .listItem .text {
    font-size: 16px;
}
.home[data-v-432e6ed0]{    overflow-y: auto; }
@media only screen and (max-width: 600px) {
  .home[data-v-432e6ed0]{    overflow-y: auto;    padding-bottom: 14%;}
}
</style>
</head>

<body>

<div data-v-432e6ed0="" class="home mian game">
    
    
<!-- App Header -->
<div class="appHeader1" >
  <div class="left"> <a href="#" onClick="goBack();" class="icon goBack"> <i class="icon ion-md-arrow-back"></i> </a>
    <div class="pageTitle">Bet History</div>
  </div>
</div>
<!-- * App Header --> 
<!-- App Capsule -->
<div id="appCapsule" style="margin:25px;">
  <div class="appContent1 listView">
    <table class="table table-borderless" >
      <thead>
          
          <th>Type</th>
          <th>Amount</th>
          <th>Result</th>
          <th>Win Amount</th>
          <th>Cash Out</th>
          
      </thead>
      <tbody>
      <?php
	  $userid=$_SESSION['frontuserid'];
      $summery=mysqli_query($con,"SELECT * FROM `tbl_betting` WHERE `userid` = '".$userid."' AND DATE(`createdate`) = CURDATE() ORDER BY `id` DESC");
      $i=0;
	while($summeryResult=mysqli_fetch_array($summery)){

	  ?>
        <tr>
          
          <td><?php echo $summeryResult['type']; ?></td>
          <td><?php echo $summeryResult['amount']; ?></td>
          <td><?php echo $summeryResult['result']; ?></td>
          <td><?php echo $summeryResult['totalamount']; ?></td>
          <td><?php echo $summeryResult['cashOut']; ?></td>
          
          </tr>
        <?php }?>
      </tbody>
    </table>
  </div>
</div>
<!-- appCapsule -->

    
</div>


<?php include("include/footer.php");?>

<script src="assets/js/lib/jquery-3.4.1.min.js"></script> 
<!-- Bootstrap--> 
<script src="assets/js/lib/popper.min.js"></script> 
<script src="assets/js/lib/bootstrap.min.js"></script> 
<!-- Owl Carousel --> 
<script src="assets/js/plugins/owl.carousel.min.js"></script> 
<!-- Main Js File --> 
<script src="assets/js/app.js"></script> 
<script src="assets/js/jquery.validate.min.js"></script> 

</body>
</html>