@extends('layouts.app') @section('title', 'Kardex por Producto') @section('content')

Kardex por Producto

Volver a Reportes Exportar Excel
Filtros
Escriba para buscar productos
Limpiar
@if(isset($product))
Información del Producto
Nombre: {{ $product->name }}
SKU: {{ $product->sku ?? 'N/A' }}
Categoría: {{ $product->category->name ?? 'N/A' }}
Marca: {{ $product->brand->name ?? 'N/A' }}
Stock Actual: {{ number_format($currentStock, 2) }}
Movimientos de Inventario
@forelse($kardex as $movement) @empty @endforelse @if(count($kardex) > 0) @endif
Fecha Tipo Motivo Referencia Entrada Salida Saldo Costo Unit. Costo Total Saldo Valor Almacén Usuario
{{ $movement['date']->format('d/m/Y H:i') }} {{ ucfirst($movement['type']) }} {{ $movement['reason'] ?? 'N/A' }} {{ $movement['reference'] ?? 'N/A' }} {{ $movement['entry'] > 0 ? number_format($movement['entry'], 2) : '-' }} {{ $movement['exit'] > 0 ? number_format($movement['exit'], 2) : '-' }} {{ number_format($movement['balance'], 2) }} ${{ number_format($movement['unit_cost'], 2) }} ${{ number_format($movement['total_cost'], 2) }} ${{ number_format($movement['balance_value'], 2) }} {{ $movement['warehouse'] }} {{ $movement['user'] }}
No se encontraron movimientos en el período seleccionado.
Totales: {{ number_format(array_sum(array_column($kardex, 'entry')) - array_sum(array_column($kardex, 'exit')), 2) }} Total Movimientos: ${{ number_format(array_sum(array_column($kardex, 'total_cost')), 2) }} ${{ number_format(end($kardex)['balance_value'] ?? 0, 2) }}
@endif
@push('scripts') @endpush @endsection