<?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;
/* client/payment/transactions.html.twig */
class __TwigTemplate_86f82b00f22da98e9fc2c21ccfdc73053d9e34fa42b89c7fd7e9479ed60822e0 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base.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", "client/payment/transactions.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "client/payment/transactions.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "client/payment/transactions.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
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 " Mes transactions | ";
$this->displayParentBlock("title", $context, $blocks);
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 5
public function block_body($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", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 6
echo "<section class=\"flat-header color-bg adm-header\">
<div class=\"wave-bg wave-bg2\"></div>
<div class=\"container\">
<div class=\"dasboard-wrap fl-wrap\">
<div class=\"dasboard-breadcrumbs breadcrumbs\">
<a href=\"";
// line 11
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("app_client_home");
echo "\">Accueil</a><a href=\"#\">Mon compte</a><span>Mes transactions</span>
</div>
";
// line 13
echo twig_include($this->env, $context, "base-default/client-account-sidebar-with-menu.html.twig");
echo "
</div>
</div>
</section>
<section class=\"middle-padding\">
<div class=\"container\">
<div class=\"dasboard-wrap fl-wrap\">
<div class=\"dashboard-content fl-wrap\" style=\"min-height: 268px\">
<div class=\"table-responsive\">
<table class=\"table\">
<thead class=\"table-blue\">
<tr>
<th>Numéro</th>
<th>Montant</th>
<th>Date</th>
<th>Statut</th>
<th>Description</th>
<th>Facture</th>
</tr>
</thead>
<tbody>
";
// line 35
if ((1 === 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", false, false, false, 35), 0))) {
echo "
";
// line 36
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["transaction"]) {
// line 37
echo " <tr>
<td>";
// line 38
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["transaction"], "transactionNumber", [], "any", false, false, false, 38), "html", null, true);
echo "</td>
<td>";
// line 39
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["transaction"], "amount", [], "any", false, false, false, 39), 2, ",", " "), "html", null, true);
echo " €</td>
<td>";
// line 40
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["transaction"], "createdAt", [], "any", false, false, false, 40), "d/m/Y à H\\hi"), "html", null, true);
echo "</td>
<td>
";
// line 42
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["transaction"], "status", [], "any", false, false, false, 42), "succeeded"))) {
// line 43
echo " <span class=\"badge rounded-pill badge-light-success\">Complétée</span>
";
}
// line 45
echo " </td>
<td>";
// line 46
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["transaction"], "description", [], "any", false, false, false, 46), "html", null, true);
echo "</td>
<td>
";
// line 48
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["transaction"], "transactionType", [], "any", false, false, false, 48), "credit"))) {
// line 49
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["transaction"], "invoice", [], "any", false, false, false, 49)) {
// line 50
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("app_client_invoice", ["invoiceNumber" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["transaction"], "invoice", [], "any", false, false, false, 50), "invoiceNumber", [], "any", false, false, false, 50)]), "html", null, true);
echo "\" class=\"text-theme-gray text-decoration-underline td-link-facture\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["transaction"], "invoice", [], "any", false, false, false, 50), "invoiceNumber", [], "any", false, false, false, 50), "html", null, true);
echo "</a>
";
}
// line 52
echo " ";
} else {
// line 53
echo " -
";
}
// line 55
echo " </td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['transaction'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 58
echo " ";
} else {
// line 59
echo " <tr>
<td colspan=\"4\">Aucune transaction trouvée.</td>
</tr>
";
}
// line 63
echo " </tbody>
</table>
</div>
<div class=\"mt-paginator\">
";
// line 67
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); })()));
echo "
</div>
</div>
</div>
</div>
</section>
<div class=\"limit-box fl-wrap\"></div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "client/payment/transactions.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% block title %} Mes transactions | {{ parent() }} {% endblock %}
{% block body %}
<section class=\"flat-header color-bg adm-header\">
<div class=\"wave-bg wave-bg2\"></div>
<div class=\"container\">
<div class=\"dasboard-wrap fl-wrap\">
<div class=\"dasboard-breadcrumbs breadcrumbs\">
<a href=\"{{ url('app_client_home') }}\">Accueil</a><a href=\"#\">Mon compte</a><span>Mes transactions</span>
</div>
{{ include('base-default/client-account-sidebar-with-menu.html.twig') }}
</div>
</div>
</section>
<section class=\"middle-padding\">
<div class=\"container\">
<div class=\"dasboard-wrap fl-wrap\">
<div class=\"dashboard-content fl-wrap\" style=\"min-height: 268px\">
<div class=\"table-responsive\">
<table class=\"table\">
<thead class=\"table-blue\">
<tr>
<th>Numéro</th>
<th>Montant</th>
<th>Date</th>
<th>Statut</th>
<th>Description</th>
<th>Facture</th>
</tr>
</thead>
<tbody>
{% if transactions.totalItemCount > 0 %}
{% for transaction in transactions %}
<tr>
<td>{{ transaction.transactionNumber }}</td>
<td>{{ transaction.amount | number_format(2, ',', ' ') }} €</td>
<td>{{ transaction.createdAt|date('d/m/Y à H\\\\hi') }}</td>
<td>
{% if transaction.status == 'succeeded' %}
<span class=\"badge rounded-pill badge-light-success\">Complétée</span>
{% endif %}
</td>
<td>{{ transaction.description }}</td>
<td>
{% if transaction.transactionType == 'credit' %}
{% if transaction.invoice %}
<a href=\"{{ url('app_client_invoice', {'invoiceNumber': transaction.invoice.invoiceNumber}) }}\" class=\"text-theme-gray text-decoration-underline td-link-facture\">{{ transaction.invoice.invoiceNumber }}</a>
{% endif %}
{% else %}
-
{% endif %}
</td>
</tr>
{% endfor %}
{% else %}
<tr>
<td colspan=\"4\">Aucune transaction trouvée.</td>
</tr>
{% endif %}
</tbody>
</table>
</div>
<div class=\"mt-paginator\">
{{ knp_pagination_render(transactions) }}
</div>
</div>
</div>
</div>
</section>
<div class=\"limit-box fl-wrap\"></div>
{% endblock %}", "client/payment/transactions.html.twig", "/var/www/vhosts/resoh.fr/httpdocs/templates/client/payment/transactions.html.twig");
}
}