<?php require_once("../resources/config.php"); 
$naziv = "Korpa";
?>
<!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-8">
          <form class="woocommerce-cart-form"  action="cart-checkout.php" method="post">
           
            <input type="hidden" name="cmd" value="_cart">
            <input type="hidden" name="business" value="milenko.milovanovic@gmail.com">
            <input type="hidden" name="currency_code" value="USD">            
                <div style="overflow-x:auto;overflow-y: hidden;">
                  <table class="shop_table table-responsive">
                        <thead>
                            <tr>
                                <th class="product-name">Proizvod</th>
                                <th class="product-price">Cena</th>
                                <th class="product-quantity">Količina</th>
                                <th class="product-subtotal">Ukupno</th>
                                <th></th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php cart(); ?>                            
                        </tbody>
                  </table>
                </div>
              
              </div>
              <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 class="wc-proceed-to-checkout">
                              
                                
                                                                
                                <?php echo show_pay(); ?>
                            </div>
                        </div>
              </div>
           </form>
        </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>
