COSTO DE INVENTARIO
Almacen: {{ $nameSucursal }}
Fecha: {{ $fecha }}
Usuario: {{ $usuario }}


{{ strtoupper($encabezados[0]) }} {{ strtoupper($encabezados[1]) }} {{ strtoupper($encabezados[2]) }} {{ strtoupper($encabezados[3]) }} {{ strtoupper($encabezados[4]) }}


@php $totalprecio = 0; $totalexistencias = 0; $costototal = 0; @endphp @foreach($articulos as $articulo) @php $totalprecio = $totalprecio + $articulo->precio; $totalexistencias = $totalexistencias + $articulo->existencia; $costototal = $costototal + $articulo->total; @endphp @endforeach
{{ $articulo->codigo }} {{ $articulo->descripcion }} $ {{ number_format($articulo->precio,2,'.',',') }} {{ $articulo->existencia }} $ {{ number_format($articulo->total,2,'.',',') }}
{{ number_format($totalprecio,2,'.',',') }} {{ number_format($totalexistencias,2,'.',',') }} {{ number_format($costototal,2,'.',',') }}