@extends('layouts.app') @section('title', 'Perdas de Produtos (VIMAN) | OPME') @section('topbar_title', '🗑️ ' . ($titulo ?? 'Perdas de Produtos (VIMAN)')) @section('topbar_extra_actions')
@endsection @section('styles') @endsection @section('content') @php $inicioRegistro = $itens->total() === 0 ? 0 : (($itens->currentPage() - 1) * $itens->perPage()) + 1; $fimRegistro = $itens->total() === 0 ? 0 : min($itens->currentPage() * $itens->perPage(), $itens->total()); $janelaInicial = max(1, $itens->currentPage() - 2); $janelaFinal = min($itens->lastPage(), $itens->currentPage() + 2); $paginasVisiveis = $itens->lastPage() > 0 ? array_values(array_unique(array_merge([1], range($janelaInicial, $janelaFinal), [$itens->lastPage()]))) : []; $queryAtual = request()->query(); @endphp| Filial | Tipo | Tópico | Grupo | Lote Fabricante | Tipo de Saída | Referência | Descrição do Produto | Dt. Emissão | Nº Nota | Tipo de Operação | Data de Validade | Qtd. | Valor Unit. (R$) | Valor Total (R$) | Marca | Estoque de Separação |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $item['filial'] ?? 'ES' }} | {{ $item['tipo'] ?? '—' }} | {{ $item['topico'] ?? '—' }} | {{ $item['grupo'] ?? '—' }} | {{ $item['lote_fabricante'] ?? '—' }} | {{ $item['tipo_saida'] ?? '—' }} | {{ $item['referencia'] ?? '—' }} | {{ $item['dt_emissao'] ?? '—' }} | {{ $item['numero_nota'] ?? '—' }} | @if ($temValidade) {{ $item['data_validade_lote'] }} @else Sem Validade @endif | {{ number_format((float) ($item['quantidade'] ?? 0), 0, ',', '.') }} | R$ {{ number_format((float) ($item['valor_unitario'] ?? 0), 2, ',', '.') }} | R$ {{ number_format((float) ($item['valor_total'] ?? 0), 2, ',', '.') }} | {{ $item['marca'] ?? '—' }} | {{ $item['estoque_separacao'] ?? '6-MATERIAL VENCIDO' }} | ||
|
Nenhum registro de perda encontrado no período selecionado.
Tente ajustar os filtros de emissão, filial ou lote do fabricante.
|
||||||||||||||||