@aware(['component'])
@props(['column', 'index'])
@php
    $attributes = $attributes->merge(['wire:key' => 'header-col-'.$index.'-'.$component->id]);
    $theme = $component->getTheme();
    $customAttributes = $component->getThAttributes($column);
    $customSortButtonAttributes = $component->getThSortButtonAttributes($column);
    $direction = $column->hasField() ? $component->getSort($column->getColumnSelectName()) : null;
@endphp
@if ($theme === 'tailwind')
    
merge($customAttributes)
            ->class(['px-6 py-3 text-center text-xs font-medium whitespace-nowrap text-gray-500 uppercase tracking-wider dark:bg-gray-900 dark:text-gray-400' => $customAttributes['default'] ?? true])
            ->class(['hidden sm:table-cell' => $column->shouldCollapseOnMobile()])
            ->class(['hidden md:table-cell' => $column->shouldCollapseOnTablet()])
            ->except('default')
    }}>
        @unless ($component->sortingIsEnabled() && $column->isSortable())
            {{ $column->getTitle() }}
        @else
            
        @endunless@elseif ($theme === 'bootstrap-4' || $theme === 'bootstrap-5') | merge($customAttributes)
            ->class(['' => $customAttributes['default'] ?? true])
            ->class(['d-none d-sm-table-cell' => $column->shouldCollapseOnMobile()])
            ->class(['d-none d-md-table-cell' => $column->shouldCollapseOnTablet()])
            ->except('default')
    }}>
        @unless ($component->sortingIsEnabled() && $column->isSortable())
            {{ $column->getTitle() }}
        @else @endif
                {{ $column->getTitle() }}
                
                    @if ($direction === 'asc')
                        
                    @elseif ($direction === 'desc')
                        
                    @else
                        
                    @endif
                
            @endunless |