CourseWorkElectronicsShop/ElectronicsShop/ElectronicsShopShopClientApp/Views/Home/Index.cshtml

58 lines
1.0 KiB
Plaintext
Raw Normal View History

@using ElectronicsShopContracts.ViewModels
2024-06-01 05:23:37 +04:00
@model List<PaymeantViewModel>
@{
ViewData["Title"] = "Home Page";
}
<div class="text-center">
<h1 class="display-4">Заказы</h1>
</div>
<div class="text-center">
@{
if (Model == null) {
<h3 class="display-4">Авторизируйтесь</h3>
return;
}
<table class="table">
<thead>
2024-05-29 23:03:32 +04:00
<tr>
2024-06-01 05:23:37 +04:00
<th>
Номер
</th>
<th>
Номер заказа
</th>
<th>
2024-06-01 05:23:37 +04:00
Сумма к оплате
</th>
<th>
2024-06-01 05:23:37 +04:00
Статус оплаты
</th>
2024-05-29 23:03:32 +04:00
</tr>
</thead>
<tbody>
@foreach (var item in Model) {
2024-06-01 00:42:46 +04:00
<tr>
<th>
@Html.DisplayFor(modelItem => item.ID)
</th>
<th>
2024-06-01 05:23:37 +04:00
@Html.DisplayFor(modelItem => item.OrderID)
</th>
<th>
@Html.DisplayFor(modelItem => item.SumPayment)
</th>
<th>
2024-06-01 05:23:37 +04:00
@Html.DisplayFor(modelItem => item.PayOption)
</th>
2024-06-01 00:42:46 +04:00
</tr>
}
</tbody>
</table>
}
</div>