<!-- <div class="page-break"></div> -->
@if ( $_SERVER['REMOTE_ADDR'] == substr(env('URL_BASE'),7) )
	@include('led/led_header_dossier')
@endif
<!-- -->
@include('/modals/modal_imagen_marcas')
<div class="page-break"></div>
<div class="col-md-12 padding10">
  <h4 class="text-center titulo-fidelitas ">@traducir('MARCAS','MARCAS')</h4>
	@if(isset($datos_generales['MPL']))
  		<h4 class='text-center'>@traducir('Relevado manualmente','Relevado manualmente')</h4>
  	@endif
</div>
<!-- <input class="btn btn-info btn-fidelitas" type="button" id="btn_marca_html" value="Marcas HTML"> -->
@if(isset($datos_generales['MPL']))
	@foreach($datos_generales['MPL'] as $dato)
		<div style="padding-bottom: 15px;" class="col-md-12 font15 text-center">{!! $dato->texto_formateado !!}</div>
	@endforeach
@else
	<div class="font15 text-center no-data-version-pdf">- @traducir('No se detectaron datos','No se detectaron datos') -</div>
@endif

@if($marcas != '')
	<h4 style="padding-bottom: 15px;" class='text-center'>@traducir('Según INPI','Según INPI')</h4>
	<div id="loading_marcas" class="col-md-12 text-center"></div>
	<div id="div_marcas" class="col-md-12">
		@foreach($marcas as $key => $marca)
			@php 
				$cantidad_letras = strlen($marca->marca);  
			@endphp
			<div class="col-md-4 col-sm-4 col-xs-4  marcas div_card_marcas">
				<div  class="col-md-6 col-sm-6 col-xs-6 text-center div_marcas_img">
					@if($json)
						@php
							$n = "/var/www/html/compartido/marcas/logos/".substr(trim($marca->num_acta), 0, 4)."/".trim($marca->num_acta).".png";
							$n2 = "/var/www/html/compartido/marcas/".trim($marca->num_boletin)."/marcas/".trim($marca->num_acta).".gif";
						@endphp
					<!--img class="modal_marca_img" style="width: 135px; height: 100px; cursor:pointer;"   src="https://media.fidelitas.com.ar/compartido/marcas/logos/{{ substr(trim($marca->num_acta), 0, 4) }}/{{ trim($marca->num_acta) }}.png"--> 
						@if(file_exists($n))
							<img class="modal_marca_img" style="width: 135px; height: 100px; cursor:pointer;"   src="https://media.fidelitas.com.ar/compartido/marcas/logos/{{ substr(trim($marca->num_acta), 0, 4) }}/{{ trim($marca->num_acta) }}.png">
						@else 
							@if(file_exists($n2))
								<img class="modal_marca_img" style="width: 135px; height: 100px; cursor:pointer;"   src="https://media.fidelitas.com.ar/compartido/marcas/{{ trim($marca->num_boletin) }}/marcas/{{ trim($marca->num_acta) }}.gif">
							@else
								<img class="modal_marca_img" style="width: 135px; height: 100px; cursor:pointer;"   src="https://media.fidelitas.com.ar/compartido/no_disponible2.png">
							@endif
						@endif
						<!--img class="modal_marca_img" style="width: 135px; height: 100px; cursor:pointer;"   src="https://media.fidelitas.com.ar/compartido/marcas/{{ trim($marca->num_boletin) }}/marcas/{{ trim($marca->num_acta) }}.gif"/-->
						<span id="id_span_nombre_completo_marca_img" class="span_nombre_completo_marca_img" hidden>{{$marca->marca}}</span>			
					@else
					<!-- si no encuentra imagen, muestra nombre de la marca -->
						<a href="#" id="nombre_marca_alink"  class="modal_marca_link text-center" style="word-wrap: break-word; font-size: 22px; color: rgba(0, 0, 0, 0.87);" >@if($cantidad_letras > 25) {{ $misc_truncate($marca->marca,25) }} @else {{ $marca->marca}} @endif</a>
						<span  id="id_span_nombre_completo_marca_link" class="span_nombre_completo_marca_link" hidden>{{$marca->marca}}</span>			
					@endif
				</div>
				<div class="col-md-6 col-sm-6 col-xs-6 text-left div_marcas_datos" >
					<span class="font-size-marcas"><b>@traducir('NOMBRE','NOMBRE'): 				</b> @if(isset($marca->marca)) {{ $marca->marca }} @else - @endif </span><br>
					<span class="font-size-marcas"><b>@traducir('TIPO','TIPO'): 				</b> @if(isset($marca->tipo)) {{ $marca->tipo }} @else - @endif </span><br>
					<span class="font-size-marcas" style="word-wrap: break-word;"><b>@traducir('CLASE','CLASE'):				</b> @if(isset($marca->clase)) {{ $marca->clase }} @else - @endif</span><br>
					<span class="font-size-marcas"><b>@traducir('ACTA','ACTA'):				</b> @if(isset($marca->num_acta)) {{ $marca->num_acta }} @else - @endif</span><br>
					<span class="font-size-marcas"><b>@traducir('BOLETÍN','BOLETÍN'):			</b> @if(isset($marca->num_boletin)) {{ $marca->num_boletin }} @else - @endif </span><br>
					<span class="font-size-marcas"><b>@traducir('PUBLICACIÓN','PUBLICACIÓN'):	</b> @if(isset($marca->fecha_publicacion)) {{ $marca->fecha_publicacion}} @else - @endif </span>
				</div>
			</div>
			@endforeach
		</div>
@endif

@if ( $_SERVER['REMOTE_ADDR'] == substr(env('URL_BASE'),7) )
	@include('led/led_footer_dossier')
@endif