@foreach($columns as $column)
@if ($column->isVisible())
@if($column->isSortable())
setTableHeadAttributes($column->getAttribute()) as $key => $value)
{{ $key }}="{{ $value }}"
@endforeach
wire:click="sort('{{ $column->getAttribute() }}')"
style="cursor:pointer;"
>
{{ $column->getText() }}
@if ($sortField !== $column->getAttribute())
{{ new \Illuminate\Support\HtmlString($sortDefaultIcon) }}
@elseif ($sortDirection === 'asc')
{{ new \Illuminate\Support\HtmlString($ascSortIcon) }}
@else
{{ new \Illuminate\Support\HtmlString($descSortIcon) }}
@endif
|
@else
setTableHeadAttributes($column->getAttribute()) as $key => $value)
{{ $key }}="{{ $value }}"
@endforeach
>
{{ $column->getText() }}
|
@endif
@endif
@endforeach