@extends('layouts.app') @section('titulo', "Pedido de Compra {$pedido->numero}") @section('subtitulo', 'Compras') @section('acoes') @can('compras.editar') @if (in_array($pedido->status, ['aberto','recebido_parcial'], true)) Registrar Recebimento @endif @if ($pedido->status === 'aberto')
@endif @endcan @endsection @section('conteudo')| Produto | Quantidade | Recebido | Pendente | Preço Unit. | Total |
|---|---|---|---|---|---|
| {{ $item->produto->descricao }} | {{ number_format($item->quantidade, 3, ',', '.') }} {{ $item->produto->unidade->sigla ?? '' }} | {{ number_format($item->quantidade_recebida, 3, ',', '.') }} | {{ number_format($item->quantidade_pendente, 3, ',', '.') }} | R$ {{ number_format($item->preco_unitario, 4, ',', '.') }} | R$ {{ number_format($item->valor_total, 2, ',', '.') }} |
| Total | R$ {{ number_format($pedido->valor_total, 2, ',', '.') }} | ||||
| {{ $item->produto->descricao }} | {{ number_format($item->quantidade_recebida, 3, ',', '.') }} | {{ $item->numero_lote ?? '—' }} | {{ $item->data_validade?->format('d/m/Y') ?? '—' }} |