32 lines
1.3 KiB
PHP
32 lines
1.3 KiB
PHP
@aware([ 'rowIndex', 'rowID','isTailwind','isBootstrap'])
|
|
@props(['column' => null, 'customAttributes' => [], 'displayMinimisedOnReorder' => false, 'hideUntilReorder' => false])
|
|
|
|
|
|
@if ($isTailwind)
|
|
<td x-cloak {{ $attributes
|
|
->merge($customAttributes)
|
|
->class([
|
|
'px-6 py-4 whitespace-nowrap text-sm font-medium dark:text-white' => $customAttributes['default'] ?? true,
|
|
'hidden' => $column && $column->shouldCollapseAlways(),
|
|
'hidden md:table-cell' => $column && $column->shouldCollapseOnMobile(),
|
|
'hidden lg:table-cell' => $column && $column->shouldCollapseOnTablet(),
|
|
])
|
|
->except(['default','default-styling','default-colors'])
|
|
}} @if($hideUntilReorder) x-show="reorderDisplayColumn" @endif >
|
|
{{ $slot }}
|
|
</td>
|
|
@elseif ($isBootstrap)
|
|
<td {{ $attributes
|
|
->merge($customAttributes)
|
|
->class([
|
|
'' => $customAttributes['default'] ?? true,
|
|
'd-none' => $column && $column->shouldCollapseAlways(),
|
|
'd-none d-md-table-cell' => $column && $column->shouldCollapseOnMobile(),
|
|
'd-none d-lg-table-cell' => $column && $column->shouldCollapseOnTablet(),
|
|
])
|
|
->except(['default','default-styling','default-colors'])
|
|
}}>
|
|
{{ $slot }}
|
|
</td>
|
|
@endif
|