관리-도구
편집 파일: 6984134218a7876b49a57c8cc785232e77a7d51c.php
<?php $__env->startSection('content'); ?> <!-- 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="<?php echo e(url('')); ?>"><?php echo e(_lang('Home')); ?><i class="ti-arrow-right"></i></a></li> <li class="active"><a href=""><?php echo e(_lang('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"> <?php if(\Session::has('success')): ?> <div class="alert alert-success mt-4"> <a href="#" class="close" data-dismiss="alert" aria-label="close">×</a> <span><?php echo xss_clean(session('success')); ?></span> </div> <?php endif; ?> <?php if(\Session::has('error')): ?> <div class="alert alert-danger mt-4"> <a href="#" class="close" data-dismiss="alert" aria-label="close">×</a> <span><?php echo xss_clean(session('error')); ?></span> </div> <?php endif; ?> <div class="checkout-form"> <div class="alert-box"></div> <h2><?php echo e(_lang('Make Your Checkout Here')); ?></h2> <?php if(! Auth::check()): ?> <p><?php echo e(_lang('You have an account already?')); ?> <a href="<?php echo e(url('/sign_in')); ?>" class="btn-link"><b><?php echo e(_lang('Login to your account')); ?></b></a></p> <!-- Form --> <form id="checkout-form" method="post" action="<?php echo e(url('/make_order')); ?>"> <?php echo csrf_field(); ?> <div class="row"> <div class="col-12"> <div class="form-group"> <label><?php echo e(_lang('Name')); ?><span>*</span></label> <input type="text" name="name" placeholder="<?php echo e(_lang('Name')); ?>" required"> <?php if($errors->has('name')): ?> <div class="invalid-feedback"> <?php echo e($errors->first('name')); ?> </div> <?php endif; ?> </div> </div> <div class="col-lg-6 col-md-6 col-12"> <div class="form-group"> <label><?php echo e(_lang('Email Address')); ?><span>*</span></label> <input type="email" name="email" placeholder="<?php echo e(_lang('Email Address')); ?>" required> <?php if($errors->has('email')): ?> <div class="invalid-feedback"> <?php echo e($errors->first('email')); ?> </div> <?php endif; ?> </div> </div> <div class="col-lg-6 col-md-6 col-12"> <div class="form-group"> <label><?php echo e(_lang('Phone Number')); ?><span>*</span></label> <input type="number" name="phone" placeholder="<?php echo e(_lang('Phone Number')); ?>" required> </div> </div> <div class="col-lg-6 col-md-6 col-12"> <div class="form-group"> <label><?php echo e(_lang('Country')); ?><span>*</span></label> <select name="country" class="customer-country" id="country" required> <?php $supported_countries = get_option('supported_countries'); ?> <option value=""><?php echo e(_lang('Select Country')); ?></option> <?php if(!empty($supported_countries)): ?> <?php $__currentLoopData = get_all_country(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $country): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if(in_array($country->name, $supported_countries)): ?> <option value="<?php echo e($country->sortname); ?>" data-id="<?php echo e($country->id); ?>" <?php echo e(old('country') == $country->sortname ? 'selected' : ''); ?>> <?php echo e($country->name); ?> </option> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> </select> <?php if($errors->has('country')): ?> <div class="invalid-feedback"> <?php echo e($errors->first('country')); ?> </div> <?php endif; ?> </div> </div> <div class="col-lg-6 col-md-6 col-12"> <div class="form-group"> <label><?php echo e(_lang('State / Divition')); ?><span>*</span></label> <select name="state" class="select-state-no-auth" id="state" required> <option value=""><?php echo e(_lang('Select State')); ?></option> </select> <?php if($errors->has('state')): ?> <div class="invalid-feedback"> <?php echo e($errors->first('state')); ?> </div> <?php endif; ?> </div> </div> <div class="col-lg-6 col-md-6 col-12"> <div class="form-group"> <label><?php echo e(_lang('City')); ?><span>*</span></label> <input type="text" name="city" placeholder="<?php echo e(_lang('City')); ?>" required="required"> <?php if($errors->has('city')): ?> <div class="invalid-feedback"> <?php echo e($errors->first('city')); ?> </div> <?php endif; ?> </div> </div> <div class="col-lg-6 col-md-6 col-12"> <div class="form-group"> <label><?php echo e(_lang('Postal Code')); ?><span>*</span></label> <input type="text" name="post_code" placeholder="<?php echo e(_lang('Postal Code')); ?>" required="required"> <?php if($errors->has('post_code')): ?> <div class="invalid-feedback"> <?php echo e($errors->first('post_code')); ?> </div> <?php endif; ?> </div> </div> <div class="col-12"> <div class="form-group"> <label><?php echo e(_lang('Address')); ?><span>*</span></label> <input type="text" name="address" placeholder="<?php echo e(_lang('Address')); ?>" required> <?php if($errors->has('address')): ?> <div class="invalid-feedback"> <?php echo e($errors->first('address')); ?> </div> <?php endif; ?> </div> </div> <div class="col-12 mb-3"> <div class="form-group create-account"> <label><input id="create_account" name="create_account" value="1" type="checkbox"> <?php echo e(_lang('Create an account?')); ?></label> </div> </div> <div class="col-md-6 create_account <?php echo e(old('create_account') == 1 ? '' : 'd-none'); ?>"> <div class="form-group"> <label><?php echo e(_lang('Password')); ?><span>*</span></label> <input type="password" name="password" placeholder="<?php echo e(_lang('Password')); ?>" required="required"> <?php if($errors->has('password')): ?> <div class="invalid-feedback"> <?php echo e($errors->first('password')); ?> </div> <?php endif; ?> </div> </div> <div class="col-md-6 create_account d-none"> <div class="form-group"> <label><?php echo e(_lang('Password Confirmation')); ?><span>*</span></label> <input type="password" name="password_confirmation" placeholder="<?php echo e(_lang('Password Confirmation')); ?>" required="required"> <?php if($errors->has('password_confirmation')): ?> <div class="invalid-feedback"> <?php echo e($errors->first('password_confirmation')); ?> </div> <?php endif; ?> </div> </div> </div> </form> <!--/ End Form --> <?php else: ?> <p><?php echo e(_lang('You are now logged in')); ?></p> <?php $address_list = \App\CustomerAddress::where('customer_id',Auth::id())->get(); ?> <form id="checkout-form" method="post" action="<?php echo e(url('/make_order')); ?>"> <?php echo csrf_field(); ?> <div class="row"> <div class="col-md-6 col-12"> <div class="form-group"> <label><?php echo e(_lang('Shipping Address')); ?><span>*</span></label> <select name="shipping_address" id="select-shipping-address" required> <?php $__currentLoopData = $address_list; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $shipping_address): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($shipping_address->id); ?>" data-state="<?php echo e($shipping_address->state); ?>" <?php echo e($shipping_address->is_default == 1 ? 'selected' : ''); ?>><?php echo e($shipping_address->address); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> </div> <div class="col-md-6 col-12"> <div class="form-group"> <label><?php echo e(_lang('Billing Address')); ?><span>*</span></label> <select name="billing_address" id="select-billing-address" required> <?php $__currentLoopData = $address_list; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $billing_address): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($billing_address->id); ?>" data-state="<?php echo e($billing_address->state); ?>" <?php echo e($billing_address->is_default == 1 ? 'selected' : ''); ?>><?php echo e($billing_address->address); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> </div> <div class="col-md-12"> <div class="form-group"> <div class="form-group"> <label><?php echo e(_lang('Order Note')); ?></label> <textarea name="note" placeholder="<?php echo e(_lang('Order Note')); ?>"></textarea> </div> </div> </div> </div> </form> <a href="" id="add_new_address"><i class="fa fa-plus"></i> <?php echo e(_lang('Add New Address')); ?></a> <div class="account_details d-none mt-3"> <h5><?php echo e(_lang('Add New Address')); ?></h5> <form action="<?php echo e(url('/add_new_address')); ?>" id="create_address_form" method="post"> <?php echo csrf_field(); ?> <div class="row"> <div class="col-md-12"> <input type="text" name="name" value="<?php echo e(old('name')); ?>" class="form-control" placeholder="<?php echo e(_lang('Name')); ?>" required> </div> <div class="col-md-6"> <?php $supported_countries = get_option('supported_countries'); ?> <select class="form-control customer-country" data-selected="<?php echo e(old('country')); ?>" name="country" required> <option value=""><?php echo e(_lang('Select Country')); ?></option> <?php if(!empty($supported_countries)): ?> <?php $__currentLoopData = get_all_country(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $country): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if(in_array($country->name, $supported_countries)): ?> <option value="<?php echo e($country->sortname); ?>" data-id="<?php echo e($country->id); ?>" <?php echo e(old('country') == $country->sortname ? 'selected' : ''); ?>> <?php echo e($country->name); ?> </option> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> </select> </div> <div class="col-md-6"> <select class="form-control" id="state" name="state" required> <option value=""><?php echo e(_lang('Select State')); ?></option> </select> </div> <div class="col-md-6"> <input type="text" name="city" value="<?php echo e(old('city')); ?>" class="form-control" placeholder="<?php echo e(_lang('City')); ?>" required> </div> <div class="col-md-6"> <input type="text" name="post_code" value="<?php echo e(old('post_code')); ?>" class="form-control" placeholder="<?php echo e(_lang('Post Code')); ?>" required> </div> <div class="col-md-12"> <textarea class="form-control" name="address" placeholder="<?php echo e(_lang('Address')); ?>" required><?php echo e(old('address')); ?></textarea> </div> <input type="hidden" name="is_default" value="0"> <div class="col-md-12"> <button type="submit" class="btn-login"><?php echo e(_lang('Save Address')); ?></button> </div> </div> </form> </div> <?php endif; ?> </div> </div> <div class="col-lg-4 col-12"> <div class="order-details"> <!-- Order Widget --> <div class="single-widget"> <h2><?php echo e(_lang('CART TOTALS')); ?></h2> <div class="content" id="cart-contents"> <?php echo $__env->make('theme.default.components.checkout-cart', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> </div> </div> <!--/ End Order Widget --> <div class="single-widget"> <h2><?php echo e(_lang('Apply Coupon')); ?></h2> <div class="content"> <ul> <li> <form id="apply_coupon" action="<?php echo e(url('/apply_coupon')); ?>" method="POST"> <?php echo csrf_field(); ?> <input type="text" name="coupon" placeholder="<?php echo e(_lang('Enter Coupon Code')); ?>" required> <button class="btn"><?php echo e(_lang('Apply Coupon')); ?></button> </form> </li> </ul> </div> </div> <div class="single-widget"> <h2><?php echo e(_lang('Shipping Methods')); ?></h2> <div class="content"> <?php if(! Cart::isEmpty()): ?> <ul> <?php if(get_option('free_shipping_active') == 'Yes' && \Cart::getSubTotal() >= get_option('free_shipping_minimum_amount',0)): ?> <li> <div class="custom-control custom-radio"> <input type="radio" id="free_shipping" value="free_shipping" name="shipping_method" class="custom-control-input select-shipping-method" <?php echo e(empty(Cart::getCondition(get_option('free_shipping_label'))) ? '' : 'checked'); ?>> <label class="custom-control-label" for="free_shipping"><?php echo e(get_option('free_shipping_label')); ?></label> </div> </li> <?php endif; ?> <?php if(get_option('flat_rate_active') == 'Yes'): ?> <li> <div class="custom-control custom-radio"> <input type="radio" id="flat_rate" value="flat_rate" name="shipping_method" class="custom-control-input select-shipping-method" <?php echo e(empty(Cart::getCondition(get_option('flat_rate_label'))) ? '' : 'checked'); ?>> <label class="custom-control-label" for="flat_rate"><?php echo e(get_option('flat_rate_label')); ?> + <b><?php echo xss_clean(show_price(get_option('flat_rate_cost'))); ?></b></label> </div> </li> <?php endif; ?> <?php if(get_option('local_pickup_active') == 'Yes'): ?> <li> <div class="custom-control custom-radio"> <input type="radio" id="local_pickup" value="local_pickup" name="shipping_method" class="custom-control-input select-shipping-method" <?php echo e(empty(Cart::getCondition(get_option('local_pickup_label'))) ? '' : 'checked'); ?>> <label class="custom-control-label" for="local_pickup"><?php echo e(get_option('local_pickup_label')); ?> + <b><?php echo xss_clean(show_price(get_option('local_pickup_cost'))); ?></b></label> </div> </li> <?php endif; ?> </ul> <?php endif; ?> </div> </div> <!-- Button Widget --> <div class="single-widget get-button"> <div class="content"> <div class="button"> <a href="" id="proceed_to_checkout" class="btn"><?php echo e(_lang('Proceed to Payment')); ?></a> </div> </div> </div> <!--/ End Button Widget --> </div> </div> </div> </div> </section> <!--/ End Checkout --> <?php $__env->stopSection(); ?> <?php $__env->startSection('js-script'); ?> <script src="<?php echo e(asset('public/theme/default/js/cart.js?v=1.1')); ?>"></script> <script src="<?php echo e(asset('public/theme/default/js/checkout.js?v=1.1')); ?>"></script> <?php $__env->stopSection(); ?> <?php echo $__env->make('theme.saintsaccessories.websiteEcom', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/customamgdigital/saintsaccessories.custom.amgdigitalagency.com/resources/views/theme/saintsaccessories/checkout.blade.php ENDPATH**/ ?>