@aware(['component', 'tableName','isTailwind','isBootstrap','isBootstrap4','isBootstrap5'])
@if ($this->isTailwind)
@if ($this->sortingPillsAreEnabled() && $this->hasSorts())
{{ __('livewire-tables::core.Applied Sorting') }}:
@foreach($this->getSorts() as $columnSelectName => $direction)
@php($column = $this->getColumnBySelectName($columnSelectName) ?? $this->getColumnBySlug($columnSelectName))
@continue(is_null($column))
@continue($column->isHidden())
@continue($this->columnSelectIsEnabled() && ! $this->columnSelectIsEnabledForColumn($column))
{{ $column->getSortingPillTitle() }}: {{ $column->getSortingPillDirectionLabel($direction, $this->getDefaultSortingLabelAsc, $this->getDefaultSortingLabelDesc) }}
@endforeach
@endif
@elseif ($this->isBootstrap4)
@if ($this->sortingPillsAreEnabled() && $this->hasSorts())
{{ __('livewire-tables::core.Applied Sorting') }}:
@foreach($this->getSorts() as $columnSelectName => $direction)
@php($column = $this->getColumnBySelectName($columnSelectName) ?? $this->getColumnBySlug($columnSelectName))
@continue(is_null($column))
@continue($column->isHidden())
@continue($this->columnSelectIsEnabled() && ! $this->columnSelectIsEnabledForColumn($column))
{{ $column->getSortingPillTitle() }}: {{ $column->getSortingPillDirectionLabel($direction, $this->getDefaultSortingLabelAsc, $this->getDefaultSortingLabelDesc) }}
{{ __('livewire-tables::core.Remove sort option') }}
@endforeach
{{ __('livewire-tables::core.Clear') }}
@endif
@elseif ($this->isBootstrap5)
@if ($this->sortingPillsAreEnabled() && $this->hasSorts())
{{ __('livewire-tables::core.Applied Sorting') }}:
@foreach($this->getSorts() as $columnSelectName => $direction)
@php($column = $this->getColumnBySelectName($columnSelectName) ?? $this->getColumnBySlug($columnSelectName))
@continue(is_null($column))
@continue($column->isHidden())
@continue($this->columnSelectIsEnabled() && ! $this->columnSelectIsEnabledForColumn($column))
{{ $column->getSortingPillTitle() }}: {{ $column->getSortingPillDirectionLabel($direction, $this->getDefaultSortingLabelAsc, $this->getDefaultSortingLabelDesc) }}
{{ __('livewire-tables::core.Remove sort option') }}
@endforeach
{{ __('livewire-tables::core.Clear') }}
@endif
@endif