<?php
$page='Payment Confirmation';
$tittle='Payment Confirmation';
include('conn.php')
?>

<?php
if (isset($_GET['item'])) {
  $id=mysqli_real_escape_string($conn, $_GET['item']);
    $item=base64_decode($id);
 /* $id=mysqli_real_escape_string($conn, $_GET['id']);
  $id2=base64_decode($id)*/;
}
?>
<!--head section start-->
<?php include('common/head_online.php') ?>
<!--head section end-->
<style>
                body {
              font-family: 'Nunito', sans-serif;

  font-size: 20px;

  background-size: 100% 100%;
  color: #111011FF;
}


      @media (max-width: 500px) {
    .bg {
      
      position: absolute;
    top: 0%;
    left: 0%;
    transform: translate(0%, 0%);
        width: 100%;
    }.to{
    background-color: #369FDCFF;
    color: #ffffff !important;
   border-radius: 0px 0px 50px 50px;
   padding: 30px;
}

h4{
    color:  #FFFFFFFF !important;
}
  }
  h4{
    padding: 10px;
    font-weight: 800 !important;
    font-family: 'Nunito', sans-serif;
    
  }
  @media (max-width: 500px) {
 
h4{
    color:  #FFFFFFFF !important;
}
  }
  .input-div{
    margin: px;

  }
  .form-label{
    font-size: 14px;
  }
 
</style>
<!-- Modal Add users -->
<div  class="m-0" >
  <div class="modal-dialog" role="document">
    <div class="modal-content text-center">
<?php 
$sql2="SELECT * FROM currency ";
$result2 = mysqli_query($conn,$sql2)or die( mysqli_error($conn));
$row2=mysqli_fetch_array($result2) ;
$currency=$row2['curency'];


$sql1="select * from orders_details where orderid='$item' ";
$result1 = mysqli_query($conn,$sql1)or die( mysqli_error($conn));
$row1=mysqli_fetch_array($result1);
$amount=$row1['amount'];
$payment_status=$row1['payment_status'];

$real_id=substr($item,-2);
$ord = sprintf('%03d',$real_id); 
?>
      <div class="to text-center">
        <img src="logo/<?php echo $logo ?>" alt="" height=100>
        <h4 class="modal-title text-center text-uppercase " id="exampleModalLabel">Complete Payment</h4>
        <p class="p-2 ">Send <?php echo $currency ."". number_format($amount,2) ?> to any of the following Momo Number.  </p><br/>
      </div>
        
          <input type="hidden" name="id" value="">
         
          <ol class="list-group list-group-numbered">
            <li class="list-group-item"> MTN Number: <u> <?php echo $c1 ?></u></li>
            <li class="list-group-item"> telecel Number: <u> <?php echo $c2 ?></u></li>
            <li class="list-group-item">Use  <u> <?php echo $ord ?></u> as your reference number </li>
            <small></small>
            <li class="list-group-item">Amount: <?php echo $currency ."". number_format($amount,2) ?></li>
          </ol>
          <a href="track_order" class="btn m-2 btn-outline-primary">Confirm Payment</a>
          <a style="border-radius: 30px 30px 0px 0px;" href="" class="btn btn-success m-2"><div class="spinner-border text-light" role="status">
            <span class="visually-hidden"></span>
          </div> <p class="m-1">Waiting Confirmation</p></a>
       
      </div>
      <div class="modal-footer">
      </div>
    </div>
  </div>
