Index 2
Index 2
PanierVM>
</tr>
</thead>
<tbody>
@{
int Total = 0;
}
@foreach (var item in Model)
{
Total = Convert.ToInt32(Total + item.SommePro);
<tr>
<td class="cart-pic first-row"><img
src="~/Content/img/cart-page/product-1.jpg" alt=""></td>
<td class="cart-title first-row">
@Html.DisplayFor(modelItem =>
item.LibelleProduit)
</td>
<td class="p-price first-row">
@Html.DisplayFor(modelItem => item.PrixProduit) DT</td>
<td class="qua-col first-row">
@using (Html.BeginForm())
{
@Html.AntiForgeryToken()
<div class="quantity">
<div class="pro-qty">
<input type="text"
value="@Html.DisplayFor(modelItem => item.Quantite)">
</div>
</div>
}
</td>
<td class="total-price first-
row">@Html.DisplayFor(modelItem => item.SommePro) DT</td>
<td class="close-td first-row">
<a href="@Url.Action("Delete",
"Panier", new { id = item.PanierId })," class="btn btn-danger btn-sm">
<i class="fa fa-trash-o"></i><span
class="glyphicon glyphicon-plus-sign" aria-hidden="true"></span>
</a>
</td>
</tr>
}
</tbody>
</table>
</div>
<div class="row">
<div class="col-lg-4">
<div class="cart-buttons">
<a href="#" class="primary-btn continue-
shop">Continue shopping</a>
<a href="#" class="primary-btn up-cart">Update
cart</a>
</div>
<div class="discount-coupon">
<h6>Discount Codes</h6>
<form action="#" class="coupon-form">
<input type="text" placeholder="Enter your
codes">
<button type="submit" class="site-btn coupon-
btn">Apply</button>
</form>
</div>
</div>
<div class="col-lg-4 offset-lg-4">
<div class="proceed-checkout">
<ul>
<li class="subtotal">Subtotal <span>@Total
DT</span></li>
<li class="cart-total">Total <span>@Total
DT</span></li>
</ul>
<a href="#" class="proceed-btn">PROCEED TO CHECK
OUT</a>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Shopping Cart Section End -->
<!-- Partner Logo Section Begin -->
<!-- Partner Logo Section End -->
<script>
var blog = document.getElementById("blog");
var contact = document.getElementById("contact");
var others = document.getElementById("others");
var home = document.getElementById("home");
var shop = document.getElementById("shop");
blog.className = blog.className.replace("active", "");
shop.className = shop.className.replace("active", "");
contact.className = contact.className.replace("active", "");
home.className = home.className.replace("active", "");
others.className += "active";
</script>