{% extends 'base.html.twig' %}
{% block title %}{% trans %}Hospital{% endtrans %}{% endblock %}
{% block body %}
<h1>{% trans %}Hospital{% endtrans %}</h1>
<div class='table-scrollable'>
<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('subdivision_show',{ 'id':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('Y-m-d H:i:s') : '' }}</td>
</tr>
</tbody>
</table>
<a href="{{ path('hospital_index') }}">{% trans %}back to list{% endtrans %}</a>
{% if is_granted('ROLE_HABITECH') %}
<a href="{{ path('hospital_edit', {'id': hospital.id}) }}">{% trans %}edit{% endtrans %}</a>
{% endif %}
{#{ include('hospital/_delete_form.html.twig') }#}
{% endblock %}