<?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;
/* hospital/show.html_1.twig */
class __TwigTemplate_08db1e94c5a20b82fe98604c30bcaad4 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", "hospital/show.html_1.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "hospital/show.html_1.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("Hospital", [], "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("Hospital", [], "messages");
yield "</h1>
<div class=\x27table-scrollable\x27>
<table class=\" compact\" >
<tbody>
<tr>
<th>";
// line 13
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Id", [], "messages");
yield "</th>
<td>";
// line 14
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);
yield "</td>
</tr>
<tr>
<th>";
// line 17
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Name", [], "messages");
yield "</th>
<td>";
// line 18
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);
yield "</td>
</tr>
<tr>
<th>";
// line 21
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Description", [], "messages");
yield "</th>
<td>";
// line 22
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);
yield "</td>
</tr>
<tr>
<th>";
// line 25
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Category", [], "messages");
yield "</th>
<td>";
// line 26
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);
yield "</td>
</tr>
<tr>
<th>";
// line 30
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Subdivision", [], "messages");
yield "</th>
<td><a href=\"";
// line 31
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);
yield "\" >";
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);
yield " </a></td>
</tr>
<tr>
<th>";
// line 34
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Contact", [], "messages");
yield "</th>
<td>";
// line 35
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);
yield "</td>
</tr>
<tr>
<th>";
// line 39
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("UpdateAt", [], "messages");
yield "</th>
<td>";
// line 40
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)) : (""));
yield "</td>
</tr>
</tbody>
</table>
<a href=\"";
// line 45
yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("hospital_index");
yield "\">";
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("back to list", [], "messages");
yield "</a>
";
// line 46
if ((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_HABITECH")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 47
yield " <a href=\"";
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);
yield "\">";
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("edit", [], "messages");
yield "</a>
";
}
// line 49
yield " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "hospital/show.html_1.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
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,);
}
public function getSourceContext(): Source
{
return new Source("{% extends \x27base.html.twig\x27 %}
{% block title %}{% trans %}Hospital{% endtrans %}{% endblock %}
{% block body %}
<h1>{% trans %}Hospital{% endtrans %}</h1>
<div class=\x27table-scrollable\x27>
<table class=\" compact\" >
<tbody>
<tr>
<th>{% trans %}Id{% endtrans %}</th>
<td>{{ hospital.id }}</td>
</tr>
<tr>
<th>{% trans %}Name{% endtrans %}</th>
<td>{{ hospital.name }}</td>
</tr>
<tr>
<th>{% trans %}Description{% endtrans %}</th>
<td>{{ hospital.description }}</td>
</tr>
<tr>
<th>{% trans %}Category{% endtrans %}</th>
<td>{{ hospital.hospitalCategory }}</td>
</tr>
<tr>
<th>{% trans %}Subdivision{% endtrans %}</th>
<td><a href=\"{{ path(\x27subdivision_show\x27,{ \x27id\x27:hospital.municipality.subdivision.id }) }}\" >{{ hospital.municipality }} </a></td>
</tr>
<tr>
<th>{% trans %}Contact{% endtrans %}</th>
<td>{{ hospital.phoneNumber }}</td>
</tr>
<tr>
<th>{% trans %}UpdateAt{% endtrans %}</th>
<td>{{ hospital.updateAt ? hospital.updateAt|date(\x27Y-m-d H:i:s\x27) : \x27\x27 }}</td>
</tr>
</tbody>
</table>
<a href=\"{{ path(\x27hospital_index\x27) }}\">{% trans %}back to list{% endtrans %}</a>
{% if is_granted(\x27ROLE_HABITECH\x27) %}
<a href=\"{{ path(\x27hospital_edit\x27, {\x27id\x27: hospital.id}) }}\">{% trans %}edit{% endtrans %}</a>
{% endif %}
{#{ include(\x27hospital/_delete_form.html.twig\x27) }#}
{% endblock %}
", "hospital/show.html_1.twig", "/var/www/vhosts/habitechsolutions.cm/birth.habitechsolutions.cm/templates/hospital/show.html_1.twig");
}
}