
­­­­­­­­­­­­­­­­­­
<!DOCTYPE html>
<html>
<?php
include "landing_api.php";
is_logged_in();

$voucher =  $_GET['voucher'];

$prize_details = get_prize_details2($voucher);

?>
<!DOCTYPE html>
<html lang="en">
<head>
  <title>Bootstrap Example</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>

th{
font-weight:bolder !important;    
}
td{
font-weight:bolder !important;    
}
    
</style>  
  
</head>

<div style="width:400px !important;">

<div style="height:32px;"></div>
<div style="height:20px;text-align:center;">--------------------------------------------------------</div>
<div style="height:32px;"></div>
<div>
<img src="https://funlandksa.com/luckywheel/login/images/funland-logo.png" style="height: 50px;" class="mx-auto d-block">    
</div> 

<div style="height:32px;"></div>

<table class="table">
    <thead>
      <tr>
        <th>Description</th>
        <th>Value</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td>Name</td>
        <td><?php echo $prize_details['name']; ?></td>
      </tr>
      <tr>
        <td>Email</td>
        <td><?php echo $prize_details['email']; ?></td>
      </tr>
      <tr>
        <td>Mobile</td>
        <td><?php echo $prize_details['phone']; ?></td>
      </tr>
      <tr>
        <td>City</td>
        <td><?php echo $prize_details['city']; ?></td>
      </tr>
      <tr>
        <td>Prize</td>
        <td><?php echo $prize_details['prize']; ?></td>
      </tr>
      <tr>
        <td>Game Type</td>
        <td><?php echo $prize_details['game_type']; ?></td>
      </tr>
      <tr>
        <td>Redeem By</td>
        <td><?php echo $prize_details['redeem_by']; ?></td>
      </tr>
      <tr>
        <td>Prize Date</td>
        <td><?php echo $prize_details['win_date']; ?></td>
      </tr>
      <tr>
        <td>Redeem Date</td>
        <td><?php echo $prize_details['redeem_date']; ?></td>
      </tr>
      <tr>
        <td>Voucher</td>
        <td><?php echo $prize_details['prize_code']; ?></td>
      </tr>
    </tbody>
  </table>


<div style="height:32px;"></div>
<div style="height:20px;text-align:center;">--------------------------------------------------------</div>

<div style="height:32px;"></div>
<div style="height:20px;text-align:center;">--------------------------------------------------------</div>
    
</div>


 <script type="text/javascript">
    $(document).ready(function () {
        window.print();
        setTimeout("closePrintView()", 3000);
    });
    function closePrintView() {
        document.location.href = "https://funlandksa.com/luckywheel/admin/portal/";
    }
</script>