Overview
The order management system allows customers to view their order history, track order status, and see detailed information about each order including items, pricing, and delivery status.Orders are accessible at
/pedidos for the list view and /pedido-detalle/{id} for individual order details.Key Features
Order History
View all past and current orders in chronological order
Status Tracking
Real-time order status updates from receipt to delivery
Order Details
Detailed breakdown of items, quantities, and pricing
Status Timeline
Visual timeline showing order progress through fulfillment stages
Route Configuration
Order List Route
The order list is defined inroutes/web.php:25-27:
Order Detail Route
Individual order details accept an order ID parameter (routes/web.php:29-31):
Order List View
The order list page displays all customer orders atresources/views/pedidos/pedido.blade.php:1-2:
Page Header
The orders page includes navigation and branding (resources/views/pedidos/pedido.blade.php:29-32):
Order Status Types
Orders can have one of the following statuses:Enviado
Order has been shipped and is in transit
Surtido
Order has been fulfilled and prepared for shipping
Entregado
Order has been successfully delivered to the customer
Cancelado
Order has been cancelled and will not be fulfilled
Order Card Layout
Each order is displayed as a clickable card (resources/views/pedidos/pedido.blade.php:37-50):
Example Order List
The order history displays multiple orders with varying statuses:| Order Number | Date | Items | Total | Status |
|---|---|---|---|---|
| ORD-2026-001 | 27 de enero de 2026 | 3 | $1,705 | Enviado |
| ORD-2026-002 | 24 de enero de 2026 | 2 | $2,340 | Surtido |
| ORD-2026-003 | 10 de enero de 2026 | 1 | $89 | Entregado |
| ORD-2026-004 | 14 de enero de 2026 | 4 | $3,200 | Cancelado |
| ORD-2026-005 | 8 de enero de 2026 | 2 | $1,450 | Entregado |
Order Detail View
The detailed order view is located atresources/views/pedidos/pedido-detalle.blade.php and provides comprehensive information about a single order.
Order Header
The detail page header displays the order number and download option (resources/views/pedidos/pedido-detalle.blade.php:30-39):
Status Timeline
Orders include a visual timeline showing progress through fulfillment stages (resources/views/pedidos/pedido-detalle.blade.php:42-73):
Timeline Stages
The order fulfillment timeline includes four stages:- Recibido - Order received and confirmed
- Surtido - Order fulfilled and items prepared
- Enviado - Order shipped and in transit
- Entregado - Order delivered to customer
Completed stages display a checkmark icon, while pending stages show a numbered indicator.
Order Items List
The detail view lists all items in the order (resources/views/pedidos/pedido-detalle.blade.php:76-121):
Example Order Details
For order ORD-2026-001, the items include:| Item | Quantity | Unit Price | Total |
|---|---|---|---|
| Filtro de Aceite | 2 | $15 | $30 |
| Pastillas de Freno | 1 | $89 | $89 |
| Filtro de Aire | 1 | $28 | $28 |
Order Summary
The detail view includes a complete financial summary (resources/views/pedidos/pedido-detalle.blade.php:124-143):
Shipping Information
Each order displays the shipping address for delivery:The shipping address is displayed at the bottom of the order summary card for easy reference.
User Journey
Viewing Order History
- Customer clicks “Mis Pedidos” in the header navigation
- Navigate to
/pedidosto see the complete order list - View order numbers, dates, item counts, totals, and status at a glance
- Orders are sorted with most recent at the top
Viewing Order Details
- Click on any order card from the order list
- Navigate to
/pedido-detalle/{id}with the specific order ID - View the order status timeline to track fulfillment progress
- Review all items in the order with quantities and pricing
- See the complete order summary including tax and total
- View the shipping address for delivery
- Download order documentation using the download button
Navigation
The order views include contextual navigation:- Order List - “Volver al Catálogo” link returns to
/catalogo - Order Detail - “Volver a Pedidos” link returns to
/pedidos