{{$info->DADOS_GERAIS->DESC_ESTABELECIMENTO}}
{{$info->DADOS_GERAIS->CNPJ_ESTABELECIMENTO}}

{{$info->DADOS_GERAIS->ENDERECO}}, {{$info->DADOS_GERAIS->NUMERO}}
{{$info->DADOS_GERAIS->CEP}} - {{$info->DADOS_GERAIS->CIDADE}}/{{$info->DADOS_GERAIS->UF}}
@php $paginas = array_chunk($info->ITENS, count($info->ITENS)); @php $linhas = count($info->ITENS);
@if($info->TIPO_RELATORIO == 0) @if($info->IMPRESSAO_VALORES == 0 || $info->IMPRESSAO_VALORES == 2) @endif @if($info->IMPRESSAO_VALORES == 1 || $info->IMPRESSAO_VALORES == 2) @endif @endif @if($info->TIPO_RELATORIO == 1) @if($info->IMPRESSAO_VALORES == 0 || $info->IMPRESSAO_VALORES == 2) @endif @if($info->IMPRESSAO_VALORES == 1 || $info->IMPRESSAO_VALORES == 2) @endif @endif @php $count = 1; @php $conta = ''; @php $conta2 = ''; @php $grupoConta = ''; @php $contaAnaliticaAnt = ''; @php $totDebito = 0; @php $totCredito = 0; @foreach ($info->ITENS AS $item) @php $backgroundTr = 'white'; @if($count % 2 == 0) @endif @if($info->TIPO_RELATORIO == 0) @php $totDebito = $totDebito + $item->VALOR_DEBITO; @php $totCredito = $totCredito + $item->VALOR_CREDITO; @if(trim_null($item->ANALITICA) == 'N') @else @endif @if($item->SALDO_ANTERIOR < 0) @if(trim_null($item->ANALITICA) == 'N') @else @endif @else @if(trim_null($item->ANALITICA) == 'N') @else @endif @endif @if($info->IMPRESSAO_VALORES == 0 || $info->IMPRESSAO_VALORES == 2) @if(trim_null($item->ANALITICA) == 'N') @else @endif @endif @if($info->IMPRESSAO_VALORES == 1 || $info->IMPRESSAO_VALORES == 2) @if($item->MOV_LIQUIDO < 0) @if(trim_null($item->ANALITICA) == 'N') @else @endif @else @if(trim_null($item->ANALITICA) == 'N') @else @endif @endif @endif @if($item->SALDO < 0) @if(trim_null($item->ANALITICA) == 'N') @else @endif @else @if(trim_null($item->ANALITICA) == 'N') @else @endif @endif @endif @if($info->TIPO_RELATORIO == 1) @php $totDebito = $totDebito + $item->VALOR_DEBITO; @php $totCredito = $totCredito + $item->VALOR_CREDITO; @if(trim_null($item->ANALITICA) == 'N') @else @endif @if($item->SALDO_ANTERIOR < 0) @else @endif @if($info->IMPRESSAO_VALORES == 0 || $info->IMPRESSAO_VALORES == 2) @endif @if($info->IMPRESSAO_VALORES == 1 || $info->IMPRESSAO_VALORES == 2) @if($item->MOV_LIQUIDO < 0) @else @endif @endif @if($item->SALDO < 0) @else @endif @endif @php $count++; @endforeach
CONTA SALDO ANTERIORVR.DÉBITOS VR.CRÉDITOSMOV.LÍQUIDOSALDO
CONTA SALDO ANTERIORVR.DÉBITOS VR.CRÉDITOSMOV.LÍQUIDOSALDO
{{ $item->DESC_CONTA }}     {{ $item->DESC_CONTA }}R$ {{number_format(abs($item->SALDO_ANTERIOR), 2, ',' , '.')}} DR$ {{number_format(abs($item->SALDO_ANTERIOR), 2, ',' , '.')}} DR$ {{number_format(abs($item->SALDO_ANTERIOR), 2, ',' , '.')}} CR$ {{number_format(abs($item->SALDO_ANTERIOR), 2, ',' , '.')}} CR$ {{number_format($item->VALOR_DEBITO, 2, ',' , '.')}} R$ {{number_format($item->VALOR_CREDITO, 2, ',' , '.')}}R$ {{number_format($item->VALOR_DEBITO, 2, ',' , '.')}} R$ {{number_format($item->VALOR_CREDITO, 2, ',' , '.')}}R$ {{number_format(abs($item->MOV_LIQUIDO), 2, ',' , '.')}} DR$ {{number_format(abs($item->MOV_LIQUIDO), 2, ',' , '.')}} CR$ {{number_format(abs($item->MOV_LIQUIDO), 2, ',' , '.')}} CR$ {{number_format(abs($item->MOV_LIQUIDO), 2, ',' , '.')}} CR$ {{number_format(abs($item->SALDO), 2, ',' , '.')}} DR$ {{number_format(abs($item->SALDO), 2, ',' , '.')}} CR$ {{number_format($item->SALDO, 2, ',' , '.')}} CR$ {{number_format($item->SALDO, 2, ',' , '.')}} C
{{ $item->DESC_CONTA }}{{ $item->DESC_CONTA }}R$ {{number_format(abs($item->SALDO_ANTERIOR), 2, ',' , '.')}} DR$ {{number_format($item->SALDO_ANTERIOR, 2, ',' , '.')}} CR$ {{number_format($item->VALOR_DEBITO, 2, ',' , '.')}} R$ {{number_format($item->VALOR_CREDITO, 2, ',' , '.')}}R$ {{number_format(abs($item->MOV_LIQUIDO), 2, ',' , '.')}} DR$ {{number_format($item->MOV_LIQUIDO, 2, ',' , '.')}} CR$ {{number_format(abs($item->SALDO), 2, ',' , '.')}} DR$ {{number_format($item->SALDO, 2, ',' , '.')}} C
@if(count($info->RESUMO_GRUPOS) > 0)

