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

<?php $__env->startSection('content'); ?>
<?php echo $__env->make('includes.smallHeader', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
  <!-- Breadcrumbs -->
  <div class="breadcrumbs">
    <div class="container">
      <div class="row">
        <div class="col-12">
          <div class="bread-inner">
            <ul class="bread-list">
              <li><a href="index1.html">Home<i class="ti-arrow-right"></i></a></li>
              <li class="active"><a href="blog-single.html">Checkout</a></li>
            </ul>
          </div>
        </div>
      </div>
    </div>
  </div>
  <!-- End Breadcrumbs -->

  <!-- Start Checkout -->
  <section class="shop checkout section">
    <div class="container">
      <div class="row">
        <div class="col-lg-8 col-12">
          <div class="checkout-form">
            <h2>Make Your Checkout Here</h2>
            <p>Please fill in to checkout more quickly</p>
            <!-- Form -->
            <form class="form" method="post" action="<?php echo e(route('submitcheckout')); ?>">
              <div class="row">
                <div class="col-lg-12 col-md-12 col-12">
                  <div class="form-group">
                    <label>Full Name<span>*</span></label>
                    <input type="text" name="name" placeholder="" required="required">
                  </div>
                </div>

                <div class="col-lg-6 col-md-6 col-12">
                  <div class="form-group">
                    <label>Email Address<span>*</span></label>
                    <input type="email" name="email" placeholder="" required="required">
                  </div>
                </div>
                <div class="col-lg-6 col-md-6 col-12">
                  <div class="form-group">
                    <label>Contact Number<span>*</span></label>
                    <input type="text" name="contact" placeholder="" required="required">
                  </div>
                </div>

                <div class="col-lg-6 col-md-6 col-12">
                  <div class="form-group">
                    <label>Address<span>*</span></label>
                    <input type="text" name="address" placeholder="" required="required">
                  </div>
                </div>

                <div class="col-lg-6 col-md-6 col-12">
                  <div class="form-group">
                    <label>City<span>*</span></label>
                    <input type="text" name="city" placeholder="" required="required">
                  </div>
                </div>

                <div class="col-12">
                  <div class="form-group create-account">
                     <label>Any Notes ?</label>
                    <textarea class="form-control" name="notes"></textarea>
                  </div>
                </div>
              </div>

            <!--/ End Form -->
          </div>
        </div>
        <div class="col-lg-4 col-12">
          <div class="order-details">
            <!-- Order Widget -->
            <div class="single-widget">
              <h2>CART  TOTALS</h2>
              <div class="content">
                <?php $total = 0; $check= 0; ?>
                <?php if(session('cart')): ?>
                <?php $__currentLoopData = session('cart'); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $id => $details): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <?php $total += ($details['price'] * $details['quantity']); $check++;?>

                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    <?php endif; ?>
                <ul>
                  <?php $asd = $total + 0; ?>
                  <input type="hidden" name="amount" value="<?php echo e($asd); ?>"/>
                  <li class="last">Cart Total<span><?php echo e($total); ?></span></li>

                  <li class="last">Total<span><?php echo e($asd); ?></span></li>
                </ul>
              </div>
            </div>
            <!--/ End Order Widget -->
            <!-- Order Widget -->
            <div class="single-widget">
              <h2>Payments</h2>
              <div class="content">

                  <label class="checkbox-inline" for="1">
                    <input   name="payment" value="cash on delivery" type="radio" checked> Cash on delivery</label>

                  
                      <?php echo e(csrf_field()); ?>


              </div>
            </div>
            <!--/ End Order Widget -->
            <!-- Payment Method Widget -->
            <div class="single-widget payement">
              <div class="content">
                <!-- <img src="images/payment-method.png" alt="#"> -->
              </div>
            </div>
            <!--/ End Payment Method Widget -->
            <!-- Button Widget -->
            <div class="single-widget get-button">
              <div class="content">
                <div class="button">
                <?php if($check !=0): ?>  <input type="submit" value="Place Order" style="background:#3a641a" class="btn" />
                <?php else: ?>  <a href="<?php echo e(route('main')); ?>" class="btn">Continue Shopping</a> <?php endif; ?>
                </div>
              </div>
            </div>
          </form>
            <!--/ End Button Widget -->
          </div>
        </div>
      </div>
    </div>
  </section>
  <!--/ End Checkout -->

  <!-- Start Shop Services Area  -->
  <section class="shop-services section home">
    <div class="container">
      <div class="row">
        <div class="col-lg-3 col-md-6 col-12">
          <!-- Start Single Service -->
          <div class="single-service">
            <i class="ti-rocket"></i>
            <h4>Shiping</h4>
            <p>we ship all over the country</p>
          </div>
          <!-- End Single Service -->
        </div>
        <div class="col-lg-3 col-md-6 col-12">
          <!-- Start Single Service -->
          <div class="single-service">
            <i class="ti-reload"></i>
            <h4>No Returns</h4>
            <p>30% deduction on order cancelation</p>
          </div>
          <!-- End Single Service -->
        </div>
        <div class="col-lg-3 col-md-6 col-12">
          <!-- Start Single Service -->
          <div class="single-service">
            <i class="ti-lock"></i>
            <h4>No Exchange policy</h4>
            <p>30% deduction on order cancelation</p>
          </div>
          <!-- End Single Service -->
        </div>
        <div class="col-lg-3 col-md-6 col-12">
          <!-- Start Single Service -->
          <div class="single-service">
            <i class="ti-tag"></i>
            <h4>Best Peice</h4>
            <p>Guaranteed price</p>
          </div>
          <!-- End Single Service -->
        </div>
      </div>
    </div>
  </section>
  <!-- End Shop Services -->


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

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

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

<?php echo $__env->make('layouts.main', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\freelance\hemp\resources\views/web/checkout.blade.php ENDPATH**/ ?>