var/cache/dev/twig/e0/e0e93bfc40111899a24a5fe24f70ce2adacfdbef88ea3fac20c396be2c3bfea7.php line 39

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. /* client/payment/transactions.html.twig */
  14. class __TwigTemplate_86f82b00f22da98e9fc2c21ccfdc73053d9e34fa42b89c7fd7e9479ed60822e0 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.             'body' => [$this'block_body'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "base.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""client/payment/transactions.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""client/payment/transactions.html.twig"));
  39.         $this->parent $this->loadTemplate("base.html.twig""client/payment/transactions.html.twig"1);
  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 3
  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 " Mes transactions | ";
  55.         $this->displayParentBlock("title"$context$blocks);
  56.         echo " ";
  57.         
  58.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  59.         
  60.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  61.     }
  62.     // line 5
  63.     public function block_body($context, array $blocks = [])
  64.     {
  65.         $macros $this->macros;
  66.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  67.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  68.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  69.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  70.         // line 6
  71.         echo "<section class=\"flat-header color-bg adm-header\">
  72.     <div class=\"wave-bg wave-bg2\"></div>
  73.     <div class=\"container\">
  74.         <div class=\"dasboard-wrap fl-wrap\">
  75.             <div class=\"dasboard-breadcrumbs breadcrumbs\">
  76.                 <a href=\"";
  77.         // line 11
  78.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("app_client_home");
  79.         echo "\">Accueil</a><a href=\"#\">Mon compte</a><span>Mes transactions</span>
  80.             </div>
  81.             ";
  82.         // line 13
  83.         echo twig_include($this->env$context"base-default/client-account-sidebar-with-menu.html.twig");
  84.         echo "
  85.         </div>
  86.     </div>
  87. </section>
  88. <section class=\"middle-padding\">
  89.     <div class=\"container\">
  90.         <div class=\"dasboard-wrap fl-wrap\">
  91.             <div class=\"dashboard-content fl-wrap\" style=\"min-height: 268px\">
  92.                 <div class=\"table-responsive\">
  93.                     <table class=\"table\">
  94.                         <thead class=\"table-blue\">
  95.                             <tr>
  96.                                 <th>Numéro</th>
  97.                                 <th>Montant</th>
  98.                                 <th>Date</th>
  99.                                 <th>Statut</th>
  100.                                 <th>Description</th>
  101.                                 <th>Facture</th>
  102.                             </tr>
  103.                         </thead>    
  104.                         <tbody> 
  105.                             ";
  106.         // line 35
  107.         if ((=== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["transactions"]) || array_key_exists("transactions"$context) ? $context["transactions"] : (function () { throw new RuntimeError('Variable "transactions" does not exist.'35$this->source); })()), "totalItemCount", [], "any"falsefalsefalse35), 0))) {
  108.             echo "     
  109.                                 ";
  110.             // line 36
  111.             $context['_parent'] = $context;
  112.             $context['_seq'] = twig_ensure_traversable((isset($context["transactions"]) || array_key_exists("transactions"$context) ? $context["transactions"] : (function () { throw new RuntimeError('Variable "transactions" does not exist.'36$this->source); })()));
  113.             foreach ($context['_seq'] as $context["_key"] => $context["transaction"]) {
  114.                 // line 37
  115.                 echo "                                    <tr>
  116.                                         <td>";
  117.                 // line 38
  118.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["transaction"], "transactionNumber", [], "any"falsefalsefalse38), "html"nulltrue);
  119.                 echo "</td>
  120.                                         <td>";
  121.                 // line 39
  122.                 echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["transaction"], "amount", [], "any"falsefalsefalse39), 2","" "), "html"nulltrue);
  123.                 echo " €</td>
  124.                                         <td>";
  125.                 // line 40
  126.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["transaction"], "createdAt", [], "any"falsefalsefalse40), "d/m/Y à H\\hi"), "html"nulltrue);
  127.                 echo "</td>
  128.                                         <td>
  129.                                             ";
  130.                 // line 42
  131.                 if ((=== twig_compare(twig_get_attribute($this->env$this->source$context["transaction"], "status", [], "any"falsefalsefalse42), "succeeded"))) {
  132.                     // line 43
  133.                     echo "                                                <span class=\"badge rounded-pill badge-light-success\">Complétée</span>
  134.                                             ";
  135.                 }
  136.                 // line 45
  137.                 echo "                                        </td>
  138.                                         <td>";
  139.                 // line 46
  140.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["transaction"], "description", [], "any"falsefalsefalse46), "html"nulltrue);
  141.                 echo "</td>
  142.                                         <td>
  143.                                             ";
  144.                 // line 48
  145.                 if ((=== twig_compare(twig_get_attribute($this->env$this->source$context["transaction"], "transactionType", [], "any"falsefalsefalse48), "credit"))) {
  146.                     // line 49
  147.                     echo "                                                ";
  148.                     if (twig_get_attribute($this->env$this->source$context["transaction"], "invoice", [], "any"falsefalsefalse49)) {
  149.                         // line 50
  150.                         echo "                                                    <a href=\"";
  151.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("app_client_invoice", ["invoiceNumber" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["transaction"], "invoice", [], "any"falsefalsefalse50), "invoiceNumber", [], "any"falsefalsefalse50)]), "html"nulltrue);
  152.                         echo "\" class=\"text-theme-gray text-decoration-underline td-link-facture\">";
  153.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["transaction"], "invoice", [], "any"falsefalsefalse50), "invoiceNumber", [], "any"falsefalsefalse50), "html"nulltrue);
  154.                         echo "</a>
  155.                                                 ";
  156.                     }
  157.                     // line 52
  158.                     echo "                                            ";
  159.                 } else {
  160.                     // line 53
  161.                     echo "                                                -
  162.                                             ";
  163.                 }
  164.                 // line 55
  165.                 echo "                                        </td>
  166.                                     </tr>
  167.                                 ";
  168.             }
  169.             $_parent $context['_parent'];
  170.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['transaction'], $context['_parent'], $context['loop']);
  171.             $context array_intersect_key($context$_parent) + $_parent;
  172.             // line 58
  173.             echo "                            ";
  174.         } else {
  175.             // line 59
  176.             echo "                                <tr>
  177.                                     <td colspan=\"4\">Aucune transaction trouvée.</td>
  178.                                 </tr>
  179.                             ";
  180.         }
  181.         // line 63
  182.         echo "                        </tbody>
  183.                     </table>
  184.                 </div>
  185.                 <div class=\"mt-paginator\">
  186.                     ";
  187.         // line 67
  188.         echo $this->extensions['Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension']->render($this->env, (isset($context["transactions"]) || array_key_exists("transactions"$context) ? $context["transactions"] : (function () { throw new RuntimeError('Variable "transactions" does not exist.'67$this->source); })()));
  189.         echo "
  190.                 </div>
  191.             </div>
  192.         </div>
  193.     </div>
  194. </section>
  195. <div class=\"limit-box fl-wrap\"></div>
  196. ";
  197.         
  198.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  199.         
  200.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  201.     }
  202.     /**
  203.      * @codeCoverageIgnore
  204.      */
  205.     public function getTemplateName()
  206.     {
  207.         return "client/payment/transactions.html.twig";
  208.     }
  209.     /**
  210.      * @codeCoverageIgnore
  211.      */
  212.     public function isTraitable()
  213.     {
  214.         return false;
  215.     }
  216.     /**
  217.      * @codeCoverageIgnore
  218.      */
  219.     public function getDebugInfo()
  220.     {
  221.         return array (  208 => 67,  202 => 63,  196 => 59,  193 => 58,  185 => 55,  181 => 53,  178 => 52,  170 => 50,  167 => 49,  165 => 48,  160 => 46,  157 => 45,  153 => 43,  151 => 42,  146 => 40,  142 => 39,  138 => 38,  135 => 37,  131 => 36,  127 => 35,  102 => 13,  97 => 11,  90 => 6,  80 => 5,  59 => 3,  36 => 1,);
  222.     }
  223.     public function getSourceContext()
  224.     {
  225.         return new Source("{% extends 'base.html.twig' %}
  226. {% block title %} Mes transactions | {{ parent() }} {% endblock %}
  227. {% block body %}
  228. <section class=\"flat-header color-bg adm-header\">
  229.     <div class=\"wave-bg wave-bg2\"></div>
  230.     <div class=\"container\">
  231.         <div class=\"dasboard-wrap fl-wrap\">
  232.             <div class=\"dasboard-breadcrumbs breadcrumbs\">
  233.                 <a href=\"{{ url('app_client_home') }}\">Accueil</a><a href=\"#\">Mon compte</a><span>Mes transactions</span>
  234.             </div>
  235.             {{ include('base-default/client-account-sidebar-with-menu.html.twig') }}
  236.         </div>
  237.     </div>
  238. </section>
  239. <section class=\"middle-padding\">
  240.     <div class=\"container\">
  241.         <div class=\"dasboard-wrap fl-wrap\">
  242.             <div class=\"dashboard-content fl-wrap\" style=\"min-height: 268px\">
  243.                 <div class=\"table-responsive\">
  244.                     <table class=\"table\">
  245.                         <thead class=\"table-blue\">
  246.                             <tr>
  247.                                 <th>Numéro</th>
  248.                                 <th>Montant</th>
  249.                                 <th>Date</th>
  250.                                 <th>Statut</th>
  251.                                 <th>Description</th>
  252.                                 <th>Facture</th>
  253.                             </tr>
  254.                         </thead>    
  255.                         <tbody> 
  256.                             {% if transactions.totalItemCount > 0 %}     
  257.                                 {% for transaction in transactions %}
  258.                                     <tr>
  259.                                         <td>{{ transaction.transactionNumber }}</td>
  260.                                         <td>{{ transaction.amount | number_format(2, ',', ' ') }} €</td>
  261.                                         <td>{{ transaction.createdAt|date('d/m/Y à H\\\\hi') }}</td>
  262.                                         <td>
  263.                                             {% if transaction.status == 'succeeded' %}
  264.                                                 <span class=\"badge rounded-pill badge-light-success\">Complétée</span>
  265.                                             {% endif %}
  266.                                         </td>
  267.                                         <td>{{ transaction.description }}</td>
  268.                                         <td>
  269.                                             {% if transaction.transactionType == 'credit' %}
  270.                                                 {% if transaction.invoice %}
  271.                                                     <a href=\"{{ url('app_client_invoice', {'invoiceNumber': transaction.invoice.invoiceNumber}) }}\" class=\"text-theme-gray text-decoration-underline td-link-facture\">{{ transaction.invoice.invoiceNumber }}</a>
  272.                                                 {% endif %}
  273.                                             {% else %}
  274.                                                 -
  275.                                             {% endif %}
  276.                                         </td>
  277.                                     </tr>
  278.                                 {% endfor %}
  279.                             {% else %}
  280.                                 <tr>
  281.                                     <td colspan=\"4\">Aucune transaction trouvée.</td>
  282.                                 </tr>
  283.                             {% endif %}
  284.                         </tbody>
  285.                     </table>
  286.                 </div>
  287.                 <div class=\"mt-paginator\">
  288.                     {{ knp_pagination_render(transactions) }}
  289.                 </div>
  290.             </div>
  291.         </div>
  292.     </div>
  293. </section>
  294. <div class=\"limit-box fl-wrap\"></div>
  295. {% endblock %}""client/payment/transactions.html.twig""/var/www/vhosts/resoh.fr/httpdocs/templates/client/payment/transactions.html.twig");
  296.     }
  297. }