RELATÓRIO DE RASTREABILIDADE POR PRODUTO

Gerado em: {{ \Carbon\Carbon::now()->format('d/m/Y H:i:s') }}

ISO 9001:2015 - Requisito de Rastreabilidade

DADOS DO PRODUTO

Código: {{ $produto->codigo }}
Nome: {{ $produto->nome }}
Unidade: {{ $produto->unidade ?? 'UN' }}
Categoria: {{ $produto->categoria->nome ?? '-' }}
@if($produto->descricao)
Descrição: {{ $produto->descricao }}
@endif

{{ $lotes->total() }}

Total de Lotes

{{ $lotes->where('status', 'DISPONIVEL')->count() }}

Lotes Disponíveis

{{ number_format($lotes->where('status', 'DISPONIVEL')->sum('quantidade_atual'), 0, ',', '.') }}

Qtd. Disponível

{{ $lotes->where('status', 'BLOQUEADO')->count() }}

Lotes Bloqueados

HISTÓRICO DE LOTES

@forelse($lotes as $lote) @empty @endforelse
Código Lote Fornecedor Compra Qtd. Inicial Qtd. Atual Entrada Validade Status
{{ $lote->codigo_lote }} @if($lote->numero_certificado)
Cert: {{ $lote->numero_certificado }} @endif
@if($lote->fornecedor) {{ Str::limit($lote->fornecedor->razao_social, 25) }} @else Produção Própria @endif @if($lote->compra) Compra #{{ $lote->compra->id }} @else - @endif {{ number_format($lote->quantidade_inicial, 2, ',', '.') }} {{ number_format($lote->quantidade_atual, 2, ',', '.') }} {{ $lote->data_entrada->format('d/m/Y') }} @if($lote->data_validade) {{ $lote->data_validade->format('d/m/Y') }} @if($lote->isVencido())
VENCIDO @elseif($lote->diasParaVencer() <= 30)
{{ $lote->diasParaVencer() }} dias @endif @else Indeterminado @endif
@if($lote->status == 'DISPONIVEL') Disponível @elseif($lote->status == 'BLOQUEADO') Bloqueado @elseif($lote->status == 'QUARENTENA') Quarentena @elseif($lote->status == 'ESGOTADO') Esgotado @else {{ $lote->status }} @endif
Nenhum lote encontrado para este produto