The Rooms module lets you manage the physical rooms available at Hotel Guevarini. Administrators have full create, edit, and delete access. Clients can only view rooms with anDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/EmirPolito/CRUD-HOTEL-GUEVARINI-Publico/llms.txt
Use this file to discover all available pages before exploring further.
Available status.
Viewing Rooms
Navigate from the dashboard to Habitaciones. The page displays a table with the following columns:| Column | Description |
|---|---|
| Número | Unique room identifier (e.g., 101A) |
| Tipo | Room type (e.g., Sencilla, Doble, Suite) |
| Precio x Noche | Nightly price in decimal format |
| Estado | Current room status |
| Acción | Edit and Delete buttons (Administrators only) |
Disponible.
Room Types and Example Prices
The following rooms are included in the seed data:| Room Number | Type | Price / Night | Initial Status |
|---|---|---|---|
101A | Sencilla | $50.00 | Disponible |
105B | Doble | $85.00 | Ocupada |
201C | Suite | $150.00 | Mantenimiento |
302A | Doble | $85.00 | Disponible |
Adding a Room
Click '+ Añadir Habitación'
On the room list page, click + Añadir Habitación. This button is only visible to Administrators. It opens
/views/habitaciones/nueva_habitacion.php.Fill in the room details
Complete all required fields:
- Número — A unique room identifier such as
101Aor302B. The system rejects duplicates. - Tipo — Room category (e.g., Sencilla, Doble, Suite).
- Precio por noche ($) — Nightly rate as a decimal number greater than zero.
- Estado Inicial — Choose
Disponible,Ocupada, orMantenimiento.
Room numbers must be unique across the entire system. Attempting to save a room with a number that already exists will display an error and no record will be created.
Editing a Room
Click 'Editar' on the room row
In the room list, click Editar next to the room you want to update. This opens
/views/habitaciones/editar_habitacion.php?id={id}.Update the fields
Modify the Número, Tipo, Precio, and/or Estado as needed. All fields are pre-populated with the current values.
Deleting a Room
Click the Eliminar button on the room’s row. A confirmation modal appears before deletion is performed.Room Statuses
| Status | Description |
|---|---|
Disponible | Room is available and can be selected when creating a reservation |
Ocupada | Room is currently assigned to a reservation; hidden from the new-reservation room selector |
Mantenimiento | Room is under maintenance; hidden from the new-reservation room selector and from Client view |
Ocupada.