title: Html code for a foreach
body: <p>my problem is that I have a foreach inside another foreach and the data that should appear are 3 but I get triple, this happens since I have two tables and I'm trying to get specific data from the first table are selected, this information I have it in the second table, so the repetition of the html code, if someone could give me an idea or even give me the solution to this problem would be much appreciated</p>
  
  <p>My html:</p>
  
  <pre><code>&lt;div class="form-group form-animate-text"&gt;
      &lt;h4&gt;Alumnos&lt;/h4&gt;
      &lt;select class="selectpicker form-control" multiple data-live-search="true" data-live-search-placeholder="Search" data-actions-box="true" name="alumno_id[]"&gt;
         @foreach($alumnoDB as $fila)
            @foreach($datosEvaluacionAlumno as $filaEvaluacionAlumno)
                &lt;option value="{{$fila-&gt;id}}" {{($filaEvaluacionAlumno-&gt;alumno_id == $fila-&gt;id) ? 'selected=selected' : ""}}&gt;{{$fila-&gt;nombre_alumno}}&lt;/option&gt;
            @endforeach
         @endforeach
     &lt;/select&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>It would be very helpful if someone knew how to solve it or at least have an idea of ​​the solution</p>