Delete Cart Items

This commit is contained in:
UronShrestha
2024-07-05 13:14:27 +05:45
parent 71944f3245
commit 4a512fa736
3 changed files with 24 additions and 9 deletions

View File

@ -25,6 +25,13 @@
<div class="row">
<div class="col-lg-8">
<div class="shopping__cart__table">
@if (session()->has('success'))
<div class="alert alert-success">
{{ session()->get('success') }}
</div>
@endif
<table>
<thead>
<tr>
@ -77,8 +84,8 @@
</td>
<td class="quantity__item">
<div class="product__cart__item__text">
<h6>{{ $item->name }}</h6>
<h5><b>Nrs {{ $item->price }}</b></h5>
<h6>{{ $item->name }} (<b>Nrs {{ $item->price }}</b>)</h6>
<h5></h5>
</div>
<div class="quantity">
<input type="number" class="form-control" name="quantity" min="1"
@ -86,7 +93,9 @@
</div>
</td>
<td class="cart__price"><br> Nrs. {{ $item->price * $item->quantity }}</td>
<td class="cart__close"><i class="fa fa-close"></i></td>
<td class="cart__close"> <a href="{{ url::to('deleteCartItem/' . $item->id) }}">
<i class="fa fa-trash"></i></a>
</td>
</tr>
@endforeach
</tbody>