MODELO {{ $ret['MODELO']['DESC_ID'] }} - {{ $ret['MODELO']['DESCRICAO'] }}

DADOS GERAIS

FAMÍLIA COMERCIAL:  {{ $ret['MODELO']['DESC_FAMILIA_ALT'] }}

LINHA:  {{ $ret['MODELO']['DESC_LINHA'] }}

PERFIL DO MODELO:  {{ $ret['MODELO']['DESC_CLASSIFICACAO'] }}

GRADE:  {{ $ret['MODELO']['GRADE'] }}

DATA DE INCLUSÃO:  {{ $ret['MODELO']['DATA_INCLUSAO'] }}

DATA DE LANÇAMENTO:  {{ $ret['MODELO']['DATA_LANCAMENTO'] }}

DESCRICAO COMERCIAL:  {{ $ret['MODELO']['DESCRICAO_COMERCIAL'] }}

CATEGORIA:  {{ $ret['MODELO']['DESC_CATEGORIA'] }}

@foreach ($ret['ARQUIVOS_MODELO']['IMAGENS'] AS $arq)
@endforeach
OBSERVAÇÕES COMERCIAIS
{{ $ret['MODELO']['OBSERVACAO_COMERCIAL'] }}


CORES

@php $cont = 0;
@php $cores = $ret['CORES']; @php $outros = $ret['OUTRO']; @foreach ($outros AS $out) @foreach ($out AS $cor) @endforeach @endforeach
Descrição
{{ $cor->DESCRICAO }}


COMPOSIÇÃO DE MATERIAIS

@php $cont = 0;
@php $composicao = $ret['COMPOSICAO']; @if(count($ret['COMPOSICAO']) > 0) @endif @foreach ($composicao AS $comp) @php $cont++; @endforeach
ID Descrição Percentual
{{ $comp->DESC_ID }} {{ $comp->DESCRICAO }} {{number_format($comp->PERCENTUAL, 2, ',' , '.')}} %


COMPOSIÇÃO DE CONJUNTO

@php $cont = 0;
@php $modelo_conjunto = $ret['MOD_CONJUNTO']; @if(count($ret['MOD_CONJUNTO']) > 0) @endif @foreach ($modelo_conjunto AS $conj) @php $cont++; @endforeach
Modelo Família Comercial Linha
{{ $conj->DESC_MODELO }} {{ $conj->DESC_FAMILIA }} {{ $conj->DESC_LINHA }}


FICHA DE CONSUMO

