Initial commit
This commit is contained in:
26
resources/views/livewire/datatables/header-no-hide.blade.php
Normal file
26
resources/views/livewire/datatables/header-no-hide.blade.php
Normal file
@@ -0,0 +1,26 @@
|
||||
@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
|
||||
Reference in New Issue
Block a user