whereDoesntStartWith('wire:model') ->class([ 'table', 'table-zebra' => $striped, '[&_tr:nth-child(4n+3)]:bg-base-200' => $striped && $expandable, 'cursor-pointer' => $attributes->hasAny(['@row-click', 'link']) ]) }} > $noHeaders])> @if($selectable) @endif @if($expandable) @endif @foreach($headers as $header) @php # SKIP THE HIDDEN COLUMN if($isHidden($header)) continue; # Scoped slot`s name like `user.city` are compiled to `user___city` through `@scope / @endscope`. # So we use current `$header` key to find that slot on context. $temp_key = str_replace('.', '___', $header['key']) @endphp @endforeach @if($actions) @endif @foreach($rows as $k => $row) !$noHover]) @if($attributes->has('@row-click')) @click="$dispatch('row-click', {{ json_encode($row) }});" @endif > @if($selectable) @endif @if($expandable) @endif @foreach($headers as $header) @php # SKIP THE HIDDEN COLUMN if($isHidden($header)) continue; # Scoped slot`s name like `user.city` are compiled to `user___city` through `@scope / @endscope`. # So we use current `$header` key to find that slot on context. $temp_key = str_replace('.', '___', $header['key']) @endphp @if(isset(${"cell_".$temp_key})) @else @endif @endforeach @if($actions) @endif @if($expandable) @endif @endforeach @isset ($footer) attributes ?? '' }}> {{ $footer }} @endisset
{{ isset(${"header_".$temp_key}) ? ${"header_".$temp_key}($header) : $header['label'] }} @if($isSortable($header)) @endif
@if(data_get($row, $expandableCondition)) @endif $hasLink($header)])> @if($hasLink($header)) @endif {{ ${"cell_".$temp_key}($fluent ? fluent($row) : $row) }} @if($hasLink($header)) @endif $hasLink($header)])> @if($hasLink($header)) @endif {{ $format($row, data_get($row, $header['key']), $header) }} @if($hasLink($header)) @endif {{ $actions($row) }}
{{ $expansion($fluent ? fluent($row) : $row) }}
@if(count($rows) === 0) @if($showEmptyText)
{{ $emptyText }}
@endif @if($empty)
{{ $empty }}
@endif @endif
@if($withPagination) @if($perPage) @else @endif @endif