Relátorio Venda {{$venda->id}}
Cliente: {{$venda->cliente->razao_social}}
CPF/CNPJ: {{$venda->cliente->cpf_cnpj}}
IE/RG: {{$venda->cliente->ie_rg}}
Logradouro: {{$venda->cliente->rua}}, {{$venda->cliente->numero}}
Bairro: {{$venda->cliente->bairro}}
Cidade: {{$venda->cliente->cidade->nome}} ({{$venda->cliente->cidade->uf}})
PRODUTOS
PRODUTO |
QTD |
VALOR UNIT |
SUBTOTAL |
@foreach($venda->itens as $i)
{{$i->produto->nome}} |
{{number_format($i->quantidade, 2)}} |
{{number_format($i->valor, 2)}} |
{{number_format($i->quantidade * $i->valor, 2)}} |
@endforeach
FATURA
# |
VENCIMENTO |
VALOR |
@if($venda->duplicatas()->exists())
@foreach($venda->duplicatas as$key => $d)
00{{$key + 1}} |
{{ \Carbon\Carbon::parse($d->data_vencimento)->format('d/m/Y')}} |
{{number_format($d->valor, 2)}} |
@endforeach
@else
001 |
{{ \Carbon\Carbon::parse($venda->created_at)->format('d/m/Y')}} |
{{number_format($venda->valor_total, 2)}} |
@endif
TOTAL DA VENDA: {{$venda->valor_total}}
@if($venda->NfNumero > 0)
NUMERO NF-e: {{$venda->NfNumero}}
@endif
@if($venda->frete)
FRETE: {{number_format( $venda->frete->valor, 2) }}
@endif