|  | 
| 1 |  | -@aware(['dataTableFingerprint','primaryKey','isTailwind', 'isTailwind4', 'isBootstrap', 'localisationPath', 'coreTableAttributes', 'selectedVisibleColumns']) | 
|  | 1 | +@aware(['dataTableFingerprint','primaryKey','isTailwind', 'isTailwind4', 'isBootstrap', 'localisationPath', 'coreTableAttributes', 'selectedVisibleColumns', 'selectedVisibleColumnsData']) | 
| 2 | 2 | @props(['bulkActionsTdAttributes','bulkActionsTdCheckboxAttributes']) | 
| 3 | 3 | 
 | 
| 4 | 4 | <table {{ $attributes->merge($coreTableAttributes['table']) | 
|  | 
| 24 | 24 |     @else | 
| 25 | 25 |         <x-livewire-tables::thead /> | 
| 26 | 26 | 
 | 
| 27 |  | -        @php($currentRows = $this->getRows) | 
| 28 | 27 | 
 | 
| 29 |  | -        @if(count($currentRows) > 0) | 
| 30 |  | -            @tableloop ($currentRows as $rowIndex => $row) | 
| 31 |  | -                @php($rowPk = $row->{$primaryKey}) | 
| 32 |  | -                <x-livewire-tables::tbody wire:key="{{ $dataTableFingerprint }}-row-wrap-{{ $rowPk }}" :$row :$rowIndex :$rowPk :tableRowDetails="$this->getTableRowDetails($row, $rowIndex)" /> | 
| 33 |  | -            @endtableloop | 
| 34 |  | -        @else | 
| 35 |  | -            <x-livewire-tables::table.empty /> | 
| 36 |  | -        @endif | 
| 37 |  | -             | 
|  | 28 | +            @php($currentRows = $this->getRows) | 
|  | 29 | + | 
|  | 30 | +            @if(count($currentRows) > 0) | 
|  | 31 | +                @tableloop ($currentRows as $rowIndex => $row) | 
|  | 32 | +                        @php($rowPk = $row->{$primaryKey}) | 
|  | 33 | +                        <x-livewire-tables::tbody wire:key="{{ $dataTableFingerprint }}-row-wrap-{{ $rowPk }}" :$rowIndex :$rowPk :tableRowDetails="$this->getTableRowDetails($row, $rowIndex)"> | 
|  | 34 | + | 
|  | 35 | +                        @tableloop($selectedVisibleColumns as $colIndex => $column) | 
|  | 36 | +                            @php($columnTdArray = $selectedVisibleColumnsData[$column->setIndexes($rowIndex, $colIndex)->getHash()]) | 
|  | 37 | +                            <x-livewire-tables::table.td x-ref="{{ $dataTableFingerprint . '_' . $rowIndex . '_' . $colIndex }}" | 
|  | 38 | +                                :$columnTdArray | 
|  | 39 | +                                :customAttributes="$columnTdArray['hasTdAttributesCallback'] ? $this->getTdAttributes($column, $row, $colIndex, $rowIndex) : ['default' => true, 'default-colors' => true, 'default-styling' => true]"  | 
|  | 40 | +                                :$colIndex   | 
|  | 41 | +                                wire:key="{{ $dataTableFingerprint . '-table-td-'.$rowPk.'-'.$columnTdArray['slug'] }}"   | 
|  | 42 | +                                 | 
|  | 43 | +                            > | 
|  | 44 | +                                @if($columnTdArray['isHtml']) | 
|  | 45 | +                                    {!! $column->renderContents($row) !!} | 
|  | 46 | +                                @else | 
|  | 47 | +                                    {{ $column->renderContents($row) }} | 
|  | 48 | +                                @endif | 
|  | 49 | +                            </x-livewire-tables::table.td> | 
|  | 50 | +                        @endtableloop | 
|  | 51 | +                        </x-livewire-tables::tbody> | 
|  | 52 | +                @endtableloop | 
|  | 53 | +            @else | 
|  | 54 | +                <x-livewire-tables::table.empty /> | 
|  | 55 | +            @endif | 
|  | 56 | + | 
| 38 | 57 |         <x-livewire-tables::tfoot /> | 
| 39 | 58 | 
 | 
| 40 | 59 |     @endif | 
|  | 
0 commit comments