<div class="row">
	@foreach ($modulos as $m)

		<div class="col-md-6">
	    <div class="x_panel">

	      <div class=" x_title">
	        <h2>Módulo {{ $m->nombre }}</h2>
	        <div class="nav navbar-right panel_toolbox">
	        	<label class="btn-sm">
						  Total reactivos: <span class="badge badge-success" style="color: #fff;" id='ac_mod_{{ $m->id }}'>{{ $m->preguntas_count }}</span>
						</label>
	        </div>
	        <div class="clearfix"></div>
	      </div>

	      <div class="x_content">
	        <form id="form-nuevo">

	        	@if ($m->min_ac !="")
							<div class="row">
								<div class="col-md-12 col-sm-12">
								  <div class="form-group">
								    <label>Minimo de aciertos para pasar al siguiente módulo:</label>
								  </div>
								</div>
							</div>
							<div class="row">
								<div class="col-md-8 col-sm-12">
								  <div class="form-group">
								    <div class="input-group">
								      <input type="number" class="form-control form-control-sm input-group-dp"  placeholder="" value="{{ $m->min_ac }}" readonly id="minimo_{{ $m->id }}">
								    </div>
								  </div>
								</div>
							</div>
						@endif

						@foreach ($m->moduloNivel as $n)
							<div class="row">
								<div class="col-md-6 col-sm-12">
								  <div class="form-group d-flex justify-content-lg-between n_aciertos" >
								    <label>{{ $n->aciertos }} Aciertos - {{ $n->nivel->nombre }}</label>
								  </div>
								</div>
							</div>
						@endforeach

					</form>
	      </div>
	    </div>
	  </div>
	@endforeach
	  
</div>

<div class="row mt-3">
  <div class="col-md-4 col-sm-12"></div>
  <div class="col-md-4 col-sm-12">
    <div class="row">
      <div class="col">
        <button type="button" class="btn btn-warning btn-block" onclick="javascript:ngl_consulta_regresar();" style="color: #fff;"><i class="fa fa-times"></i> Regresar</button>
      </div>
    </div>
  </div>
  <div class="col-md-4 col-sm-12"></div>
</div>