@foreach ($data as $row) @php $rowId = data_get($row, $this->realPrimaryKey); $class = theme_style($theme, 'table.body.tr'); @endphp @if (isset($setUp['detail'])) @include('livewire-powergrid::components.row', [ 'rowIndex' => $loop->index + 1, 'childIndex' => $childIndex, 'parentId' => $parentId ]) @if (data_get($setUp, 'detail.state.' . $rowId)) @include('livewire-powergrid::components.table.detail') @endif @else @include('livewire-powergrid::components.row', [ 'rowIndex' => $loop->index + 1, ]) @endif @includeWhen(isset($setUp['responsive']), 'livewire-powergrid::components.expand-container') @endforeach