← Estoque@can('move', $lot){{ $lot->is_active ? 'Inativar' : 'Reativar' }}@endcan

Saldo atual

{{ str_replace('.', ',', $lot->current_quantity) }} {{ $lot->unit->symbol }}

Quantidade inicial

{{ str_replace('.', ',', $lot->initial_quantity) }} {{ $lot->unit->symbol }}

Custo unitário

R$ {{ str_replace('.', ',', $lot->unit_cost) }}

Localização

{{ $lot->location->code }}

{{ $lot->location->name }}

Movimentar estoque

Toda operação exige justificativa e preserva saldos anterior e posterior.

@can('move', $lot)EntradaSaídaTransferir@endcan @can('adjust', $lot)Ajustar@endcan

Identificação e origem

Categoria
{{ $lot->rawMaterial->category->name }}
Fornecedor
{{ $lot->supplier?->trade_name ?: $lot->supplier?->legal_name ?: 'Não informado' }}
Documento
{{ $lot->origin_document ?: 'Não informado' }}
Entrada
{{ $lot->received_at->format('d/m/Y') }}
Fabricação
{{ $lot->manufactured_at?->format('d/m/Y') ?? 'Não informada' }}
Validade
{{ $lot->expires_at?->format('d/m/Y') ?? 'Não informada' }}
Situação
{{ $lot->is_active ? 'Ativo' : 'Inativo' }}
Observações
{{ $lot->notes ?: 'Nenhuma' }}

Histórico imutável

Movimentações em ordem cronológica inversa.

@forelse($movements as $movement)

{{ $movement->type->label() }}

{{ $movement->occurred_at->format('d/m/Y H:i') }}

{{ str_replace('.', ',', $movement->quantity_delta) }} {{ $lot->unit->symbol }}

Saldo: {{ str_replace('.', ',', $movement->balance_before) }} → {{ str_replace('.', ',', $movement->balance_after) }}

{{ $movement->justification }}

{{ $movement->performedBy->name }} · {{ $movement->reference ?: 'sem referência' }}

@empty@endforelse
{{ $movements->links() }}

Saldo disponível

{{ str_replace('.', ',', $lot->current_quantity) }} {{ $lot->unit->symbol }}

@if($operation === 'adjustment')@endif @if($operation === 'transfer')@endif
CancelarConfirmar movimentação