RESUMO DOS GRANDES GRUPOS

@php $linhas = count($info->RESUMO_GRUPOS);
@if($info->TIPO_RELATORIO == 0) @if($info->IMPRESSAO_VALORES == 0 || $info->IMPRESSAO_VALORES == 2) @endif @if($info->IMPRESSAO_VALORES == 1 || $info->IMPRESSAO_VALORES == 2) @endif @endif @if($info->TIPO_RELATORIO == 1) @if($info->IMPRESSAO_VALORES == 0 || $info->IMPRESSAO_VALORES == 2) @endif @if($info->IMPRESSAO_VALORES == 1 || $info->IMPRESSAO_VALORES == 2) @endif @endif @php $count = 1; @php $conta = ''; @php $conta2 = ''; @php $saldoAnterior = 0; @php $saldoAtual = 0; @php $totDebito = 0; @php $totCredito = 0; @foreach ($info->RESUMO_GRUPOS AS $item) @php $backgroundTr = 'white'; @php $contaAnt = $item->CONTA; @if($count % 2 == 0) @endif @if($info->TIPO_RELATORIO == 0) @if($item->GRUPOCONTA >= 3) @php $saldoAnterior = $saldoAnterior + $item->SALDO_ANTERIOR; @php $saldoAtual = $saldoAtual + $item->SALDO; @php $totDebito = $totDebito + $item->VALOR_DEBITO; @php $totCredito = $totCredito + $item->VALOR_CREDITO; @endif @if($item->SALDO_ANTERIOR < 0) @else @endif @if($info->IMPRESSAO_VALORES == 0 || $info->IMPRESSAO_VALORES == 2) @endif @if($info->IMPRESSAO_VALORES == 1 || $info->IMPRESSAO_VALORES == 2) @if($item->MOV_LIQUIDO < 0) @else @endif @endif @if($item->SALDO < 0) @else @endif @endif @if($info->TIPO_RELATORIO == 1) @if($item->GRUPOCONTA >= 3) @php $saldoAnterior = $saldoAnterior + $item->SALDO_ANTERIOR; @php $saldoAtual = $saldoAtual + $item->SALDO; @php $totDebito = $totDebito + $item->VALOR_DEBITO; @php $totCredito = $totCredito + $item->VALOR_CREDITO; @endif @if($item->SALDO_ANTERIOR < 0) @else @endif @if($info->IMPRESSAO_VALORES == 0 || $info->IMPRESSAO_VALORES == 2) @endif @if($info->IMPRESSAO_VALORES == 1 || $info->IMPRESSAO_VALORES == 2) @if($item->MOV_LIQUIDO < 0) @else @endif @endif @if($item->SALDO < 0) @else @endif @endif @php $count++; @endforeach @if($info->TIPO_RELATORIO == 0) @if($saldoAnterior < 0) @else @endif @if($info->IMPRESSAO_VALORES == 0 || $info->IMPRESSAO_VALORES == 2) @endif @if($info->IMPRESSAO_VALORES == 1 || $info->IMPRESSAO_VALORES == 2) @endif @if($saldoAtual < 0) @else @endif @endif @if($info->TIPO_RELATORIO == 1) @if($saldoAnterior < 0) @else @endif @if($info->IMPRESSAO_VALORES == 0 || $info->IMPRESSAO_VALORES == 2) @endif @if($info->IMPRESSAO_VALORES == 1 || $info->IMPRESSAO_VALORES == 2) @endif @if($saldoAtual < 0) @else @endif @endif
CONTA SALDO ANTERIORVR.DÉBITOS VR.CRÉDITOSMOV.LÍQUIDOSALDO
CONTA SALDO ANTERIORVR.DÉBITOS VR.CRÉDITOSMOV.LÍQUIDOSALDO
{{ $item->DESC_CONTA }}R$ {{number_format(abs($item->SALDO_ANTERIOR), 2, ',' , '.')}} DR$ {{number_format($item->SALDO_ANTERIOR, 2, ',' , '.')}} CR$ {{number_format($item->VALOR_DEBITO, 2, ',' , '.')}} R$ {{number_format($item->VALOR_CREDITO, 2, ',' , '.')}}R$ {{number_format(abs($item->MOV_LIQUIDO), 2, ',' , '.')}} DR$ {{number_format($item->MOV_LIQUIDO, 2, ',' , '.')}} CR$ {{number_format(abs($item->SALDO), 2, ',' , '.')}} DR$ {{number_format($item->SALDO, 2, ',' , '.')}} C
{{ $item->DESC_CONTA }}R$ {{number_format(abs($item->SALDO_ANTERIOR), 2, ',' , '.')}} DR$ {{number_format($item->SALDO_ANTERIOR, 2, ',' , '.')}} CR$ {{number_format($item->VALOR_DEBITO, 2, ',' , '.')}} R$ {{number_format($item->VALOR_CREDITO, 2, ',' , '.')}}R$ {{number_format(abs($item->MOV_LIQUIDO), 2, ',' , '.')}} DR$ {{number_format($item->MOV_LIQUIDO, 2, ',' , '.')}} CR$ {{number_format(abs($item->SALDO), 2, ',' , '.')}} DR$ {{number_format($item->SALDO, 2, ',' , '.')}} C
RESULTADO R$ {{number_format(abs($saldoAtual), 2, ',' , '.')}} DR$ {{number_format($saldoAtual, 2, ',' , '.')}} C
RESULTADO R$ {{number_format(abs($saldoAtual), 2, ',' , '.')}} DR$ {{number_format($saldoAtual, 2, ',' , '.')}} C
@endif

@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