{{ $info['PEDIDO']['ESTABELECIMENTO_DESCRICAO'] }}/{{ $info['PEDIDO']['ESTABELECIMENTO_UF'] }}
PEDIDO: {{ $info['PEDIDO']['PEDIDO'] }}


{{ $info['PEDIDO']['OBSERVACAO_ORIGINAL'] }}


@php $cont = 0; @php $qtd = 0; @php $qtd_alt = 0; @php $vlr = 0; @php $vlr_alt = 0; @php $st = 0; @php $des = 0; @php $acr = 0; @php $ipi = 0; @php $total_real = 0; @php $familia_comercial = 0; @php $fam_com_colspan = 0; @php $paginas = count($info['ITENS']) == 0 ? 0 : array_chunk($info['ITENS'], count($info['ITENS'])); @php $itens = $info['ITENS'];
@foreach ($itens as $chave => $ITEN) @php $cont++; @php $ean = 0; @php $qtd = $ITEN['quantidade'] + $qtd; @php $qtd_alt = $ITEN['QUANTIDADE_ALTERNATIVA'] + $qtd_alt; @php $vlr = $ITEN['valorTotal'] + $vlr; @php $vlr_alt = ($ITEN['VALOR_UNIT_ALT'] * $ITEN['QUANTIDADE_ALTERNATIVA']) + $vlr_alt; @php $st = $ITEN['VALOR_SBT'] + $st; @php $des = $ITEN['VALOR_DESCONTO'] + $des; @php $acr = $ITEN['valorAcrescimo'] + $acr; @php $ipi = $ITEN['VALOR_IPI'] + $ipi; @php $total_real = $total_real + (($ITEN['valorAcrescimo'] + $ITEN['valorTotalIPI'] + $ITEN['VALOR_SBT'] + ($ITEN['valorUnitario'] * $ITEN['quantidade'])) - $ITEN['VALOR_DESCONTO']); @if($info['EXIBE_IMAGENS'] == 1)
@endif
{{ $ITEN['MODELO_DESCRICAO'] }}
@if($ITEN['EAN'] != '')
EAN {{ $ITEN['EAN'] }}
@endif @if($ITEN['MODELO_COUNT_TAM'] > 1)
COR: {{ $ITEN['COR_DESCRICAO'] }}
TAM.: {{ $ITEN['TAMANHO_DESCRICAO'] }}
@else
{{ $ITEN['MODELO_OBS_COMERCIAL'] }}

@endif

{{ Number($ITEN['quantidade'], 0) }} {{ $ITEN['PRODUTO_UM'] }} X R$ {{ Number($ITEN['valorUnitario'], 2, 5, true) }}
@if($ITEN['VALOR_DESCONTO'] > 0)
(R$ -{{ Number($ITEN['VALOR_DESCONTO'], 2, 5, true) }})
@endif
R$ {{ Number(($ITEN['valorTotal'] - $ITEN['VALOR_DESCONTO']), 2, 5, true) }}


@endforeach


TOTAIS
QUANT.TOTAL: {{ Number($qtd, 0) }}
@if($qtd_alt > 0)
QUANT.ALT.TOTAL:{{ Number($qtd_alt, 0) }}
@endif @if($info['EXIBE_VALORES'] == 1)
SUB-TOTAL: R$ {{number_format(truncate_number($vlr, 2), 2, ',' , '.') }}
ACRÉSCIMO: R$ {{number_format(truncate_number($acr, 2), 2, ',' , '.') }}
@php $perc_desconto_total = ($des*100) / $vlr;
DESCONTO: R$ {{number_format(truncate_number($des, 2), 2, ',' , '.') }}
PERC.DESCONTO: {{number_format(truncate_number($perc_desconto_total, 2), 2, ',' , '.') }}%
IPI: R$ {{number_format(truncate_number($ipi, 2), 2, ',' , '.') }}
SUBST.TRIB: R$ {{number_format(truncate_number($st , 2), 2, ',' , '.') }}
FRETE: R$ {{number_format(truncate_number($info['PEDIDO']['VALOR_FRETE'], 2), 2, ',' , '.')}}
@php $total_real = $total_real + $info['PEDIDO']['VALOR_FRETE'];
VALOR TOTAL: R$ {{number_format(truncate_number($total_real, 2), 2, ',' , '.') }}
@endif