@extends('layouts.app') @section('title', 'Reporte de Productos') @section('content')

Reporte de Productos

Análisis completo de productos e inventario

Total Productos
{{ number_format($stats['total_products'] ?? 0) }}
Productos Activos
{{ number_format($stats['active_products'] ?? 0) }}
Valor Total Inventario
${{ number_format($stats['total_inventory_value'] ?? 0, 2) }}
Productos Inactivos
{{ number_format($stats['inactive_products'] ?? 0) }}
Filtros
Limpiar
Lista de Productos
@forelse($products as $product) @php $totalStock = $product->stocks->sum('quantity'); $inventoryValue = $totalStock * ($product->cost_price_usd ?? $product->cost_price ?? 0); @endphp @empty @endforelse
# SKU Nombre Categoría Marca Precio Costo Precio Venta Stock Total Valor Inventario Estado
{{ $products->firstItem() + $loop->index }} {{ $product->sku ?? 'N/A' }} {{ $product->name }} @if($product->category) {{ $product->category->name }} @else N/A @endif @if($product->brand) {{ $product->brand->name }} @else N/A @endif ${{ number_format($product->cost_price_usd ?? $product->cost_price ?? 0, 2) }} ${{ number_format($product->selling_price_usd ?? $product->selling_price ?? 0, 2) }} {{ number_format($totalStock, 2) }} ${{ number_format($inventoryValue, 2) }} @if($product->status === 'active') Activo @else Inactivo @endif

No se encontraron productos

@if($products->hasPages()) @endif
@push('styles') @endpush @endsection