@aware(['component', 'tableName']) @props(['row', 'rowIndex']) @if ($component->collapsingColumnsAreEnabled() && $component->hasCollapsedColumns()) @php $colspan = $component->getColspanCount(); $columns = collect(); if($component->shouldCollapseAlways()) { $columns->push($component->getCollapsedAlwaysColumns()); } 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(); @endphp $component->isTailwind(), 'd-none' => $component->isBootstrap() ]) > $component->isTailwind(), 'pt-3 p-2' => $component->isBootstrap(), ]) colspan="{{ $colspan }}" >
@foreach($columns as $colIndex => $column) @continue($column->isHidden()) @continue($this->columnSelectIsEnabled() && ! $this->columnSelectIsEnabledForColumn($column))

$component->isTailwind() && $column->shouldCollapseAlways(), 'block mb-2 sm:hidden' => $component->isTailwind() && !$column->shouldCollapseAlways() && !$column->shouldCollapseOnTablet() && !$column->shouldCollapseOnMobile(), 'block mb-2 md:hidden' => $component->isTailwind() && !$column->shouldCollapseAlways() && !$column->shouldCollapseOnTablet() && $column->shouldCollapseOnMobile(), 'block mb-2 lg:hidden' => $component->isTailwind() && !$column->shouldCollapseAlways() && ($column->shouldCollapseOnTablet() || $column->shouldCollapseOnMobile()), 'd-block mb-2' => $component->isBootstrap() && $column->shouldCollapseAlways(), 'd-block mb-2 d-sm-none' => $component->isBootstrap() && !$column->shouldCollapseAlways() && !$column->shouldCollapseOnTablet() && !$column->shouldCollapseOnMobile(), 'd-block mb-2 d-md-none' => $component->isBootstrap() && !$column->shouldCollapseAlways() && !$column->shouldCollapseOnTablet() && $column->shouldCollapseOnMobile(), 'd-block mb-2 d-lg-none' => $component->isBootstrap() && !$column->shouldCollapseAlways() && ($column->shouldCollapseOnTablet() || $column->shouldCollapseOnMobile()), ]) > {{ $column->getTitle() }}: {{ $column->renderContents($row) }}

@endforeach
@endif