|  | 
| 1 |  | -@aware([ 'row', 'rowIndex', 'tableName', 'primaryKey', 'rowPk', 'isTailwind','isBootstrap','rowUrl', 'rowTarget']) | 
| 2 |  | -@props(['column', 'colIndex']) | 
|  | 1 | +@aware([ 'rowIndex', 'tableName', 'rowPk', 'isTailwind','isBootstrap','rowUrl', 'rowTarget']) | 
|  | 2 | +@props(['colIndex', 'customAttributes', 'slug', 'colData']) | 
| 3 | 3 | 
 | 
| 4 |  | -@php | 
| 5 |  | -    $customAttributes = $this->getTdAttributes($column, $row, $colIndex, $rowIndex); | 
| 6 |  | -@endphp | 
| 7 | 4 | 
 | 
| 8 |  | -<td wire:key="{{ $tableName . '-table-td-'.$rowPk.'-'.$column->getSlug() }}" x-ref="{{ $tableName . "_" . $rowIndex."_".$colIndex}}" | 
| 9 |  | -    @if ($column->isClickable()) | 
|  | 5 | +<td wire:key="{{ $tableName . '-table-td-'.$rowPk.'-'.$slug }}" x-ref="{{ $tableName . "_" . $rowIndex.  "_" . $colIndex }}" | 
|  | 6 | +    @if ($colData['isClickable'] ?? false) | 
| 10 | 7 |         @if($rowTarget === 'navigate') wire:navigate href="{{ $rowUrl }}" | 
| 11 | 8 |         @else onclick="window.open('{{ $rowUrl }}', '{{ $rowTarget ?? '_self' }}')" | 
| 12 | 9 |         @endif | 
| 13 | 10 |     @endif | 
| 14 | 11 |         {{ | 
| 15 | 12 |             $attributes->merge($customAttributes) | 
| 16 | 13 |                 ->class($isTailwind ? [ | 
| 17 |  | -                        'px-6 py-4 whitespace-nowrap text-sm font-medium dark:text-white' => $isTailwind && ($customAttributes['default'] ?? true), | 
| 18 |  | -                        'hidden' => $column && $column->shouldCollapseAlways(), | 
| 19 |  | -                        'hidden md:table-cell' => $column && $column->shouldCollapseOnMobile(), | 
| 20 |  | -                        'hidden lg:table-cell' => $column && $column->shouldCollapseOnTablet(), | 
|  | 14 | +                        'px-6 py-4 whitespace-nowrap text-sm font-medium dark:text-white' => ($customAttributes['default'] ?? true), | 
|  | 15 | +                        'hidden' => $colData['shouldCollapseAlways'] ?? false, | 
|  | 16 | +                        'hidden md:table-cell' => $colData['shouldCollapseOnMobile'] ?? false, | 
|  | 17 | +                        'hidden lg:table-cell' => $colData['shouldCollapseOnTablet'] ?? false, | 
| 21 | 18 |                     ] : [ | 
| 22 | 19 |                         '' => ($customAttributes['default'] ?? true), | 
| 23 |  | -                        'd-none' =>  $column && $column->shouldCollapseAlways(), | 
| 24 |  | -                        'd-none d-md-table-cell' =>  $column && $column->shouldCollapseOnMobile(), | 
| 25 |  | -                        'd-none d-lg-table-cell' => $column && $column->shouldCollapseOnTablet(), | 
| 26 |  | -                        'laravel-livewire-tables-cursor' => $column && $column->isClickable(), | 
|  | 20 | +                        'd-none' =>  $colData['shouldCollapseAlways'] ?? false, | 
|  | 21 | +                        'd-none d-md-table-cell' =>  $colData['shouldCollapseOnMobile'] ?? false, | 
|  | 22 | +                        'd-none d-lg-table-cell' => $colData['shouldCollapseOnTablet'] ?? false, | 
|  | 23 | +                        'laravel-livewire-tables-cursor' => $colData['isClickable'] ?? false, | 
| 27 | 24 |                     ]) | 
| 28 | 25 |                 ->except(['default','default-styling','default-colors']) | 
| 29 | 26 |         }} | 
|  | 
0 commit comments