@php $cont = 0; @php $total_custo_geral = 0;
@php $paginas = count($ret['CONSUMO']) == 0 ? 0 : array_chunk($ret['CONSUMO'], count($ret['CONSUMO'])); @php $linhas = count($ret['CONSUMO']); @php $consumo = $ret['CONSUMO']; @if(count($ret['CONSUMO']) > 0) @if(trim_null($ret['MODELO']['GRADE']) == '' || Number($ret['MODELO']['GRADE_ID']) == 0) @else @if(trim_null($ret['MODELO']['B01']) == '1') @endif @if(trim_null($ret['MODELO']['B02']) == '1') @endif @if(trim_null($ret['MODELO']['B03']) == '1') @endif @if(trim_null($ret['MODELO']['B04']) == '1') @endif @if(trim_null($ret['MODELO']['B05']) == '1') @endif @if(trim_null($ret['MODELO']['B06']) == '1') @endif @if(trim_null($ret['MODELO']['B07']) == '1') @endif @if(trim_null($ret['MODELO']['B08']) == '1') @endif @if(trim_null($ret['MODELO']['B09']) == '1') @endif @if(trim_null($ret['MODELO']['B10']) == '1') @endif @if(trim_null($ret['MODELO']['B11']) == '1') @endif @if(trim_null($ret['MODELO']['B12']) == '1') @endif @if(trim_null($ret['MODELO']['B13']) == '1') @endif @if(trim_null($ret['MODELO']['B14']) == '1') @endif @if(trim_null($ret['MODELO']['B15']) == '1') @endif @if(trim_null($ret['MODELO']['B16']) == '1') @endif @if(trim_null($ret['MODELO']['B17']) == '1') @endif @if(trim_null($ret['MODELO']['B18']) == '1') @endif @if(trim_null($ret['MODELO']['B19']) == '1') @endif @if(trim_null($ret['MODELO']['B20']) == '1') @endif @endif @endif @foreach ($consumo AS $item) @php $cont++; @if(trim_null($ret['MODELO']['GRADE']) == '' || Number($ret['MODELO']['GRADE_ID']) == 0) @else @if(trim_null($ret['MODELO']['B01']) == '1') @endif @if(trim_null($ret['MODELO']['B02']) == '1') @endif @if(trim_null($ret['MODELO']['B03']) == '1') @endif @if(trim_null($ret['MODELO']['B04']) == '1') @endif @if(trim_null($ret['MODELO']['B05']) == '1') @endif @if(trim_null($ret['MODELO']['B06']) == '1') @endif @if(trim_null($ret['MODELO']['B07']) == '1') @endif @if(trim_null($ret['MODELO']['B08']) == '1') @endif @if(trim_null($ret['MODELO']['B09']) == '1') @endif @if(trim_null($ret['MODELO']['B10']) == '1') @endif @if(trim_null($ret['MODELO']['B11']) == '1') @endif @if(trim_null($ret['MODELO']['B12']) == '1') @endif @if(trim_null($ret['MODELO']['B13']) == '1') @endif @if(trim_null($ret['MODELO']['B14']) == '1') @endif @if(trim_null($ret['MODELO']['B15']) == '1') @endif @if(trim_null($ret['MODELO']['B16']) == '1') @endif @if(trim_null($ret['MODELO']['B17']) == '1') @endif @if(trim_null($ret['MODELO']['B18']) == '1') @endif @if(trim_null($ret['MODELO']['B19']) == '1') @endif @if(trim_null($ret['MODELO']['B20']) == '1') @endif @endif @endforeach
Cor Produto Tam.Consumo{{ strtoupper(trim_null($ret['MODELO']['T01'])) }}{{ strtoupper(trim_null($ret['MODELO']['T02'])) }}{{ strtoupper(trim_null($ret['MODELO']['T03'])) }}{{ strtoupper(trim_null($ret['MODELO']['T04'])) }}{{ strtoupper(trim_null($ret['MODELO']['T05'])) }}{{ strtoupper(trim_null($ret['MODELO']['T06'])) }}{{ strtoupper(trim_null($ret['MODELO']['T07'])) }}{{ strtoupper(trim_null($ret['MODELO']['T08'])) }}{{ strtoupper(trim_null($ret['MODELO']['T09'])) }}{{ strtoupper(trim_null($ret['MODELO']['T10'])) }}{{ strtoupper(trim_null($ret['MODELO']['T11'])) }}{{ strtoupper(trim_null($ret['MODELO']['T12'])) }}{{ strtoupper(trim_null($ret['MODELO']['T13'])) }}{{ strtoupper(trim_null($ret['MODELO']['T14'])) }}{{ strtoupper(trim_null($ret['MODELO']['T15'])) }}{{ strtoupper(trim_null($ret['MODELO']['T16'])) }}{{ strtoupper(trim_null($ret['MODELO']['T17'])) }}{{ strtoupper(trim_null($ret['MODELO']['T18'])) }}{{ strtoupper(trim_null($ret['MODELO']['T19'])) }}{{ strtoupper(trim_null($ret['MODELO']['T20'])) }}
{{ $item['COR_DESCRICAO2'] }} {{ $item['DESC_PRODUTO_UM2'] }} {{ $item['DESC_TAM'] }}{{ $item['CCONSUMO_QUANTIDADE'] }}{{ $item['CCONSUMO_QUANTIDADE_T01'] }}{{ $item['CCONSUMO_QUANTIDADE_T02'] }}{{ $item['CCONSUMO_QUANTIDADE_T03'] }}{{ $item['CCONSUMO_QUANTIDADE_T04'] }}{{ $item['CCONSUMO_QUANTIDADE_T05'] }}{{ $item['CCONSUMO_QUANTIDADE_T06'] }}{{ $item['CCONSUMO_QUANTIDADE_T07'] }}{{ $item['CCONSUMO_QUANTIDADE_T08'] }}{{ $item['CCONSUMO_QUANTIDADE_T09'] }}{{ $item['CCONSUMO_QUANTIDADE_T10'] }}{{ $item['CCONSUMO_QUANTIDADE_T11'] }}{{ $item['CCONSUMO_QUANTIDADE_T12'] }}{{ $item['CCONSUMO_QUANTIDADE_T13'] }}{{ $item['CCONSUMO_QUANTIDADE_T14'] }}{{ $item['CCONSUMO_QUANTIDADE_T15'] }}{{ $item['CCONSUMO_QUANTIDADE_T16'] }}{{ $item['CCONSUMO_QUANTIDADE_T17'] }}{{ $item['CCONSUMO_QUANTIDADE_T18'] }}{{ $item['CCONSUMO_QUANTIDADE_T19'] }}{{ $item['CCONSUMO_QUANTIDADE_T20'] }}


