2024-04-18 16:34:54 +04:00
|
|
|
@using TravelCompanyContracts.ViewModels
|
2024-04-18 21:08:02 +04:00
|
|
|
|
2024-04-18 16:34:54 +04:00
|
|
|
@model List<OrderViewModel>
|
2024-04-18 21:08:02 +04:00
|
|
|
|
2024-04-18 16:34:54 +04:00
|
|
|
@{
|
|
|
|
ViewData["Title"] = "Home Page";
|
|
|
|
}
|
2024-04-18 21:08:02 +04:00
|
|
|
|
2024-04-18 16:34:54 +04:00
|
|
|
<div class="text-center">
|
|
|
|
<h1 class="display-4">Заказы</h1>
|
|
|
|
</div>
|
2024-04-18 21:08:02 +04:00
|
|
|
|
|
|
|
|
2024-04-18 16:34:54 +04:00
|
|
|
<div class="text-center">
|
|
|
|
@{
|
|
|
|
if (Model == null)
|
|
|
|
{
|
|
|
|
<h3 class="display-4">Авторизируйтесь</h3>
|
|
|
|
return;
|
|
|
|
}
|
2024-04-18 21:08:02 +04:00
|
|
|
|
2024-04-18 16:34:54 +04:00
|
|
|
<p>
|
|
|
|
<a asp-action="Create">Создать заказ</a>
|
|
|
|
</p>
|
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>
|
|
|
|
Номер
|
|
|
|
</th>
|
|
|
|
<th>
|
2024-04-18 21:08:02 +04:00
|
|
|
Путёвка
|
2024-04-18 16:34:54 +04:00
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Дата создания
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Количество
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Сумма
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Статус
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@foreach (var item in Model)
|
|
|
|
{
|
|
|
|
<tr>
|
|
|
|
<td>
|
2024-04-18 21:08:02 +04:00
|
|
|
@Html.DisplayFor(modelItem => item.Id)
|
2024-04-18 16:34:54 +04:00
|
|
|
</td>
|
|
|
|
<td>
|
2024-04-18 21:08:02 +04:00
|
|
|
@Html.DisplayFor(modelItem => item.TravelName)
|
2024-04-18 16:34:54 +04:00
|
|
|
</td>
|
|
|
|
<td>
|
2024-04-18 21:08:02 +04:00
|
|
|
@Html.DisplayFor(modelItem => item.DateCreate)
|
2024-04-18 16:34:54 +04:00
|
|
|
</td>
|
|
|
|
<td>
|
2024-04-18 21:08:02 +04:00
|
|
|
@Html.DisplayFor(modelItem => item.Count)
|
2024-04-18 16:34:54 +04:00
|
|
|
</td>
|
|
|
|
<td>
|
2024-04-18 21:08:02 +04:00
|
|
|
@Html.DisplayFor(modelItem => item.Sum)
|
2024-04-18 16:34:54 +04:00
|
|
|
</td>
|
|
|
|
<td>
|
2024-04-18 21:08:02 +04:00
|
|
|
@Html.DisplayFor(modelItem => item.Status)
|
2024-04-18 16:34:54 +04:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
}
|
2024-04-18 21:08:02 +04:00
|
|
|
</div>
|