Kardex de Inventario - {{ ucfirst($tipo) }}

Generado el: {{ $fecha_generacion }}

@if($filtros['articulo_id'] ?? false)

Artículo: {{ $kardex->first()->articulo->nombre ?? 'N/A' }}

@endif @if($filtros['almacen_id'] ?? false)

Almacén: {{ $kardex->first()->almacen->nombre_almacen ?? 'N/A' }}

@endif @if($filtros['fecha_desde'] || $filtros['fecha_hasta'])

Período: @if($filtros['fecha_desde']) Desde: {{ $filtros['fecha_desde'] }} @endif @if($filtros['fecha_hasta']) Hasta: {{ $filtros['fecha_hasta'] }} @endif

@endif
@if($tipo === 'valorado') @endif @foreach($kardex as $mov) @if($tipo === 'valorado') @endif @endforeach
Fecha Tipo Documento Artículo Almacén Entrada Salida SaldoCosto Unit. Costo Total
{{ date('d/m/Y', strtotime($mov->fecha)) }} {{ $mov->tipo_movimiento }} {{ $mov->documento_numero }} {{ $mov->articulo->nombre ?? 'N/A' }} {{ $mov->almacen->nombre_almacen ?? 'N/A' }} {{ number_format($mov->cantidad_entrada, 2) }} {{ number_format($mov->cantidad_salida, 2) }} {{ number_format($mov->cantidad_saldo, 2) }}{{ number_format($mov->costo_unitario, 2) }} {{ number_format($mov->costo_total, 2) }}

Total Entradas: {{ number_format($totales['total_entradas'], 2) }}

Total Salidas: {{ number_format($totales['total_salidas'], 2) }}

@if($tipo === 'valorado')

Total Costos: Bs. {{ number_format($totales['total_costos'], 2) }}

Total Ventas: Bs. {{ number_format($totales['total_ventas'], 2) }}

@endif