|
1 | 1 | <div wire:click.prefetch="toggle('{{ $index }}')" |
2 | | - class="@if($column['hidden']) relative table-cell h-12 w-3 bg-blue-100 hover:bg-blue-300 overflow-none align-top group @else hidden @endif" |
3 | | - style="min-width:12px; max-width:12px" |
4 | | -> |
5 | | - <button class="relative h-12 w-3 focus:outline-none"> |
6 | | - <span |
7 | | - class="w-32 hidden group-hover:inline-block absolute z-10 top-0 left-0 ml-3 bg-blue-300 font-medium leading-4 text-xs text-left text-blue-700 tracking-wider transform uppercase focus:outline-none"> |
8 | | - {{ str_replace('_', ' ', $column['label']) }} |
9 | | - </span> |
10 | | - </button> |
11 | | - <svg class="absolute text-blue-100 fill-current w-full inset-x-0 bottom-0" |
12 | | - viewBox="0 0 314.16 207.25"> |
13 | | - <path stroke-miterlimit="10" d="M313.66 206.75H.5V1.49l157.65 204.9L313.66 1.49v205.26z" /> |
14 | | - </svg> |
| 2 | + class="@if($column['hidden']) relative table-cell h-12 w-3 bg-blue-100 hover:bg-blue-300 overflow-none align-top group @else hidden @endif" |
| 3 | + style="min-width:12px; max-width:12px" |
| 4 | + > |
| 5 | + <button class="relative h-12 w-3 focus:outline-none"> |
| 6 | + <span |
| 7 | + class="w-32 hidden group-hover:inline-block absolute z-10 top-0 left-0 ml-3 bg-blue-300 font-medium leading-4 text-xs text-left text-blue-700 tracking-wider transform uppercase focus:outline-none"> |
| 8 | + {{ str_replace('_', ' ', $column['label']) }} |
| 9 | + </span> |
| 10 | + </button> |
| 11 | + <svg class="absolute text-blue-100 fill-current w-full inset-x-0 bottom-0" |
| 12 | + viewBox="0 0 314.16 207.25"> |
| 13 | + <path stroke-miterlimit="10" d="M313.66 206.75H.5V1.49l157.65 204.9L313.66 1.49v205.26z" /> |
| 14 | + </svg> |
15 | 15 | </div> |
16 | 16 | <div class="@if($column['hidden']) hidden @else relative h-12 overflow-hidden align-top flex table-cell @endif" @include('datatables::style-width')> |
17 | 17 |
|
18 | | - @if($column['unsortable']) |
19 | | - <div class="w-full h-full px-6 py-3 border-b border-gray-200 bg-gray-50 text-xs leading-4 font-medium text-gray-500 uppercase tracking-wider flex justify-between items-center focus:outline-none"> |
20 | | - <span class="inline flex-grow @if($column['align'] === 'right') text-right @elseif($column['align'] === 'center') text-center @endif"">{{ str_replace('_', ' ', $column['label']) }}</span> |
21 | | - </div> |
22 | | - @else |
| 18 | + @if($column['sortable']) |
23 | 19 | <button wire:click="sort('{{ $index }}')" |
24 | | - class="w-full h-full px-6 py-3 border-b border-gray-200 bg-gray-50 text-xs leading-4 font-medium text-gray-500 uppercase tracking-wider flex justify-between items-center focus:outline-none"> |
| 20 | + class="w-full h-full px-6 py-3 border-b border-gray-200 bg-gray-50 text-xs leading-4 font-medium text-gray-500 uppercase tracking-wider flex justify-between items-center focus:outline-none"> |
25 | 21 | <span class="inline flex-grow @if($column['align'] === 'right') text-right @elseif($column['align'] === 'center') text-center @endif"">{{ str_replace('_', ' ', $column['label']) }}</span> |
26 | 22 | <span class="inline text-xs text-blue-400"> |
27 | | - @if($sort === $index) |
| 23 | + @if($sort === $index) |
28 | 24 | @if($direction) |
29 | | - <x-icons.chevron-up class="h-6 w-6 text-green-600 stroke-current" /> |
| 25 | + <x-icons.chevron-up class="h-6 w-6 text-green-600 stroke-current" /> |
30 | 26 | @else |
31 | | - <x-icons.chevron-down class="h-6 w-6 text-green-600 stroke-current" /> |
32 | | - @endif |
| 27 | + <x-icons.chevron-down class="h-6 w-6 text-green-600 stroke-current" /> |
33 | 28 | @endif |
| 29 | + @endif |
34 | 30 | </span> |
35 | 31 | </button> |
| 32 | + @else |
| 33 | + <div class="w-full h-full px-6 py-3 border-b border-gray-200 bg-gray-50 text-xs leading-4 font-medium text-gray-500 uppercase tracking-wider flex justify-between items-center focus:outline-none"> |
| 34 | + <span class="inline flex-grow @if($column['align'] === 'right') text-right @elseif($column['align'] === 'center') text-center @endif"">{{ str_replace('_', ' ', $column['label']) }}</span> |
| 35 | + </div> |
36 | 36 | @endif |
37 | 37 |
|
38 | 38 | @if ($column['hideable']) |
39 | 39 | <button wire:click.prefetch="toggle('{{ $index }}')" |
40 | | - class="absolute bottom-1 right-1 focus:outline-none"> |
| 40 | + class="absolute bottom-1 right-1 focus:outline-none"> |
41 | 41 | <x-icons.arrow-circle-left class="h-3 w-3 text-gray-300 hover:text-blue-400" /> |
42 | 42 | </button> |
43 | 43 | @endif |
|
0 commit comments