<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
use Twig\TemplateWrapper;
/* facturemail/facturcandidatmail.html.twig */
class __TwigTemplate_c878562d51f2bfaa86a12613cd6a7b23 extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "facturemail/facturcandidatmail.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "facturemail/facturcandidatmail.html.twig"));
// line 1
yield "<!DOCTYPE html>
<html lang=\"fr\">
<head>
<meta charset=\"UTF-8\">
<title>Facture ";
// line 5
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["factureId"]) || array_key_exists("factureId", $context) ? $context["factureId"] : (function () { throw new RuntimeError('Variable "factureId" does not exist.', 5, $this->source); })()), "html", null, true);
yield "</title>
<link href=\"https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css\" rel=\"stylesheet\">
<style>
body {
font-family: Helvetica, Arial, sans-serif;
font-size: 14px;
background: #fff;
color: #333;
}
.print-container {
width: 100%;
margin: 0 auto;
}
.header-space {
height: 150px;
width: 100%;
}
.client-info {
float: right;
width: 45%;
border: 1px solid #ddd;
padding: 15px;
border-radius: 5px;
margin-bottom: 30px;
background-color: #f9f9f9;
}
.invoice-details {
margin-bottom: 20px;
clear: both;
}
table {
width: 100%;
border-collapse: collapse;
margin-bottom: 20px;
}
th, td {
border: 1px solid #dee2e6;
padding: 10px;
text-align: left;
vertical-align: top;
}
th {
background-color: #f8f9fa;
font-weight: bold;
}
.text-end {
text-align: right;
}
.amount-words {
margin-top: 30px;
font-style: italic;
font-weight: bold;
background-color: #f8f9fa;
padding: 10px;
border: 1px solid #dee2e6;
}
/* Custom Colors */
h2 { color: #005849; margin-top: 0; }
.clearfix::after {
content: \"\";
clear: both;
display: table;
}
</style>
</head>
<body>
<div class=\"print-container\">
<div class=\"header-space\"></div>
<div class=\"clearfix\">
<div class=\"client-info\">
<h5>Client</h5>
<p>
";
// line 79
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["facture"]) || array_key_exists("facture", $context) ? $context["facture"] : (function () { throw new RuntimeError('Variable "facture" does not exist.', 79, $this->source); })()), "inscription", [], "any", false, false, false, 79), "candidat", [], "any", false, false, false, 79), "type", [], "any", false, false, false, 79) == 1)) {
// line 80
yield " <strong>";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["nom"]) || array_key_exists("nom", $context) ? $context["nom"] : (function () { throw new RuntimeError('Variable "nom" does not exist.', 80, $this->source); })()), "html", null, true);
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["prenom"]) || array_key_exists("prenom", $context) ? $context["prenom"] : (function () { throw new RuntimeError('Variable "prenom" does not exist.', 80, $this->source); })()), "html", null, true);
yield "</strong><br>
";
// line 81
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["adresse"]) || array_key_exists("adresse", $context) ? $context["adresse"] : (function () { throw new RuntimeError('Variable "adresse" does not exist.', 81, $this->source); })()), "html", null, true);
yield "<br>
";
// line 82
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["zip"]) || array_key_exists("zip", $context) ? $context["zip"] : (function () { throw new RuntimeError('Variable "zip" does not exist.', 82, $this->source); })()), "html", null, true);
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["ville"]) || array_key_exists("ville", $context) ? $context["ville"] : (function () { throw new RuntimeError('Variable "ville" does not exist.', 82, $this->source); })()), "html", null, true);
yield "<br>
";
// line 83
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["tel"]) || array_key_exists("tel", $context) ? $context["tel"] : (function () { throw new RuntimeError('Variable "tel" does not exist.', 83, $this->source); })()), "html", null, true);
yield "
";
} else {
// line 85
yield " <strong>";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["facture"]) || array_key_exists("facture", $context) ? $context["facture"] : (function () { throw new RuntimeError('Variable "facture" does not exist.', 85, $this->source); })()), "inscription", [], "any", false, false, false, 85), "candidat", [], "any", false, false, false, 85), "organization", [], "any", false, false, false, 85), "nom", [], "any", false, false, false, 85), "html", null, true);
yield "</strong><br>
Matricule Fiscale: ";
// line 86
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["facture"]) || array_key_exists("facture", $context) ? $context["facture"] : (function () { throw new RuntimeError('Variable "facture" does not exist.', 86, $this->source); })()), "inscription", [], "any", false, false, false, 86), "candidat", [], "any", false, false, false, 86), "organization", [], "any", false, false, false, 86), "matriculeFiscale", [], "any", false, false, false, 86), "html", null, true);
yield "<br>
";
// line 87
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["facture"]) || array_key_exists("facture", $context) ? $context["facture"] : (function () { throw new RuntimeError('Variable "facture" does not exist.', 87, $this->source); })()), "inscription", [], "any", false, false, false, 87), "candidat", [], "any", false, false, false, 87), "organization", [], "any", false, false, false, 87), "telephone", [], "any", false, false, false, 87), "html", null, true);
yield "<br><br>
Participant(e): ";
// line 88
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["nom"]) || array_key_exists("nom", $context) ? $context["nom"] : (function () { throw new RuntimeError('Variable "nom" does not exist.', 88, $this->source); })()), "html", null, true);
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["prenom"]) || array_key_exists("prenom", $context) ? $context["prenom"] : (function () { throw new RuntimeError('Variable "prenom" does not exist.', 88, $this->source); })()), "html", null, true);
yield "
";
}
// line 90
yield " </p>
</div>
</div>
<div class=\"invoice-details\">
<h2>FACTURE N° ";
// line 95
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["factureId"]) || array_key_exists("factureId", $context) ? $context["factureId"] : (function () { throw new RuntimeError('Variable "factureId" does not exist.', 95, $this->source); })()), "html", null, true);
yield "</h2>
<p>Date: ";
// line 96
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate((isset($context["date"]) || array_key_exists("date", $context) ? $context["date"] : (function () { throw new RuntimeError('Variable "date" does not exist.', 96, $this->source); })()), "d/m/Y"), "html", null, true);
yield "</p>
</div>
<table class=\"table table-bordered\">
<thead>
<tr>
<th>Désignation</th>
<th class=\"text-end\">P.U. HT</th>
<th class=\"text-end\">TVA (19%)</th>
<th class=\"text-end\">Timbre</th>
<th class=\"text-end\">Total TTC</th>
</tr>
</thead>
<tbody>
<tr>
<td>
Formation<br>
<small>";
// line 113
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["session"]) || array_key_exists("session", $context) ? $context["session"] : (function () { throw new RuntimeError('Variable "session" does not exist.', 113, $this->source); })()), "html", null, true);
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["cycle"]) || array_key_exists("cycle", $context) ? $context["cycle"] : (function () { throw new RuntimeError('Variable "cycle" does not exist.', 113, $this->source); })()), "html", null, true);
yield "</small>
</td>
<td class=\"text-end\">
";
// line 116
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatNumber((((CoreExtension::getAttribute($this->env, $this->source, (isset($context["facture"]) || array_key_exists("facture", $context) ? $context["facture"] : (function () { throw new RuntimeError('Variable "facture" does not exist.', 116, $this->source); })()), "montant", [], "any", false, false, false, 116) - 1) * 100) / 119), 3, ",", " "), "html", null, true);
yield "
</td>
<td class=\"text-end\">
";
// line 119
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatNumber(((CoreExtension::getAttribute($this->env, $this->source, (isset($context["facture"]) || array_key_exists("facture", $context) ? $context["facture"] : (function () { throw new RuntimeError('Variable "facture" does not exist.', 119, $this->source); })()), "montant", [], "any", false, false, false, 119) - 1) - (((CoreExtension::getAttribute($this->env, $this->source, (isset($context["facture"]) || array_key_exists("facture", $context) ? $context["facture"] : (function () { throw new RuntimeError('Variable "facture" does not exist.', 119, $this->source); })()), "montant", [], "any", false, false, false, 119) - 1) * 100) / 119)), 3, ",", " "), "html", null, true);
yield "
</td>
<td class=\"text-end\">
";
// line 122
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatNumber(1, 3, ",", " "), "html", null, true);
yield "
</td>
<td class=\"text-end\">
";
// line 125
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatNumber((CoreExtension::getAttribute($this->env, $this->source, (isset($context["facture"]) || array_key_exists("facture", $context) ? $context["facture"] : (function () { throw new RuntimeError('Variable "facture" does not exist.', 125, $this->source); })()), "montant", [], "any", false, false, false, 125) + 1), 3, ",", " "), "html", null, true);
yield "
</td>
</tr>
</tbody>
<tfoot>
<tr>
<th colspan=\"4\" class=\"text-end\">Total HT</th>
<th class=\"text-end\">";
// line 132
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatNumber((((CoreExtension::getAttribute($this->env, $this->source, (isset($context["facture"]) || array_key_exists("facture", $context) ? $context["facture"] : (function () { throw new RuntimeError('Variable "facture" does not exist.', 132, $this->source); })()), "montant", [], "any", false, false, false, 132) - 1) * 100) / 119), 3, ",", " "), "html", null, true);
yield "</th>
</tr>
<tr>
<th colspan=\"4\" class=\"text-end\">Total TVA</th>
<th class=\"text-end\">";
// line 136
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatNumber(((CoreExtension::getAttribute($this->env, $this->source, (isset($context["facture"]) || array_key_exists("facture", $context) ? $context["facture"] : (function () { throw new RuntimeError('Variable "facture" does not exist.', 136, $this->source); })()), "montant", [], "any", false, false, false, 136) - 1) - (((CoreExtension::getAttribute($this->env, $this->source, (isset($context["facture"]) || array_key_exists("facture", $context) ? $context["facture"] : (function () { throw new RuntimeError('Variable "facture" does not exist.', 136, $this->source); })()), "montant", [], "any", false, false, false, 136) - 1) * 100) / 119)), 3, ",", " "), "html", null, true);
yield "</th>
</tr>
<tr>
<th colspan=\"4\" class=\"text-end\">Timbre Fiscal</th>
<th class=\"text-end\">";
// line 140
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatNumber(1, 3, ",", " "), "html", null, true);
yield "</th>
</tr>
<tr>
<th colspan=\"4\" class=\"text-end\">Total TTC</th>
<th class=\"text-end\">";
// line 144
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatNumber((CoreExtension::getAttribute($this->env, $this->source, (isset($context["facture"]) || array_key_exists("facture", $context) ? $context["facture"] : (function () { throw new RuntimeError('Variable "facture" does not exist.', 144, $this->source); })()), "montant", [], "any", false, false, false, 144) + 1), 3, ",", " "), "html", null, true);
yield "</th>
</tr>
</tfoot>
</table>
<div class=\"amount-words\">
Arrêtée la présente facture à la somme de : ";
// line 150
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\NumberToWordsExtension']->convertAmountToWords((CoreExtension::getAttribute($this->env, $this->source, (isset($context["facture"]) || array_key_exists("facture", $context) ? $context["facture"] : (function () { throw new RuntimeError('Variable "facture" does not exist.', 150, $this->source); })()), "montant", [], "any", false, false, false, 150) + 1)), "html", null, true);
yield "
</div>
<div class=\"mt-5\">
<p class=\"text-end\">
Le Gérant<br><br><br>
____________________
</p>
</div>
</div>
</body>
</html>";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "facturemail/facturcandidatmail.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 272 => 150, 263 => 144, 256 => 140, 249 => 136, 242 => 132, 232 => 125, 226 => 122, 220 => 119, 214 => 116, 206 => 113, 186 => 96, 182 => 95, 175 => 90, 168 => 88, 164 => 87, 160 => 86, 155 => 85, 150 => 83, 144 => 82, 140 => 81, 133 => 80, 131 => 79, 54 => 5, 48 => 1,);
}
public function getSourceContext(): Source
{
return new Source("<!DOCTYPE html>
<html lang=\"fr\">
<head>
<meta charset=\"UTF-8\">
<title>Facture {{ factureId }}</title>
<link href=\"https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css\" rel=\"stylesheet\">
<style>
body {
font-family: Helvetica, Arial, sans-serif;
font-size: 14px;
background: #fff;
color: #333;
}
.print-container {
width: 100%;
margin: 0 auto;
}
.header-space {
height: 150px;
width: 100%;
}
.client-info {
float: right;
width: 45%;
border: 1px solid #ddd;
padding: 15px;
border-radius: 5px;
margin-bottom: 30px;
background-color: #f9f9f9;
}
.invoice-details {
margin-bottom: 20px;
clear: both;
}
table {
width: 100%;
border-collapse: collapse;
margin-bottom: 20px;
}
th, td {
border: 1px solid #dee2e6;
padding: 10px;
text-align: left;
vertical-align: top;
}
th {
background-color: #f8f9fa;
font-weight: bold;
}
.text-end {
text-align: right;
}
.amount-words {
margin-top: 30px;
font-style: italic;
font-weight: bold;
background-color: #f8f9fa;
padding: 10px;
border: 1px solid #dee2e6;
}
/* Custom Colors */
h2 { color: #005849; margin-top: 0; }
.clearfix::after {
content: \"\";
clear: both;
display: table;
}
</style>
</head>
<body>
<div class=\"print-container\">
<div class=\"header-space\"></div>
<div class=\"clearfix\">
<div class=\"client-info\">
<h5>Client</h5>
<p>
{% if facture.inscription.candidat.type == 1 %}
<strong>{{nom}} {{prenom}}</strong><br>
{{adresse}}<br>
{{zip}} {{ville}}<br>
{{tel}}
{% else %}
<strong>{{facture.inscription.candidat.organization.nom}}</strong><br>
Matricule Fiscale: {{facture.inscription.candidat.organization.matriculeFiscale}}<br>
{{facture.inscription.candidat.organization.telephone}}<br><br>
Participant(e): {{nom}} {{prenom}}
{% endif %}
</p>
</div>
</div>
<div class=\"invoice-details\">
<h2>FACTURE N° {{factureId}}</h2>
<p>Date: {{ date|date('d/m/Y') }}</p>
</div>
<table class=\"table table-bordered\">
<thead>
<tr>
<th>Désignation</th>
<th class=\"text-end\">P.U. HT</th>
<th class=\"text-end\">TVA (19%)</th>
<th class=\"text-end\">Timbre</th>
<th class=\"text-end\">Total TTC</th>
</tr>
</thead>
<tbody>
<tr>
<td>
Formation<br>
<small>{{session}} {{cycle}}</small>
</td>
<td class=\"text-end\">
{{ ((facture.montant - 1) * 100 / 119) | number_format(3, ',', ' ') }}
</td>
<td class=\"text-end\">
{{ (facture.montant - 1 - ((facture.montant - 1) * 100 / 119)) | number_format(3, ',', ' ') }}
</td>
<td class=\"text-end\">
{{ 1 | number_format(3, ',', ' ') }}
</td>
<td class=\"text-end\">
{{ (facture.montant + 1) | number_format(3, ',', ' ') }}
</td>
</tr>
</tbody>
<tfoot>
<tr>
<th colspan=\"4\" class=\"text-end\">Total HT</th>
<th class=\"text-end\">{{ ((facture.montant - 1) * 100 / 119) | number_format(3, ',', ' ') }}</th>
</tr>
<tr>
<th colspan=\"4\" class=\"text-end\">Total TVA</th>
<th class=\"text-end\">{{ (facture.montant - 1 - ((facture.montant - 1) * 100 / 119)) | number_format(3, ',', ' ') }}</th>
</tr>
<tr>
<th colspan=\"4\" class=\"text-end\">Timbre Fiscal</th>
<th class=\"text-end\">{{ 1 | number_format(3, ',', ' ') }}</th>
</tr>
<tr>
<th colspan=\"4\" class=\"text-end\">Total TTC</th>
<th class=\"text-end\">{{ (facture.montant + 1) | number_format(3, ',', ' ') }}</th>
</tr>
</tfoot>
</table>
<div class=\"amount-words\">
Arrêtée la présente facture à la somme de : {{ (facture.montant + 1) | amount_to_words }}
</div>
<div class=\"mt-5\">
<p class=\"text-end\">
Le Gérant<br><br><br>
____________________
</p>
</div>
</div>
</body>
</html>", "facturemail/facturcandidatmail.html.twig", "/home/iaatunisie/public_html/templates/facturemail/facturcandidatmail.html.twig");
}
}