Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/mcoil.corals.io/storage/framework/views/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/mcoil.corals.io/storage/framework/views/6ec890ad6855f3e69374e243a070bb71.php
<?php $__env->startSection('content'); ?>
<?php echo $__env->make('layouts.front.other-menu', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<div class="main-content-350">
<div class="container product-in-cart-list cart cart-page">
<?php if(!$cartItems->isEmpty()): ?>
    <div class="row">
        <div class="col-md-12">
            <ol class="breadcrumb">
                <li><a href="<?php echo e(route('home')); ?>"> <i class="fa fa-home"></i> Home</a></li>
                <li class="active">Cart</li>
            </ol>
        </div>
    </div>
    <div class="row">
        <div class="col-md-12 content">
            <div class="box-body">
                <?php echo $__env->make('layouts.errors-and-messages', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
            </div>
            <h3>Shopping Cart</h3>
        </div>
    </div>
    <div class="row">
        <section class="col-12 col-md-8 cart-product-card-wrapper">
            <?php $__currentLoopData = $cartItems; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cartItem): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <article class="card product-info">
            <div class="row">
                <div class="col-lg-6 position-static">
                    <div class="row">
                        <div class="col-lg-12 d-flex flex-row position-static">
                            <div class="item-image">
                                <a href="<?php echo e(route('front.get.product', [$cartItem->product->slug])); ?>" class="hover-border product-image"  title="<?php echo e($cartItem->name); ?>">
                                    <?php if(isset($cartItem->cover) && !empty($cartItem->cover)): ?>
                                        <img src="<?php echo e(asset("public/storage/$cartItem->cover")); ?>" alt="<?php echo e($cartItem->name); ?>" class="img-responsive img-thumbnail" />
                                    <?php else: ?>
                                        <img src="<?php echo e(asset('public/images/default.jpg')); ?>" alt="" class="img-responsive img-thumbnail product-image" />
                                    <?php endif; ?>
                                </a>
                            </div>
                            <div class="item-attributes d-flex flex-column">
                                <div class="line-item-header">
                                    <div class="line-item-name">
                                        <a href="<?php echo e(route('front.get.product', [$cartItem->product->slug])); ?>" title="<?php echo e($cartItem->name); ?>"><?php echo e($cartItem->name); ?></a>
                                        <?php if($cartItem->options->has('combination')): ?>
                                            <div style="margin-bottom:5px;">
                                            <?php $__currentLoopData = $cartItem->options->combination; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $option): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <small class="label label-primary"><?php echo e($option['value']); ?></small>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            </div>
                                        <?php endif; ?>
                                    </div>
                                    <div class="hidden-md-down">
                                        <form action="<?php echo e(route('cart.destroy', $cartItem->rowId)); ?>" method="post">
                                            <?php echo e(csrf_field()); ?>

                                            <input type="hidden" name="_method" value="delete" />
                                            <button onclick="return confirm('Are you sure?')" class="remove-btn-lg remove-product btn btn-light"><i class="fa fa-trash icon close "></i></button>
                                        </form>
                                    </div>
                                </div>
                                <div class="item-number">
                                    <span class="item-number-label">SKU #:</span>
                                    <?php echo e($cartItem->product->sku); ?>

                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-lg-6 product-card-footer">
                    <div class="row">
                        <div class="col-3">
                            <p class="line-item-price-info">Price:</p>
                             <div class="price" itemprop="offers" itemscope="" itemtype="http://schema.org/Offer">
                                 <span>
                                     <span class="sales">
                                     	<?php echo e(config('cart.currency_symbol')); ?><?php echo e(number_format($cartItem->price, 2)); ?>

                                     </span>
                                 </span>
                            </div>
                        </div>
                        <div class="col-3">
                            <p class="line-item-price-info">Vat:</p>
                             <div class="price" itemprop="offers" itemscope="" itemtype="http://schema.org/Offer">
                                 <span>
                                     <span class="sales">
                                     	<?php $vat = isset( $productsVat[$cartItem->id] ) ? $productsVat[$cartItem->id]: 0 ?>
                                     	<?php echo e(config('cart.currency_symbol')); ?><?php echo e(number_format($vat, 2)); ?>

                                     </span>
                                 </span>
                            </div>
                        </div>
                        <div class="col-3" style="display: none;">
                            <form action="<?php echo e(route('cart.update', $cartItem->rowId)); ?>" class="form-inline" method="post">
                                <?php echo e(csrf_field()); ?>

                                <input type="hidden" name="_method" value="put" />
                                <div class="input-group" style="display: none;">
                                    <input type="text" name="quantity" value="1" class="form-control input-sm" />
                                    <span class="input-group-btn"><button class="btn btn-default btn-sm">Update</button></span>
                                </div>
                            </form>
                        </div>
                        <div class="col-3 line-item-quantity">
                            <div class="quantity-form">
                                <form action="<?php echo e(route('cart.update', $cartItem->rowId)); ?>" class="form-inline frm_update_product_qty" method="post">
                                    <?php echo e(csrf_field()); ?>

                                    <input type="hidden" name="_method" value="put" />
                                    <label class="line-item-pricing-info quantity-label">Qty</label>
                                    <div class="input-group">
                                        <select class="form-control quantity custom-select quantity" name="quantity">
                                            <?php for($i=1; $i<=10; $i++): ?>
												<option value="<?php echo e($i); ?>" <?php echo e(( $cartItem->qty == $i ) ? 'selected': ''); ?>><?php echo e($i); ?></option>
                                            <?php endfor; ?>
                                        </select>
                                    </div>
                                </form>
                            </div>
                        </div>
                        <div class="col-3 line-item-total-price">
                            <p class="line-item-price-info">Total:</p>
                            <div class="price">
                            	<?php $vat = isset( $productsVat[$cartItem->id] ) ? $productsVat[$cartItem->id]: 0 ?>
								<div class="pricing line-item-total-price-amount">
                                	<?php echo e(config('cart.currency_symbol')); ?><?php echo e(number_format(($cartItem->qty * ( $cartItem->price + $vat )), 2)); ?>

                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            </article>
        	<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        	<br>
        	<div class="row">
            	<div class="col-md-12">
            		<div class="row">
            			<div class="col-md-4 btn-margin-top">
            				<input type="text" id="discount_code" name="discount_code" value="" class="form-control input-lg" placeholder="Enter Discount Code">
            			</div>
            			<div class="col-md-3 btn-margin-top">
            				<?php if(Auth::check()): ?>
            				  	<button class="btn btn-outline-dark btn-lg btn-block font-black" id="btn_apply_discount_coupon" type="button">Apply Code</button>
            				<?php else: ?>
            				  	<button class="btn btn-outline-dark btn-lg btn-block font-black" id="btn_show_login_warning" type="button">Apply Code</button>
            				<?php endif; ?>
            			</div>
            		</div>
            		<div id="applied_discount_coupon_details"></div>
            		<br>
            	</div>
                <div class="col-md-4"></div>
            </div>
        </section>
        <div class="col-12 col-md-4 totals">
            <div class="logincontainer">
                <div class="header-lined">
                    <h2 class="order-summary-title">Order Summary</h2>
                </div>
                <div class="row">
                    <div class="col-md-6">
                        <span>Subtotal</span>
                    </div>
                    <div class="col-md-6 pull-right">
                        <strong><span><?php echo e(config('cart.currency_symbol')); ?><?php echo e(number_format($subtotal, 2, '.', ',')); ?></span></strong>
                    </div>
                </div>
                <?php if(isset($shippingFee) && $shippingFee != 0): ?>
                <div class="row">
                    <div class="col-md-6">
                        <span>Shipping</span>
                    </div>
                    <div class="col-md-6 pull-right">
                        <strong><span><?php echo e(config('cart.currency_symbol')); ?><?php echo e($shippingFee); ?></span></strong>
                    </div>
                </div>
                <?php endif; ?>
                <div class="row">
                    <div class="col-md-6">
                        <span>Vat</span>
                    </div>
                    <div class="col-md-6 pull-right">
                        <strong><span id="holder_tax_amount"><?php echo e(config('cart.currency_symbol')); ?><?php echo e(number_format($tax, 2)); ?></span></strong>
                    </div>
                </div>
                <div class="row">
                    <div class="col-md-6">
                        <span>Discount</span>
                    </div>
                    <div class="col-md-6 pull-right">
                        <strong><span id="holder_discount_amount"><?php echo e(config('cart.currency_symbol')); ?>0.00</span>
                        <span id="holder_discount_remove"></span></strong>
                    </div>
                </div>
                <hr>
                <div class="row">
                    <div class="col-md-6">
                        <h3>TOTAL</h3>
                    </div>
                    <div class="col-md-6 pull-right">
                        <h3 id="holder_total_amount"><?php echo e(config('cart.currency_symbol')); ?><?php echo e(number_format(($total + $tax), 2, '.', ',')); ?></h3>
                    </div>
                </div>
                <div class="row darker-colour">
                    <div class="col-md-6 btn-margin-top">
                        <a href="#" onclick="goBack()" class="btn btn-dark btn-lg btn-block font-black">Back</a>
                    </div>
                    <div class="col-md-6 btn-margin-top">
                        <a href="<?php echo e(route('checkout.index')); ?>" id="redirect_to_checkout" class="btn btn-lg btn-block btn-send">Checkout</a>
                        <input type="hidden" name="applied_coupon_code" id="applied_coupon_code">
                    </div>
                </div>
            </div>
        </div>
    </div>
