@extends('relatorios.default') @section('content')
| Data | Fornecedor | Número NFe | Total | |
| {{ \Carbon\Carbon::parse($compras[$aux]->created_at)->format('d/m/Y H:i')}} | {{ $compras[$aux]->fornecedor->razao_social }} | {{ $compras[$aux]->nf ?? '--' }} | R$ {{ number_format($compras[$aux]->valor, 2, ',', '.')}} | |
| Produto | CFOP | Quantidade | Vl unitário | Subtotal |
| {{$p->produto->nome}} | {{$p->cfop_entrada}} | {{ number_format($p->quantidade, 2)}} | {{ number_format($p->valor_unitario, 2, ',', '.')}} | {{ number_format($p->quantidade*$p->valor_unitario, 2, ',', '.')}} |
| Total: | R$ {{ number_format($somaFornecedor, 2, ',', '.')}} | |||
| Total: | R$ {{ number_format($somaFornecedor, 2, ',', '.')}} |