var/cache/dev/twig/8a/8a5a23dbb1e7f34aaeca06915b9a6710.php line 55

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Sandbox\SecurityNotAllowedTestError;
  13. use Twig\Source;
  14. use Twig\Template;
  15. use Twig\TemplateWrapper;
  16. /* death_certificate/index.html.twig */
  17. class __TwigTemplate_503853ccadd905aad4a996deba2f600f extends Template
  18. {
  19. private Source $source;
  20. /**
  21. * @var array<string, Template>
  22. */
  23. private array $macros = [];
  24. public function __construct(Environment $env)
  25. {
  26. parent::__construct($env);
  27. $this->source = $this->getSourceContext();
  28. $this->blocks = [
  29. 'title' => [$this, 'block_title'],
  30. 'body' => [$this, 'block_body'],
  31. ];
  32. }
  33. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  34. {
  35. // line 1
  36. return "base.html.twig";
  37. }
  38. protected function doDisplay(array $context, array $blocks = []): iterable
  39. {
  40. $macros = $this->macros;
  41. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  42. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "death_certificate/index.html.twig"));
  43. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  44. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "death_certificate/index.html.twig"));
  45. $this->parent = $this->load("base.html.twig", 1);
  46. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  47. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  49. }
  50. // line 3
  51. /**
  52. * @return iterable<null|scalar|\Stringable>
  53. */
  54. public function block_title(array $context, array $blocks = []): iterable
  55. {
  56. $macros = $this->macros;
  57. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  58. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  59. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  60. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  61. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("DeathCertificate", [], "messages");
  62. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  63. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  64. yield from [];
  65. }
  66. // line 5
  67. /**
  68. * @return iterable<null|scalar|\Stringable>
  69. */
  70. public function block_body(array $context, array $blocks = []): iterable
  71. {
  72. $macros = $this->macros;
  73. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  74. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  75. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  76. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  77. // line 6
  78. yield " <h1>";
  79. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("DeathCertificate index", [], "messages");
  80. yield "</h1>
  81. <div class=\x27table-scrollable\x27>
  82. <table class=\"\">
  83. <thead>
  84. <tr>
  85. <th>";
  86. // line 15
  87. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Id", [], "messages");
  88. yield "</th>
  89. <th>";
  90. // line 16
  91. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("NameOfTheDeadPerson", [], "messages");
  92. yield "</th>
  93. <th>";
  94. // line 17
  95. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("SurnameOfTheDeadPerson", [], "messages");
  96. yield "</th>
  97. <th>";
  98. // line 18
  99. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("DateOfBirth", [], "messages");
  100. yield "</th>
  101. <th>";
  102. // line 19
  103. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Sex", [], "messages");
  104. yield "</th>
  105. <th>";
  106. // line 21
  107. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("MaritalStatus", [], "messages");
  108. yield "</th>
  109. <th>";
  110. // line 22
  111. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Profession", [], "messages");
  112. yield "</th>
  113. <th>";
  114. // line 23
  115. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("PlaceOfResidence", [], "messages");
  116. yield "</th>
  117. <th>";
  118. // line 24
  119. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Action", [], "messages");
  120. yield "</th>
  121. </tr>
  122. </thead>
  123. <tbody>
  124. ";
  125. // line 33
  126. $context['_parent'] = $context;
  127. $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); })()));
  128. $context['_iterated'] = false;
  129. foreach ($context['_seq'] as $context["_key"] => $context["death_certificate"]) {
  130. // line 34
  131. yield " <tr>
  132. <td>";
  133. // line 35
  134. 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);
  135. yield "</td>
  136. <td>";
  137. // line 36
  138. 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);
  139. yield "</td>
  140. <td>";
  141. // line 37
  142. 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);
  143. yield "</td>
  144. <td>";
  145. // line 38
  146. 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)) : (""));
  147. yield "</td>
  148. <td>";
  149. // line 39
  150. 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);
  151. yield "</td>
  152. <td>";
  153. // line 41
  154. 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);
  155. yield "</td>
  156. <td>";
  157. // line 42
  158. 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);
  159. yield "</td>
  160. <td>";
  161. // line 43
  162. 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);
  163. yield "</td>
  164. <td>
  165. <a href=\"";
  166. // line 45
  167. 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);
  168. yield "\">";
  169. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("show", [], "messages");
  170. yield "</a>
  171. <a href=\"";
  172. // line 46
  173. 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);
  174. yield "\">";
  175. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("edit", [], "messages");
  176. yield "</a>
  177. </td>
  178. </tr>
  179. ";
  180. $context['_iterated'] = true;
  181. }
  182. // line 49
  183. if (!$context['_iterated']) {
  184. // line 50
  185. yield " <tr>
  186. <td colspan=\"9\">";
  187. // line 51
  188. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("no records found", [], "messages");
  189. yield "</td>
  190. </tr>
  191. ";
  192. }
  193. $_parent = $context['_parent'];
  194. unset($context['_seq'], $context['_key'], $context['death_certificate'], $context['_parent'], $context['_iterated']);
  195. $context = array_intersect_key($context, $_parent);
  196. $context += $_parent;
  197. // line 54
  198. yield " </tbody>
  199. </table>
  200. </div>
  201. <a href=\"";
  202. // line 58
  203. yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("death_certificate_new");
  204. yield "\">";
  205. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Create new", [], "messages");
  206. yield "</a>
  207. ";
  208. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  209. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  210. yield from [];
  211. }
  212. /**
  213. * @codeCoverageIgnore
  214. */
  215. public function getTemplateName(): string
  216. {
  217. return "death_certificate/index.html.twig";
  218. }
  219. /**
  220. * @codeCoverageIgnore
  221. */
  222. public function isTraitable(): bool
  223. {
  224. return false;
  225. }
  226. /**
  227. * @codeCoverageIgnore
  228. */
  229. public function getDebugInfo(): array
  230. {
  231. 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,);
  232. }
  233. public function getSourceContext(): Source
  234. {
  235. return new Source("{% extends \x27base.html.twig\x27 %}
  236. {% block title %}{% trans%}DeathCertificate {% endtrans %}{% endblock %}
  237. {% block body %}
  238. <h1>{% trans %}DeathCertificate index{% endtrans %}</h1>
  239. <div class=\x27table-scrollable\x27>
  240. <table class=\"\">
  241. <thead>
  242. <tr>
  243. <th>{% trans %}Id{% endtrans %}</th>
  244. <th>{% trans %}NameOfTheDeadPerson{% endtrans %}</th>
  245. <th>{% trans %}SurnameOfTheDeadPerson{% endtrans %}</th>
  246. <th>{% trans %}DateOfBirth{% endtrans %}</th>
  247. <th>{% trans %}Sex{% endtrans %}</th>
  248. <th>{% trans %}MaritalStatus{% endtrans %}</th>
  249. <th>{% trans %}Profession{% endtrans %}</th>
  250. <th>{% trans %}PlaceOfResidence{% endtrans %}</th>
  251. <th>{% trans %}Action{% endtrans %}</th>
  252. </tr>
  253. </thead>
  254. <tbody>
  255. {% for death_certificate in death_certificates %}
  256. <tr>
  257. <td>{{ death_certificate.id }}</td>
  258. <td>{{ death_certificate.nameOfTheDeadPerson }}</td>
  259. <td>{{ death_certificate.surnameOfTheDeadPerson }}</td>
  260. <td>{{ death_certificate.dateOfBirth ? death_certificate.dateOfBirth|date(\x27Y-m-d H:i:s\x27) : \x27\x27 }}</td>
  261. <td>{{ death_certificate.sex }}</td>
  262. <td>{{ death_certificate.maritalStatus }}</td>
  263. <td>{{ death_certificate.profession }}</td>
  264. <td>{{ death_certificate.placeOfResidence }}</td>
  265. <td>
  266. <a href=\"{{ path(\x27death_certificate_show\x27, {\x27id\x27: death_certificate.id}) }}\">{% trans %}show{% endtrans %}</a>
  267. <a href=\"{{ path(\x27death_certificate_edit\x27, {\x27id\x27: death_certificate.id}) }}\">{% trans %}edit{% endtrans %}</a>
  268. </td>
  269. </tr>
  270. {% else %}
  271. <tr>
  272. <td colspan=\"9\">{% trans %} no records found{% endtrans %}</td>
  273. </tr>
  274. {% endfor %}
  275. </tbody>
  276. </table>
  277. </div>
  278. <a href=\"{{ path(\x27death_certificate_new\x27) }}\">{% trans %} Create new {% endtrans %}</a>
  279. {% endblock %}
  280. ", "death_certificate/index.html.twig", "/var/www/vhosts/habitechsolutions.cm/birth.habitechsolutions.cm/templates/death_certificate/index.html.twig");
  281. }
  282. }