Reporte de Ventas por {{ $tipoVenta === 'familia' ? 'Familia' : 'Producto' }}

Reporte generado el: {{ now()->format('d/m/Y H:i:s') }}

Filtros aplicados:
Fecha: {{ \Carbon\Carbon::parse($fechainicial)->format('d/m/Y') }} - {{ \Carbon\Carbon::parse($fechafinal)->format('d/m/Y') }}
@if($sucursal) Sucursal: {{ $sucursal }}
@endif @if($familia) Familia: {{ $familia }}
@endif @if($usuario) Usuario: {{ $usuario }}
@endif @if($turnosInfo) {{ $turnosInfo }}
@endif
@forelse($data as $item) @empty @endforelse
{{ $tipoVenta === 'familia' ? 'Familia' : 'Producto' }} Cantidad Costo Subtotal IVA Total Utilidad
{{ $item->nombre }} {{ number_format($item->cantidad, 2) }} ${{ number_format($item->costo, 2) }} ${{ number_format($item->subtotal, 2) }} ${{ number_format($item->iva, 2) }} ${{ number_format($item->total, 2) }} ${{ number_format($item->utilidad, 2) }}
No hay datos para mostrar
TOTALES {{ number_format($totales['cantidad'], 2) }} ${{ number_format($totales['costo'], 2) }} ${{ number_format($totales['subtotal'], 2) }} ${{ number_format($totales['iva'], 2) }} ${{ number_format($totales['total'], 2) }} ${{ number_format($totales['utilidad'], 2) }}