SERVIÇOS EXTERNOS

@php $cont = 0;
@php $servicos = $ret['SERVICOS']; @if(count($ret['SERVICOS']) > 0) @endif @foreach ($servicos AS $serv) @php $cont++; @endforeach
Serviço % Custo MO. Direta
{{ $serv->DESC_PRODUTO }} {{number_format($serv->PERCENTUAL_CUSTO_DIRETO, 2, ',' , '.')}} %


FICHA DE PROCESSOS

@php $arquivos = $ret['ARQUIVOS'];
@foreach ($arquivos['IMAGENS'] AS $arq)
@endforeach
@php $matriz = $ret['MATRIZ']; @foreach ($matriz AS $campo) @if($campo->VALOR != '') @if($campo->TIPO == '1' && ($campo->TAMANHO_CAMPO == 0 || $campo->TAMANHO_CAMPO < 0))
{{ $campo->TIPO_DESCRICAO }}:  {{ Number($campo->VALOR) }}

@endif @if($campo->TIPO == '1' && $campo->TAMANHO_CAMPO > 0)
{{ $campo->TIPO_DESCRICAO }}:  {{ number_format($campo->VALOR, $campo->TAMANHO_CAMPO, ',' , '.')}}

@endif @if($campo->TIPO == '2' && ($campo->TAMANHO_CAMPO == '1' || $campo->TAMANHO_CAMPO == '0'))
{{ $campo->TIPO_DESCRICAO }}:  {{ $campo->VALOR }}

@endif @if($campo->TIPO == '2' && $campo->TAMANHO_CAMPO == '2')
{{ $campo->TIPO_DESCRICAO }}:  {{ $campo->VALOR }}

@endif @if($campo->TIPO == '2' && $campo->TAMANHO_CAMPO == '3')
{{ $campo->TIPO_DESCRICAO }}
{{ $campo->VALOR }}

@endif @if($campo->TIPO == '3')
{{ $campo->TIPO_DESCRICAO }}:  {{ $campo->VALOR }}

@endif @if($campo->TIPO == '4')
{{ $campo->TIPO_DESCRICAO }}:  {{ $campo->DESC_ITEM }}

