<?php require_once("../resources/config.php"); 
$naziv = "Verifikacija plaćanja";
?>
<!DOCTYPE html>
<html lang="sr">

<?php include(TEMPLATE_FRONT . DS . "head.php"); ?>
    
<body>
    
<span class="loader"></span>
<header>
    <?php include(TEMPLATE_FRONT . DS . "header.php");?>   
</header>
<section class="banner pb-0" style="background-color: #f7f7f7 ;">
  <div class="container">
    <ol class="breadcrumb">
      <li class="breadcrumb-item">
        <a href="index.php">Početna</a>
      </li>
        <li class="breadcrumb-item">
        <a href="#"><?php echo $naziv ?></a>
      </li>
    </ol>
    <h2><?php echo $naziv ?></h2>
  </div>
</section>
<h4 class="text-center bg-danger"><?php display_message(); ?></h4>      
<section class="gap">
    <div class="container">
          
    <div class="row">
              <div class="col-lg-4">
               <div class="coupon-area">
                            
                        </div>
<div class="cart_totals">
<h4>Za naplatu</h4>
<table class="shop_table_responsive">
<tbody>
<tr class="Shipping">
    <th>Broj proizvoda:</th>
    <td>
        <span class="woocommerce-Price-amount amount">
            <?php echo isset($_SESSION['item_quantity']) ? $_SESSION['item_quantity'] : $_SESSION['item_quantity'] = "0"?>
        </span>
     </td>
</tr>
<tr class="cart-subtotal">
    <th>Cena:</th>
    <td>
        <span class="woocommerce-Price-amount">
        <bdi>
            <span class="woocommerce-Price-currencySymbol">rsd  </span><?php echo isset($_SESSION['item_total']) ? $_SESSION['item_total'] : $_SESSION['item_total'] = "0"?>
        </bdi>
        </span>
    </td>
</tr>
<tr class="Shipping">
    <th>Dostava:</th>
    <td>
        <span class="woocommerce-Price-amount amount">
            Tip dostave
        </span>
     </td>
</tr>

<tr class="Total">
    <th>Ukupno:</th>
    <td>
        <span class="woocommerce-Price-amount">
        <bdi>
            <span>rsd </span><?php echo isset($_SESSION['item_total']) ? $_SESSION['item_total'] : $_SESSION['item_total'] = "0"?>
        </bdi>
        </span>
    </td>
</tr>
</tbody>
</table>
</div>
              </div>
        
          <div class="col-lg-8">
          <div class="heading two">
          <h4>Let's Chat. Tell me about your Occasion.</h4>
          <p>contact us and one of our delightful team will be be happy to help.</p>
        </div>
        <div class="inner-response"></div>
        <form  action="thank_you.php" class="contact-form" role="form" id="contact-form" method="post">
         
        
            
<input type="hidden" name="amount_{$amount}" value="<?php echo isset($_SESSION['item_total']) ? $_SESSION['item_total'] : $_SESSION['item_total'] = "0"?>">
<input type="hidden" name="quantity_{$quantity}" value="<?php echo isset($_SESSION['item_quantity']) ? $_SESSION['item_quantity'] : $_SESSION['item_quantity'] = "0"?>">

            
          <div class="row">
            <div class="col-lg-6 ps-lg-0">
              <input type="text" name="name" placeholder="Puno ime i prezime" required>
            </div>
            <div class="col-lg-6 pe-lg-0">
              <input type="text" name="email" placeholder="Email adresa" required>
            </div>
            <input type="text" name="phone" placeholder="Broj telefona" required>
            <input type="text" name="adresa" placeholder="Adresa i vreme isporuke" required>  
            <textarea placeholder="Napomena ako je potrebna" name="comment" ></textarea>
             
                <input type="submit" name="submit" class="btn btn-primary" value="Završi kupovinu">  
<!--                <span>Završi kupovinu</span>-->
              
           </div>
         
        </form>
        </div>
            
            </div>
          
        
    </div>
</section>
<footer class="gap">
  <?php include(TEMPLATE_FRONT . DS . "footer.php");?>  
</footer>
<!-- progress -->
<div id="progress">
      <span id="progress-value"><i class="fa-solid fa-arrow-up"></i></span>
</div>
<!-- jQuery -->
<script src="assets/js/jquery-3.6.0.min.js"></script>
<!-- Bootstrap Js -->
<script src="assets/js/bootstrap.min.js"></script>
<script src="assets/js/owl.carousel.min.js"></script>

<script src="assets/js/jquery.nice-select.min.js"></script>
<!-- fancybox -->
<script src="assets/js/jquery.fancybox.min.js"></script>
<script src="assets/js/custom.js"></script>
</body>
