@extends('layouts.app') @section('title', 'Estoque Externo VIMAN & Unificação de Vales') @section('topbar_title', '📦 Estoque Externo & Unificação de Vales') @section('topbar_extra_actions')
Auditoria de Estoque Externo por Empresa e Análise Canônica de Unificação de Vales.
| Rótulos de Linha (UF → Cliente → Empresa/Vale → Produto) | Soma de Qtde | Empresa Correta | Status da Alocação / Observação |
|---|---|---|---|
| {{ $noUf['uf'] }} | {{ number_format($noUf['qtde'], 0, ',', '.') }} | @if(in_array($noUf['uf'], ['MG', 'ES'])) Empresa 1 (ES/MG) @elseif($noUf['uf'] === 'SP') Empresa 6 (SP) @elseif($noUf['uf'] === 'RJ') Empresa 8 (RJ) @else Regional @endif | {{ count($noUf['clientes']) }} cliente(s) nesta página |
| Nenhum registro de estoque externo encontrado com os filtros selecionados. | |||
| Total Geral (Consolidado) | {{ number_format($kpis['total_qtde'], 0, ',', '.') }} | {{ number_format($kpis['total_registros'], 0, ',', '.') }} itens em {{ number_format($kpis['total_clientes'], 0, ',', '.') }} clientes ({{ number_format($kpis['total_vales'], 0, ',', '.') }} vales) | |
| Empresa Atual | Filial | UF | Cidade | Cód. Cliente | Cliente / Hospital | Empresa Correta | Status Alocação | Nº Vale | Situação Vale | Data Cirurgia | Paciente | Segmento | Grupo | Cód. Interno | Referência | Produto | Lote | Lote Interno | Qtde | Vlr. Unitário | Vlr. Total |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $item['EMPRESA'] ?? '-' }} | {{ $item['FILIAL'] ?? '-' }} | {{ $item['ESTADO'] ?? '-' }} | {{ $item['CIDADE'] ?? '-' }} | {{ $item['COD_CLIENTE'] ?? '-' }} |
{{ $item['CLIENTE'] ?? '-' }} | {{ $item['EMPRESA_CORRETA'] ?? '-' }} | @if ($isDivergente) {{ $item['STATUS_ALOCACAO'] ?? 'DIVERGENTE' }} @else {{ $item['STATUS_ALOCACAO'] ?? 'CORRETO' }} @endif | {{ $item['NU_VALE'] ?? '-' }} | {{ $item['SITUACAO_VALE_DESC'] ?? ($item['SITUACAO_VALE'] ?? '-') }} | {{ $item['DT_CIRURGIA_FORMATADA'] ?? '-' }} | {{ $item['PACIENTE'] ?? '-' }} | {{ $item['SEGMENTO'] ?? '-' }} | {{ $item['GRUPO'] ?? '-' }} | {{ $item['CODIGO_INTERNO'] ?? '-' }} |
{{ $item['REFERENCIA'] ?? '-' }} | {{ $item['PRODUTO'] ?? '-' }} | {{ $item['LOTE'] ?? '-' }} | {{ $item['LOTE_INTERNO'] ?? '-' }} | {{ number_format((float) ($item['QTDE'] ?? 0), 0, ',', '.') }} | {{ $item['VALOR_UNIT'] ? 'R$ '.number_format((float)$item['VALOR_UNIT'], 2, ',', '.') : '-' }} | {{ $item['VALOR_TOTAL'] ? 'R$ '.number_format((float)$item['VALOR_TOTAL'], 2, ',', '.') : '-' }} |
| Nenhum registro de estoque externo encontrado. | |||||||||||||||||||||