@aware(['component']) @props(['row', 'rowIndex']) @if ($component->collapsingColumnsAreEnabled() && $component->hasCollapsedColumns()) @php $theme = $component->getTheme(); $columns = collect([]); if ($component->shouldCollapseOnMobile() && $component->shouldCollapseOnTablet()) { $columns->push($component->getCollapsedMobileColumns()); $columns->push($component->getCollapsedTabletColumns()); } elseif ($component->shouldCollapseOnTablet() && ! $component->shouldCollapseOnMobile()) { $columns->push($component->getCollapsedTabletColumns()); } elseif ($component->shouldCollapseOnMobile() && ! $component->shouldCollapseOnTablet()) { $columns->push($component->getCollapsedMobileColumns()); } $columns = $columns->collapse(); // TODO: Column count $colspan = $columns->count() + 1; @endphp @if ($theme === 'tailwind')
{{ $column->getTitle() }}: {{ $column->renderContents($row) }}
@endforeach{{ $column->getTitle() }}: {{ $column->renderContents($row) }}
@endforeach