|
20 | 20 | @if ($isTailwind) |
21 | 21 | <th scope="col" {{ |
22 | 22 | $attributes->merge($customThAttributes) |
23 | | - ->class(['text-gray-500 dark:bg-gray-800 dark:text-gray-400' => ($customThAttributes['default-colors'] ?? true || $customThAttributes['default'] ?? true)]) |
24 | | - ->class(['px-6 py-3 text-left text-xs font-medium whitespace-nowrap uppercase tracking-wider' => ($customThAttributes['default-styling'] ?? true || $customThAttributes['default'] ?? true)]) |
| 23 | + ->class(['text-gray-500 dark:bg-gray-800 dark:text-gray-400' => (($customThAttributes['default-colors'] ?? true) || ($customThAttributes['default'] ?? true))]) |
| 24 | + ->class(['px-6 py-3 text-left text-xs font-medium whitespace-nowrap uppercase tracking-wider' => (($customThAttributes['default-styling'] ?? true) || ($customThAttributes['default'] ?? true))]) |
25 | 25 | ->class(['hidden' => $column->shouldCollapseAlways()]) |
26 | 26 | ->class(['hidden md:table-cell' => $column->shouldCollapseOnMobile()]) |
27 | 27 | ->class(['hidden lg:table-cell' => $column->shouldCollapseOnTablet()]) |
|
35 | 35 | <button wire:click="sortBy('{{ $column->getColumnSortKey() }}')" |
36 | 36 | {{ |
37 | 37 | $attributes->merge($customSortButtonAttributes) |
38 | | - ->class(['text-gray-500 dark:text-gray-400' => ($customSortButtonAttributes['default-colors'] ?? true || $customSortButtonAttributes['default'] ?? true)]) |
39 | | - ->class(['flex items-center space-x-1 text-left text-xs leading-4 font-medium uppercase tracking-wider group focus:outline-none' => ($customSortButtonAttributes['default-styling'] ?? true || $customSortButtonAttributes['default'] ?? true)]) |
| 38 | + ->class(['text-gray-500 dark:text-gray-400' => (($customSortButtonAttributes['default-colors'] ?? true) || ($customSortButtonAttributes['default'] ?? true))]) |
| 39 | + ->class(['flex items-center space-x-1 text-left text-xs leading-4 font-medium uppercase tracking-wider group focus:outline-none' => (($customSortButtonAttributes['default-styling'] ?? true) || ($customSortButtonAttributes['default'] ?? true))]) |
40 | 40 | ->except(['default', 'default-colors', 'default-styling', 'wire:key']) |
41 | 41 | }} |
42 | 42 | > |
@@ -71,15 +71,15 @@ class="d-flex align-items-center laravel-livewire-tables-cursor" |
71 | 71 | wire:click="sortBy('{{ $column->getColumnSortKey() }}')" |
72 | 72 | {{ |
73 | 73 | $attributes->merge($customSortButtonAttributes) |
74 | | - ->class(['' => ($customSortButtonAttributes['default-styling'] ?? true || $customSortButtonAttributes['default'] ?? true)]) |
| 74 | + ->class(['' => (($customSortButtonAttributes['default-styling'] ?? true) || ($customSortButtonAttributes['default'] ?? true))]) |
75 | 75 | ->except(['default', 'default-colors', 'default-styling', 'wire:key']) |
76 | 76 | }} |
77 | 77 | > |
78 | 78 | <span {{ $customLabelAttributes->except(['default', 'default-colors', 'default-styling']) }}>{{ $column->getTitle() }}</span> |
79 | 79 |
|
80 | 80 | <x-livewire-tables::table.th.sort-icons :$direction {{ |
81 | 81 | $attributes->merge($customSortButtonAttributes) |
82 | | - ->class(['' => ($customSortButtonAttributes['default-colors'] ?? true || $customSortButtonAttributes['default'] ?? true)]) |
| 82 | + ->class(['' => (($customSortButtonAttributes['default-colors'] ?? true) || ($customSortButtonAttributes['default'] ?? true))]) |
83 | 83 | ->except(['default', 'default-colors', 'default-styling', 'wire:key']) |
84 | 84 | }} |
85 | 85 | /> |
|
0 commit comments