@extends('layouts.app') @section('title', 'Reporte de Inventario') @section('header', 'Estado del Inventario') @section('content') @php $moneda = $empresaGlobal->moneda ?? 'S/'; @endphp

Productos activos

{{ $productos->count() }}

Valor de Compra (Stock)

{{ $moneda }}{{ number_format($valorTotal, 2) }}

Valor Potencial de Venta

{{ $moneda }}{{ number_format($valorVenta, 2) }}

Margen: {{ $moneda }}{{ number_format($valorVenta - $valorTotal, 2) }}

@foreach($productos as $p) @endforeach
Código Producto Categoría Stock Mín P. Compra P. Venta Valor Stock Estado
{{ $p->codigo }} {{ $p->nombre }} {{ $p->categoria?->nombre ?? '—' }} {{ number_format($p->stock, 2) }} {{ number_format($p->stock_minimo, 2) }} {{ $moneda }}{{ number_format($p->precio_compra, 2) }} {{ $moneda }}{{ number_format($p->precio_venta, 2) }} {{ $moneda }}{{ number_format($p->stock * $p->precio_compra, 2) }} @if($p->stock_bajo) Bajo @elseif($p->stock == 0) Agotado @else OK @endif
@endsection