<?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\Sandbox\SecurityNotAllowedTestError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;
/* marriage_certificate/index.html.twig */
class __TwigTemplate_c08067657cbad5a2604744638db77b0b 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->blocks = [
'title' => [$this, 'block_title'],
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return "base.html.twig";
}
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", "marriage_certificate/index.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "marriage_certificate/index.html.twig"));
$this->parent = $this->load("base.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_title(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(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
yield "MarriageCertificate index";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 5
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_body(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(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 6
yield " <h1>MarriageCertificate index</h1>
<div class=\"table-scrollable\">
<table >
<thead>
<tr>
<th>";
// line 12
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Id", [], "messages");
yield " </th>
<th>";
// line 13
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("UpdateAt", [], "messages");
yield " </th>
<th>";
// line 14
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("FirstSpouseName", [], "messages");
yield " </th>
<th>";
// line 15
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("FirstSpouseFather", [], "messages");
yield " </th>
<th>";
// line 16
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("FirstSpouseMother", [], "messages");
yield " </th>
<th>";
// line 18
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("actions", [], "messages");
yield " </th>
</tr>
</thead>
<tbody>
";
// line 22
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["marriage_certificates"]) || array_key_exists("marriage_certificates", $context) ? $context["marriage_certificates"] : (function () { throw new RuntimeError('Variable "marriage_certificates" does not exist.', 22, $this->source); })()));
$context['_iterated'] = false;
foreach ($context['_seq'] as $context["_key"] => $context["marriage_certificate"]) {
// line 23
yield " <tr>
<td>";
// line 24
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["marriage_certificate"], "id", [], "any", false, false, false, 24), "html", null, true);
yield "</td>
<td>";
// line 25
yield (string) (((($tmp = CoreExtension::getAttribute($this->env, $this->source, $context["marriage_certificate"], "updateAt", [], "any", false, false, false, 25)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["marriage_certificate"], "updateAt", [], "any", false, false, false, 25), "Y-m-d H:i:s"), "html", null, true)) : (""));
yield "</td>
<td>";
// line 26
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["marriage_certificate"], "firstSpouseName", [], "any", false, false, false, 26), "html", null, true);
yield "</td>
<td>";
// line 27
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["marriage_certificate"], "firstSpouseFather", [], "any", false, false, false, 27), "html", null, true);
yield "</td>
<td>";
// line 28
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["marriage_certificate"], "firstSpouseMother", [], "any", false, false, false, 28), "html", null, true);
yield "</td>
<td>
<a href=\"";
// line 31
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("marriage_certificate_show", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["marriage_certificate"], "id", [], "any", false, false, false, 31)]), "html", null, true);
yield "\">";
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("show", [], "messages");
yield "</a>
<a href=\"";
// line 32
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("marriage_certificate_edit", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["marriage_certificate"], "id", [], "any", false, false, false, 32)]), "html", null, true);
yield "\">";
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("edit", [], "messages");
yield "</a>
</td>
</tr>
";
$context['_iterated'] = true;
}
// line 35
if (!$context['_iterated']) {
// line 36
yield " <tr>
<td colspan=\"7\">";
// line 37
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("no records found", [], "messages");
yield "</td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['marriage_certificate'], $context['_parent'], $context['_iterated']);
$context = array_intersect_key($context, $_parent);
$context += $_parent;
// line 40
yield " </tbody>
</table>
</div>
<a href=\"";
// line 43
yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("marriage_certificate_new");
yield "\">";
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Create new", [], "messages");
yield "</a>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "marriage_certificate/index.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 203 => 43, 198 => 40, 188 => 37, 185 => 36, 183 => 35, 173 => 32, 167 => 31, 161 => 28, 157 => 27, 153 => 26, 149 => 25, 145 => 24, 142 => 23, 137 => 22, 130 => 18, 125 => 16, 121 => 15, 117 => 14, 113 => 13, 109 => 12, 101 => 6, 88 => 5, 65 => 3, 42 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends \x27base.html.twig\x27 %}
{% block title %}MarriageCertificate index{% endblock %}
{% block body %}
<h1>MarriageCertificate index</h1>
<div class=\"table-scrollable\">
<table >
<thead>
<tr>
<th>{% trans %}Id{% endtrans %} </th>
<th>{% trans %}UpdateAt{% endtrans %} </th>
<th>{% trans %}FirstSpouseName{% endtrans %} </th>
<th>{% trans %}FirstSpouseFather{% endtrans %} </th>
<th>{% trans %}FirstSpouseMother{% endtrans %} </th>
<th>{% trans %}actions{% endtrans %} </th>
</tr>
</thead>
<tbody>
{% for marriage_certificate in marriage_certificates %}
<tr>
<td>{{ marriage_certificate.id }}</td>
<td>{{ marriage_certificate.updateAt ? marriage_certificate.updateAt|date(\x27Y-m-d H:i:s\x27) : \x27\x27 }}</td>
<td>{{ marriage_certificate.firstSpouseName }}</td>
<td>{{ marriage_certificate.firstSpouseFather }}</td>
<td>{{ marriage_certificate.firstSpouseMother }}</td>
<td>
<a href=\"{{ path(\x27marriage_certificate_show\x27, {\x27id\x27: marriage_certificate.id}) }}\">{% trans %}show{% endtrans %}</a>
<a href=\"{{ path(\x27marriage_certificate_edit\x27, {\x27id\x27: marriage_certificate.id}) }}\">{% trans %}edit{% endtrans %}</a>
</td>
</tr>
{% else %}
<tr>
<td colspan=\"7\">{% trans %}no records found{% endtrans %}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
<a href=\"{{ path(\x27marriage_certificate_new\x27) }}\">{% trans %}Create new{% endtrans %}</a>
{% endblock %}
", "marriage_certificate/index.html.twig", "/var/www/vhosts/habitechsolutions.cm/birth.habitechsolutions.cm/templates/marriage_certificate/index.html.twig");
}
}