{{ $nfce->empresa->nome }}
@if($nfce->empresa->rua)
{{ $nfce->empresa->rua }}, {{ $nfce->empresa->numero }}
@endif
@if($nfce->empresa->cidade)
{{ $nfce->empresa->cidade->nome }} - {{ $nfce->empresa->cidade->uf }}
@endif
CNPJ: {{ $nfce->empresa->cpf_cnpj }}
COMPROVANTE DE VENDA #{{ $nfce->numero_sequencial ?? $nfce->id }}
{{ \Carbon\Carbon::parse($nfce->created_at)->format('d/m/Y H:i:s') }}
| Qtd |
Item |
Total |
@foreach($nfce->itens as $item)
| {{ number_format($item->quantidade, 2, ',', '.') }} |
{{ $item->produto->nome }} |
{{ number_format($item->sub_total, 2, ',', '.') }} |
@endforeach
TOTAL: R$ {{ number_format($nfce->total, 2, ',', '.') }}
@if(count($nfce->fatura) > 0)
Formas de Pagamento:
@php
$pagamentos = [];
foreach($nfce->fatura as $fatura) {
$tipo = $fatura->tipo_pagamento;
if (!isset($pagamentos[$tipo])) {
$pagamentos[$tipo] = ['total' => 0, 'count' => 0, 'valor_parcela' => $fatura->valor];
}
$pagamentos[$tipo]['total'] += $fatura->valor;
$pagamentos[$tipo]['count']++;
}
@endphp
@foreach($pagamentos as $tipo => $info)
{{ \App\Models\FaturaNfce::getTipoPagamento($tipo) }}
@if($info['count'] > 1)
{{ $info['count'] }}x de R$ {{ number_format($info['valor_parcela'], 2, ',', '.') }}
@endif
R$ {{ number_format($info['total'], 2, ',', '.') }}
@endforeach
@endif
@if($nfce->troco > 0)
Troco: R$ {{ number_format($nfce->troco, 2, ',', '.') }}
@endif
@if($nfce->cliente)
Cliente: {{ $nfce->cliente->razao_social }}
@if($nfce->cliente->cpf_cnpj)
CPF/CNPJ: {{ $nfce->cliente->cpf_cnpj }}
@endif
@endif
Obrigado pela preferência!
*** NÃO É DOCUMENTO FISCAL ***