Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/OswalSnow/AR-Barber/llms.txt

Use this file to discover all available pages before exploring further.

AR Barbería provides three core services — a haircut, a beard trim, and a combined option — each with a fixed duration that determines which time slots are available during booking. The /servicios page acts as the public-facing portfolio for the barbershop, showing work samples organized by barber in a tabbed gallery layout.

Services

Each service maps to an internal identifier used throughout the booking system, from the form dropdown to the availability API’s duration parameter.

Corte

Standard haircut. Duration: 30 minutes. Uses service code corte.

Barba

Beard trim and shaping. Duration: 30 minutes. Uses service code barba.

Ambos

Haircut plus beard trim in a single session. Duration: 60 minutes. Uses service code ambos.
The duration affects slot availability directly. When a customer selects ambos, the availability API is queried with ?duration=60, which filters out any 30-minute gaps that could not accommodate the longer session:
GET /api/disponibilidad/{user_id}/{fecha}?duration=60
For corte and barba, the API is called with ?duration=30 (the default). The /servicios page displays a portfolio of past work from every barber at AR Barbería. The layout is organized with one tab per barber, plus a dedicated tab for recently uploaded images.
Each barber has their own tab in the portfolio gallery. The tab contains static images showcasing that barber’s style and specialties — haircut styles, beard work, and finished looks. These images are part of the page template and represent the barber’s established portfolio.

How portfolio images are stored

The portfolio_images table holds staff-uploaded images that appear in the Nuevos Cortes tab. Each record associates an image file with the staff member who uploaded it and a timestamp. Static images in the per-barber tabs are served as regular assets and do not go through the portfolio_images table. Only images uploaded through the staff panel’s portfolio management section are stored in the database.

Adding new images as a staff member

Staff members can add images to the Nuevos Cortes gallery without touching any code.
1

Log in to the staff panel

Sign in with your staff credentials. Only authenticated staff accounts have access to the portfolio management section.
2

Navigate to portfolio management

From the staff panel dashboard, go to the portfolio management section. This is where you upload and review images before they appear publicly.
3

Upload an image

Select the image file from your device and submit the upload form. The image is saved to the server and a record is written to the portfolio_images table.
4

Verify on the /servicios page

Visit /servicios and open the Nuevos Cortes tab to confirm the image appears in the gallery.
For detailed instructions on managing the portfolio from the staff panel — including how to delete images and organize uploads — see the Portfolio management page.

Build docs developers (and LLMs) love