var/cache/dev/twig/6e/6e3c0dd4a0e5531afe23d74161d7a79f80ad973ea7cfedf7ab683b81e175ffa0.php line 49

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* admin/ecriture_comptables.html.twig */
  14. class __TwigTemplate_42e430c897c05ab98c63f8d90bd203d3a8f08849632f3d9ba3e4e7570f32186f extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'title' => [$this'block_title'],
  24.             'real_content' => [$this'block_real_content'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 2
  30.         return "dashboard_layout.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""admin/ecriture_comptables.html.twig"));
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""admin/ecriture_comptables.html.twig"));
  39.         $this->parent $this->loadTemplate("dashboard_layout.html.twig""admin/ecriture_comptables.html.twig"2);
  40.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  43.         
  44.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  45.     }
  46.     // line 4
  47.     public function block_title($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  54.         echo " ";
  55.         $this->displayParentBlock("title"$context$blocks);
  56.         echo " | ";
  57.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse4), "html"nulltrue);
  58.         
  59.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  60.         
  61.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  62.     }
  63.     // line 6
  64.     public function block_real_content($context, array $blocks = [])
  65.     {
  66.         $macros $this->macros;
  67.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  68.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""real_content"));
  69.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  70.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""real_content"));
  71.         // line 7
  72.         echo "
  73. <div class=\"container\">
  74. \t<div class=\"row\">
  75.         <div class=\"col-md-10\">
  76.             <div class=\"assie-card\">
  77.                 <div class=\"assie-card-body\">
  78.                 
  79.                 <h3>";
  80.         // line 14
  81.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.comptabilite.ecritures_comptable"), "html"nulltrue);
  82.         echo "</h3>
  83. \t\t\t\t<hr/>
  84.                 ";
  85.         // line 19
  86.         echo "\t\t\t\t
  87.                     <table class=\"table table-hover\">
  88.                         <thead>
  89.                             <tr>
  90.                                 <th>";
  91.         // line 23
  92.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.comptabilite.compte"), "html"nulltrue);
  93.         echo "</th>
  94.                                 <th>";
  95.         // line 24
  96.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.comptabilite.piece"), "html"nulltrue);
  97.         echo "</th>
  98.                                 <th>";
  99.         // line 25
  100.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.la_date"), "html"nulltrue);
  101.         echo "</th>
  102.                                 <th>";
  103.         // line 26
  104.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.comptabilite.libelle"), "html"nulltrue);
  105.         echo "</th>
  106.                                 <th>";
  107.         // line 27
  108.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.comptabilite.debit"), "html"nulltrue);
  109.         echo "</th>
  110.                                 <th>";
  111.         // line 28
  112.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.comptabilite.credit"), "html"nulltrue);
  113.         echo "</th>
  114.                                 
  115.                             </tr>
  116.                         </thead>
  117.                         <tbody>
  118.                         ";
  119.         // line 33
  120.         $context['_parent'] = $context;
  121.         $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); })()));
  122.         foreach ($context['_seq'] as $context["_key"] => $context["ecritureComptable"]) {
  123.             // line 34
  124.             echo "                        <tr>
  125.                         <td><span  data-bs-toggle=\"tooltip\" title=\"";
  126.             // line 35
  127.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ecritureComptable"], "compte", [], "any"falsefalsefalse35), "nom", [], "any"falsefalsefalse35), "html"nulltrue);
  128.             echo "\">";
  129.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ecritureComptable"], "compte", [], "any"falsefalsefalse35), "numero", [], "any"falsefalsefalse35), "html"nulltrue);
  130.             echo "</span></td>
  131.                         <td>";
  132.             // line 36
  133.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["ecritureComptable"], "numeroPiece", [], "any"falsefalsefalse36), "html"nulltrue);
  134.             echo "</td>
  135.                         <td>";
  136.             // line 37
  137.             echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["ecritureComptable"], "laDate", [], "any"falsefalsefalse37), "d/m/Y"), "html"nulltrue);
  138.             echo "</td>
  139.                         <td>";
  140.             // line 38
  141.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["ecritureComptable"], "libelleEcriture", [], "any"falsefalsefalse38), "html"nulltrue);
  142.             echo "</td>
  143.                         <td>
  144.                         ";
  145.             // line 40
  146.             if ((=== twig_compare(twig_get_attribute($this->env$this->source$context["ecritureComptable"], "debit", [], "any"falsefalsefalse40), 0))) {
  147.                 // line 41
  148.                 echo "                          ";
  149.                 echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["ecritureComptable"], "debit", [], "any"falsefalsefalse41), 0""" "), "html"nulltrue);
  150.                 echo "
  151.                         ";
  152.             }
  153.             // line 43
  154.             echo "                        </td>
  155.                         <td>
  156.                          ";
  157.             // line 45
  158.             if ((=== twig_compare(twig_get_attribute($this->env$this->source$context["ecritureComptable"], "credit", [], "any"falsefalsefalse45), 0))) {
  159.                 // line 46
  160.                 echo "                            ";
  161.                 echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["ecritureComptable"], "credit", [], "any"falsefalsefalse46), 0""" "), "html"nulltrue);
  162.                 echo "
  163.                          ";
  164.             }
  165.             // line 48
  166.             echo "                        </td>
  167.                        
  168.                         </tr>
  169.                         ";
  170.         }
  171.         $_parent $context['_parent'];
  172.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ecritureComptable'], $context['_parent'], $context['loop']);
  173.         $context array_intersect_key($context$_parent) + $_parent;
  174.         // line 52
  175.         echo "                        </tbody>
  176.                     </table>
  177.                 </div>
  178.             </div>
  179.         </div>
  180.     </div>
  181. </div>
  182. ";
  183.         
  184.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  185.         
  186.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  187.     }
  188.     public function getTemplateName()
  189.     {
  190.         return "admin/ecriture_comptables.html.twig";
  191.     }
  192.     public function isTraitable()
  193.     {
  194.         return false;
  195.     }
  196.     public function getDebugInfo()
  197.     {
  198.         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,);
  199.     }
  200.     public function getSourceContext()
  201.     {
  202.         return new Source("
  203. {% extends 'dashboard_layout.html.twig' %}
  204. \t
  205. \t{% block title %} {{ parent() }} | {{ boutique.nom }}{% endblock %}
  206. \t
  207. {% block real_content  %}
  208. <div class=\"container\">
  209. \t<div class=\"row\">
  210.         <div class=\"col-md-10\">
  211.             <div class=\"assie-card\">
  212.                 <div class=\"assie-card-body\">
  213.                 
  214.                 <h3>{{ 'admin.comptabilite.ecritures_comptable' | trans }}</h3>
  215. \t\t\t\t<hr/>
  216.                 {#
  217. \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>
  218.                 #}
  219. \t\t\t\t
  220.                     <table class=\"table table-hover\">
  221.                         <thead>
  222.                             <tr>
  223.                                 <th>{{ 'admin.comptabilite.compte' | trans }}</th>
  224.                                 <th>{{ 'admin.comptabilite.piece' | trans }}</th>
  225.                                 <th>{{ 'admin.la_date' | trans }}</th>
  226.                                 <th>{{ 'admin.comptabilite.libelle' | trans }}</th>
  227.                                 <th>{{ 'admin.comptabilite.debit' | trans }}</th>
  228.                                 <th>{{ 'admin.comptabilite.credit' | trans }}</th>
  229.                                 
  230.                             </tr>
  231.                         </thead>
  232.                         <tbody>
  233.                         {% for ecritureComptable in ecritureComptables %}
  234.                         <tr>
  235.                         <td><span  data-bs-toggle=\"tooltip\" title=\"{{ ecritureComptable.compte.nom }}\">{{ ecritureComptable.compte.numero }}</span></td>
  236.                         <td>{{ ecritureComptable.numeroPiece }}</td>
  237.                         <td>{{ ecritureComptable.laDate | date('d/m/Y') }}</td>
  238.                         <td>{{ ecritureComptable.libelleEcriture }}</td>
  239.                         <td>
  240.                         {% if ecritureComptable.debit > 0 %}
  241.                           {{ ecritureComptable.debit | number_format(0, '', ' ') }}
  242.                         {% endif %}
  243.                         </td>
  244.                         <td>
  245.                          {% if ecritureComptable.credit > 0 %}
  246.                             {{ ecritureComptable.credit | number_format(0, '', ' ') }}
  247.                          {% endif %}
  248.                         </td>
  249.                        
  250.                         </tr>
  251.                         {% endfor %}
  252.                         </tbody>
  253.                     </table>
  254.                 </div>
  255.             </div>
  256.         </div>
  257.     </div>
  258. </div>
  259. {% endblock real_content  %}""admin/ecriture_comptables.html.twig""/home/harmony/public_html/templates/admin/ecriture_comptables.html.twig");
  260.     }
  261. }