@for($pageNumber=0;$pageNumber<(count($sale->details)/$rowsPerPage);$pageNumber++)

Polietileno - Gas

Cloacas - Fusión

Polipropileno - PVC

Francia 3801 Esq. Matheu

Tel.: (0223) 474-4040

mail:sanitariosmagnin@hotmail.com

(7600) Mar del Plata - Pcia. de Buenos Aires

DOCUMENTO NO VÁLIDO COMO FACTURA

PRESUPUESTO {{$sale->number}}

{{\Illuminate\Support\Carbon::parse($sale->created_at)->format("d-m-Y H:i")}}

{{"Hoja ".($pageNumber+1)." de ".ceil(count($sale->details)/$rowsPerPage)}}

{{-- @foreach($sale->details as $detail)--}} @for($j=($rowsPerPage*$pageNumber);$j<(($rowsPerPage*$pageNumber)+$rowsPerPage) && $jdetails);$j++) @php $detail = $sale->details[$j]; @endphp @php $totalPrice += (number_format($detail->unit_price, 2, '.', '') * $detail->quantity); @endphp {{-- @endforeach--}} @endfor
Producto Línea Cantidad Precio unitario Precio
{{$detail->product->name." - ".$detail->product->measure}} {{ucfirst($detail->product->productLine->name)}} {{str_replace(".",",",$detail->quantity)}} ${{number_format($detail->unit_price, 2, ',', '.')}} ${{number_format(number_format($detail->unit_price, 2, '.', '')*$detail->quantity,2,',','.')}}
@endfor
Observaciones: Total: ${{number_format($totalPrice, 2, ',', '.')}}