@php $paginas = array_chunk($info->ITENS, count($info->ITENS)); @php $linhas = count($info->ITENS);
@if($info->TIPO_RELATORIO == 0) @if($info->VISUA_NOME_CONTRA_PARTIDA == 1) @endif @endif @if($info->TIPO_RELATORIO == 1) @endif @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) @if($item->SALDO_ANTERIOR < 0) @else @endif @php $conta = $item->CONTA; @endif @if($info->VISUA_NOME_CONTRA_PARTIDA == 1) @endif @if($item->SALDO < 0) @else @endif @if(isset($item->SUBTOTAL_MES) && $info->VISUA_SUBTOTAIS_MESES == 1) @if($item->SALDO < 0) @else @endif @endif @if($contaAnt != $conta2 && isset($item->SALDO_ATUAL) && $info->VISUA_SUBTOTAIS_MESES == 0) @if($item->SALDO_ATUAL < 0) @else @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) @else @endif @php $conta = $item->CONTA; @endif @if($item->SALDO < 0) @else @endif @if(isset($item->SUBTOTAL_MES) && $info->VISUA_SUBTOTAIS_MESES == 1) @if($item->SALDO < 0) @else @endif @endif @endif @php $count++; @endforeach @if($info->TIPO_RELATORIO == 0) @if($info->VISUA_NOME_CONTRA_PARTIDA == 1) @endif @endif @if($info->TIPO_RELATORIO == 1) @endif
DATA LANÇAMENTOCONTRA-PARTIDAHISTÓRICO VR.DÉBITOS VR.CRÉDITOS SALDO
CONTA VR.DÉBITOS VR.CRÉDITOS SALDO
{{$item->DESC_CONTA_REL_1}}
SALDO ANTERIOR: R$ {{number_format(abs($item->SALDO_ANTERIOR), 2, ',' , '.')}} DSALDO ANTERIOR: R$ {{number_format($item->SALDO_ANTERIOR, 2, ',' , '.')}} C
{{ $item->DESC_DATA_REL }} {{ $item->MESTRE }}{{ $item->CONTA_CONTRAPARTIDA }}{{ $item->HISTORICO }} R$ {{number_format($item->VALOR_DEBITO, 2, ',' , '.')}} R$ {{number_format($item->VALOR_CREDITO, 2, ',' , '.')}}R$ {{number_format(abs($item->SALDO), 2, ',' , '.')}} DR$ {{number_format($item->SALDO, 2, ',' , '.')}} C
SUB-TOTAL {{$item->DESC_MES}}: R$ {{number_format($item->VALOR_DEBITO_TOTAL, 2, ',' , '.')}} R$ {{number_format($item->VALOR_CREDITO_TOTAL, 2, ',' , '.')}}R$ {{number_format(abs($item->SALDO), 2, ',' , '.')}} DR$ {{number_format($item->SALDO, 2, ',' , '.')}} C
TOTAIS: R$ {{number_format($totDebitoConta, 2, ',' , '.')}} R$ {{number_format($totCreditoConta, 2, ',' , '.')}}
SALDO ATUAL: R$ {{number_format(abs($item->SALDO_ATUAL), 2, ',' , '.')}} DSALDO ATUAL: R$ {{number_format($item->SALDO_ATUAL, 2, ',' , '.')}} C
{{$item->DESC_CONTA_REL_1}} - Saldo Anterior: R$ {{number_format(abs($item->SALDO_ANTERIOR), 2, ',' , '.')}} D{{$item->DESC_CONTA_REL_1}} - Saldo Anterior: R$ {{number_format($item->SALDO_ANTERIOR, 2, ',' , '.')}} C
{{ $item->DESC_CONTA_REL_2 }} R$ {{number_format($item->_TOT_VALOR_DEBITO, 2, ',' , '.')}} R$ {{number_format($item->_TOT_VALOR_CREDITO, 2, ',' , '.')}}R$ {{number_format(abs($item->SALDO), 2, ',' , '.')}} DR$ {{number_format($item->SALDO, 2, ',' , '.')}} C
SUB-TOTAL {{$item->DESC_MES}}: R$ {{number_format($item->VALOR_DEBITO_TOTAL, 2, ',' , '.')}} R$ {{number_format($item->VALOR_CREDITO_TOTAL, 2, ',' , '.')}}R$ {{number_format(abs($item->SALDO), 2, ',' , '.')}} DR$ {{number_format($item->SALDO, 2, ',' , '.')}} C
TOTALIZADORES R$ {{number_format($totDebito, 2, ',' , '.')}} R$ {{number_format($totCredito, 2, ',' , '.')}}
TOTALIZADORES R$ {{number_format($totDebito, 2, ',' , '.')}} R$ {{number_format($totCredito, 2, ',' , '.')}}


@foreach($info->SOCIOS as $socio)


{{$info->DADOS_GERAIS->DESC_ESTABELECIMENTO}}
{{$socio->NOME}}
RG: {{$socio->IDENTIDADE}} - CPF: {{$socio->CPF_F}}
SÓCIO

@endforeach

@if(isset($info->CONTADOR->NOME))

{{$info->CONTADOR->NOME}}
CRC: {{$info->CONTADOR->CRC}} - CPF: {{$info->CONTADOR->CPF_F}}
CONTADOR
@endif