관리-도구
편집 파일: 9bc3753c260e09b70332a7f1a847af7722fb1847.php
<div class="container"> <div class="row"> <div class="col-12"> <form id="shopping-cart-form" action="<?php echo e(url('/update_cart')); ?>" method="post"> <?php echo e(csrf_field()); ?> <!-- Shopping Summery --> <table class="table shopping-summery"> <thead> <tr class="main-hading"> <th><?php echo e(_lang('PRODUCT')); ?></th> <th><?php echo e(_lang('NAME')); ?></th> <th class="text-center"><?php echo e(_lang('UNIT PRICE')); ?></th> <th class="text-center"><?php echo e(_lang('QUANTITY')); ?></th> <th class="text-center"><?php echo e(_lang('TOTAL')); ?></th> <th class="text-center"><i class="ti-trash remove-icon"></i></th> </tr> </thead> <tbody> <?php if(\Cart::isEmpty()): ?> <tr> <td colspan="6" class="text-center"><?php echo e(_lang('No Product added to cart !')); ?></td> </tr> <?php endif; ?> <?php $__currentLoopData = \Cart::getContent(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cart): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td class="image" data-title="No"> <img src="<?php echo e(asset('storage/app/'. $cart->associatedModel->image->file_path)); ?>" alt="#"> </td> <td class="product-des" data-title="Description"> <input type="hidden" name="cart_id[<?php echo e($loop->index); ?>]" value="<?php echo e($cart->id); ?>"> <p class="product-name"> <a href="<?php echo e(url('product/'.$cart->associatedModel->slug)); ?>"><?php echo e($cart->associatedModel->translation->name); ?></a> </p> <p class="product-des"> <?php $__currentLoopData = $cart->attributes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $val): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <b><?php echo e($key); ?></b> : <?php echo e($val); ?> <?php echo e($loop->last ? '' : '|'); ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </p> </td> <td class="price" data-title="Price"> <span><?php echo xss_clean(show_price($cart->price)); ?></span> </td> <td class="qty" data-title="Qty"><!-- Input Order --> <div class="input-group"> <div class="button minus"> <button type="button" class="btn btn-primary btn-number" data-type="minus" data-field="quantity[<?php echo e($loop->index); ?>]"> <i class="ti-minus"></i> </button> </div> <input type="text" name="quantity[<?php echo e($loop->index); ?>]" class="input-number" data-min="1" data-max="100" value="<?php echo e($cart->quantity); ?>"> <div class="button plus"> <button type="button" class="btn btn-primary btn-number" data-type="plus" data-field="quantity[<?php echo e($loop->index); ?>]"> <i class="ti-plus"></i> </button> </div> </div> <!--/ End Input Order --> </td> <td class="total-amount" data-title="Total"> <?php if(! empty($cart->conditions)): ?> <small><s><?php echo xss_clean(show_price($cart->getPriceSum())); ?></s></small> <span><?php echo xss_clean(show_price($cart->getPriceSumWithConditions())); ?></span><br> <?php else: ?> <span><?php echo xss_clean(show_price($cart->getPriceSum())); ?></span> <?php endif; ?> </td> <td class="action" data-title="<?php echo e(_lang('Remove')); ?>"> <a href="<?php echo e(url('/remove_cart_item/'.$cart->id)); ?>" class="remove-cart-item"><i class="ti-trash remove-icon"></i></a> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </form> <!--/ End Shopping Summery --> </div> </div> <div class="row"> <div class="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; ?> <!-- Total Amount --> <div class="total-amount"> <div class="row"> <div class="col-lg-8 col-md-5 col-12"> <div class="left"> <?php if(! Cart::isEmpty()): ?> <div class="coupon"> <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 Your Coupon')); ?>" required> <button class="btn"><?php echo e(_lang('Apply')); ?></button> <?php if(! \Cart::isEmpty()): ?> <button type="button" class="btn update-cart-btn" id="update-cart"><?php echo e(_lang('Update Cart')); ?></button> <?php endif; ?> </form> </div> <div class="shipping_methods mt-4"> <h4><?php echo e(_lang('Shipping Methods')); ?></h4> <?php if(get_option('free_shipping_active') == 'Yes' && \Cart::getSubTotal() >= get_option('free_shipping_minimum_amount',0)): ?> <div class="custom-control custom-radio"> <input type="radio" id="free_shipping" value="free_shipping" name="customRadio" 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')); ?> (<?php echo xss_clean(_lang('Minimum Spend')).' '.xss_clean(show_price(get_option('free_shipping_minimum_amount',0))); ?>)</label> </div> <?php endif; ?> <?php if(get_option('flat_rate_active') == 'Yes'): ?> <div class="custom-control custom-radio"> <input type="radio" id="flat_rate" value="flat_rate" name="customRadio" 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> <?php endif; ?> <?php if(get_option('local_pickup_active') == 'Yes'): ?> <div class="custom-control custom-radio"> <input type="radio" id="local_pickup" value="local_pickup" name="customRadio" 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> <?php endif; ?> </div> <?php endif; ?> </div> </div> <div class="col-lg-4 col-md-7 col-12"> <div class="right"> <ul> <li><?php echo e(_lang('Cart Subtotal')); ?><span><?php echo xss_clean(show_price(\Cart::getSubTotal())); ?></span></li> <!--<li><?php echo e(_lang('Shipping')); ?><span>Free</span></li>--> <?php $__currentLoopData = Cart::getConditions(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $condition): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <li> <?php echo e($condition->getName()); ?> <span> <?php if($condition->getType() == 'shipping'): ?> + <?php echo xss_clean(show_price(str_replace(array("+","-"),"",$condition->getValue()))); ?> <?php elseif($condition->getType() == 'coupon'): ?> - <?php echo xss_clean(show_price(str_replace(array("+","-"),"",$condition->getValue()))); ?> <?php elseif($condition->getType() == 'tax'): ?> + <?php echo xss_clean(show_price(str_replace(array("+","-"),"",$condition->getValue()))); ?> <?php endif; ?> </span> <?php if($condition->getType() == 'coupon'): ?> <a href="<?php echo e(url('/remove_coupon/'.$condition->getName())); ?>"> <small class="text-danger"><?php echo e(_lang('Remove')); ?></small> </a> <?php endif; ?> </li> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <li class="last"><?php echo e(_lang('Total')); ?><span><?php echo xss_clean(show_price(\Cart::getTotal())); ?></span></li> </ul> <div class="button5"> <?php if(! Cart::isEmpty()): ?> <a href="<?php echo e(url('/checkout')); ?>" class="btn"><?php echo e(_lang('Checkout')); ?></a> <?php endif; ?> <a href="<?php echo e(url('/shop')); ?>" class="btn"><?php echo e(_lang('Continue shopping')); ?></a> </div> </div> </div> </div> </div> <!--/ End Total Amount --> </div> </div> </div> <?php /**PATH /home/customamgdigital/saintsaccessories.custom.amgdigitalagency.com/resources/views/theme/saintsaccessories/components/cart-body.blade.php ENDPATH**/ ?>