<div class="col-md-5 ml-auto">
    <div class="cart-page-total pt-0">
        <?php if($cartTotal != 0): ?>
        <h2><?php echo e(__("Cart totals")); ?></h2>
        <ul>
            <li><?php echo e(__("Subtotal")); ?><span><?php echo e(format_amount($cartSubTotal,true)); ?></span></li>
            <?php if(session()->has('coupon')): ?>
                <li>
                    <?php echo e(__("Discount")); ?>

                    <small>(<?php echo e(getNumbersOfCart()->get('discountCode')); ?>)</small>
                    <span><?php echo e(format_amount($cartDiscount,true)); ?></span>
                </li>
            <?php endif; ?>
            <?php if(session()->has('shipping')): ?>
                <li>
                    <?php echo e(__("Shipping")); ?>

                    <small>(<?php echo e(getNumbersOfCart()->get('shippingCode')); ?>)</small>
                    <span><?php echo e(format_amount($cartShipping,true)); ?></span>
                </li>
            <?php endif; ?>
            <li>(<?php echo e(__("Tax :percent %",['percent' => config('cart.tax')])); ?>)<span><?php echo e(format_amount($cartTax,true)); ?></span></li>
            <li><?php echo e(__("Total")); ?><span><?php echo e(format_amount($cartTotal,true)); ?></span></li>
        </ul>
        <div class="coupon-all">
            <div class="coupon">
                <?php if(!session()->has('coupon')): ?>
                    <form wire:submit.prevent="applyDiscount()">
                        <p class="checkout-coupon">
                            <input wire:model="couponCode" type="text" placeholder="<?php echo e(__("Coupon code")); ?>" required/>
                            <button type="submit" class="btn btn-default">
                                <?php echo e(__("Apply Coupon")); ?>

                            </button>
                        </p>
                    </form>
                <?php endif; ?>
                <?php if(session()->has('coupon')): ?>
                    <button type="button" class="btn btn-default"  wire:click.prevent="removeCoupon()" >
                        <?php echo e(__("Remove coupon")); ?>

                    </button>
                <?php endif; ?>
            </div>
        </div>
        <?php endif; ?>
    </div>
</div>
<?php /**PATH /home2/lekruu/public_html/resources/views/livewire/frontend/cart/cart-total-component.blade.php ENDPATH**/ ?>