<?php $__env->startSection('content'); ?>

    <!-- Begin: Main Slider -->
    <div class="innerBan">
        <img src="<?php echo e(asset('front/images/innerbnr1.png')); ?>" class="w-100" alt="">
        <div class="overlay">
            <div class="container">
                <div class="row justify-content-center">
                    <div class="col-md-12">
                        <h2>checkout</h2>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- End: Main Slider -->

    <section class="check-out-section chkot-pag">
        <div class="container">
            <div class="check-out-form">
                <h2 class="primary-heading">Billing Address</h2>
                <p>
                    Fill the form below to complete your purchase
                </p>
                <p class="checkout-subheading">
                    <a href="">Already Registered?</a> Click here to <a href="" class="text-uppercase">Login now</a>
                </p>
                <form action="#">
                    <div class="row">
                        <div class="col-md-6">
                            <label for="">first NamE</label>
                            <input type="text" class="form-control">
                        </div>
                        <div class="col-md-6">
                            <label for="">Last NamE</label>
                            <input type="text" class="form-control">
                        </div>
                        <div class="col-md-6">
                            <label for="">email address</label>
                            <input type="text" class="form-control">
                        </div>
                        <div class="col-md-6">
                            <label for="">Phone</label>
                            <input type="text" class="form-control">
                        </div>
                        <div class="col-md-6">
                            <label for="">password</label>
                            <input type="text" class="form-control">
                        </div>
                        <div class="col-md-6">
                            <label for="">confirm password</label>
                            <input type="text" class="form-control">
                        </div>
                        <div class="col-md-12">
                            <label for="">address</label>
                            <textarea name="" id="" cols="30" rows="6" class="form-control"></textarea>
                        </div>
                        <div class="col-md-12">
                            <label for="">Country</label>
                            <input type="text" class="form-control">
                        </div>
                        <div class="col-md-12">
                            <label for="">city</label>
                            <input type="text" class="form-control">
                        </div>
                        <div class="col-md-6">
                            <label for="">ZIP/POSTAL CODE</label>
                            <input type="text" class="form-control">
                        </div>
                        <div class="col-md-6">
                            <label for="">sTATE/pROVINCE</label>
                            <input type="text" class="form-control">
                        </div>
                        <div class="col-md-12 checkbox">
                            <input type="checkbox" id="box-1">
                            <label for="box-1">Create an account for later use</label>
                        </div>
                        <div class="col-md-12 checkbox">
                            <input type="checkbox" id="box-2">
                            <label for="box-2">Ship to the same address mentioned above </label>
                        </div>
                    </div>
                </form>
                <hr>

                <div class="order-summery">
                    <h2 class="primary-heading text-center">Order Summary</h2>
                    <div class="row bb-1">
                        <div class="col-md-6">
                            <span>Subtotal (<?php echo e(count(session()->get('cart') ?? '')); ?>)</span>
                        </div>
                        <?php
                        $cart = session()->get('cart',[]);
                        $cartTotal = 0;
                        foreach ($cart as $item){
                            $cartTotal += $item['price'] * $item['quantity'];
                        }

                        ?>
                        <div class="col-md-6 text-right">
                            USD <?php echo e($cartTotal ?? ''); ?>

                        </div>
                    </div>
                    <div class="row bb-1">
                        <div class="col-md-6">
                            <span>Shipping fee</span>
                        </div>
                        <div class="col-md-6 text-right">
                            USD 5.00
                        </div>
                    </div>
                    <div class="row bb-1">
                        <div class="col-md-9">
                            <input type="text" class="form-control" placeholder="Enter Voucher Code">
                        </div>
                        <div class="col-md-3">
                            <button class="themeBtn w-100">Apply</button>
                        </div>
                    </div>
                    <div class="row bb-1">
                        <div class="col-md-6">
                            <span>Total</span>
                        </div>
                        <div class="col-md-6 text-right">
                            USD <?php echo e($cartTotal ?? ''); ?>

                        </div>
                    </div>
                    <div class="col-md-12 mt-4 p-0">
                        <button class="themeBtn w-100" onclick="window.location.href='<?php echo e(route('admin.payment.show')); ?>'">proceed to checkout</button>
                    </div>
                </div>
            </div>
        </div>
    </section>

<?php $__env->stopSection(); ?>

<?php echo $__env->make('front.include.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/vagrant/projects/upsence/resources/views/front/checkout.blade.php ENDPATH**/ ?>