{{-- HEADER --}}
Reporte de Ventas y Facturación
{{ $store->store_name }}
PERÍODO
{{ $dateFrom->format('d/m/Y') }} - {{ $dateTo->format('d/m/Y') }}
Generado: {{ now()->format('d/m/Y H:i') }}
{{-- KPIs --}}
Ventas totales
${{ number_format($totalSales, 2) }}
Cantidad de ventas
{{ number_format($totalCount) }}
Ticket promedio
${{ number_format($averageTicket, 2) }}
Estado DTE
{{ $dte_status }}
{{-- VENTAS DIARIAS --}}
Ventas por día
@forelse($chartData as $day) @empty @endforelse
Fecha Ventas Total
{{ \Carbon\Carbon::parse($day->date)->format('d/m/Y') }} {{ number_format($day->quantity) }} ${{ number_format($day->total, 2) }}
No existen ventas para este período.
{{-- DTE + PAGOS --}}
{{-- DTE --}} {{-- PAGOS --}}
Documentos electrónicos
Factura {{ number_format($dteSummary->factura ?? 0) }} ${{ number_format($dteSummary->monto_factura ?? 0, 2) }}
CCF {{ number_format($dteSummary->CCF ?? 0) }} ${{ number_format($dteSummary->monto_CCF ?? 0, 2) }}
Sujeto Excluido {{ number_format($dteSummary->SE ?? 0) }} ${{ number_format($dteSummary->monto_SE ?? 0, 2) }}

Procesados {{ number_format($dteApproved) }}
Rechazados {{ number_format($dteDenied) }}
Pendientes {{ number_format($dtePending) }}
Métodos de pago
Efectivo {{ number_format($methodPaymentData->efectivo ?? 0) }} ${{ number_format($methodPaymentData->monto_efectivo ?? 0, 2) }}
Tarjeta {{ number_format($methodPaymentData->tarjeta ?? 0) }} ${{ number_format($methodPaymentData->monto_tarjeta ?? 0, 2) }}
Transferencia {{ number_format($methodPaymentData->transferencia ?? 0) }} ${{ number_format($methodPaymentData->monto_transferencia ?? 0, 2) }}
{{-- TOP PRODUCTOS --}}
Top 10 productos más vendidos
@forelse($topProducts as $index => $product) @empty @endforelse
# Producto Cantidad Ventas
{{ $index + 1 }} {{ $product->productType->name ?? 'Producto eliminado' }} {{ number_format($product->total_sold, 2) }} ${{ number_format($product->total, 2) }}
No hay información disponible.
{{-- HORARIOS PICO --}}
Horarios con mayor cantidad de ventas
@forelse($peakHours as $hour) @empty @endforelse
Hora Ventas Monto
{{ sprintf('%02d:00', $hour->hour) }} - {{ sprintf('%02d:59', $hour->hour) }} {{ number_format($hour->total_sales) }} ${{ number_format($hour->total_amount, 2) }}
No hay información disponible.