<?php //p($_SESSION); ?>
<div class="mobile-banner-wrap relative"> 
    <div class="layer"></div>
     <img class="mobile-banner" src="<?= base_url(); ?>/banner-5-mobile.jpg"></div>
     <div id="parallax-wrap" class="parallax-search" data-parallax="scroll" data-position="center" data-bleed="10" data-image-src="/assets/images/banner-5.jpg">
     <div class="search-wraps">
     <?php if(isset($_SESSION['orderconfirmData'])) { ?>
     <h1>Confirm Order</h1><p>please review your order below</p>
     <?php } else { ?>
     <h1>oops something went wrong</h1>
      <?php } ?>
     </div> <!--search-wraps--></div> <!--parallax-container--><div class="order-progress-bar"> <div class="container"> <div class="row"> <div class="col-md-2 col-xs-2 "> <a class="active" href="https://foodkoko.com.ng/store">Search</a> </div> <div class="col-md-2 col-xs-2 "> <a class="active" href="https://foodkoko.com.ng/%3Cbr%20/%3E%3Cb%3ENotice%3C/b%3E:%20Undefined%20variable:%20search_str%20in%20%3Cb%3E/home/kokoichz/foodkoko.com.ng/protected/views/front/order-progress-bar.php%3C/b%3E%20on%20line%20%3Cb%3E72%3C/b%3E%3Cbr%20/%3E%3Cbr%20/%3E%3Cb%3ENotice%3C/b%3E:%20Undefined%20variable:%20search_key%20in%20%3Cb%3E/home/kokoichz/foodkoko.com.ng/protected/views/front/order-progress-bar.php%3C/b%3E%20on%20line%20%3Cb%3E72%3C/b%3E%3Cbr%20/%3E/searcharea?="> Pick Merchant</a> </div> <div class="col-md-2 col-xs-2"> <a class="active " href="<?= base_url('menu'); ?>"> Create your order</a> </div> <div class="col-md-2 col-xs-2 "> <a class="active " href="<?= base_url('paymentoption') ?>">Payment information</a> </div> <div class="col-md-2 col-xs-2 "> <a class="active current " href="javascript:;">Confirm Order</a> </div> <div class="col-md-2 col-xs-2 "> <a class="inactive " href="javascript:;">Receipt</a> </div> </div><!-- row--> </div> <!--container--> <div class="border progress-dot mytable"> <a href="https://foodkoko.com.ng/store" class="mycol selected"><i class="ion-record"></i></a> <a href="javascript:;" class="mycol selected"><i class="ion-record"></i></a> <a href="javascript:;" class="mycol selected"><i class="ion-record"></i></a> <a href="javascript:;" class="mycol selected"><i class="ion-record"></i></a> </div> <!--end progress-dot--> </div> <!--order-progress-bar-->
      <?php if(isset($_SESSION['orderconfirmData'])) { ?>
     <form id="frm-delivery" class="frm-delivery has-validation-callback" method="POST" action="order/placeorder">
   

   
    <div class="sections section-grey2 section-confirmorder">
    <?php if($this->session->flashdata('error')){ ?>
            <div class="alert alert-danger">
               <?= $this->session->flashdata('error')?>.
            </div>
        <?php } ?>
     <div class="container" style="transform: none;"> <div class="row" style="transform: none;"> <div class="col-md-7"> <div class="box-grey rounded"> <div class="section-label"> <a class="section-label-a"> 
    <span class="bold"> Delivery information</span> <b></b> </a>
     </div> <table class="table-order-details">
      <tbody>
      <tr> <td class="a">Merchant Name</td> <td class="b">:<?= @$_SESSION['merchantinfo']['restaurant_name']; ?></td> </tr>
       <tr> <td class="a">Delivery Date</td> <td class="b">: <?= @$_SESSION['deliveryData']['delivery_date'] ?></td> </tr> 
       <tr> <td class="a">Delivery Time</td> <td class="b">: <?= @$_SESSION['deliveryData']['delivery_time'] ?></td> </tr>
        </tbody>
        </table> 
        <div class="section-label"> 
        <a class="section-label-a"> 
        <span class="bold"> Delivery Address</span> <b></b> 
        </a> </div> 
        <p class="spacer3"><?= $_SESSION['orderconfirmData']['street'].$_SESSION['orderconfirmData']['city'].$_SESSION['orderconfirmData']['state'].$_SESSION['orderconfirmData']['zipcode']; ?> </p> 
        <div class="section-label"> <a class="section-label-a"> <span class="bold"> Payment Information</span> <b></b> </a> </div>
         <p> <?= $_SESSION['orderconfirmData']['payment_provider']; ?></p>
         <p class="text-muted text-small"></p> <p></p> 
         </div><!-- box-grey--> <a href="<?= base_url('paymentoption'); ?>"> 
         <i class="ion-ios-arrow-thin-left"></i> Back </a> </div> <!--col--> 
         <div class="col-md-5 sticky-div" style="position: relative; overflow: visible; box-sizing: border-box; min-height: 1px;">  <!--box-grey sticky-div--> 
         <div class="theiaStickySidebar" style="padding-top: 1px; padding-bottom: 1px; position: static;">
         <div class="box-grey rounded relative top-line-green"> <i class="order-icon your-order-icon"></i>
         <div class="order-list-wrap">
         <p class="bold center">Your Order</p>
         <div class="item-order-wrap">
         <?php 
             foreach($_SESSION['cartData']['data']['item'] as $key => $order) { ?>
             <div class="item-order-list item-row<?= $key; ?>"><p style="margin:0;">
            </p><div class="a"><?= $order['qty']; ?></div>
            <div class="b"><?= $order['item_name']; ?><p class="uk-text-small"><span class="base-price"><?= $_SESSION['settings']['currency_symbol'].$order['normal_price']; ?></span></p></div>
            <div class="manage">
            <div class="d"><?= $_SESSION['settings']['currency_symbol'].($order['qty']*$order['discounted_price']); ?></div></div><div class="clear"></div></div>
                                <?php } ?>
                                <div class="summary-wrap">
                                <div class="row"><div class="col-md-6 col-xs-6 text-right ">Sub Total</div><div class="col-md-6 col-xs-6 text-right cart_subtotal"><?= $_SESSION['settings']['currency_symbol'].$_SESSION['cartData']['data']['total']['subtotal']; ?></div></div>
                                <div class="row"><div class="col-md-6 col-xs-6 text-right ">Delivery Charge</div><div class="col-md-6 col-xs-6 text-right cart_deliverycharge"><?= $_SESSION['settings']['currency_symbol'].$_SESSION['cartData']['data']['total']['delivery_charges']; ?></div></div>
                                <div class="row cart_total_wrap bold"><div class="col-md-6 col-xs-6  text-right">Total</div><div class="col-md-6 col-xs-6  text-right cart_total"><?= $_SESSION['settings']['currency_symbol'].$_SESSION['cartData']['data']['total']['total']; ?></div></div><input type="hidden" value="" name="subtotal_order" id="subtotal_order"><input type="hidden" value="" name="subtotal_order2" id="subtotal_order2"><input type="hidden" value="" name="total" id="total"><input type="hidden" value="" name="subtotal_extra_charge" id="subtotal_extra_charge"></div></div> <div class="text-center top25">
                                
                                <input type="submit" value="Confirm Order" class="place_order orange-button medium inline block">
                                </div> </div> <!--order-list-wrap--> </div></div></div> <!--col--> </div> <!--row--> </div> <!--container--></div><!-- sections--> </form>
             <?php }else{ ?>
              <h3 class="text-danger">merchant is not available</h3>
             <?php } ?>