{{ getenv('APP_NAME') }} Reporte de Ventas por Productos @if ($saleDateFrom != "" && $saleDateEnd != "") Fechas: {{convertDateEs($saleDateFrom)}} - {{convertDateEs($saleDateEnd)}} @endif
Usuario: {{ $namesConcatenate }}
@php $totalServices = 0; $quaintityServices = 0; $total = 0; $quantity = 0; @endphp @forelse ($saleProducts as $saleProduct) @php $total += $saleProduct->total_total; $quantity += $saleProduct->total_quantity; @endphp @empty @endforelse @forelse ($saleServices as $saleService) @php $total += $saleService->total_total; $quantity += $saleService->total_quantity; $totalServices += $saleService->total_total; $quaintityServices += $saleService->total_quantity; @endphp @empty @endforelse
N Fecha Producto Cantidad Precio Total
{{ $loop->iteration }} {{ ($saleProduct->created_at->format('d/m/Y')) }} {{ ($saleProduct->product->names_together) }} {{ number_format($saleProduct->total_quantity, 0) }} {{ number_format($saleProduct->total_sale_price, 2) }} {{ number_format($saleProduct->total_total, 2) }}
Total Productos {{ number_format($quantity,0) }} {{ number_format($total,2) }}
{{ $loop->iteration }} {{ ($saleService->created_at->format('d/m/Y')) }} {{ ($saleService->service_name) }} {{ number_format($saleService->total_quantity, 0) }} {{ number_format($saleService->total_sale_price, 2) }} {{ number_format($saleService->total_total, 2) }}
Total Servicios {{ number_format($quaintityServices,0) }} {{ number_format($totalServices,2) }}
Total {{ number_format($quantity,0) }} {{ number_format($total,2) }}