Skip to main content

Documentation 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.

Clients are guest records — the people who stay at the hotel. Each client record stores a name, phone number, and an active/inactive status. Client records are separate from user accounts, though they can be linked to one.
Only Administrators can access the client management section. Attempting to access /views/clientes/clientes.php without an Administrator session redirects to the login page.

Viewing the Client List

Navigate from the dashboard to Clientes in the navigation bar. The page displays a table of all clients with the following columns:
ColumnDescription
ID ClienteAuto-generated numeric identifier
Nombre CompletoFull name of the guest
TeléfonoContact phone number
EstadoActivo or Inactivo
AcciónEdit and Delete buttons
Clients are ordered from newest to oldest by ID.

Adding a New Client

1

Click '+ Nuevo Cliente'

On the client list page, click the + Nuevo Cliente button in the top-right corner. This opens /views/clientes/nuevo_cliente.php.
2

Fill in the form

Complete the following fields:
  • Nombre Completo — Full name of the guest (required)
  • Teléfono — Contact phone number (required)
  • Estado del Cliente — Select Activo or Inactivo
3

Save the client

Click Guardar Cliente. The record is inserted into the clientes table and you are redirected to the client list with a success message.

Editing a Client

1

Click 'Editar' on the client row

In the client list, click the Editar button next to the client you want to update. This opens /views/clientes/editar_cliente.php?id={id}.
2

Update the fields

Modify the Nombre Completo, Teléfono, and/or Estado as needed. All fields are pre-filled with the current values.
3

Save changes

Click Actualizar Cliente. Changes are saved and you are returned to the client list.

Deactivating or Deleting a Client

To remove a client, click the Eliminar button on the client’s row. A confirmation modal appears before any deletion is performed.
Deleting a client also deletes all of their associated reservations due to the ON DELETE CASCADE constraint on the reservaciones table.
To preserve history while preventing new reservations, set the client’s Estado to Inactivo using the edit form instead of deleting the record.

Client Statuses

StatusDescription
ActivoClient is eligible to be selected when creating a new reservation
InactivoClient is hidden from the reservation creation form

The clientes table has an optional id_usuario foreign key. This links a client record to a user account, allowing a Client-role user to see only their own reservations. When a user self-registers, a client record is created automatically and linked to their account. Administrators can also link existing client records to user accounts manually by editing either record.

Build docs developers (and LLMs) love