@if($json && isset($registro_act['periodo']))
<div class="col-md-12 hide_api " id="vista_contable_por">
	<!-- inicio ACTIVOS-PASIVOS-PN resumido-->
	<div id="activo_pasivo_patrimonio" class="col-md-12 act_pas_pat_por">
			<div class="col-md-12">
				<h4 style="padding:10px;" class="text-center  titulo-contables heading-block">Ativo</h4>
			</div>
			<table align="center" style="width:95%" class="table table-striped">
				<tr class="background-fidelitas text-left">
					<td >Data</td>
					@foreach($registro_act['periodo'] as $fecha_estado)	
					<td class="text-right">{{ $fecha_estado }}</td>
					@endforeach
				</tr>

				<tr class="text-left">
					<td>Ativo Circulante Total</td>
					@foreach($registro_act['ac_total'] as $total_ac)	
					<td class="text-right">{{ number_format($total_ac/1000,0,',',' ')}}</td>
					@endforeach
				</tr>

				<tr class="text-left">
					<td>Ativo não circulante</td>
					@foreach($registro_act['anc_total'] as $total_acn)	
					<td class="text-right">{{ number_format($total_acn/1000,0,',',' ')}}</td>
					@endforeach
				</tr>

				<tr class="text-left">
					<td>Ativo Total</td>	
					@foreach($registro_act['act_total'] as $total)
					<td class="text-right">{{ number_format($total/1000,0,',',' ')}}</td>
					@endforeach
				</tr>

				<tr class="text-left">
					<td>Passivo Circulante</td>
					@foreach($registro_pas_ext['pc_total'] as $total_pasivoc )
					<td class="text-right">{{ number_format($total_pasivoc/1000,0,',',' ')}}</td>
					@endforeach
				</tr>

				<tr class="text-left">
					<td>Passivo não Circulante</td>			
					@foreach($registro_pas_ext['pnc_total'] as $total_pasivo_no )
					<td class="text-right">{{ number_format($total_pasivo_no/1000,0,',',' ')}}</td>
					@endforeach
				</tr>

				<tr class="text-left">
					<td>Passivo Total</td>			
					@foreach($registro_pas_ext['pas_total'] as $total )
					<td class="text-right">{{ number_format($total/1000,0,',',' ')}}</td>
					@endforeach
				</tr>

				<tr class="text-left">
					<td>Patrimônio Líquido</td>			
					@foreach($registro_pas_ext['patrimonio'] as $patrimonio )
					<td class="text-right">{{ number_format($patrimonio/1000,0,',',' ')}}</td>
					@endforeach
				</tr>

			</table>

			<div class="col-md-12">
				<div class="col-md-12 text-right fw600 font15 font-descripcion">Importâncias expressas em Miles {{ $registro_act['nombre_moneda'] }}</div>
			</div>
	</div>
	<!--Fin  ACTIVOS-PASIVOS-PN resumido --> 


	<!-- inicio ACTIVO extendido-->
	<div id="activo_extendido" class="hidden col-md-12 act_ext_por">
		<div class="col-md-12">
			<h4 style="padding:10px;" class="text-center titulo-contables heading-block">Ativo (Extendido)</h4>
		</div>

	<div class="col-md-12">
		<table align="center" style="width:95%" class="table table-striped">	
			<tr class="background-fidelitas text-left">
				<td >Data</td>
				@foreach($registro_act_ext['periodo'] as $fecha)
				<td class="text-right">{{ $fecha }}</td>
				@endforeach
			</tr>

			<tr class="text-left">
				<td>Disponibilidades</td>
				@foreach($registro_act_ext['ac_cajban'] as $caja)	
				<td class="text-right">{{ number_format($caja/1000,0,',',' ')}}</td>
				@endforeach
			</tr>

			<tr class="text-left">
				<td>Investimentos Circulantes</td>
				@foreach($registro_act_ext['ac_inver'] as $inversion)	
				<td class="text-right">{{ number_format($inversion/1000,0,',',' ')}}</td>
				@endforeach
					
			</tr>
			
			<tr class="text-left">
				<td>Ativos não circulantes - Clientes</td>
				@foreach($registro_act_ext['ac_crevta'] as $creditoventa)
				<td class="text-right">{{ number_format($creditoventa/1000,0,',',' ')}}</td>
				@endforeach
			</tr>

			<tr class="text-left">
				<td>Créditos Diversos</td>
				@foreach($registro_act_ext['ac_otrcre'] as $otrocredito)
				<td class="text-right">{{ number_format($otrocredito/1000,0,',',' ')}}</td>
				@endforeach
			</tr>

			<tr class="text-left">
				<td>Estoques</td>
				@foreach($registro_act_ext['ac_biecam'] as $bienescambio) 
				<td class="text-right">{{ number_format($bienescambio/1000,0,',',' ')}}</td>
				@endforeach
			</tr>

			<tr class="text-left">
				<td>Estoques Intangíveis</td>
				@foreach($registro_act_ext['ac_bietan'] as $bienesintangibles)
				<td class="text-right">{{ number_format($bienesintangibles/1000,0,',',' ')}}</td>
				@endforeach
			</tr>

			<tr class="text-left">
				<td>Outros ativos circulantes</td>
				@foreach($registro_act_ext['ac_otract'] as $otroactivo)
				<td class="text-right">{{ number_format($otroactivo/1000,0,',',' ')}}</td>
				@endforeach
			</tr>

			<tr class="text-left">
				<td>Ativo Circulante Total</td>
				@foreach($registro_act_ext['ac_total'] as $totalactivo)
				<td class="text-right">{{ number_format($totalactivo/1000,0,',',' ')}}</td>
				@endforeach
			</tr>

			<tr class="text-left">
				<td>Clientes</td>
				@foreach($registro_act_ext['anc_crevta'] as $creditoventaNC )	
				<td class="text-right">{{ number_format($creditoventaNC/1000,0,',',' ')}}</td>
				@endforeach
			</tr>

			<tr class="text-left">
				<td>Outros Créditos não circulantes</td>
				@foreach($registro_act_ext['anc_otrcre'] as $otrocreditoNC)	
				<td class="text-right">{{ number_format($otrocreditoNC/1000,0,',',' ')}}</td>
				@endforeach
			</tr>

			<tr class="text-left">
				<td>Outros investimentos não circulantes</td>
				@foreach($registro_act_ext['anc_inver'] as $otrainversionNC )	
				<td class="text-right">{{ number_format($otrainversionNC/1000,0,',',' ')}}</td>
				@endforeach
			</tr>

			<tr class="text-left">
				<td>Valor de origem do Ativo Imobilizado</td>
				@foreach($registro_act_ext['anc_bieusovo'] as $bienesusovalorNC)	
				<td class="text-right">{{ number_format($bienesusovalorNC/1000,0,',',' ')}}</td>
				@endforeach
			</tr>

			<tr class="text-left">
				<td>Depreciação acumulada</td>
				@foreach($registro_act_ext['anc_depacu'] as $depre)
				<td class="text-right">{{ number_format($depre/1000,0,',',' ')}}</td>
				@endforeach
			</tr>

			<tr class="text-left">
				<td>Ativo Imobilizado</td>
				@foreach($registro_act_ext['anc_bieuso'] as $bienesusoNC)	
				<td class="text-right">{{ number_format($bienesusoNC/1000,0,',',' ')}}</td>
				@endforeach
			</tr>

			<tr class="text-left">
				<td>Intangíveis não circulantes</td>
				@foreach($registro_act_ext['anc_actint'] as $activointangibleNC )	
				<td class="text-right">{{ number_format($activointangibleNC/1000,0,',',' ')}}</td>
				@endforeach
			</tr>

			<tr class="text-left">
				<td>Outros ativos não circulantes</td>
				@foreach($registro_act_ext['anc_otract'] as $otroactivoNC )	
				<td class="text-right">{{ number_format($otroactivoNC/1000,0,',',' ')}}</td>
				@endforeach
			</tr>

			<tr class="text-left">
				<td>Ativo não circulante total</td>
				@foreach($registro_act_ext['anc_total'] as $totalactivoNC )	
				<td class="text-right">{{ number_format($totalactivoNC/1000,0,',',' ')}}</td>
				@endforeach
			</tr>
			
			<tr class="text-left">
				<td>Ativo Total</td>
				@foreach($registro_act_ext['act_total'] as $totalactivo)	
				<td class="text-right">{{ number_format($totalactivo/1000,0,',',' ')}}</td>
				@endforeach
			</tr>	
		</table>

		<div class="col-md-12">
			<div class="col-md-12 text-right fw600 font15 font-descripcion">Importâncias expressas em Miles {{ $registro_act_ext['nombre_moneda']}}</div>
		</div>

	</div>
	</div>
	<!-- Fin ACTIVO extendido-->

	<!-- GRAFICO-->
	<div class="col-md-12 col-sm-12 col-xs-12 graficos-contables">

		@if($grafico_liquidez_corriente != '')
				<div class="col-md-4 col-sm-12 col-xs-12">
				<img src="{{$grafico_liquidez_corriente}}" style="width: 100%;">
			</div>
		@else
			<div class="col-md-4 col-sm-12 col-xs-12">
				<div class="text-right capital_de_trabajo_por">
				</div>
			</div>
		@endif

		@if($grafico_patrimonial != '')
				<div class="col-md-4 col-sm-12 col-xs-12">
				<img src="{{$grafico_patrimonial}}" style="width: 100%;">
			</div>
		@else
			<div class="col-md-4 col-sm-12 col-xs-12">
				<div class="text-right patrimonial_por" >
				</div>
			</div>
		@endif

		@if($grafico_solvencia != '')
				<div class="col-md-4 col-sm-12 col-xs-12">
				<img src="{{$grafico_solvencia}}" style="width: 100%;">
			</div>
		@else
			<div class="col-md-4 col-sm-12 col-xs-12">
				<div class="text-right solvencia_por" >
				</div>
				<div class="text-right" style="height: 35px">&nbsp;</div>
			</div>
		@endif	
	</div>

	@if(!$json)
	<div style="page-break-before:always;">
	</div>
	@endif


	<!-- Inicio PASIVO extendido -->
	<div id="pasivo_patrimonio_extendido" class="hidden col-md-12 pas_ext_por">
		<div class="col-md-12">
			<h4 style="padding:10px;" class="text-center  titulo-contables heading-block">Passivos / Patrimônio Líquido</h4>
		</div>

		<div class="col-md-12">
			<table align="center" style="width:95%" class="table table-striped">
			
			<tr class="background-fidelitas text-left">
				<td>Data</td>	
				@foreach($registro_pas_ext['periodo'] as $fechap )	
				<td class="text-right">{{ $fechap }}</td>		
				@endforeach
			</tr>

			<tr class="text-left">
				<td>Fornecedores</td>
				@foreach($registro_pas_ext['pc_ctapag'] as $cuentapagar )	
				<td class="text-right">{{ number_format($cuentapagar/1000,0,',',' ')}}</td>
				@endforeach
			</tr>

			<tr class="text-left">
				<td>Empréstimos e Financiamentos</td>
				@foreach($registro_pas_ext['pc_presta'] as $prestamo )
				<td class="text-right">{{ number_format($prestamo/1000,0,',',' ')}}</td>
				@endforeach
			</tr>

			<tr class="text-left">
				<td>Dívidas Sociais</td>
				@foreach($registro_pas_ext['pc_remune'] as $remuneracion )
				<td class="text-right">{{ number_format($remuneracion/1000,0,',',' ')}}</td>
				@endforeach
			</tr>

			<tr class="text-left">
				<td>Dívidas Fiscais (Impostos, Taxas)</td>
				@foreach($registro_pas_ext['pc_carfis'] as $cargafiscal )
				<td class="text-right">{{ number_format($cargafiscal/1000,0,',',' ')}}</td>
				@endforeach
			</tr>

			<tr class="text-left">
				<td>Pagamentos Antecipados dos Clientes</td>
				@foreach($registro_pas_ext['pc_antcli'] as $anticipo_cliente )
				<td class="text-right">{{ number_format($anticipo_cliente/1000,0,',',' ')}}</td>
				@endforeach
			</tr>

			<tr class="text-left">
				<td>Outros Passivos</td>
				@foreach($registro_pas_ext['pc_otrpas'] as $otro_pasivo )
				<td class="text-right">{{ number_format($otro_pasivo/1000,0,',',' ')}}</td>
				@endforeach
			</tr>

			<tr class="text-left">
				<td>Passivo Circulante</td>
				@foreach($registro_pas_ext['pc_total'] as $total_pasivoc )
				<td class="text-right">{{ number_format($total_pasivoc/1000,0,',',' ')}}</td>
				@endforeach
			</tr>

			<tr class="text-left">
				<td>Fornecedores</td>
				@foreach($registro_pas_ext['pnc_cuepag'] as $cuenta_pagar )
				<td class="text-right">{{ number_format($cuenta_pagar/1000,0,',',' ')}}</td>
				@endforeach
			</tr>

			<tr class="text-left">
				<td>Empréstimos e Financiamentos</td>
				@foreach($registro_pas_ext['pnc_presta'] as $prestamo )
				<td class="text-right">{{ number_format($prestamo/1000,0,',',' ')}}</td>
				@endforeach
			</tr>

			<tr class="text-left">
				<td>Dívidas Fiscais (Impostos, Taxas)</td>
				@foreach($registro_pas_ext['pnc_deufis'] as $deuda_fiscal )	
				<td class="text-right">{{ number_format($deuda_fiscal/1000,0,',',' ')}}</td>
				@endforeach
			</tr>

			<tr class="text-left">
				<td>Outros Passivos (Nao Circulantes)</td>
				@foreach($registro_pas_ext['pnc_otrpas'] as $otro_pasivo )	
				<td class="text-right">{{ number_format($otro_pasivo/1000,0,',',' ')}}</td>
				@endforeach
			</tr>

			<tr class="text-left">
				<td>Provisões</td>
				@foreach($registro_pas_ext['pnc_previ'] as $prevision )
				<td class="text-right">{{ number_format($prevision/1000,0,',',' ')}}</td>
				@endforeach
			</tr>

			<tr class="text-left">
				<td>Passivo não Circulante Total</td>
				@foreach($registro_pas_ext['pnc_total'] as $total_pasivo_nc )
				<td class="text-right">{{ number_format($total_pasivo_nc/1000,0,',',' ')}}</td>
				@endforeach
			</tr>

			<tr class="text-left">
				<td>Passivo Total</td>
				@foreach($registro_pas_ext['pas_total'] as $total_pasivo )
				<td class="text-right">{{ number_format($total_pasivo/1000,0,',',' ')}}</td>
				@endforeach
			</tr>

			<tr class="text-left">
				<td>Capital Social Realizado</td>
				@foreach($registro_pas_ext['capsoc'] as $capital_social )
				<td class="text-right">{{ number_format($capital_social/1000,0,',',' ')}}</td>
				@endforeach
			</tr>

			<tr class="text-left">
				<td>Lucros não Atribuidos</td>
				@foreach($registro_pas_ext['res_noasig'] as $total_resul_na )
				<td class="text-right">{{ number_format($total_resul_na/1000,0,',',' ')}}</td>
				@endforeach
			</tr>

			<tr class="text-left">
				<td>Patrimônio Líquido</td>
				@foreach($registro_pas_ext['patrimonio'] as $patrimonio )
				<td class="text-right">{{ number_format($patrimonio/1000,0,',',' ')}}</td>
				@endforeach
			</tr>
				
			</table>
			<div class="col-md-12">
				<div class="col-md-12 text-right fw600 font15 font-descripcion">Importâncias expressas em Miles {{ $registro_pas_ext['nombre_moneda']}}</div>
			</div>
		</div>
	</div>
	<!--Fin PASIVO extendido -->

	<div class="col-md-12 col-sm-12 col-xs-12 graficos-contables">

		@if($grafico_patrimonial != '')
				<div class="col-md-4 col-sm-12 col-xs-12">
				<img src="{{$grafico_patrimonial}}" style="width: 100%;">
			</div>
		@else
			<div class="col-md-4 col-sm-12 col-xs-12">
				<div class="liquidez_corriente_por">		
				</div>
			</div>
		@endif
		@if($grafico_endeudamiento_corriente != '')
				<div class="col-md-4 col-sm-12 col-xs-12">
				<img src="{{$grafico_endeudamiento_corriente}}" style="width: 100%;">
			</div>
		@else
			<div class="col-md-4 col-sm-12 col-xs-12">
				<div class="endeudamiento_corriente_por">		
				</div>
			</div>
		@endif
		@if($grafico_efecto_palanca != '')
				<div class="col-md-4 col-sm-12 col-xs-12">
				<img src="{{$grafico_efecto_palanca}}" style="width: 100%;">
			</div>
		@else
			<div class="col-md-4 col-sm-12 col-xs-12">
				<div class="efecto_palanca_por">		
				</div>
			</div>
		@endif
	</div>

	<!-- ESTADO DE RESULTADO extendido -->
	<div id="estado_de_resultados_extendido" class="hidden col-md-12 estado_ext_por">
			<div class="col-md-12">
				<h4 style="padding:10px;" class="text-center  titulo-contables heading-block">Demonstração de Resultados</h4>
			</div>
			<table align="center" style="width:95%" class="table table-striped">
				<tr class="background-fidelitas text-left">
					<td>Data</td>
					@foreach($registro_estado_ext['periodo'] as $fecha_estado)	
					<td class="text-right">{{ $fecha_estado }}</td>
					@endforeach
				</tr>

				<tr class="text-left">
					<td>Receita Líquida de Vendas e/ou Serviços</td>
					@foreach($registro_estado_ext['res_vtanet'] as $venta_neta)
					<td class="text-right">{{ number_format($venta_neta/1000,0,',',' ')}}</td>
					@endforeach
				</tr>

				<tr class="text-left">
					<td>Compras de exercício</td>
					@foreach($registro_estado_ext['res_compras'] as $resultado_compras)
					<td class="text-right">{{ number_format($resultado_compras/1000,0,',',' ')}}</td>
					@endforeach
				</tr>

				<tr class="text-left">
					<td>Custo de Bens e/ou Serviços Vendidos</td>
					@foreach($registro_estado_ext['res_cosmer'] as $costos_cosmer)
					<td class="text-right">{{ number_format($costos_cosmer/1000,0,',',' ')}}</td>
					@endforeach
				</tr>

				<tr class="text-left">
					<td>Resultado Bruto</td>
					@foreach($registro_estado_ext['resultado_bruto'] as $res_bruto)
					<td class="text-right">{{ number_format($res_bruto/1000,0,',',' ')}}</td>
					@endforeach
				</tr>

				<tr class="text-left">
					<td>Amortizações</td>
					@foreach($registro_estado_ext['amortiza'] as $amortiza)
					<td class="text-right">{{ number_format($amortiza/1000,0,',',' ')}}</td>
					@endforeach
				</tr>

				<tr class="text-left">
					<td>Despesas com Vendas</td>
					@foreach($registro_estado_ext['res_gascom'] as $gasto_com)
					<td class="text-right">{{ number_format($gasto_com/1000,0,',',' ')}}</td>
					@endforeach
				</tr>

				<tr class="text-left">
					<td>Despesas Gerais e Administrativas</td>
					@foreach($registro_estado_ext['res_gasadm'] as $gasto_adm)
					<td class="text-right">{{ number_format($gasto_adm/1000,0,',',' ')}}</td>
					@endforeach
				</tr>

				<tr class="text-left">
					<td>Despesas Financeiras</td>
					@foreach($registro_estado_ext['res_gasfin'] as $gasto_fin)
					<td class="text-right">{{ number_format($gasto_fin/1000,0,',',' ')}}</td>
					@endforeach
				</tr>

				<tr class="text-left">
					<td>Outras Despesas</td>
					@foreach($registro_estado_ext['res_otrosegr'] as $otro_egreso)
					<td class="text-right">{{ number_format($otro_egreso/1000,0,',',' ')}}</td>
					@endforeach
				</tr>

				<tr class="text-left">
					<td>Resultados Financeiros</td>
					@foreach($registro_estado_ext['res_resfin'] as $resulado_financiero)
					<td class="text-right">{{ number_format($resulado_financiero/1000,0,',',' ')}}</td>
					@endforeach
				</tr>

				<tr class="text-left">
					<td>Imposto de Renda</td>
					@foreach($registro_estado_ext['res_iva'] as $impuesto_ganancia)
					<td class="text-right">{{ number_format($impuesto_ganancia/1000,0,',',' ')}}</td>
					@endforeach
				</tr>

				<tr class="text-left">
					<td>Rentabilidade do Exercicio</td>
					@foreach($registro_estado_ext['ganancia'] as $ganancia)
					<td class="text-right">{{ number_format($ganancia/1000,0,',',' ')}}</td>
					@endforeach
				</tr>

			</table>
			<div class="col-md-12">
				<div class="col-md-12 text-right fw600 font15 font-descripcion">Importâncias expressas em Miles {{ $registro_estado_ext['nombre_moneda']}}</div>
			</div>
	</div>

	<!-- ESTADOS DE RESULTADOS resumido-->
	<div  id="estado_de_resultados" class="col-md-12 col-sm-12 col-xs-12 estado_res_por">
			<div class="col-md-12">
				<h4 style="padding:10px;" class="text-center  titulo-contables heading-block">Demonstração de Resultados</h4>
			</div>
			<table align="center" style="width:95%" class="table table-striped">
				<tr class="background-fidelitas text-left">
					<td>Data</td>
					@foreach($registro_estado['periodo'] as $fecha_estado)	
					<td class="text-right">{{ $fecha_estado}}</td>
					@endforeach
				</tr>

				<tr class="text-left">
					<td>Vendas</td>
					@foreach($registro_estado['res_vtanet'] as $res_vta)	
					<td class="text-right">{{ number_format($res_vta/1000,0,',',' ')}}</td>
					@endforeach
				</tr>

				<tr class="text-left">
					<td>Lucro</td>
					@foreach($registro_estado['ganancia'] as $ganancia)	
					<td class="text-right">{{ number_format($ganancia/1000,0,',',' ')}}</td>
					@endforeach
				</tr>

			</table>

			<div class="col-md-12">
				<div class="col-md-12 text-right fw600 font15 font-descripcion">Importâncias expressas em Miles {{ $registro_estado['nombre_moneda'] }}</div>
			</div>
	</div>

	<div class="col-md-12 col-sm-12 col-xs-12 graficos-contables">

		@if($grafico_ventas != '')
				<div class="col-md-4 col-sm-12 col-xs-12">
				<img src="{{$grafico_ventas}}" style="width: 100%;">
			</div>
		@else
			<div class="col-md-4 col-sm-12 col-xs-12">
				<div class="ventas_por">
				</div>
			</div>
		@endif
		@if($grafico_gastos_totales_sobre_ventas != '')
				<div class="col-md-4 col-sm-12 col-xs-12">
				<img src="{{$grafico_gastos_totales_sobre_ventas}}" style="width: 100%;">
			</div>
		@else
			<div class="col-md-4 col-sm-12 col-xs-12">
				<div class="gastos_totales_sobre_ventas_por">
				</div>
			</div>
		@endif
		@if($grafico_performance != '')
				<div class="col-md-4 col-sm-12 col-xs-12">
				<img src="{{$grafico_performance}}" style="width: 100%;">
			</div>
		@else
			<div class="col-md-4 col-sm-12 col-xs-12">
				<div class="performance_por">
				</div>
			</div>
		@endif
	</div>

	<!-- Inicio INDICE DE GESTION extendido-->
	<div class="col-md-12 hidden indice_ext_por" id="indices_de_gestion_extendido">
		<div class="col-md-12">
			<h4 style="padding:10px;" class="text-center  titulo-contables heading-block">Indicadores de Desempenho</h4>
		</div>
		<table align="center" style="width:95%" class="table table-striped">
			<tr class="background-fidelitas text-left">
				<td>Data</td>
				@foreach($registro_gestion_ext['periodo'] as $fecha_estado)	
				<td class="text-right">{{ $fecha_estado }}</td>
				@endforeach
			</tr>

			<tr class="text-left">
				<td class="text-left">
					<span class="fw600">Liquidez Corrente</span>
					<br>
					<p style="font-size:10px">Ativo Circulante / Passivo Circulante</p>
				</td>

				@foreach($registro_gestion_ext['ind_liqcorr'] as $liquidez)	
				<td class="text-right">{{ number_format($liquidez,2,',',' ')}}</td>
				@endforeach
			</tr>

			<tr class="text-left">
				<td>
					<span class="fw600">Liquidez Seca</span>
					<br>
					<p style="font-size:10px">(Ativos Circulantes - Estoques) / Passivo Circulante</p>
				</td>
				@foreach($registro_gestion_ext['ind_liqseca'] as $liquidez_seca)	
				<td class="text-right">{{ number_format($liquidez_seca,2,',',' ')}}</td>
				@endforeach
			</tr>

			<tr class="text-left">
				<td>
					<span class="fw600">Endividamento</span>
					<br>
					<p style="font-size:10px">Passivo Total / Patrimônio Líquido</p>
				</td>
				@foreach($registro_gestion_ext['ind_endeu'] as $endeudamiento)	
				<td class="text-right">{{ number_format($endeudamiento,2,',',' ')}}</td>
				@endforeach
			</tr>

			<tr class="text-left">
				<td>
				<span class="fw600">Endividamento Ativo Fixo</span> 
					<br>
					<p style="font-size:10px">Pasivo No Corriente / Bs. de Uso</p>
				</td>
				@foreach($registro_gestion_ext['ind_endeuact'] as $endeudamiento_fijo)	
				<td class="text-right">{{ number_format($endeudamiento_fijo,2,',',' ')}}</td>
				@endforeach
			</tr>

			<tr class="text-left">
				<td>
					<span class="fw600">Solvência</span>
					<br>
					<p style="font-size:10px">Patrimônio liquido / Passivo Total</p>
				</td>
				@foreach($registro_gestion_ext['ind_solvencia_pat'] as $solvencia)	
				<td class="text-right">{{ number_format($solvencia,2,',',' ')}}</td>
				@endforeach
			</tr>

			
				<!-- se quito "solvencia Patrimonial" -->
				

			<tr class="text-left">
				<td>
					<span class="fw600">Capital de Giro</span>
					<br>
					<p style="font-size:10px">Ativo Circulante - Passivo Circulante</p>
				</td>
				@foreach($registro_gestion_ext['ind_captra'] as $capital_corriente)	
				<td class="text-right">{{ number_format($capital_corriente,2,',',' ')}}</td>
				@endforeach
			</tr>

			<!-- se quito "capital propio" -->

			<tr class="text-left">
				<td>
					<span class="fw600">Investimento do Ativo Fixo</span>
					<br>
					<p style="font-size:10px">Patrimônio Líquido / Ativo Imobilizado</p>
				</td>
				@foreach($registro_gestion_ext['ind_invbu'] as $inversiones_bienes)	
				<td class="text-right">{{ number_format($inversiones_bienes,2,',',' ')}}</td>
				@endforeach
			</tr>
			<!-- se quito "Inmovilizacion De Activos" -->
			<!-- se quito "Inmovilizacion De Patrimonio Neto" -->
			<tr class="text-left">
				<td>
					<span class="fw600">Lucro Bruto</span>
					<br>
					<p style="font-size:10px">(Lucro Bruto / Vendas) * 100</p>
				</td>
				@foreach($registro_gestion_ext['ind_marbru'] as $util_bruta)
				<td class="text-right">{{ number_format($util_bruta,2,',',' ')}}</td>
				@endforeach			
			</tr>

			<tr class="text-left">
				<td>
					<span class="fw600">Lucro Bruto</span>
					<br>
					<p style="font-size:10px">(Lucro Líquido / Vendas) * 100</p>
				</td>
				@foreach($registro_gestion_ext['ind_utilfin'] as $util_neta)
				<td class="text-right">{{ number_format($util_neta,2,',',' ')}}</td>
				@endforeach			
			</tr>

			<tr class="text-left">
				<td>
					<span class="fw600">Retorno Patrimônio</span>
					<br>
					<p style="font-size:10px">Lucro Líquido / Patrimônio Líquido</p>
				</td>
				@foreach($registro_gestion_ext['ind_retpat'] as $retorno_patrimonio)	
				<td class="text-right">{{ number_format($retorno_patrimonio,2,',',' ')}}</td>
				@endforeach
			</tr>

			<tr class="text-left">
				<td>
					<span class="fw600">Giro de Ativos</span>
					<br>
					<p style="font-size:10px">Vendas / Ativo Total</p>
				</td>
				@foreach($registro_gestion_ext['ind_rotvta'] as $rot_activo)	
				<td class="text-right">{{ number_format($rot_activo,2,',',' ')}}</td>
				@endforeach
			</tr>

			<tr class="text-left">
				<td>
					<span class="fw600">Giro de Ativo Fixo</span>
					<br>
					<p style="font-size:10px">Vendas / Ativo Imobilizado</p>
				</td>
				@foreach($registro_gestion_ext['ind_rotact'] as $rot_activo_fijo)	
				<td class="text-right">{{ number_format($rot_activo_fijo,2,',',' ')}}</td>
				@endforeach
			</tr>

			<tr class="text-left">
				<td>
					<span class="fw600">Rentabilidade sobre ativo </span>
					<br>
					<p style="font-size:10px">(Lucro Líquido / Ativo Total) * 100</p>
				</td>
				@foreach($registro_gestion_ext['ind_rentabilidad'] as $renta_activo)	
				<td class="text-right">{{ number_format($renta_activo,2,',',' ')}}</td>
				@endforeach
			</tr>

			<tr class="text-left">
				<td>
					<span class="fw600">EBITDA/Passivo</span>
					<br>
					<p style="font-size:10px">(Resultado do Exercicio + Amortizações + Despesas Financeiras + Imposto de Renda) / Passivo Total</p>
				</td>
				@foreach($registro_gestion_ext['ind_ebipas'] as $ebipas)	
				<td class="text-right">{{ number_format($ebipas,2,',',' ')}}</td>
				@endforeach
			</tr>

			<tr class="text-left">
				<td>
					<span class="fw600">Giro de Créditos</span> 
					<br>
					<p style="font-size:10px">Vendas / Clientes</p>
				</td>
				@foreach($registro_gestion_ext['ind_indrot'] as $rot_credito)
				<td class="text-right">{{ number_format($rot_credito,2,',',' ')}}</td>
				@endforeach
			</tr>

			<tr class="text-left">
				<td>
					<span class="fw600">Giro de Estoque</span>
					<br>
					<p style="font-size:10px">Custo de Bens  / Estoques</p>
				</td>
				@foreach($registro_gestion_ext['ind_rotinv'] as $rot_inv)
				<td class="text-right">{{ number_format($rot_inv,2,',',' ')}}</td>
				@endforeach
			</tr>

			<tr class="text-left">
				<td>
					<span class="fw600">Empréstimos e Financiamentos / P.L. </span>
					<br>
					<p style="font-size:10px">Empréstimos e Financiamentos / Patrimônio Líquido</p>
				</td>
				@foreach($registro_gestion_ext['ind_prest_pn'] as $prestamo_pn)
				<td class="text-right">{{ number_format($prestamo_pn,2,',',' ')}}</td>
				@endforeach
			</tr>

			<tr class="text-left">
				<td>
					<span class="fw600">Empréstimos e Financiamentos / (VENDAS/12)</span>
					<br>
					<p style="font-size:10px">Empréstimos e Financiamentos / (Vendas / 12)</p>
				</td>
				@foreach($registro_gestion_ext['ind_prest_vtas'] as $prestamo_venta)
				<td class="text-right">{{ number_format($prestamo_venta,2,',',' ')}}</td>
				@endforeach
			</tr>
		</table>
		<div class="col-md-12">
			<div class="col-md-12 text-right fw600 font15 font-descripcion">Importâncias expressas em Miles {{ $registro_gestion_ext['nombre_moneda']}}</div>
		</div>

	</div>	
	<!-- Fin INDICE DE GESTION extendido-->

	<!-- inicio INDICE DE GESTION resumido -->
	<div class="col-md-12 indice_res_por" id="indices_de_gestion">
			<div class="col-md-12">
				<h4 style="padding:10px;" class="text-center  titulo-contables heading-block">Indicadores de Desempenho</h4>
			</div>

			<table align="center" style="width:95%" class="table table-striped">
				
				<tr class="background-fidelitas text-left">
					<td>Data</td>
					@foreach($registro_ind_gestion['periodo'] as $fecha_gestion)	
					<td class="text-right">{{ $fecha_gestion}}</td>
					@endforeach
				</tr>

				<tr class="text-left">
					<td class="text-left">Liquidez Corrente</td>
					@foreach($registro_ind_gestion['ind_liqcorr'] as $liquidez)	
					<td class="text-right">{{ number_format($liquidez,2,',',' ')}}</td>
					@endforeach
				</tr>

				<tr class="text-left">
					<td class="text-left">Endividamento Circulante</td>
					@foreach($registro_ind_gestion['ind_endeu'] as $endeu)	
					<td class="text-right">{{ number_format($endeu,2,',',' ')}}</td>
					@endforeach
				</tr>

				<tr class="text-left">
					<!-- "solvencia patrimonial" cambio a "solvencia" -->
					<td class="text-left">Solvência</td>
					@foreach($registro_ind_gestion['ind_solvencia_pat'] as $solvencia)	
					<td class="text-right">{{ number_format($solvencia,2,',',' ')}}</td>
					@endforeach
				</tr>

				<tr class="text-left">
					<td class="text-left">Capital Circulante</td>
					@foreach($registro_ind_gestion['ind_captra'] as $cap_trabajo)	
					<td class="text-right">{{ number_format($cap_trabajo,2,',',' ')}}</td>
					@endforeach
				</tr>

				<tr class="text-left">
					<td class="text-left">Resultado bruto</td>
					@foreach($registro_ind_gestion['ind_marbru'] as $rent_bruto)
					<td class="text-right">{{ number_format($rent_bruto,2,',',' ')}}</td>
					@endforeach		
				</tr>

				<tr class="text-left">
					<td class="text-left">Rentabilidade do Exercicio</td>
					@foreach($registro_ind_gestion['ind_rentabilidad'] as $renta)	
					<td class="text-right">{{ number_format($renta,2,',',' ')}}</td>
					@endforeach		
				</tr>

				<tr class="text-left">
					<td class="text-left">Giro de Créditos</td>
					@foreach($registro_ind_gestion['ind_rotact'] as $rotacion)	
					<td class="text-right">{{ number_format($rotacion,2,',',' ')}}</td>
					@endforeach		
				</tr>

				<tr class="text-left">
					<td class="text-left">Giro de Estoque</td>
					@foreach($registro_ind_gestion['ind_rotinv'] as $rotacion_inv)	
					<td class="text-right">{{ number_format($rotacion_inv,2,',',' ')}}</td>
					@endforeach		
				</tr>
			</table>	
			<div class="col-md-12">
				<div class="col-md-12 text-right fw600 font15 font-descripcion">Importâncias expressas em Miles {{ $registro_ind_gestion['nombre_moneda']}}</div>
			</div>
	</div>
	<!-- Fin INDICE DE GESTION resumido -->
</div>	
@endif
<div class="page-break"></div>