<?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;
/* child/index.html.twig */
class __TwigTemplate_800a0459926d56d67335c9de8d867eae 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", "child/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", "child/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("Child index", [], "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>";
// line 7
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Child index", [], "messages");
yield "</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("Child\x27s name", [], "messages");
yield "</th>
<th>";
// line 14
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Birth date", [], "messages");
yield "</th>
<th>";
// line 15
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Birth place", [], "messages");
yield "</th>
<th>";
// line 16
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Sex", [], "messages");
yield "</th>
<th>";
// line 17
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Father\x27s name", [], "messages");
yield "</th>
<th>";
// line 18
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Mother\x27s name", [], "messages");
yield "</th>
<th>";
// line 19
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Other Contact", [], "messages");
yield "</th>
<th>";
// line 20
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("actions", [], "messages");
yield "</th>
</tr>
</thead>
<tbody>
";
// line 24
if ((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_FULLY")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 25
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["children"]) || array_key_exists("children", $context) ? $context["children"] : (function () { throw new RuntimeError('Variable "children" does not exist.', 25, $this->source); })()));
$context['_iterated'] = false;
foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
// line 26
yield " ";
if (((((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_CEC")) && $tmp instanceof Markup ? (string) $tmp : $tmp) || (($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_SCEC")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) || (($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_CEC_OFFICER")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) || (($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_CEC_SECRETARY")) && $tmp instanceof Markup ? (string) $tmp : $tmp))) {
// line 27
yield "
";
// line 28
if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["child"], "hospital", [], "any", false, true, false, 28), "municipality", [], "any", true, true, false, 28)) {
// line 29
yield " ";
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["child"], "hospital", [], "any", false, false, false, 29), "municipality", [], "any", false, false, false, 29) == CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 29, $this->source); })()), "user", [], "any", false, false, false, 29), "municipality", [], "any", false, false, false, 29))) {
// line 30
yield "
<tr>
<td>";
// line 33
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["child"], "id", [], "any", false, false, false, 33), "html", null, true);
yield "</td>
<td>";
// line 34
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["child"], "nameOfTheChild", [], "any", false, false, false, 34), "html", null, true);
yield "</td>
<td>";
// line 35
yield (string) (((($tmp = CoreExtension::getAttribute($this->env, $this->source, $context["child"], "dateOfBirth", [], "any", false, false, false, 35)) && $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["child"], "dateOfBirth", [], "any", false, false, false, 35), "Y-m-d H:i:s"), "html", null, true)) : (""));
yield "</td>
<td>";
// line 36
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["child"], "placeOfBirth", [], "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["child"], "sex", [], "any", false, false, false, 37), "html", null, true);
yield "</td>
<td>";
// line 38
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["child"], "nameOfTheFather", [], "any", false, false, false, 38), "html", null, true);
yield "</td>
<td>";
// line 39
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["child"], "nameOfTheMother", [], "any", false, false, false, 39), "html", null, true);
yield "</td>
<td>";
// line 40
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["child"], "otherContact", [], "any", false, false, false, 40), "html", null, true);
yield "</td>
<td>
<a href=\"";
// line 42
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("child_show", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["child"], "id", [], "any", false, false, false, 42)]), "html", null, true);
yield "\">";
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("show", [], "messages");
yield "</a>
<a href=\"";
// line 43
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("child_edit", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["child"], "id", [], "any", false, false, false, 43)]), "html", null, true);
yield "\">";
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("edit", [], "messages");
yield "</a>
</td>
</tr>
";
}
// line 48
yield "
";
}
// line 50
yield " ";
}
// line 51
yield " ";
if ((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_HOSPITAL")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 52
yield "
";
// line 53
if ((CoreExtension::getAttribute($this->env, $this->source, $context["child"], "hospital", [], "any", false, false, false, 53) == CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 53, $this->source); })()), "user", [], "any", false, false, false, 53), "hospital", [], "any", false, false, false, 53))) {
// line 54
yield " <tr>
<td>";
// line 56
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["child"], "id", [], "any", false, false, false, 56), "html", null, true);
yield "</td>
<td>";
// line 57
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["child"], "nameOfTheChild", [], "any", false, false, false, 57), "html", null, true);
yield "</td>
<td>";
// line 58
yield (string) (((($tmp = CoreExtension::getAttribute($this->env, $this->source, $context["child"], "dateOfBirth", [], "any", false, false, false, 58)) && $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["child"], "dateOfBirth", [], "any", false, false, false, 58), "Y-m-d H:i:s"), "html", null, true)) : (""));
yield "</td>
<td>";
// line 59
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["child"], "placeOfBirth", [], "any", false, false, false, 59), "html", null, true);
yield "</td>
<td>";
// line 60
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["child"], "sex", [], "any", false, false, false, 60), "html", null, true);
yield "</td>
<td>";
// line 61
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["child"], "nameOfTheFather", [], "any", false, false, false, 61), "html", null, true);
yield "</td>
<td>";
// line 62
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["child"], "nameOfTheMother", [], "any", false, false, false, 62), "html", null, true);
yield "</td>
<td>";
// line 64
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["child"], "otherContact", [], "any", false, false, false, 64), "html", null, true);
yield "</td>
<td>
<a href=\"";
// line 66
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("child_show", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["child"], "id", [], "any", false, false, false, 66)]), "html", null, true);
yield "\" class=\"fa fa-eye\">";
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("show", [], "messages");
yield "</a>
<!--a href=\"";
// line 67
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("child_edit", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["child"], "id", [], "any", false, false, false, 67)]), "html", null, true);
yield "\">edit</a-->
</td>
</tr>
";
}
// line 72
yield " ";
}
// line 73
yield "
";
// line 75
if ((((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_PAYS")) && $tmp instanceof Markup ? (string) $tmp : $tmp) || (($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_REGION")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) || (($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_MIN")) && $tmp instanceof Markup ? (string) $tmp : $tmp))) {
// line 76
yield " <tr>
<td>";
// line 78
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["child"], "id", [], "any", false, false, false, 78), "html", null, true);
yield "</td>
<td>";
// line 79
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["child"], "nameOfTheChild", [], "any", false, false, false, 79), "html", null, true);
yield "</td>
<td>";
// line 80
yield (string) (((($tmp = CoreExtension::getAttribute($this->env, $this->source, $context["child"], "dateOfBirth", [], "any", false, false, false, 80)) && $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["child"], "dateOfBirth", [], "any", false, false, false, 80), "Y-m-d H:i:s"), "html", null, true)) : (""));
yield "</td>
<td>";
// line 81
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["child"], "placeOfBirth", [], "any", false, false, false, 81), "html", null, true);
yield "</td>
<td>";
// line 82
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["child"], "sex", [], "any", false, false, false, 82), "html", null, true);
yield "</td>
<td>";
// line 83
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["child"], "nameOfTheFather", [], "any", false, false, false, 83), "html", null, true);
yield "</td>
<td>";
// line 84
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["child"], "nameOfTheMother", [], "any", false, false, false, 84), "html", null, true);
yield "</td>
<td>";
// line 86
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["child"], "otherContact", [], "any", false, false, false, 86), "html", null, true);
yield "</td>
<td>
<a href=\"";
// line 88
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("child_show", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["child"], "id", [], "any", false, false, false, 88)]), "html", null, true);
yield "\">";
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("show", [], "messages");
yield "</a>
<a href=\"";
// line 89
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("child_edit", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["child"], "id", [], "any", false, false, false, 89)]), "html", null, true);
yield "\">";
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("edit", [], "messages");
yield "</a>
</td>
</tr>
";
}
// line 95
yield "
";
$context['_iterated'] = true;
}
// line 96
if (!$context['_iterated']) {
// line 97
yield " <tr>
<td colspan=\"22\">";
// line 98
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['child'], $context['_parent'], $context['_iterated']);
$context = array_intersect_key($context, $_parent);
$context += $_parent;
// line 101
yield " ";
}
// line 102
yield " </tbody>
</table>
</div>
<a href=\"";
// line 105
yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("child_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 "child/index.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 383 => 105, 378 => 102, 375 => 101, 365 => 98, 362 => 97, 360 => 96, 355 => 95, 344 => 89, 338 => 88, 333 => 86, 328 => 84, 324 => 83, 320 => 82, 316 => 81, 312 => 80, 308 => 79, 304 => 78, 300 => 76, 298 => 75, 294 => 73, 291 => 72, 283 => 67, 277 => 66, 272 => 64, 267 => 62, 263 => 61, 259 => 60, 255 => 59, 251 => 58, 247 => 57, 243 => 56, 239 => 54, 237 => 53, 234 => 52, 231 => 51, 228 => 50, 224 => 48, 214 => 43, 208 => 42, 203 => 40, 199 => 39, 195 => 38, 191 => 37, 187 => 36, 183 => 35, 179 => 34, 175 => 33, 170 => 30, 167 => 29, 165 => 28, 162 => 27, 159 => 26, 153 => 25, 151 => 24, 144 => 20, 140 => 19, 136 => 18, 132 => 17, 128 => 16, 124 => 15, 120 => 14, 116 => 13, 112 => 12, 104 => 7, 101 => 6, 88 => 5, 65 => 3, 42 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends \x27base.html.twig\x27 %}
{% block title %}{% trans %}Child index{%endtrans%}{% endblock %}
{% block body %}
<h1>{% trans %}Child index{% endtrans %}</h1>
<div class=\"table-scrollable\">
<table>
<thead>
<tr>
<th>{% trans %}Id{% endtrans %}</th>
<th>{% trans %}Child\x27s name{% endtrans %}</th>
<th>{% trans %}Birth date{% endtrans %}</th>
<th>{% trans %}Birth place{% endtrans %}</th>
<th>{% trans %}Sex{% endtrans %}</th>
<th>{% trans %}Father\x27s name{% endtrans %}</th>
<th>{% trans %}Mother\x27s name{% endtrans %}</th>
<th>{% trans %}Other Contact{% endtrans %}</th>
<th>{% trans %}actions{% endtrans %}</th>
</tr>
</thead>
<tbody>
{% if is_granted(\x27IS_AUTHENTICATED_FULLY\x27) %}
{% for child in children %}
{% if is_granted(\x27ROLE_CEC\x27) or is_granted(\x27ROLE_SCEC\x27) or is_granted(\x27ROLE_CEC_OFFICER\x27) or is_granted(\x27ROLE_CEC_SECRETARY\x27) %}
{% if (child.hospital.municipality is defined) %}
{% if child.hospital.municipality == app.user.municipality %}
<tr>
<td>{{ child.id }}</td>
<td>{{ child.nameOfTheChild }}</td>
<td>{{ child.dateOfBirth ? child.dateOfBirth|date(\x27Y-m-d H:i:s\x27) : \x27\x27 }}</td>
<td>{{ child.placeOfBirth }}</td>
<td>{{ child.sex }}</td>
<td>{{ child.nameOfTheFather }}</td>
<td>{{ child.nameOfTheMother }}</td>
<td>{{ child.otherContact }}</td>
<td>
<a href=\"{{ path(\x27child_show\x27, {\x27id\x27: child.id}) }}\">{% trans %}show{% endtrans %}</a>
<a href=\"{{ path(\x27child_edit\x27, {\x27id\x27: child.id}) }}\">{% trans %}edit{% endtrans %}</a>
</td>
</tr>
{% endif %}
{% endif %}
{% endif %}
{% if is_granted(\x27ROLE_HOSPITAL\x27) %}
{% if child.hospital == app.user.hospital %}
<tr>
<td>{{ child.id }}</td>
<td>{{ child.nameOfTheChild }}</td>
<td>{{ child.dateOfBirth ? child.dateOfBirth|date(\x27Y-m-d H:i:s\x27) : \x27\x27 }}</td>
<td>{{ child.placeOfBirth }}</td>
<td>{{ child.sex }}</td>
<td>{{ child.nameOfTheFather }}</td>
<td>{{ child.nameOfTheMother }}</td>
<td>{{ child.otherContact }}</td>
<td>
<a href=\"{{ path(\x27child_show\x27, {\x27id\x27: child.id}) }}\" class=\"fa fa-eye\">{% trans %}show{% endtrans %}</a>
<!--a href=\"{{ path(\x27child_edit\x27, {\x27id\x27: child.id}) }}\">edit</a-->
</td>
</tr>
{% endif %}
{% endif %}
{% if is_granted(\x27ROLE_PAYS\x27) or is_granted(\x27ROLE_REGION\x27) or is_granted(\x27ROLE_MIN\x27) %}
<tr>
<td>{{ child.id }}</td>
<td>{{ child.nameOfTheChild }}</td>
<td>{{ child.dateOfBirth ? child.dateOfBirth|date(\x27Y-m-d H:i:s\x27) : \x27\x27 }}</td>
<td>{{ child.placeOfBirth }}</td>
<td>{{ child.sex }}</td>
<td>{{ child.nameOfTheFather }}</td>
<td>{{ child.nameOfTheMother }}</td>
<td>{{ child.otherContact }}</td>
<td>
<a href=\"{{ path(\x27child_show\x27, {\x27id\x27: child.id}) }}\">{% trans %}show{% endtrans %}</a>
<a href=\"{{ path(\x27child_edit\x27, {\x27id\x27: child.id}) }}\">{% trans %}edit{% endtrans %}</a>
</td>
</tr>
{% endif %}
{% else %}
<tr>
<td colspan=\"22\">{% trans %} no records found{% endtrans %}</td>
</tr>
{% endfor %}
{% endif %}
</tbody>
</table>
</div>
<a href=\"{{ path(\x27child_new\x27) }}\">{% trans %} Create new {% endtrans %}</a>
{% endblock %}
", "child/index.html.twig", "/var/www/vhosts/habitechsolutions.cm/birth.habitechsolutions.cm/templates/child/index.html.twig");
}
}