{% extends 'base.html.twig' %}
{% block title %}JournalComptable{% endblock %}
{% block body %}
<main id="main" class="main">
<div class="pagetitle">
<h1></h1>
<table class="table datatable table-bordered table-striped table-sm">
<tbody>
<tr>
<th>Id</th>
<td>{{ journal_comptable.id }}</td>
</tr>
<tr>
<th>Date</th>
<td>{{ journal_comptable.date ? journal_comptable.date|date('Y-m-d H:i:s') : '' }}</td>
</tr>
<tr>
<th>Libelle</th>
<td>{{ journal_comptable.libelle }}</td>
</tr>
<tr>
<th>CreatedAt</th>
<td>{{ journal_comptable.createdAt ? journal_comptable.createdAt|date('Y-m-d H:i:s') : '' }}</td>
</tr>
<tr>
<th>UpdatedAt</th>
<td>{{ journal_comptable.updatedAt ? journal_comptable.updatedAt|date('Y-m-d H:i:s') : '' }}</td>
</tr>
</tbody>
</table>
<div class=" d-flex justify-content">
<a class="btn btn-success btn-sm" href="{{ path('app_journal_comptable_index') }}">
<i class="bi bi-arrow-bar-left"></i>
</a>
<a class="btn btn-warning btn-sm" href="{{ path('app_depense_edit', {'id': journal_comptable.id}) }}">
<i class="bi bi-pencil-square text-dark"></i>
</a>
{% if is_granted('ROLE_ADMIN') %}
{{ include('journal_comptable/_delete_form.html.twig') }}
{% endif %}
</div>
{% endblock %}