27 lines
1.7 KiB
PHP
27 lines
1.7 KiB
PHP
@unless($column['hidden'])
|
|
<div
|
|
@if (isset($column['tooltip']['text'])) title="{{ $column['tooltip']['text'] }}" @endif
|
|
class="relative table-cell h-12 overflow-hidden align-top" @include('datatables::style-width')>
|
|
@if($column['unsortable'])
|
|
<div class="w-full h-full px-6 py-3 border-b border-theme-border bg-gray-50 text-left text-xs leading-4 font-medium text-theme-muted uppercase tracking-wider flex items-center focus:outline-none @if($column['align'] === 'right') justify-end @elseif($column['align'] === 'center') justify-center @endif">
|
|
<span class="inline ">{{ str_replace('_', ' ', $column['label']) }}</span>
|
|
</div>
|
|
@else
|
|
<button wire:click="sort('{{ $index }}')" class="w-full h-full px-6 py-3 border-b border-theme-border bg-gray-50 text-left text-xs leading-4 font-medium text-theme-muted uppercase tracking-wider flex items-center focus:outline-none @if($column['align'] === 'right') justify-end @elseif($column['align'] === 'center') justify-center @endif">
|
|
<span class="inline ">{{ str_replace('_', ' ', $column['label']) }}</span>
|
|
<span class="inline text-xs text-blue-400">
|
|
@if($sort === $index)
|
|
@if($direction)
|
|
<x-icons.chevron-up wire:loading.remove class="w-6 h-6 text-theme-primary hover:text-theme-secondary stroke-current pl-2" />
|
|
@else
|
|
<x-icons.chevron-down wire:loading.remove class="w-6 h-6 text-theme-primary hover:text-theme-secondary stroke-current pl-2" />
|
|
|
|
|
|
@endif
|
|
@endif
|
|
</span>
|
|
</button>
|
|
@endif
|
|
</div>
|
|
@endif
|