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