Skip to content

Commit

Permalink
Section 11 - Display Order Details
Browse files Browse the repository at this point in the history
  • Loading branch information
bhrugen committed Sep 26, 2021
1 parent 0cf4680 commit 18c8a39
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions BulkyBookWeb/Areas/Admin/Views/Order/Details.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -193,30 +193,32 @@
<h4 class="d-flex justify-content-between align-items-center mb-3">
<span class="text-primary">Order Summary</span>
</h4>
<label class="btn btn-outline-primary form-control my-2">Order Status - OrderStatus</label>
<label class="btn btn-outline-primary form-control my-2">Order Status - @Model.OrderHeader.OrderStatus</label>

<ul class="list-group mb-3">
<li class="list-group-item d-flex justify-content-between p-2">
<div class="row container">
<div class="col-8">
@foreach(var detail in Model.OrderDetail)
{
<li class="list-group-item d-flex justify-content-between p-2">
<div class="row container">
<div class="col-8">

<h6 class="my-0 text-primary">Product.Title</h6>
<small class="text-muted">Price : Price</small><br />
<small class="text-muted">Quantity : Count</small>
<h6 class="my-0 text-primary">@detail.Product.Title</h6>
<small class="text-muted">Price : @detail.Price.ToString("c")</small><br />
<small class="text-muted">Quantity : @detail.Count</small>
</div>
<div class="col-4 text-end">
<p class="text-success">@((detail.Count * detail.Price).ToString("c"))</p>
</div>
</div>
<div class="col-4">
<p class="text-success">count * price</p>
</div>
</div>
</li>

</li>
}
<li class="list-group-item bg-info">
<div class="row container">
<div class="col-6">
<h5 class="text-white">TOTAL </h5>
</div>
<div class="col-6 text-right">
<h5 class="text-white">$$$</h5>
<div class="col-6 text-end">
<h5 class="text-white">@Model.OrderHeader.OrderTotal.ToString("c")</h5>
</div>
</div>
</li>
Expand Down

0 comments on commit 18c8a39

Please sign in to comment.