|
|
@else
|
@endif
|
|
|
@else
|
@endif
|
| Dados da empresa |
| Razão social: {{$config->razao_social}} | CNPJ: {{$config->cnpj}} |
| Endereço: {{$config->logradouro}}, {{$config->numero}} - {{$config->bairro}} - {{$config->municipio}} ({{$config->UF}}) |
| Complemento: {{$config->complemento}} | CEP: {{$config->cep}} | Telefone: {{$config->fone}} |
| Email: {{$config->email}} |
| Dados do cliente |
| Nome: {{$venda->cliente->razao_social}} | CPF/CNPJ: {{$venda->cliente->cpf_cnpj}} |
| Endereço: {{$venda->cliente->rua}}, {{$venda->cliente->numero}} - {{$venda->cliente->bairro}} - {{$venda->cliente->cidade->nome}} ({{$venda->cliente->cidade->uf}}) | CEP: {{$venda->cliente->cep}} |
| Complemento: {{$venda->cliente->complemento }} | Telefone: {{$venda->cliente->telefone}} | Celular: {{$venda->cliente->celular}} |
| Email: {{$venda->cliente->email}} |
| Nº Doc: {{$venda->numero_sequencial}} |
| MERCADORIAS: |
| Cod/Ref | Descrição | Qtd. | Vl Uni | Vl Liq. |
| {{$i->produto->id}} {{$i->produto->referencia != "" ? "/ " . $i->produto->referencia : "" }} | {{$i->produto->nome}} {{$i->produto->grade ? " (" . $i->produto->str_grade . ")" : ""}} @if($i->produto->lote != "") | Lote: {{$i->produto->lote}}, Vencimento: {{$i->produto->vencimento}} @endif | {{number_format($i->quantidade, $casasDecimaisQtd, ',', '.')}} @if($i->largura > 0 || $i->esquerda > 0) x{{number_format($i->quantidade_dimensao, 2, ',', '.')}} @endif | {{number_format($i->valor, $casasDecimais, ',', '.')}} | {{number_format($i->quantidade * $i->quantidade_dimensao * $i->valor, $casasDecimais, ',', '.')}} |
|---|
|
|
|
| FATURA: |
| Vencimento | Valor |
| {{ \Carbon\Carbon::parse($d->data_vencimento)->format('d/m/Y')}} | {{number_format($d->valor_integral, $casasDecimais, ',', '.')}} |
| Forma de pagamento: {{$venda->forma_pagamento == 'a_vista' ? 'À vista' : $venda->forma_pagamento}} @if($venda->getFormaPagamento() != null) - {{ $venda->getFormaPagamento()->infos }} @endif |
| Vendedor: {{$venda->usuario->nome}} | Frete por conta: @if($venda->frete) @if($venda->frete->tipo == 0) Emitente @elseif($venda->frete->tipo == 1) Destinatário @elseif($venda->frete->tipo == 2) Terceiros @else Outros @endif @else sem frete @endif |
| Data da venda: {{\Carbon\Carbon::parse($venda->created_at)->format('d/m/Y H:i')}} | @if($venda->vendedor_id)Vendedor: {{ $venda->vendedor_setado->funcionario->nome }} | @endif@if($venda->data_entrega != null) Data da entrega: {{\Carbon\Carbon::parse($venda->data_entrega)->format('d/m/Y')}} @endif |
| Desconto (-): {{number_format($venda->desconto, 2, ',', '.')}} | Acrescimo (+): {{number_format($venda->acrescimo, 2, ',', '.')}} | Frete (+): @if($venda->frete) {{number_format($venda->frete->valor, 2, ',', '.')}} @else 0,00 @endif | Valor Líquido: {{number_format($venda->valor_total - $venda->desconto + $venda->acrescimo, $casasDecimais, ',', '.')}} |
| Observação: {{$config->campo_obs_pedido}} {{$venda->observacao}} |
|
________________________________________
{{$config->razao_social}} |
________________________________________
{{$venda->cliente->razao_social}} |
| Dados do cliente |
| Nome: {{$venda->cliente->razao_social}} | CPF/CNPJ: {{$venda->cliente->cpf_cnpj}} |
| Endereço: {{$venda->cliente->rua}}, {{$venda->cliente->numero}} - {{$venda->cliente->bairro}} - {{$venda->cliente->cidade->nome}} ({{$venda->cliente->cidade->uf}}) | Telefone: {{$venda->cliente->telefone}} |
| Nº Doc: {{$venda->id}} |
| MERCADORIAS: |
| Cod | Descrição | Qtd. Dim. | Qtd. |
| {{$i->produto->id}} | {{$i->produto->nome}} {{$i->produto->grade ? " (" . $i->produto->str_grade . ")" : ""}} @if($i->produto->lote != "") | Lote: {{$i->produto->lote}}, Vencimento: {{$i->produto->vencimento}} @endif @if($i->produto->tipo_dimensao != '') @if($i->produto->tipo_dimensao == 'area') [Altura: {{$i->altura}}, Largura: {{$i->largura}}, Profundidade: {{$i->profundidade}}] @else [Superior: {{$i->superior}}, Infeior: {{$i->inferior}}, Esquerda: {{$i->esquerda}}, Direita: {{$i->direita}}] @endif @endif | {{number_format($i->quantidade, 2, ',', '.')}} | {{number_format($i->quantidade_dimensao, 2, ',', '.')}} |
|---|
| Vendedor: {{$venda->usuario->nome}} | Data da venda: {{\Carbon\Carbon::parse($venda->created_at)->format('d/m/Y H:i')}} | Data da entrega: {{\Carbon\Carbon::parse($venda->data_entrega)->format('d/m/Y')}} |
| Observação: {{$venda->observacao}} |
|
|
@else
|
@endif
| Dados do cliente |
| Nome: {{$venda->cliente->razao_social}} | CPF/CNPJ: {{$venda->cliente->cpf_cnpj}} |
| Endereço: {{$venda->cliente->rua}}, {{$venda->cliente->numero}} - {{$venda->cliente->bairro}} - {{$venda->cliente->cidade->nome}} ({{$venda->cliente->cidade->uf}}) | Telefone: {{$venda->cliente->telefone}} |
| Nº Doc: {{$venda->id}} |
| Produtos: |
| Cod | Descrição | Qtd. |
| {{$i->produto->id}} | {{$i->produto->nome}} {{$i->produto->grade ? " (" . $i->produto->str_grade . ")" : ""}} @if($i->produto->lote != "") | Lote: {{$i->produto->lote}}, Vencimento: {{$i->produto->vencimento}} @endif | {{number_format($i->quantidade, 2, ',', '.')}} |
|---|---|---|
| Composição do item: | ||
| {{$ir->produto->nome}} | {{$ir->quantidade}} {{$ir->medida}} | |
{{$i->produto->nome}}: {!! $i->produto->info_tecnica_composto !!}
@endif @endforeach @endif