2024-05-29 11:30:39 +04:00
|
|
|
@using UniversityContracts.ViewModels
|
|
|
|
@model List<ReportTeacherViewModel>
|
|
|
|
@{
|
|
|
|
ViewData["Title"] = "Report by teachers and students";
|
2024-04-28 16:30:27 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
<div class="text-center">
|
|
|
|
<h2 class="display-4">@ViewData["Title"]</h2>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<form method="post">
|
|
|
|
<div class="row">
|
2024-05-29 11:30:39 +04:00
|
|
|
<div class="col-8 btn-group"></div>
|
|
|
|
<div class="col-4 mt-2">
|
|
|
|
<form method="post">
|
|
|
|
<input type="hidden" name="type" value="docx" />
|
|
|
|
<input type="submit" value="Save in Word" class="btn btn-primary" />
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<form method="post">
|
|
|
|
<input type="hidden" name="type" value="xlsx" />
|
|
|
|
<input type="submit" value="Save in Excel" class="btn btn-success" />
|
|
|
|
</form>
|
2024-04-28 16:30:27 +04:00
|
|
|
</div>
|
2024-05-29 11:30:39 +04:00
|
|
|
<div class="col-4 mt-2">
|
2024-04-28 16:30:27 +04:00
|
|
|
</div>
|
|
|
|
</div>
|
2024-05-29 11:30:39 +04:00
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Id</th>
|
|
|
|
<th>Teacher name</th>
|
|
|
|
<th>Student</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@foreach (var item in Model)
|
|
|
|
{
|
|
|
|
<tr>
|
|
|
|
<td>
|
2024-05-29 12:06:41 +04:00
|
|
|
@item.TeacherId
|
2024-05-29 11:30:39 +04:00
|
|
|
</td>
|
|
|
|
<td>
|
2024-05-29 12:06:41 +04:00
|
|
|
@item.TeacherName
|
2024-05-29 11:30:39 +04:00
|
|
|
</td>
|
|
|
|
<td>
|
2024-05-29 12:06:41 +04:00
|
|
|
@foreach (var (Name, PhoneNumber) in item.Students)
|
2024-05-29 11:30:39 +04:00
|
|
|
{
|
2024-05-29 12:06:41 +04:00
|
|
|
<div>@Name</div>
|
|
|
|
<div>@PhoneNumber</div>
|
2024-05-29 11:30:39 +04:00
|
|
|
}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</form>
|