i have some issues trying to match th with the td elements on the table, my code works fine but i shows the data but not in order of the th. What can i do to make this works as pretend?? Any Help would be apreciated
<div class="table-responsive ">
<table class="table table-striped ">
<thead>
<tr>
<th scope="col">Fundo</th>
<th scope="col">IFI</th>
<th scope="col">Prospeto</th>
<th scope="col">KiiD</th>
<th scope="col">Mercado Alvo</th>
<th scope="col">Síntese Mensal</th>
<th scope="col">Relatório Mensal</th>
<th scope="col">Relatório Semestral</th>
<th scope="col">Relatório Anual</th>
</tr>
</thead>
<tbody>
@foreach (var page in selection.Children){
if(page.Children.Count() > 0){
foreach(var subpage in page.Children){
var listaPdf = subpage.GetPropertyValue<IEnumerable<IPublishedContent>>("listaPdfsFundos");
if(listaPdf == null) {
listaPdf = new List<IPublishedContent>();
}
<tr>
<td >@subpage.Name</td>
@if(listaPdf != null){
foreach(var row in listaPdf) {
var name = Umbraco.Field(row, "categoriaDoFundo");
var id = Umbraco.Field(row, "documentos").ToString();
var mediaItem = Umbraco.TypedMedia(id);
var url = mediaItem.Url;
<td> <a href="@url" target="_blank"><i class="far fa-file-pdf"></i> </a> </td>
}
}
</tr>
}
}
}
</div>