<div class="row mt-2">
	<div class="col-12">
		Tabla {{ $select }}
		<select name="entidad_table{{$select}}_id"  id="input-cont"  class="form-control services_id">
			@foreach ($services['entidad_services'] as $s)
				@if($s->table_tipe == $select)
						<?php $encontrado =false; ?>
						@foreach($services['services'] as $en)
							@if($en->entidad_services_id == $s->id)
								<option value="{{ $en->id }}" selected="selected"> {{ $s->descripcion }}</option>
								<?php  $encontrado =true; ?>
							@endif
							@if($en->table_tipe == $s->table_tipe)

							@endif
						@endforeach
					@if($encontrado == false)
						<option value="{{ $s->id }}" > {{ $s->descripcion }}</option>
					@endif	
				@endif
			@endforeach
		</select>
	</div>
</div>