
­­­­­­­­­­­­­­­­­­
<!DOCTYPE html>
<html>
<?php
include "landing_api.php";

is_logged_in();

$voucher =  $_GET['voucher'];

$prize_details = get_prize_details2($voucher);
$UID = $_SESSION['UID'];

//print_r($prize_details);

?>

<!DOCTYPE html>
<html lang="en">
<head>
  <title>Funland | Everyone is winner</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>

<style>
body{
 /* background-color: #cccccc; */
  background-repeat: no-repeat; /* Do not repeat the image */
  background-size: cover; /* Resize the background image to cover the entire container */
}

.input-kd{
    border: 3px solid #fff;
    border-radius: 23px;
    background-image: linear-gradient(to right,#E6E6E6, #fff);
    box-shadow: 0px 0px 4px 4px #2dbdbb;
}
.error{
    border: 3px solid red !important;
   /* background-image: linear-gradient(to right,red, red) !important; */
}

.label-kd{
color: red;
}
.fl-right{
    float: right;
}


    
</style> 

</head>
<body>

<?php
include 'nav.php';

?>

<div class="container">
    
<div style="height:64px;"></div>
<h1 style="text-align:center;">Daily Report (Voucher Redeemed)</h1>
<div style="height:64px;"></div>

<table class="table table-striped">
<thead>
<tr>
<td>Name</td>
<td>Mobile</td>
<td>Prize</td>
<td>Redeem Date</td>
<td>Action</td>
</tr>    
</thead>    
<tbody>

<?php 

$dreport = get_daily_redeem_report($UID);

foreach ($dreport as $dreportv){
echo "<tr>";
echo "<td>".$dreportv['name']."</td>";
echo "<td>".$dreportv['phone']."</td>";
echo "<td>".$dreportv['prize']."</td>";
echo "<td>".$dreportv['redeem_date']."</td>";
echo "<td>"."<a href='https://funlandksa.com/luckywheel/admin/portal/print-voucher.php?voucher=".$dreportv['prize_code']."' class='btn btn-primary'>Re-Print</a>"."</td>";
echo "</tr>";    
}

?>
    
</tbody>    
</table>


    
</div>      
      
</body>
</html>