<?php else: ?>
    <div class="row">
        <div class="col-md-12">
            <h1 class="text-center bold">Cart is empty!</h1>
            <p class="alert alert-warning">No products in cart yet. Please go to the products page and add one to your cart.</p>
        </div>
    </div>
<?php endif; ?>
</div>
<div id="modal_login_warning" class="modal fade" role="dialog">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal">&times;</button>
			</div>
			<div class="modal-body">
			    <div class="logincontainer">
                    <h3 class="text-center">Login Required</h3>
                    <p>You must be logged in to use this discount code, please login with the button below.</p>
                    <div class="row">
                    <div class="col-md-6 btn-margin-top">
    				    <a href="<?php echo e(route('login')); ?>" class="btn btn-dark btn-lg btn-block font-black">Login</a>
    				</div>
    				<div class="col-md-6 btn-margin-top">
    				    <button type="button" class="btn btn-lg btn-block btn-send" data-dismiss="modal">Close</button>
    				</div>
    				</div>
    			</div>
			</div>
		</div>
	</div>
</div>
<?php echo $__env->make('layouts.front.call-to-action-footer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('css'); ?>
<style type="text/css">
.product-description {
    padding: 10px 0;
}
.product-description p {
    line-height: 18px;
    font-size: 14px;
}
</style>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('js'); ?>
<script type="text/javascript">
function goBack() {
 	window.history.back();
}
$(function(){
	$('#btn_show_login_warning').click(function() {
		$('#modal_login_warning').modal({
		    backdrop: 'static',
		    keyboard: false
		});
	});
	$('.quantity').change(function() {
		$(this).closest('.frm_update_product_qty').submit();
	});
	$('#redirect_to_checkout').click(function(e) {
		e.preventDefault();
		var redirectUrl = $(this).attr('href');
		var appliedCouponCode = $('#applied_coupon_code').val().trim();
		if (appliedCouponCode != '') {
			redirectUrl = redirectUrl + '?applied_coupon_code=' + appliedCouponCode;
		}
		window.location.href = redirectUrl;
	});
	$('#btn_apply_discount_coupon').click(function() {
		var coupon_code = $('#discount_code').val().trim();
		var quote_price = parseFloat('<?php echo e($total + $tax); ?>');
		$('#applied_coupon_code').val('');
		$('#applied_discount_coupon_details').html('');
        if (coupon_code != '') {
            $.ajax({
                url:"<?php echo e(route('validate.discount.coupon')); ?>",
                method: "POST",
                data: {
                	'_token': '<?php echo e(csrf_token()); ?>',
                	'quote_price': quote_price,
                	'coupon_code': coupon_code
                },
                success:function(data) {
                	if (data.response == 0) {
                		var response = '<button class="btn btn-danger btn-sm" title="'+ data.message +'" id="remove_discount_coupon"><i class="fa fa-times"></i></button>';
                		$('#holder_discount_remove').html(response);
                		$('#holder_discount_amount').html('€' + data.discountAmount);
                		var priceAfterDiscount = quote_price - data.discountAmount;
                		priceAfterDiscount = ( parseFloat(priceAfterDiscount) ).toFixed(2);
                		$('#holder_total_amount').html('€' + priceAfterDiscount);
                		$('#applied_coupon_code').val(coupon_code);
                	} else {
                		var response = '<div class="alert alert-warning alert-dismissible"><a href="#" id="expired_discount_coupon_clear" class="close" data-dismiss="alert" aria-label="close">&times;</a><strong>Warning! </strong>'+ data.message +'</div>';
                		$('#applied_discount_coupon_details').html(response);
                		$('#holder_discount_remove').html('');
                		$('#holder_discount_amount').html('€' + '0.00')
                		$('#holder_total_amount').html('€' + quote_price.toFixed(2));
                		$('#applied_coupon_code').val('');
                	}
                }
            });
        } else {
        	$('#discount_code').focus();
        }
	});
	$(document).on('click', '#expired_discount_coupon_clear', function() {
		$('#discount_code').val('');
		$('#applied_coupon_code').val('');
	});
	$(document).on('click', '#remove_discount_coupon', function() {
		var quote_price = parseFloat('<?php echo e($total + $tax); ?>');
		$('#discount_code').val('');
		$('#applied_coupon_code').val('');
		$('#holder_discount_remove').html('');
		$('#holder_discount_amount').html('€' + '0.00')
        $('#holder_total_amount').html('€' + quote_price.toFixed(2));
	});
});
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.front.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/corals/mcoil.corals.io/resources/views/front/carts/cart.blade.php ENDPATH**/ ?>

Spamworldpro Mini