{% extends 'admin/base.html.twig' %}
{% block title %}Room{% endblock %}
{% block body %}
<section class="mb-3 mb-lg-5">
<div class="card card-table mb-4">
<div class="card-header">
<div class="card-heading">
<span>Chambre N°{{ room.number}} </span>
<div style="float:right">
<a href="{{ path('app_room_edit', {'id': room.id}) }}">
<span class="badge rounded-pill me-2 p-2 bg-success">Modifier</span>
</a>
<a href="{{ path('app_room_index') }}">
<span class="badge rounded-pill me-2 p-2 bg-primary">Retour à la liste</span>
</a>
</div>
</div>
<div class="card-body">
<table class="table">
<tbody>
<tr>
<th>Id</th>
<td>{{ room.id }}</td>
</tr>
<tr>
<th>Nom</th>
<td>{{ room.name }}</td>
</tr>
<tr>
<th>Numéro de la chambre</th>
<td>{{ room.number }}</td>
</tr>
<tr>
<th>Déscription</th>
<td>{{ room.description }}</td>
</tr>
<tr>
<th>Nombre de personne</th>
<td>{{ room.nbrOfPerson }}</td>
</tr>
<tr>
<th>Date de création</th>
<td>{{ room.createdAt ? room.createdAt|date('Y-m-d H:i:s') : '' }}</td>
</tr>
<tr>
<th>Derniére Mise à jour</th>
<td>{{ room.updateAt ? room.updateAt|date('Y-m-d H:i:s') : '' }}</td>
</tr>
<tr>
<th>Active</th>
<td>{{ room.active ? 'Oui' : 'Non' }}</td>
</tr>
<tr>
<th>Type</th>
<td>{{ room.type }}</td>
</tr>
<tr>
<th>Nombre de lit simple</th>
<td>{{ room.nbrOfSimpleBed}}</td>
</tr>
<tr>
<th>Nombre de lit double</th>
<td>{{ room.nbrOfDoubleBed}}</td>
</tr>
</tbody>
</table>
</div>
</div>
</section>
{% endblock %}