<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* admin/ecriture_comptables.html.twig */
class __TwigTemplate_42e430c897c05ab98c63f8d90bd203d3a8f08849632f3d9ba3e4e7570f32186f extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'real_content' => [$this, 'block_real_content'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "dashboard_layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "admin/ecriture_comptables.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "admin/ecriture_comptables.html.twig"));
$this->parent = $this->loadTemplate("dashboard_layout.html.twig", "admin/ecriture_comptables.html.twig", 2);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 4
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
echo " ";
$this->displayParentBlock("title", $context, $blocks);
echo " | ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["boutique"]) || array_key_exists("boutique", $context) ? $context["boutique"] : (function () { throw new RuntimeError('Variable "boutique" does not exist.', 4, $this->source); })()), "nom", [], "any", false, false, false, 4), "html", null, true);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 6
public function block_real_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "real_content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "real_content"));
// line 7
echo "
<div class=\"container\">
\t<div class=\"row\">
<div class=\"col-md-10\">
<div class=\"assie-card\">
<div class=\"assie-card-body\">
<h3>";
// line 14
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.comptabilite.ecritures_comptable"), "html", null, true);
echo "</h3>
\t\t\t\t<hr/>
";
// line 19
echo "\t\t\t\t
<table class=\"table table-hover\">
<thead>
<tr>
<th>";
// line 23
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.comptabilite.compte"), "html", null, true);
echo "</th>
<th>";
// line 24
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.comptabilite.piece"), "html", null, true);
echo "</th>
<th>";
// line 25
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.la_date"), "html", null, true);
echo "</th>
<th>";
// line 26
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.comptabilite.libelle"), "html", null, true);
echo "</th>
<th>";
// line 27
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.comptabilite.debit"), "html", null, true);
echo "</th>
<th>";
// line 28
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.comptabilite.credit"), "html", null, true);
echo "</th>
</tr>
</thead>
<tbody>
";
// line 33
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["ecritureComptables"]) || array_key_exists("ecritureComptables", $context) ? $context["ecritureComptables"] : (function () { throw new RuntimeError('Variable "ecritureComptables" does not exist.', 33, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["ecritureComptable"]) {
// line 34
echo " <tr>
<td><span data-bs-toggle=\"tooltip\" title=\"";
// line 35
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ecritureComptable"], "compte", [], "any", false, false, false, 35), "nom", [], "any", false, false, false, 35), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ecritureComptable"], "compte", [], "any", false, false, false, 35), "numero", [], "any", false, false, false, 35), "html", null, true);
echo "</span></td>
<td>";
// line 36
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["ecritureComptable"], "numeroPiece", [], "any", false, false, false, 36), "html", null, true);
echo "</td>
<td>";
// line 37
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["ecritureComptable"], "laDate", [], "any", false, false, false, 37), "d/m/Y"), "html", null, true);
echo "</td>
<td>";
// line 38
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["ecritureComptable"], "libelleEcriture", [], "any", false, false, false, 38), "html", null, true);
echo "</td>
<td>
";
// line 40
if ((1 === twig_compare(twig_get_attribute($this->env, $this->source, $context["ecritureComptable"], "debit", [], "any", false, false, false, 40), 0))) {
// line 41
echo " ";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["ecritureComptable"], "debit", [], "any", false, false, false, 41), 0, "", " "), "html", null, true);
echo "
";
}
// line 43
echo " </td>
<td>
";
// line 45
if ((1 === twig_compare(twig_get_attribute($this->env, $this->source, $context["ecritureComptable"], "credit", [], "any", false, false, false, 45), 0))) {
// line 46
echo " ";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["ecritureComptable"], "credit", [], "any", false, false, false, 46), 0, "", " "), "html", null, true);
echo "
";
}
// line 48
echo " </td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ecritureComptable'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 52
echo " </tbody>
</table>
</div>
</div>
</div>
</div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "admin/ecriture_comptables.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 194 => 52, 185 => 48, 179 => 46, 177 => 45, 173 => 43, 167 => 41, 165 => 40, 160 => 38, 156 => 37, 152 => 36, 146 => 35, 143 => 34, 139 => 33, 131 => 28, 127 => 27, 123 => 26, 119 => 25, 115 => 24, 111 => 23, 105 => 19, 100 => 14, 91 => 7, 81 => 6, 59 => 4, 36 => 2,);
}
public function getSourceContext()
{
return new Source("
{% extends 'dashboard_layout.html.twig' %}
\t
\t{% block title %} {{ parent() }} | {{ boutique.nom }}{% endblock %}
\t
{% block real_content %}
<div class=\"container\">
\t<div class=\"row\">
<div class=\"col-md-10\">
<div class=\"assie-card\">
<div class=\"assie-card-body\">
<h3>{{ 'admin.comptabilite.ecritures_comptable' | trans }}</h3>
\t\t\t\t<hr/>
{#
\t\t\t\t<a class=\"btn btn-primary\" href=\"{{ path('admin_comptabilite_nouvelle_ecriture_comptable', {'slug': boutique.slug}) }}\">{{ 'admin.new' | trans }} <i class=\"bi bi-plus\"></i></a>
#}
\t\t\t\t
<table class=\"table table-hover\">
<thead>
<tr>
<th>{{ 'admin.comptabilite.compte' | trans }}</th>
<th>{{ 'admin.comptabilite.piece' | trans }}</th>
<th>{{ 'admin.la_date' | trans }}</th>
<th>{{ 'admin.comptabilite.libelle' | trans }}</th>
<th>{{ 'admin.comptabilite.debit' | trans }}</th>
<th>{{ 'admin.comptabilite.credit' | trans }}</th>
</tr>
</thead>
<tbody>
{% for ecritureComptable in ecritureComptables %}
<tr>
<td><span data-bs-toggle=\"tooltip\" title=\"{{ ecritureComptable.compte.nom }}\">{{ ecritureComptable.compte.numero }}</span></td>
<td>{{ ecritureComptable.numeroPiece }}</td>
<td>{{ ecritureComptable.laDate | date('d/m/Y') }}</td>
<td>{{ ecritureComptable.libelleEcriture }}</td>
<td>
{% if ecritureComptable.debit > 0 %}
{{ ecritureComptable.debit | number_format(0, '', ' ') }}
{% endif %}
</td>
<td>
{% if ecritureComptable.credit > 0 %}
{{ ecritureComptable.credit | number_format(0, '', ' ') }}
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
{% endblock real_content %}", "admin/ecriture_comptables.html.twig", "/home/harmony/public_html/templates/admin/ecriture_comptables.html.twig");
}
}