Files
2025-05-01 15:18:30 +03:00

74 lines
3.4 KiB
Plaintext
Raw Permalink 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<ResultWorkProcessDto>
@{
ViewData["Title"] = "Index";
Layout = "~/Views/AdminLayout/Index.cshtml";
int count = 0;
}
<div class="content">
<div class="container-fluid">
<h4 class="page-title">Ana Sayfa Çalışma Şeklimiz İş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">Kısa Açıklama</th>
<th scope="col">Başlık</th>
<th scope="col">Uzun Açıklama</th>
<th scope="col">Görsel</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.Info</td>
<td>@item.Title</td>
<td>@item.SubTitle</td>
<td>
<img width="75" height="75" src="@item.ImageUrl" alt="Görsel" />
</td>
<td>
<span class="badge @(item.IsActive? "bg-success text-white" : "bg-secondary text-white")">
@(item.IsActive ? "Aktif" : "Pasif")
</span>
</td>
<td>
<a href="/WorkProcess/UpdateWorkProcess/@item.WorkProcessID" class="btn btn-outline-success">Güncelle</a>
<a href="/WorkProcess/ServiceStatusActive/@item.WorkProcessID" class="btn btn-outline-info @(item.IsActive == true ? "disabled" : "")">Aktif</a>
<a href="/WorkProcess/ServiceStatusPassive/@item.WorkProcessID" class="btn btn-outline-dark @(item.IsActive == false ? "disabled" : "")">Pasif</a>
</td>
</tr>
}
}
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>