Mam taką tablice i chciałbym z niej wyświetlić dane w tabelce na stronie
array:1 [
0 => array:4 [
"id" => 4
"username" => "macq"
"email" => "macq@eduweb.pl"
"owner" => array:2 [
0 => array:4 [
"id" => 2
"name" => "Kasia Doryghi"
"adress" => "ul.Hellera 18,94-537 Katowice"
"property" => array:1 [
0 => array:4 [
"id" => 2
"name" => "Mieszkanie"
"adress" => "ul.Hellera 18,94-537 Katowice"
"tenant" => array:1 [
0 => array:3 [▶]
]
]
]
]
1 => array:4 [
"id" => 1
"name" => "Hyna Bora"
"adress" => "ul.Baranio 17,34-567 Zadupie"
"property" => []
]
]
]
kod w Twigu
<div class="col-lg-12">
<h2>Nieruchomości</h2>
<div class="table-responsive">
<table class="table table-bordered table-hover">
<thead>
<tr>
<th>Właściciel</th>
<th>Rodzaj</th>
<th>Adress</th>
<th>Najemca</th>
<th>Saldo</th>
<th>Akcja</th>
</tr>
</thead>
<tbody>
<tr>
{% for details in QueryBuilder %}
{% for detailsowner in details.owner %}
<th>{{detailsowner.name}}</th>
{% endfor %}
{% endfor %}
{% for details in QueryBuilder %}
{% for detailsowner in details.owner %}
{% for detailsproperty in detailsowner.property%}
<th>{{detailsproperty.name}}</th>
<th>{{detailsproperty.adress}}</th>
{% endfor %}
{% endfor %}
{% endfor %}
Problem jest jak literuję po owner dane wyświetlają się poziomo nie pionowo. Czy mógłby ktoś pomoc jak to rozwiązać kiedy jest wiele tablic zagnieżdżonych wewnątrz siebie