@props([ 'field' => null, 'sortable' => false, 'currentSort' => null, 'currentDirection' => 'asc', 'width' => null, 'sticky' => false, 'align' => 'left', ]) @php $alignClass = match ($align) { 'center' => 'text-center justify-center', 'right' => 'text-right justify-end', default => 'text-left justify-start', }; $stickyClass = $sticky ? 'sticky left-0 z-30 bg-slate-50 dark:bg-slate-900 border-r border-slate-200/80 dark:border-slate-800 shadow-[2px_0_5px_-2px_rgba(0,0,0,0.06)]' : 'z-20'; $isSorted = $sortable && $field && $currentSort === $field; @endphp