I already use rowspan and it does not work as I want the data is very messy they are not sorted as it is, besides I do not fit the data according to whether it is dependent on others, besides the code has a parents and their children and those children have many children but At the moment I have it show horizontal table in this way in vertical form it works well the question is to pass that data in a horizontal way in a table I show vertically the data in photo I show by colors the father is red:
I also want to see it in a more organized way as it shows in excel:
@foreach ($project->administrators as $administrator)
<p> {{$administrator->name}}</p>
@foreach($project->phases as $phase)
<p style="background: #FD2D00 !important;">{{$phase->name}}</p>
@foreach ($phase->activities as $activity)
@if ($activity->parent_id==null)
<p style="background: #FDF500;">{{$activity->name}}</p>
@endif
@foreach($activity->activities as $especifics)
<p style="background: #86FD00;">{{$especifics->name}}</p>
@foreach($especifics->products as $product)
<p style="background: #006BFD;">{{$product->name}}</p>
@foreach($product->productdetails as $productdetail)
<p style="background: #7243BB;">{{$productdetail->name}}</p>
@foreach($productdetail->evidence as $evidence )
<p style="background: #FF00FB;">{{$evidence->path}}</p>
@endforeach
@endforeach
@endforeach
@endforeach
@endforeach
@endforeach
@endforeach