@extends('layouts.app') @section('title', 'Productos Obsoletos') @section('content')
Productos Obsoletos
Unidades en Stock
Valor Total del Inventario
Días sin Movimiento
| # | Producto | SKU | Categoría | Stock Total | Costo Promedio | Valor Total | Último Movimiento | Última Venta | Días sin Movimiento | Días sin Venta |
|---|---|---|---|---|---|---|---|---|---|---|
| {{ $index + 1 }} |
{{ $item['product']->name }}
@if($item['product']->brand)
{{ $item['product']->brand->name }} @endif |
{{ $item['product']->sku ?? 'N/A' }} | {{ $item['product']->category->name ?? 'N/A' }} | {{ number_format($item['total_stock'], 2) }} | ${{ number_format($item['avg_cost'], 2) }} | ${{ number_format($item['total_value'], 2) }} | @if($item['last_movement']) {{ \Carbon\Carbon::parse($item['last_movement'])->format('d/m/Y') }} @else N/A @endif | @if($item['last_sale']) {{ \Carbon\Carbon::parse($item['last_sale'])->format('d/m/Y') }} @else Nunca @endif | @if($item['days_without_movement'] !== null) {{ number_format($item['days_without_movement'], 0) }} días @else N/A @endif | @if($item['days_without_sale'] !== null) {{ number_format($item['days_without_sale'], 0) }} días @else Nunca @endif |
| No se encontraron productos obsoletos según los criterios seleccionados. | ||||||||||
| Totales: | {{ number_format($obsoleteProducts->sum('total_stock'), 2) }} | - | ${{ number_format($obsoleteProducts->sum('total_value'), 2) }} | |||||||