71 lines
2.9 KiB
Plaintext
71 lines
2.9 KiB
Plaintext
@model List<ResultServiceDto>
|
||
@{
|
||
ViewData["Title"] = "Index";
|
||
Layout = "~/Views/AdminLayout/Index.cshtml";
|
||
int count = 0;
|
||
}
|
||
|
||
<div class="content">
|
||
<div class="container-fluid">
|
||
<h4 class="page-title">Ana Sayfa Hakkımızda İş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">Başlık</th>
|
||
<th scope="col">Alt Başlık</th>
|
||
<th scope="col">Durumu</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.Title</td>
|
||
<td>@item.SubTitle</td>
|
||
<td>
|
||
<span class="badge @(item.IsActive? "bg-success text-white" : "bg-secondary text-white")">
|
||
@(item.IsActive ? "Aktif" : "Pasif")
|
||
</span>
|
||
</td>
|
||
<td>
|
||
<a href="/Service/UpdateService/@item.ServiceID" class="btn btn-outline-success">Güncelle</a>
|
||
<a href="/Service/ServiceStatusActive/@item.ServiceID" class="btn btn-outline-info @(item.IsActive == true ? "disabled" : "")">Aktif</a>
|
||
<a href="/Service/ServiceStatusPassive/@item.ServiceID" class="btn btn-outline-dark @(item.IsActive == false ? "disabled" : "")">Pasif</a>
|
||
</td>
|
||
</tr>
|
||
}
|
||
}
|
||
</tbody>
|
||
</table>
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|