<?php $__env->startSection('middle'); ?>
<head>
<title><?php $__env->startSection('title', 'Cart-'); ?>Ckgroceries</title>
<meta name="keywords" content=" online shoping, Best e-commerce site, online groceresie products" />
</head>
<div class="page-head_agile_info_w3l">
</div>
<!-- //banner-2 -->
<!-- page -->
<div class="services-breadcrumb">
<div class="agile_inner_breadcrumb">
<div class="container">
<ul class="w3_short">
<li>
<a href="index.html">Home</a>
<i>|</i>
</li>
<li>Your cart</li>
</ul>
</div>
</div>
</div>
<!-- //page -->
<!-- Single Page -->
<div class="banner-bootom-w3-agileits">
<div class="container">
<!-- tittle heading -->
<h3 class="tittle-w3l">Cart
<span class="heading-style">
<i></i>
<i></i>
<i></i>
</span>
</h3>
<!-- //tittle heading -->
<div class="checkout-right">
<style>
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
opacity: 1;
}
</style>
<div class="table-responsive">
<?php if($count>0): ?>
<h4>Your shopping cart contains:
<span><?php echo e($count); ?> Products</span>
</h4>
<table class="timetable_sub">
<thead>
<tr>
<th>SL No.</th>
<th>Product</th>
<th>Product Name</th>
<th>Quality</th>
<th>Price</th>
<th>Total</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php $subtotal=0; ?>
<?php $count=0; ?>
<?php $serial=1; ?>
<?php $__currentLoopData = $cart_products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cart): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php if(count($cart)>0): ?>
<?php $count=$count+1; ?>
<?php $__currentLoopData = $cart; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $subcart): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<form action="<?php echo e(url('update_cart')); ?>" method="get" novalidate="">
<input type="hidden" name="_token" value="<?php echo csrf_token(); ?>">
<tr class="rem1">
<td class="invert"><?php echo e($serial); ?></td>
<?php $serial=$serial+1; ?>
<td class="invert-image">
<a href="single2.html">
<?php
$check = DB::table('product_images')->where('product_id',$subcart['product_id'])->take(1)->get();
?>
<?php if(count($check)>0): ?>
<img style="height: 100px; width: 100px" src="<?php echo e(url('public/uploads/products')); ?>/<?php echo e($check[0]->image_name); ?>" alt=" " class="img-responsive">
<?php endif; ?>
</a>
</td>
<td class="invert">
<?php
$check = DB::table('products')->where('product_id',$subcart['product_id'])->get();
?>
<?php if(count($check)>0): ?>
<?php echo e($check[0]->name); ?> (<?php echo e($subcart['secondquantity']); ?><?php echo e($subcart['unit']); ?>)
<?php endif; ?>
</td>
<td class="invert">
<div class="quantity">
<input type="hidden" name="product_id[]" value="<?php echo e($subcart['product_id']); ?>">
<input type="hidden" name="size[]" value="<?php echo e($subcart['secondquantity']); ?><?php echo e($subcart['unit']); ?>">
<input type="number" class="form-control" style="max-width: 100px; background: white; color: #000000" name="quantity[]" id="updates_large_<?php echo e($count); ?>" value="<?php echo e($subcart['quantity']); ?>" min="1">
</div>
</td>
<td class="invert">£<?php echo e($subcart['amount']); ?></td>
<?php $total=$subcart['amount']*$subcart['quantity'] ?>
<?php $subtotal=$subtotal+$total ?>
<td class="invert">£<?php echo number_format((float)$total, 2, '.', ''); ?></td>
<td class="invert">
<div class="rem">
<a href="<?php echo e(url('removecartproduct')); ?>/<?php echo e($subcart['product_id']); ?>/<?php echo e($subcart['secondquantity']); ?><?php echo e($subcart['unit']); ?>">
<div class="close1">
</div>
</a>
</div>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<tr>
<td colspan="5"></td>
<input type="hidden" name="subtotal" value="<?php echo e($subtotal); ?>">
<td><span style="font-weight: bold; font-size: 20px">£<?php echo number_format((float)$subtotal, 2, '.', ''); ?></span></td>
<td>
<button type="submit" class="btn btn-primary">Update Cart</button><br><br>
<a href="<?php echo e(url('empty_cart')); ?>" class="btn btn-danger">Empty Cart</a>
</td>
</tr>
</tbody>
</table>
<?php else: ?>
<div class="empty-page-content text-center">
<p class="cart--empty-message">Your cart is currently empty.</p>
<div class="cookie-message">
<p>Enable cookies to use the shopping cart</p>
</div>
<a href="<?php echo e(url('/')); ?>" class="btn btn--has-icon-after cart__continue-btn">Continue shopping</a>
</div>
<?php endif; ?>
</div>
</div>
<?php if($count>0): ?>
<div class="checkout-left">
<div class="address_form_agile">
<div class="checkout-right-basket">
<input value="checkout" type="submit" name="update" style=" padding: 12px 25px;
color: #fff;
font-size: 16px;
background: #000;
text-decoration: none;
letter-spacing: 1px;
display: inline-block;">
<!-- <a href="<?php echo e(url('checkout')); ?>">Check Out-->
<!-- <span class="fa fa-hand-o-right" aria-hidden="true"></span>-->
<!-- </a>-->
</div>
</div>
<div class="clearfix"> </div>
</div>
</div>
<?php endif; ?>
</form>
</div>
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('general.head', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]