I have a list of stores when the address is the same I would like one side of the other as it is and if the address is different it is listed one underneath the other. How could he do that?
followthecodebelow
<form><ulclass="nav nav-pills" id="pills-tab" role="tablist">
<th:block th:each="dados, idx : ${dadosCliente}">
<li class="nav-item"><a class="nav-link" th:classappend="${idx.index==0 ? 'active' : ''}" th:id="${#strings.trim(dados[2])+ '-tab'}" data-toggle="pill" th:href="${'#entrega-'+#strings.trim(dados[2])}" role="tab" aria-controls="home" aria-selected="true" th:text="${#strings.trim(dados[2])}"></a></li>
</th:block>
</ul>
<div class="tab-content" id="pills-tabContent">
<th:block th:each="dados, idx : ${dadosCliente}" th:if="${#strings.trim(dados[38]) == #strings.trim(dados[38])}">
<div class="tab-pane fade" th:id="${'entrega-'+#strings.trim(dados[2])}" role="tabpanel" th:attr="aria-labelledby= ''+ ${#strings.trim(dados[2])+ '-tab'}">
<div class="form-group">
<label for="formGroupExampleInput">Master</label> <input type="text" class="form-control" id="nomeFantasia" th:value="${#strings.trim(dados[7])}" placeholder="Nome Fantasia" />
</div>
<div class="form-group">
<label for="formGroupExampleInput2">Cidade</label> <input type="text" class="form-control" th:value="${#strings.trim(dados[312])}" id="cidade" placeholder="Cidade" />
</div>
<div class="form-group">
<label for="formGroupExampleInput2">Endereço</label> <input type="text" class="form-control" th:value="${#strings.trim(dados[309])}" id="endereco" placeholder="Endereço" />
</div>
<div class="form-group">
<label for="formGroupExampleInput2"><b>Cep</b></label> <input type="text" class="form-control" th:value="${#strings.trim(dados[313])}" id="cep" placeholder="Cep" />
</div>
</div>
</th:block>
</div>
</form>