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


{{ strtoupper($encabezados[0]) }} {{ strtoupper($encabezados[1]) }} {{ strtoupper($encabezados[2]) }} {{ strtoupper($encabezados[3]) }} {{ strtoupper($encabezados[4]) }} {{ strtoupper($encabezados[5]) }} {{ strtoupper($encabezados[6]) }} {{ strtoupper($encabezados[7]) }} {{ strtoupper($encabezados[8]) }}


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