@php $count = 1;
@php $conta = '';
@php $conta2 = '';
@php $totDebito = 0;
@php $totCredito = 0;
@php $totDebitoConta = 0;
@php $totCreditoConta = 0;
@foreach ($info->ITENS AS $item)
@php $backgroundTr = 'white';
@php $contaAnt = $item->CONTA;
@if($count % 2 == 0)
@php $backgroundTr = "";
@endif
@if($info->TIPO_RELATORIO == 0)
@php $totDebito = $totDebito + $item->VALOR_DEBITO;
@php $totCredito = $totCredito + $item->VALOR_CREDITO;
@php $totDebitoConta= $totDebitoConta + $item->VALOR_DEBITO;
@php $totCreditoConta= $totCreditoConta + $item->VALOR_CREDITO;
@if($contaAnt != $conta)
{{$item->DESC_CONTA_REL_1}} |
@if($item->SALDO_ANTERIOR < 0)
SALDO ANTERIOR: R$ {{number_format(abs($item->SALDO_ANTERIOR), 2, ',' , '.')}} D |
@else
SALDO ANTERIOR: R$ {{number_format($item->SALDO_ANTERIOR, 2, ',' , '.')}} C |
@endif
@php $conta = $item->CONTA;
@endif
{{ $item->DESC_DATA_REL }} |
{{ $item->MESTRE }} |
@if($info->VISUA_NOME_CONTRA_PARTIDA == 1)
{{ $item->CONTA_CONTRAPARTIDA }} |
@endif
{{ $item->HISTORICO }} |
R$ {{number_format($item->VALOR_DEBITO, 2, ',' , '.')}} |
R$ {{number_format($item->VALOR_CREDITO, 2, ',' , '.')}} |
@if($item->SALDO < 0)
R$ {{number_format(abs($item->SALDO), 2, ',' , '.')}} D |
@else
R$ {{number_format($item->SALDO, 2, ',' , '.')}} C |
@endif
@if(isset($item->SUBTOTAL_MES) && $info->VISUA_SUBTOTAIS_MESES == 1)
SUB-TOTAL {{$item->DESC_MES}}: |
R$ {{number_format($item->VALOR_DEBITO_TOTAL, 2, ',' , '.')}} |
R$ {{number_format($item->VALOR_CREDITO_TOTAL, 2, ',' , '.')}} |
@if($item->SALDO < 0)
R$ {{number_format(abs($item->SALDO), 2, ',' , '.')}} D |
@else
R$ {{number_format($item->SALDO, 2, ',' , '.')}} C |
@endif
@endif
@if($contaAnt != $conta2 && isset($item->SALDO_ATUAL) && $info->VISUA_SUBTOTAIS_MESES == 0)
TOTAIS: |
R$ {{number_format($totDebitoConta, 2, ',' , '.')}} |
R$ {{number_format($totCreditoConta, 2, ',' , '.')}} |
|
@if($item->SALDO_ATUAL < 0)
SALDO ATUAL: R$ {{number_format(abs($item->SALDO_ATUAL), 2, ',' , '.')}} D |
@else
SALDO ATUAL: R$ {{number_format($item->SALDO_ATUAL, 2, ',' , '.')}} C |
@endif
@php $conta2 = $item->CONTA;
@php $totDebitoConta = 0;
@php $totCreditoConta = 0;
@endif
@endif
@if($info->TIPO_RELATORIO == 1)
@php $totDebito = $totDebito + $item->_TOT_VALOR_DEBITO;
@php $totCredito = $totCredito + $item->_TOT_VALOR_CREDITO;
@if($contaAnt != $conta)
@if($item->SALDO_ANTERIOR < 0)
{{$item->DESC_CONTA_REL_1}} - Saldo Anterior: R$ {{number_format(abs($item->SALDO_ANTERIOR), 2, ',' , '.')}} D |
@else
{{$item->DESC_CONTA_REL_1}} - Saldo Anterior: R$ {{number_format($item->SALDO_ANTERIOR, 2, ',' , '.')}} C |
@endif
@php $conta = $item->CONTA;
@endif
{{ $item->DESC_CONTA_REL_2 }} |
R$ {{number_format($item->_TOT_VALOR_DEBITO, 2, ',' , '.')}} |
R$ {{number_format($item->_TOT_VALOR_CREDITO, 2, ',' , '.')}} |
@if($item->SALDO < 0)
R$ {{number_format(abs($item->SALDO), 2, ',' , '.')}} D |
@else
R$ {{number_format($item->SALDO, 2, ',' , '.')}} C |
@endif
@if(isset($item->SUBTOTAL_MES) && $info->VISUA_SUBTOTAIS_MESES == 1)
SUB-TOTAL {{$item->DESC_MES}}: |
R$ {{number_format($item->VALOR_DEBITO_TOTAL, 2, ',' , '.')}} |
R$ {{number_format($item->VALOR_CREDITO_TOTAL, 2, ',' , '.')}} |
@if($item->SALDO < 0)
R$ {{number_format(abs($item->SALDO), 2, ',' , '.')}} D |
@else
R$ {{number_format($item->SALDO, 2, ',' , '.')}} C |
@endif
@endif
@endif
@php $count++;
@endforeach
@if($info->TIPO_RELATORIO == 0)
TOTALIZADORES |
|
|
@if($info->VISUA_NOME_CONTRA_PARTIDA == 1)
|
@endif
R$ {{number_format($totDebito, 2, ',' , '.')}} |
R$ {{number_format($totCredito, 2, ',' , '.')}} |
|
@endif
@if($info->TIPO_RELATORIO == 1)
TOTALIZADORES |
R$ {{number_format($totDebito, 2, ',' , '.')}} |
R$ {{number_format($totCredito, 2, ',' , '.')}} |
|
@endif