{% extends 'frontend/base.html.twig' %}
{% block body %}
<main>
<section class="dataset-inner section-padding bg-gray">
<div class="page-bar-hero is-detail" style="margin-top: -44px; background-image: url({{ asset('/assets/background/simpang_gumul.png') }})">
<div class="container d-flex align-items-center">
<div class="position-relative">
<a href="{{ path('dataset_urusan',{id:sektor.urusan.id}) }}" class="btn btn-outline-light btn-sm fw-500 mb-3">
<i class="bi bi-arrow-left-circle"></i>
Kembali Ke Topics
</a>
<h5 class="mb-2 text-light fw-600">{{ sektor.nama }}</h5>
</div>
</div>
</div>
<div class="container">
<div class="mt-4"></div>
<div class="dataset-list mb-4 bg-white mt-4">
{% for dataset in pagination %}
<a href="{{ path('dataset_detail', { id: dataset.id }) }}" class="dataset-item">
<div class="flex-grow-1 px-lg-3">
<h6 class="text-app-secondary mb-2">
{{ dataset.judul }}
</h6>
<div class="fs-8 mb-1 text-muted">
<i class="fa fa-building mr-2" aria-hidden="true"></i>
{{ dataset.div }}
</div>
<div class="fs-8 text-muted">
<div class="mr-4 text-muted">
<i class="fa fa-file-text mr-2" aria-hidden="true"></i>
{# {{ kategori[dataset.id] }} #}
</div>
</div>
<div class="fs-8 text-muted d-flex">
<div class="mr-4 text-muted">
<i class="fa fa-calendar mr-2" aria-hidden="true"></i>
{{ dataset.createdAt|date('d F Y') }}
</div>
<div class="mr-4 text-muted">
<i class="fa fa-eye mr-2" aria-hidden="true"></i>
{% if dataset.view %}
{{ dataset.view }}
{% else %}
0
{% endif %}
</div>
</div>
</div>
</a>
{% endfor %}
</div>
<div class="d-flex justify-content-center">
{{ knp_pagination_render(pagination, 'frontend/dataset/pager.html.twig') }}
</div>
</div>
</section>
</main>
{% endblock %}