Files
constructdemo/ConstructorAppUI/Views/CompanyInfo/Index.cshtml
2025-05-01 15:18:30 +03:00

68 lines
2.5 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
@model List<ResultCompanyInfoDto>
@{
ViewData["Title"] = "Index";
Layout = "~/Views/AdminLayout/Index.cshtml";
int count = 0;
}
<div class="content">
<div class="container-fluid">
<h4 class="page-title">Ana Sayfa Başarılarımız İşlemleri</h4>
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="card-body">
<table class="table table-head-bg-success table-striped table-hover">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Değer</th>
<th scope="col">Başlık</th>
<th scope="col">Alt Başlık</th>
<th scope="col">İşlemler</th>
</tr>
</thead>
<tbody>
@if (Model == null || !Model.Any())
{
<tr>
<td colspan="3">Kayıt bulunamadı.</td>
</tr>
}
else
{
@foreach (var item in Model)
{
count++;
<tr>
<td>@count</td>
<td>@item.Value</td>
<td>@item.Title</td>
<td>@item.SubTitle</td>
<td>
<a href="/CompanyInfo/UpdateCompanyInfo/@item.CompanyInfoID" class="btn btn-outline-success">Güncelle</a>
</td>
</tr>
}
}
</tbody>
</table>
<a asp-controller="CompanyInfoVideo" asp-action="Index" class="btn btn-success">Tanıtım Videosu Ekle</a>
</div>
</div>
</div>
</div>
</div>
</div>