@props([ 'direction' => null, 'sortable' => false, 'sorted' => false, 'align' => 'left', ]) @php $classes = Flux::classes() ->add('py-3 px-3 first:pl-0 last:pr-0') ->add('text-left text-sm font-medium text-zinc-800 dark:text-white') ->add($align === 'right' ? 'group/right-align' : '') // If the last column is sortable, remove the right negative margin that the sortable applies to itself, as the // negative margin caused the last column to overflow the table creating an unnecessary horizontal scrollbar... ->add('**:data-flux-table-sortable:last:mr-0') ; @endphp