GCWEB - {{grupo_empresarial}}
@php $cont = 0; @foreach ($RELATORIO['DETALHE'] as $coluna) @php $cont++; @php $linhas = $cont; @endforeach @php $cont_linhas = 0; @php $grupo_old = ''; @foreach ($DADOS as $item) @php $cont_linhas++; @php $tipo_linha = ($cont_linhas%2) == 0; @if ( $RELATORIO['RELATORIO']->AGRUPAR == 1) @php $grupo = strtoupper($RELATORIO['RELATORIO']->AGRUPAMENTO); @php $grupo_desc = $item[$grupo]; @if ( $grupo_old != $grupo_desc) @php $grupo_old = $grupo_desc; @endif @endif @if ($tipo_linha) @else @endif @foreach ($RELATORIO['DETALHE'] as $coluna) @php $campo = strtoupper($coluna->CAMPO); @if ($coluna->CLASS == 'col-numerica') @php $pos = stripos($coluna->MASCARA,'.'); @if ($pos == 1) @php $nuber = number_format($item[$campo],strlen($coluna->MASCARA)-2,",","."); @else @php $nuber = str_pad( $item[$campo], strlen($coluna->MASCARA)); @endif @else @endif @endforeach @endforeach
{{$coluna->DESCRICAO}}
{{$grupo_old}}
{{$nuber}}{{$item[$campo]}}