@endif @if($campo->TIPO == '5')
@foreach($campo->TABELA as $tabela) @if($tabela == $campo->TABELA[0]) @foreach($tabela->COLUNAS as $colunas) @endforeach @endif @endforeach @foreach($campo->TABELA as $linha) @foreach($linha->COLUNAS as $coluna) @endforeach @endforeach
{{ $colunas->COLUNA->DESCRICAO}}
{{ $linha->LINHA->DESCRICAO }}{{ $coluna->VALOR }}
@endif @endif @endforeach


FICHA PARAMETRIZÁVEL

@php $cont = 0;
@php $parametrizavel = $ret['PARAMETRIZAVEL']; @php $cont_campos_param = 1; @if(count($ret['PARAMETRIZAVEL']) > 0) @if(trim_null($ret['MODELO']['GRADE']) == '' || Number($ret['MODELO']['GRADE_ID']) == 0) @php $cont_campos_param++; @else @if(trim_null($ret['MODELO']['B01']) == '1') @php $cont_campos_param++; @endif @if(trim_null($ret['MODELO']['B02']) == '1') @php $cont_campos_param++; @endif @if(trim_null($ret['MODELO']['B03']) == '1') @php $cont_campos_param++; @endif @if(trim_null($ret['MODELO']['B04']) == '1') @php $cont_campos_param++; @endif @if(trim_null($ret['MODELO']['B05']) == '1') @php $cont_campos_param++; @endif @if(trim_null($ret['MODELO']['B06']) == '1') @php $cont_campos_param++; @endif @if(trim_null($ret['MODELO']['B07']) == '1') @php $cont_campos_param++; @endif @if(trim_null($ret['MODELO']['B08']) == '1') @php $cont_campos_param++; @endif @if(trim_null($ret['MODELO']['B09']) == '1') @php $cont_campos_param++; @endif @if(trim_null($ret['MODELO']['B10']) == '1') @php $cont_campos_param++; @endif @if(trim_null($ret['MODELO']['B11']) == '1') @php $cont_campos_param++; @endif @if(trim_null($ret['MODELO']['B12']) == '1') @endif @if(trim_null($ret['MODELO']['B13']) == '1') @php $cont_campos_param++; @endif @if(trim_null($ret['MODELO']['B14']) == '1') @php $cont_campos_param++; @endif @if(trim_null($ret['MODELO']['B15']) == '1') @php $cont_campos_param++; @endif @if(trim_null($ret['MODELO']['B16']) == '1') @php $cont_campos_param++; @endif @if(trim_null($ret['MODELO']['B17']) == '1') @php $cont_campos_param++; @endif @if(trim_null($ret['MODELO']['B18']) == '1') @php $cont_campos_param++; @endif @if(trim_null($ret['MODELO']['B19']) == '1') @php $cont_campos_param++; @endif @if(trim_null($ret['MODELO']['B20']) == '1') @php $cont_campos_param++; @endif @endif @endif @foreach ($parametrizavel AS $paramz) @if($paramz->VISIVEL == 1) @php $cont++; @if(trim_null($ret['MODELO']['GRADE']) != '' || Number($ret['MODELO']['GRADE_ID']) != 0) @if(trim_null($ret['MODELO']['B01']) == '1') @endif @if(trim_null($ret['MODELO']['B02']) == '1') @endif @if(trim_null($ret['MODELO']['B03']) == '1') @endif @if(trim_null($ret['MODELO']['B04']) == '1') @endif @if(trim_null($ret['MODELO']['B05']) == '1') @endif @if(trim_null($ret['MODELO']['B06']) == '1') @endif @if(trim_null($ret['MODELO']['B07']) == '1') @endif @if(trim_null($ret['MODELO']['B08']) == '1') @endif @if(trim_null($ret['MODELO']['B09']) == '1') @endif @if(trim_null($ret['MODELO']['B10']) == '1') @endif @if(trim_null($ret['MODELO']['B11']) == '1') @endif @if(trim_null($ret['MODELO']['B12']) == '1') @endif @if(trim_null($ret['MODELO']['B13']) == '1') @endif @if(trim_null($ret['MODELO']['B14']) == '1') @endif @if(trim_null($ret['MODELO']['B15']) == '1') @endif @if(trim_null($ret['MODELO']['B16']) == '1') @endif @if(trim_null($ret['MODELO']['B17']) == '1') @endif @if(trim_null($ret['MODELO']['B18']) == '1') @endif @if(trim_null($ret['MODELO']['B19']) == '1') @endif @if(trim_null($ret['MODELO']['B20']) == '1') @endif @endif @if(trim_null($paramz->OBSERVACAO) != '') @endif @endif @endforeach
ParâmetroConsumo{{ strtoupper(trim_null($ret['MODELO']['T01'])) }}{{ strtoupper(trim_null($ret['MODELO']['T02'])) }}{{ strtoupper(trim_null($ret['MODELO']['T03'])) }}{{ strtoupper(trim_null($ret['MODELO']['T04'])) }}{{ strtoupper(trim_null($ret['MODELO']['T05'])) }}{{ strtoupper(trim_null($ret['MODELO']['T06'])) }}{{ strtoupper(trim_null($ret['MODELO']['T07'])) }}{{ strtoupper(trim_null($ret['MODELO']['T08'])) }}{{ strtoupper(trim_null($ret['MODELO']['T09'])) }}{{ strtoupper(trim_null($ret['MODELO']['T10'])) }}{{ strtoupper(trim_null($ret['MODELO']['T11'])) }}{{ strtoupper(trim_null($ret['MODELO']['T12'])) }}{{ strtoupper(trim_null($ret['MODELO']['T13'])) }}{{ strtoupper(trim_null($ret['MODELO']['T14'])) }}{{ strtoupper(trim_null($ret['MODELO']['T15'])) }}{{ strtoupper(trim_null($ret['MODELO']['T16'])) }}{{ strtoupper(trim_null($ret['MODELO']['T17'])) }}{{ strtoupper(trim_null($ret['MODELO']['T18'])) }}{{ strtoupper(trim_null($ret['MODELO']['T19'])) }}{{ strtoupper(trim_null($ret['MODELO']['T20'])) }}
{{ $paramz->TIPO_DESCRICAO }}{{ $paramz->T01 }}{{ $paramz->T02 }}{{ $paramz->T03 }}{{ $paramz->T04 }}{{ $paramz->T05 }}{{ $paramz->T06 }}{{ $paramz->T07 }}{{ $paramz->T08 }}{{ $paramz->T09 }}{{ $paramz->T10 }}{{ $paramz->T11 }}{{ $paramz->T12 }}{{ $paramz->T13 }}{{ $paramz->T14 }}{{ $paramz->T15 }}{{ $paramz->T16 }}{{ $paramz->T17 }}{{ $paramz->T18 }}{{ $paramz->T19 }}{{ $paramz->T20 }}
{{ $paramz->OBSERVACAO }}


ROTEIRO DE PRODUÇÃO

@php $cont = 0;
@php $roteiro = $ret['ROTEIRO']; @if(count($ret['ROTEIRO']) > 0) @endif @foreach ($roteiro AS $rot) @php $cont++; @endforeach
Ordem Etapa
{{ $rot->DESC_ORDEM }} {{ $rot->DESC_SETOR }}


FLUXO DE PRODUÇÃO

@php $cont = 0;
@php $fluxos = $ret['FLUXO'][0]->ARRAY; @if(count($ret['FLUXO'][0])) @endif @foreach ($fluxos AS $flx) @php $cont++; @endforeach
Fluxo de Produção Tipo Seq. Padrão Carga
{{ $flx->DESC_FLUXO }} {{ $flx->DESC_TIPO }} {{ $flx->ORDEM }} {{ $flx->CT00 }} @if(trim_null($flx->CARGA) == '1') @else @endif


OBSERVAÇÕES DE PRODUÇÃO
{{ $ret['MODELO']['OBSERVACAO'] }}