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.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.
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:| Column | Description |
|---|---|
| ID Cliente | Auto-generated numeric identifier |
| Nombre Completo | Full name of the guest |
| Teléfono | Contact phone number |
| Estado | Activo or Inactivo |
| Acción | Edit and Delete buttons |
Adding a New Client
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.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
ActivoorInactivo
Editing a Client
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}.Update the fields
Modify the Nombre Completo, Teléfono, and/or Estado as needed. All fields are pre-filled with the current values.
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. To preserve history while preventing new reservations, set the client’s Estado toInactivo using the edit form instead of deleting the record.
Client Statuses
| Status | Description |
|---|---|
Activo | Client is eligible to be selected when creating a new reservation |
Inactivo | Client is hidden from the reservation creation form |
Client–User Link
Theclientes 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.