@include('pdf.styles')
@include('pdf.partials.header-pdf',['empresa' => $empresa,'title' => 'REPORTE DE VENTAS | '. $empresa->name])| Cliente | Fecha Venta | Serie | Producto | Unidad | Peso Neto | Monto Total | Monto Recibido |
|---|---|---|---|---|---|---|---|
| {{ $item->cliente_razon_social }} | {{ $item->fecha_venta }} | {{ $item->serie_venta }} | @if($item->detalles && $item->detalles->count() > 0) @foreach($item->detalles->take(3) as $detalle) {{ $detalle->tipo_pollo }}@if(!$loop->last), @endif @endforeach @if($item->detalles->count() > 3) ... (+{{ $item->detalles->count() - 3 }} más) @endif @else Sin productos @endif | @php $sum = 0; foreach($item->detalles as $detalle) { $sum += $detalle->cantidad_pollos; } @endphp {{ number_format($sum, 0) }} | {{ number_format($item->peso_neto, 2) }} | {{ number_format($item->monto_total, 2) }} | {{ number_format($item->monto_recibido, 2) }} |
| No hay movimientos | |||||||
| Totales | {{ number_format($totalUnidades, 0) }} | {{ number_format($totalPesoNeto, 2) }} | {{ number_format($totalMonto, 2) }} | {{ number_format($totalMontoRecibido, 2) }} | |||