<table id="datatable" class="table table-bordered datatable nowrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
<thead>
<tr>
<th width="5%">#</th>
{% if sayfa[0].kategori==1 %}
<th>Kategori</th>
{% endif %}
{% set gg = 0 %}
{% for key,alan in alanlar %}
{% if alan|replace({' ':''})|seo =='resim' or alan|replace({' ':''})|seo=='resimler' or alan|replace({' ':''})|seo=='metin' or alan|replace({' ':''})|seo=='seourl' or alan|replace({' ':''})|seo=='sayfabasligi' or alan|replace({' ':''})|seo=='anahtarkelimeler' or alan|replace({' ':''})|seo=='sayfaaciklamasi' %}{% else %}
{% if gg<2 %}
{% if tipler[key]!='text' %}
<th>{{ alan|title }}</th>
{% endif %}
{% endif %}
{% set gg = gg+1 %}
{% endif %}
{% endfor %}
{% if sayfa[0].icIcerik==1 %}
<th>Url</th>
{% endif %}
<th></th>
</tr>
</thead>
<tbody class="icerik_sirala0">
{% for key,veri in veriler %}
{% set aralink ='' %}
<tr id="listItem_{{ veri.dilgrup }}">
<td>{{ key+1 }} </td>
{% if sayfa[0].kategori==1 %}
<td>{{ veri.k_adi|default('') }}</td>
{% endif %}
{% set gg = 0 %}
{% for key,alan in alanlar %}
{% if alan|replace({' ':''})|seo =='resim' or alan|replace({' ':''})|seo=='resimler' or alan|replace({' ':''})|seo=='metin' or alan|replace({' ':''})|seo=='seourl' or alan|replace({' ':''})|seo=='sayfabasligi' or alan|replace({' ':''})|seo=='anahtarkelimeler' or alan|replace({' ':''})|seo=='sayfaaciklamasi' %}{% else %}
{% if gg<2 %}
{% if tipler[key]!='text' %}
{% if tipler[key]=='datetime' %}
<td>{{ veri[alan|replace({' ':''})|seo]|date('d.m.Y H:i') }}</td>
{% elseif tipler[key]=='float' %}
<td>{{ veri[alan|replace({' ':''})|seo]|number_format(2,',',' ') }}</td>
{% else %}
<td>{{ veri[alan|replace({' ':''})|seo]|raw }}</td>
{% endif %}
{% endif %}
{% endif %}
{% set gg = gg+1 %}
{% endif %}
{% endfor %}
{% if sayfa[0].icIcerik==1 %}
<td>
{% if sayfa[0].kategori==1 %}
{% set aralink = veri.k_dilgrup|altKategoriGeriYaz %}
{% endif %}
{% if ''|dilSay>1 %}
<a href="{{ 'siteYolu'|ayarlar }}{{ veri.dKisa }}/{{ sayfa[0].seo }}/{{ aralink }}{{ veri.seourl }}" target="_blank"> {{ 'siteYolu'|ayarlar }}{{ veri.dKisa }}/{{ sayfa[0].seo }}/{{ aralink }}{{ veri.seourl }}</a>
{% else %}
<a href="{{ 'siteYolu'|ayarlar }}{{ sayfa[0].seo }}/{{ aralink }}{{ veri.seourl }}" target="_blank"> {{ 'siteYolu'|ayarlar }}{{ sayfa[0].seo }}/{{ aralink }}{{ veri.seourl }}</a>
{% endif %}
</td>
{% endif %}
<td>
<div class="dropdown mo-mb-2">
{% if sayfa[0].kategori==1 and kategori!='' %}
<a class="btn btn-info waves-effect waves-light handle0 text-white "><i data-feather="move"></i></a>
{% endif %}
{% if sayfa[0].kategori==0 %}
<a class="btn btn-info waves-effect waves-light handle0 text-white "><i data-feather="move"></i></a>
{% endif %}
<button class="btn btn-primary dropdown-toggle " type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i data-feather="more-horizontal"></i></button>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item " href="{{ path('cokveri_duzenle',{'dilgrup':sayfa[0].id,'vDilgrup':veri.dilgrup}) }}" >Düzenle</a>
<a class="dropdown-item " href="javascript:void(0);" onclick="icerikSil({{ veri.dilgrup }});">Sil</a>
</div>
</div>
</td>
</tr>
{% endfor %}
</tbody>
</table>