{{ __('Controle de Estoque') }}

Total de Produtos
{{ $stockReport->count() }}
Estoque Baixo
{{ $stockReport->where('current_stock', '>', 0)->where('current_stock', '<=', function($p) { return $p->product->stock_min ?? 0; })->count() }}
Estoque Zerado
{{ $stockReport->where('current_stock', 0)->count() }}
Valor Total
R$ {{ number_format($stockReport->sum(function($s) { return $s->current_stock * $s->average_cost; }), 2, ',', '.') }}
@foreach($stockReport as $stock) @endforeach
Produto SKU Categoria Estoque Atual Estoque Mínimo Custo Médio Status Ações
@if($stock->product->image) @else
@endif
{{ $stock->product->name }}
{{ $stock->product->ean }}
{{ $stock->product->sku }} {{ $stock->product->category ?? '-' }} {{ $stock->current_stock }} {{ $stock->product->stock_min }} R$ {{ number_format($stock->average_cost, 2, ',', '.') }} @if($stock->current_stock == 0) Zerado @elseif($stock->current_stock <= $stock->product->stock_min) Baixo @else Normal @endif
Histórico
@push('scripts') @endpush