var/cache/dev/twig/ce/ce90c567e6a0258cfb60d57bcfb29ff2.php line 45

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. /* hospital/show.html_1.twig */
  17. class __TwigTemplate_08db1e94c5a20b82fe98604c30bcaad4 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", "hospital/show.html_1.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", "hospital/show.html_1.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("Hospital", [], "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("Hospital", [], "messages");
  80. yield "</h1>
  81. <div class=\x27table-scrollable\x27>
  82. <table class=\" compact\" >
  83. <tbody>
  84. <tr>
  85. <th>";
  86. // line 13
  87. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Id", [], "messages");
  88. yield "</th>
  89. <td>";
  90. // line 14
  91. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["hospital"]) || array_key_exists("hospital", $context) ? $context["hospital"] : (function () { throw new RuntimeError('Variable "hospital" does not exist.', 14, $this->source); })()), "id", [], "any", false, false, false, 14), "html", null, true);
  92. yield "</td>
  93. </tr>
  94. <tr>
  95. <th>";
  96. // line 17
  97. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Name", [], "messages");
  98. yield "</th>
  99. <td>";
  100. // line 18
  101. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["hospital"]) || array_key_exists("hospital", $context) ? $context["hospital"] : (function () { throw new RuntimeError('Variable "hospital" does not exist.', 18, $this->source); })()), "name", [], "any", false, false, false, 18), "html", null, true);
  102. yield "</td>
  103. </tr>
  104. <tr>
  105. <th>";
  106. // line 21
  107. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Description", [], "messages");
  108. yield "</th>
  109. <td>";
  110. // line 22
  111. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["hospital"]) || array_key_exists("hospital", $context) ? $context["hospital"] : (function () { throw new RuntimeError('Variable "hospital" does not exist.', 22, $this->source); })()), "description", [], "any", false, false, false, 22), "html", null, true);
  112. yield "</td>
  113. </tr>
  114. <tr>
  115. <th>";
  116. // line 25
  117. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Category", [], "messages");
  118. yield "</th>
  119. <td>";
  120. // line 26
  121. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["hospital"]) || array_key_exists("hospital", $context) ? $context["hospital"] : (function () { throw new RuntimeError('Variable "hospital" does not exist.', 26, $this->source); })()), "hospitalCategory", [], "any", false, false, false, 26), "html", null, true);
  122. yield "</td>
  123. </tr>
  124. <tr>
  125. <th>";
  126. // line 30
  127. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Subdivision", [], "messages");
  128. yield "</th>
  129. <td><a href=\"";
  130. // line 31
  131. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("subdivision_show", ["id" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["hospital"]) || array_key_exists("hospital", $context) ? $context["hospital"] : (function () { throw new RuntimeError('Variable "hospital" does not exist.', 31, $this->source); })()), "municipality", [], "any", false, false, false, 31), "subdivision", [], "any", false, false, false, 31), "id", [], "any", false, false, false, 31)]), "html", null, true);
  132. yield "\" >";
  133. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["hospital"]) || array_key_exists("hospital", $context) ? $context["hospital"] : (function () { throw new RuntimeError('Variable "hospital" does not exist.', 31, $this->source); })()), "municipality", [], "any", false, false, false, 31), "html", null, true);
  134. yield " </a></td>
  135. </tr>
  136. <tr>
  137. <th>";
  138. // line 34
  139. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Contact", [], "messages");
  140. yield "</th>
  141. <td>";
  142. // line 35
  143. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["hospital"]) || array_key_exists("hospital", $context) ? $context["hospital"] : (function () { throw new RuntimeError('Variable "hospital" does not exist.', 35, $this->source); })()), "phoneNumber", [], "any", false, false, false, 35), "html", null, true);
  144. yield "</td>
  145. </tr>
  146. <tr>
  147. <th>";
  148. // line 39
  149. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("UpdateAt", [], "messages");
  150. yield "</th>
  151. <td>";
  152. // line 40
  153. yield (string) (((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["hospital"]) || array_key_exists("hospital", $context) ? $context["hospital"] : (function () { throw new RuntimeError('Variable "hospital" does not exist.', 40, $this->source); })()), "updateAt", [], "any", false, false, false, 40)) && $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, (isset($context["hospital"]) || array_key_exists("hospital", $context) ? $context["hospital"] : (function () { throw new RuntimeError('Variable "hospital" does not exist.', 40, $this->source); })()), "updateAt", [], "any", false, false, false, 40), "Y-m-d H:i:s"), "html", null, true)) : (""));
  154. yield "</td>
  155. </tr>
  156. </tbody>
  157. </table>
  158. <a href=\"";
  159. // line 45
  160. yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("hospital_index");
  161. yield "\">";
  162. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("back to list", [], "messages");
  163. yield "</a>
  164. ";
  165. // line 46
  166. if ((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_HABITECH")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  167. // line 47
  168. yield " <a href=\"";
  169. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("hospital_edit", ["id" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["hospital"]) || array_key_exists("hospital", $context) ? $context["hospital"] : (function () { throw new RuntimeError('Variable "hospital" does not exist.', 47, $this->source); })()), "id", [], "any", false, false, false, 47)]), "html", null, true);
  170. yield "\">";
  171. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("edit", [], "messages");
  172. yield "</a>
  173. ";
  174. }
  175. // line 49
  176. yield " ";
  177. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  178. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  179. yield from [];
  180. }
  181. /**
  182. * @codeCoverageIgnore
  183. */
  184. public function getTemplateName(): string
  185. {
  186. return "hospital/show.html_1.twig";
  187. }
  188. /**
  189. * @codeCoverageIgnore
  190. */
  191. public function isTraitable(): bool
  192. {
  193. return false;
  194. }
  195. /**
  196. * @codeCoverageIgnore
  197. */
  198. public function getDebugInfo(): array
  199. {
  200. return array ( 204 => 49, 196 => 47, 194 => 46, 188 => 45, 180 => 40, 176 => 39, 169 => 35, 165 => 34, 157 => 31, 153 => 30, 146 => 26, 142 => 25, 136 => 22, 132 => 21, 126 => 18, 122 => 17, 116 => 14, 112 => 13, 101 => 6, 88 => 5, 65 => 3, 42 => 1,);
  201. }
  202. public function getSourceContext(): Source
  203. {
  204. return new Source("{% extends \x27base.html.twig\x27 %}
  205. {% block title %}{% trans %}Hospital{% endtrans %}{% endblock %}
  206. {% block body %}
  207. <h1>{% trans %}Hospital{% endtrans %}</h1>
  208. <div class=\x27table-scrollable\x27>
  209. <table class=\" compact\" >
  210. <tbody>
  211. <tr>
  212. <th>{% trans %}Id{% endtrans %}</th>
  213. <td>{{ hospital.id }}</td>
  214. </tr>
  215. <tr>
  216. <th>{% trans %}Name{% endtrans %}</th>
  217. <td>{{ hospital.name }}</td>
  218. </tr>
  219. <tr>
  220. <th>{% trans %}Description{% endtrans %}</th>
  221. <td>{{ hospital.description }}</td>
  222. </tr>
  223. <tr>
  224. <th>{% trans %}Category{% endtrans %}</th>
  225. <td>{{ hospital.hospitalCategory }}</td>
  226. </tr>
  227. <tr>
  228. <th>{% trans %}Subdivision{% endtrans %}</th>
  229. <td><a href=\"{{ path(\x27subdivision_show\x27,{ \x27id\x27:hospital.municipality.subdivision.id }) }}\" >{{ hospital.municipality }} </a></td>
  230. </tr>
  231. <tr>
  232. <th>{% trans %}Contact{% endtrans %}</th>
  233. <td>{{ hospital.phoneNumber }}</td>
  234. </tr>
  235. <tr>
  236. <th>{% trans %}UpdateAt{% endtrans %}</th>
  237. <td>{{ hospital.updateAt ? hospital.updateAt|date(\x27Y-m-d H:i:s\x27) : \x27\x27 }}</td>
  238. </tr>
  239. </tbody>
  240. </table>
  241. <a href=\"{{ path(\x27hospital_index\x27) }}\">{% trans %}back to list{% endtrans %}</a>
  242. {% if is_granted(\x27ROLE_HABITECH\x27) %}
  243. <a href=\"{{ path(\x27hospital_edit\x27, {\x27id\x27: hospital.id}) }}\">{% trans %}edit{% endtrans %}</a>
  244. {% endif %}
  245. {#{ include(\x27hospital/_delete_form.html.twig\x27) }#}
  246. {% endblock %}
  247. ", "hospital/show.html_1.twig", "/var/www/vhosts/habitechsolutions.cm/birth.habitechsolutions.cm/templates/hospital/show.html_1.twig");
  248. }
  249. }