@extends('layouts.app') @section('title',$purchase->code) @section('content') @php($labels=['draft'=>'Rascunho','received'=>'Recebida','cancelled'=>'Cancelada'])
| Produto | Cód. fornecedor / EAN | Qtd. | Custo unit. | Total | |
|---|---|---|---|---|---|
| {{ $item->description }} Cadastro: {{ $item->product?->sku ?: 'sem SKU interno' }} | {{ $item->supplier_product_code ?: '—' }} {{ $item->barcode ?: 'sem EAN/GTIN' }} | {{ number_format((float)$item->quantity,3,',','.') }} | R$ {{ number_format((float)$item->unit_cost,2,',','.') }} | R$ {{ number_format((float)$item->total_amount,2,',','.') }} | @if($purchase->status==='draft')@endif |
| Nenhum produto adicionado. | |||||