{{ $title }}


{{ date( 'd-m-Y', strtotime($pedido->ped_fecha)) }}

{{ $pedido->nit_tercero }}

{{ $pedido->nombre_sucursal }}

{{ $pedido->punto_envio }}



@foreach( $items as $item ) @endforeach
CODIGO PRODUCTO UND CNT. PEDIDA CNT. COMPROMET. VR. UNITARIO DESCUENTO VR. TOTAL
{{ $item->codigo}} {{ $item->descripcion}} {{ $item->unidad }} {{ number_format($item->cantidad, 0) }} {{ number_format($item->cantcompr, 0) }} {{ '$ '.number_format($item->precio, 0) }} {{ $item->descuento > 0 ? number_format(($item->descuento / ($item->precio * $item->cantidad) ) * 100, 2) : '' }} {{ '$ '.number_format($item->cantidad * $item->precio) }}
{{$totalItems}} Productos
SUBTOTAL: $ {{ number_format($subtotal, 0) }}
DESCUENTO: ${{ number_format($totalDescuento, 0) }}
TOTAL: ${{ number_format($subtotal - $totalDescuento, 0) }}