{% extends 'base.html.twig' %}
{% block title %}Journal Comptable
{% endblock %}
{% block body %}
<main id="main" class="main">
<h3>Journaux Comptables</h3>
<div class=" d-flex justify-content-end">
<a class="btn btn-success btn-sm" href="{{ path('app_journal_comptable_new') }}">
<i class="bi bi-plus-lg"></i>
Nouveau</a>
</div>
<!-- End Logo -->
<br>
<table class="table datatable table-bordered table-striped table-sm">
<thead>
<tr>
<th>Libelle</th>
<th>Date de création</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
{% for journal_comptable in journal_comptables %}
<tr>
<td>{{ journal_comptable.libelle }}</td>
<td>{{ journal_comptable.createdAt ? journal_comptable.createdAt|date('Y-m-d H:i:s') : '' }}</td>
<td>
<div class=" d-flex justify-content">
<a class="bi bi-eye-fill btn btn-success btn-sm" href="{{ path('app_journal_comptable_show', {'id': journal_comptable.id}) }}"></a>
<a class="bi bi-pencil-square btn btn-secondary btn-sm" href="{{ path('app_journal_comptable_edit', {'id': journal_comptable.id}) }}"></a>
</div>
</td>
</tr>
{% else %}
<tr>
<td colspan="6">no records found</td>
</tr>
{% endfor %}
</tbody>
</table>
</main>
{% endblock %}