| INFORME EJECUTIVO: VENTAS POR MARCA Y CATEGORÍA | |||||||||
| Periodo: {{ $fi }} al {{ $ff }} | Bodega: {{ $bodega == '0' ? 'Todas las Bodegas' : 'Bodega ' . $bodega }} | Fecha de Generación: {{ date('Y-m-d H:i:s') }} |
| RESUMEN GENERAL CONSOLIDADO | |||||
|---|---|---|---|---|---|
| Venta Bruta | Devoluciones | Venta Neta | Costo Mercancía | Utilidad Bruta | Margen Promedio |
| {{ $kpis['venta_bruta'] }} | {{ $kpis['devoluciones'] }} | {{ $kpis['venta_neta'] }} | {{ $kpis['costo_neto'] }} | {{ $kpis['utilidad_bruta'] }} | {{ $kpis['margen_promedio_pct'] / 100 }} |
| 🏷️ 1. CONSOLIDADO DETALLADO POR CATEGORÍAS ({{ count($categorias) }} categorías) | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| # | Código | Categoría | Venta Bruta ($) | Devolución ($) | Venta Neta ($) | Costo Total ($) | Utilidad Bruta ($) | Margen (%) | Part. (%) |
| {{ $idx++ }} | {{ $c['id'] }} | {{ $c['nombre'] }} | {{ $c['venta_bruta'] }} | {{ $c['devoluciones'] }} | {{ $c['venta_neta'] }} | {{ $c['costo_neto'] }} | {{ $c['utilidad_bruta'] }} | {{ $c['margen_pct'] / 100 }} | {{ $c['participacion_pct'] / 100 }} |
| TOTAL CATEGORÍAS: | {{ $kpis['venta_bruta'] }} | {{ $kpis['devoluciones'] }} | {{ $kpis['venta_neta'] }} | {{ $kpis['costo_neto'] }} | {{ $kpis['utilidad_bruta'] }} | {{ $kpis['margen_promedio_pct'] / 100 }} | 1.00 | ||
| 🏢 2. CONSOLIDADO DETALLADO POR MARCAS ({{ count($marcas) }} marcas) | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| # | Código | Marca | Venta Bruta ($) | Devolución ($) | Venta Neta ($) | Costo Total ($) | Utilidad Bruta ($) | Margen (%) | Part. (%) |
| {{ $idxM++ }} | {{ $m['id'] }} | {{ $m['nombre'] }} | {{ $m['venta_bruta'] }} | {{ $m['devoluciones'] }} | {{ $m['venta_neta'] }} | {{ $m['costo_neto'] }} | {{ $m['utilidad_bruta'] }} | {{ $m['margen_pct'] / 100 }} | {{ $m['participacion_pct'] / 100 }} |
| TOTAL MARCAS: | {{ $kpis['venta_bruta'] }} | {{ $kpis['devoluciones'] }} | {{ $kpis['venta_neta'] }} | {{ $kpis['costo_neto'] }} | {{ $kpis['utilidad_bruta'] }} | {{ $kpis['margen_promedio_pct'] / 100 }} | 1.00 | ||
| 📦 3. TOP PRODUCTOS MÁS VENDIDOS EN EL PERIODO | ||||||||
|---|---|---|---|---|---|---|---|---|
| # | Código | Producto | Categoría | Marca | Venta Neta ($) | Costo ($) | Utilidad ($) | Margen (%) |
| {{ $idxP++ }} | {{ $p->codigo }} | {{ $p->nombre }} | {{ $p->categoria }} | {{ $p->marca }} | {{ $p->valor }} | {{ $p->costo }} | {{ $p->utilidad }} | {{ $p->margen_pct / 100 }} |