@aware(['component'])
@php
$theme = $component->getTheme();
@endphp
@if ($theme === 'tailwind')
@if ($component->sortingPillsAreEnabled() && $component->hasSorts())
@lang('Applied Sorting'):
@foreach($component->getSorts() as $columnSelectName => $direction)
@php
$column = $component->getColumnBySelectName($columnSelectName) ?? $component->getColumnBySlug($columnSelectName);
@endphp
@continue(is_null($column))
@continue($column->isHidden())
@continue($this->columnSelectIsEnabled() && ! $this->columnSelectIsEnabledForColumn($column))
{{ $column->getSortingPillTitle() }}: {{ $column->getSortingPillDirection($component, $direction) }}
@endforeach
@endif
@elseif ($theme === 'bootstrap-4')
@if ($component->sortingPillsAreEnabled() && $component->hasSorts())
@lang('Applied Sorting'):
@foreach($component->getSorts() as $columnSelectName => $direction)
@php
$column = $component->getColumnBySelectName($columnSelectName) ?? $component->getColumnBySlug($columnSelectName);
@endphp
@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 ($theme === 'bootstrap-5')
@if ($component->sortingPillsAreEnabled() && $component->hasSorts())
@lang('Applied Sorting'):
@foreach($component->getSorts() as $columnSelectName => $direction)
@php
$column = $component->getColumnBySelectName($columnSelectName) ?? $component->getColumnBySlug($columnSelectName);
@endphp
@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