2023-05-18 17:56:47 +04:00
|
|
|
@using BankYouBankruptContracts.ViewModels.Client.Default
|
2023-05-16 20:05:59 +04:00
|
|
|
|
2023-05-17 01:00:04 +04:00
|
|
|
@model List<CardViewModel>
|
2023-05-16 20:05:59 +04:00
|
|
|
|
|
|
|
@{
|
2023-05-17 22:27:54 +04:00
|
|
|
ViewData["Title"] = "Список карт";
|
2023-03-31 20:13:22 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
<div class="text-center">
|
2023-05-17 01:00:04 +04:00
|
|
|
<h1 class="display-4">Карты</h1>
|
2023-03-31 20:13:22 +04:00
|
|
|
</div>
|
2023-05-16 20:05:59 +04:00
|
|
|
|
|
|
|
<div class="text-center">
|
|
|
|
@{
|
|
|
|
if (Model == null)
|
|
|
|
{
|
|
|
|
<h3 class="display-4">Сначала авторизируйтесь</h3>
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
<p>
|
2023-05-17 01:00:04 +04:00
|
|
|
<a asp-action="CreateCard">Создать карту</a>
|
2023-05-16 20:05:59 +04:00
|
|
|
</p>
|
2023-05-17 01:00:04 +04:00
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>
|
|
|
|
Номер счёта
|
|
|
|
</th>
|
2023-05-20 00:25:24 +04:00
|
|
|
<th>
|
|
|
|
Баланс
|
|
|
|
</th>
|
2023-05-17 01:00:04 +04:00
|
|
|
<th>
|
|
|
|
CVC
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Срок действия
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@foreach (var item in Model)
|
|
|
|
{
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
@Html.DisplayFor(modelItem => item.Number)
|
|
|
|
</td>
|
2023-05-20 00:25:24 +04:00
|
|
|
<td>
|
|
|
|
@Html.DisplayFor(modelItem => item.Sum)
|
|
|
|
</td>
|
2023-05-17 01:00:04 +04:00
|
|
|
<td>
|
|
|
|
@Html.DisplayFor(modelItem => item.CVC)
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
@Html.DisplayFor(modelItem => item.Period)
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2023-05-16 20:05:59 +04:00
|
|
|
}
|
|
|
|
</div>
|