<?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;
/* death_certificate/index.html.twig */
class __TwigTemplate_503853ccadd905aad4a996deba2f600f 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", "death_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", "death_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 $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("DeathCertificate", [], "messages");
$__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>";
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("DeathCertificate index", [], "messages");
yield "</h1>
<div class=\x27table-scrollable\x27>
<table class=\"\">
<thead>
<tr>
<th>";
// line 15
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Id", [], "messages");
yield "</th>
<th>";
// line 16
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("NameOfTheDeadPerson", [], "messages");
yield "</th>
<th>";
// line 17
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("SurnameOfTheDeadPerson", [], "messages");
yield "</th>
<th>";
// line 18
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("DateOfBirth", [], "messages");
yield "</th>
<th>";
// line 19
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Sex", [], "messages");
yield "</th>
<th>";
// line 21
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("MaritalStatus", [], "messages");
yield "</th>
<th>";
// line 22
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Profession", [], "messages");
yield "</th>
<th>";
// line 23
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("PlaceOfResidence", [], "messages");
yield "</th>
<th>";
// line 24
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Action", [], "messages");
yield "</th>
</tr>
</thead>
<tbody>
";
// line 33
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["death_certificates"]) || array_key_exists("death_certificates", $context) ? $context["death_certificates"] : (function () { throw new RuntimeError('Variable "death_certificates" does not exist.', 33, $this->source); })()));
$context['_iterated'] = false;
foreach ($context['_seq'] as $context["_key"] => $context["death_certificate"]) {
// line 34
yield " <tr>
<td>";
// line 35
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["death_certificate"], "id", [], "any", false, false, false, 35), "html", null, true);
yield "</td>
<td>";
// line 36
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["death_certificate"], "nameOfTheDeadPerson", [], "any", false, false, false, 36), "html", null, true);
yield "</td>
<td>";
// line 37
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["death_certificate"], "surnameOfTheDeadPerson", [], "any", false, false, false, 37), "html", null, true);
yield "</td>
<td>";
// line 38
yield (string) (((($tmp = CoreExtension::getAttribute($this->env, $this->source, $context["death_certificate"], "dateOfBirth", [], "any", false, false, false, 38)) && $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["death_certificate"], "dateOfBirth", [], "any", false, false, false, 38), "Y-m-d H:i:s"), "html", null, true)) : (""));
yield "</td>
<td>";
// line 39
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["death_certificate"], "sex", [], "any", false, false, false, 39), "html", null, true);
yield "</td>
<td>";
// line 41
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["death_certificate"], "maritalStatus", [], "any", false, false, false, 41), "html", null, true);
yield "</td>
<td>";
// line 42
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["death_certificate"], "profession", [], "any", false, false, false, 42), "html", null, true);
yield "</td>
<td>";
// line 43
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["death_certificate"], "placeOfResidence", [], "any", false, false, false, 43), "html", null, true);
yield "</td>
<td>
<a href=\"";
// line 45
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("death_certificate_show", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["death_certificate"], "id", [], "any", false, false, false, 45)]), "html", null, true);
yield "\">";
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("show", [], "messages");
yield "</a>
<a href=\"";
// line 46
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("death_certificate_edit", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["death_certificate"], "id", [], "any", false, false, false, 46)]), "html", null, true);
yield "\">";
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("edit", [], "messages");
yield "</a>
</td>
</tr>
";
$context['_iterated'] = true;
}
// line 49
if (!$context['_iterated']) {
// line 50
yield " <tr>
<td colspan=\"9\">";
// line 51
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['death_certificate'], $context['_parent'], $context['_iterated']);
$context = array_intersect_key($context, $_parent);
$context += $_parent;
// line 54
yield " </tbody>
</table>
</div>
<a href=\"";
// line 58
yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("death_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 "death_certificate/index.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 238 => 58, 232 => 54, 222 => 51, 219 => 50, 217 => 49, 207 => 46, 201 => 45, 196 => 43, 192 => 42, 188 => 41, 183 => 39, 179 => 38, 175 => 37, 171 => 36, 167 => 35, 164 => 34, 159 => 33, 147 => 24, 143 => 23, 139 => 22, 135 => 21, 130 => 19, 126 => 18, 122 => 17, 118 => 16, 114 => 15, 101 => 6, 88 => 5, 65 => 3, 42 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends \x27base.html.twig\x27 %}
{% block title %}{% trans%}DeathCertificate {% endtrans %}{% endblock %}
{% block body %}
<h1>{% trans %}DeathCertificate index{% endtrans %}</h1>
<div class=\x27table-scrollable\x27>
<table class=\"\">
<thead>
<tr>
<th>{% trans %}Id{% endtrans %}</th>
<th>{% trans %}NameOfTheDeadPerson{% endtrans %}</th>
<th>{% trans %}SurnameOfTheDeadPerson{% endtrans %}</th>
<th>{% trans %}DateOfBirth{% endtrans %}</th>
<th>{% trans %}Sex{% endtrans %}</th>
<th>{% trans %}MaritalStatus{% endtrans %}</th>
<th>{% trans %}Profession{% endtrans %}</th>
<th>{% trans %}PlaceOfResidence{% endtrans %}</th>
<th>{% trans %}Action{% endtrans %}</th>
</tr>
</thead>
<tbody>
{% for death_certificate in death_certificates %}
<tr>
<td>{{ death_certificate.id }}</td>
<td>{{ death_certificate.nameOfTheDeadPerson }}</td>
<td>{{ death_certificate.surnameOfTheDeadPerson }}</td>
<td>{{ death_certificate.dateOfBirth ? death_certificate.dateOfBirth|date(\x27Y-m-d H:i:s\x27) : \x27\x27 }}</td>
<td>{{ death_certificate.sex }}</td>
<td>{{ death_certificate.maritalStatus }}</td>
<td>{{ death_certificate.profession }}</td>
<td>{{ death_certificate.placeOfResidence }}</td>
<td>
<a href=\"{{ path(\x27death_certificate_show\x27, {\x27id\x27: death_certificate.id}) }}\">{% trans %}show{% endtrans %}</a>
<a href=\"{{ path(\x27death_certificate_edit\x27, {\x27id\x27: death_certificate.id}) }}\">{% trans %}edit{% endtrans %}</a>
</td>
</tr>
{% else %}
<tr>
<td colspan=\"9\">{% trans %} no records found{% endtrans %}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
<a href=\"{{ path(\x27death_certificate_new\x27) }}\">{% trans %} Create new {% endtrans %}</a>
{% endblock %}
", "death_certificate/index.html.twig", "/var/www/vhosts/habitechsolutions.cm/birth.habitechsolutions.cm/templates/death_certificate/index.html.twig");
}
}