@php \TallStackUi\Foundation\Exceptions\MissingLivewireException::throwIf($livewire, 'table'); $personalize = $classes(); @endphp
@if (is_string($header))

{{ $header }}

@else {{ $header }} @endif @if (count((array) $rows) > 0 && $livewire && !is_null($filter))
isset($filter['quantity']) && isset($filter['search']), 'justify-start' => isset($filter['quantity']) && ! isset($filter['search']), 'justify-end' => ! isset($filter['quantity']) && isset($filter['search']), ])> @isset ($filter['quantity'])
@endisset @isset ($filter['search'])
@endisset
@endif
@if ($livewire && $loading) @endif @if (!$headerless) !$striped, $personalize['table.thead.striped'] => $striped])> @foreach ($headers as $header) @endforeach @endif @if (is_array($rows) && (count($rows) === 1 && empty($rows[0]))) @else @forelse ($rows as $key => $value) @if ($livewire) @php $this->loop = $loop; @endphp @endif $striped && $loop->index % 2 === 0]) @if ($livewire) wire:key="{{ md5(serialize($value).$key) }}" @endif> @foreach($headers as $header) @php $row = str_replace('.', '_', $header['index']); @endphp @isset(${"column_".$row}) @else @endisset @endforeach @empty @endforelse @endif
{{ $header['label'] ?? '' }} @if ($livewire && $sortable($header) && $sorted($header)) @endif
{{ $placeholders['empty'] }}
{{ ${"column_".$row}($value) }} {{ data_get($value, $header['index']) }}
{{ $placeholders['empty'] }}
@if (is_string($footer))

{{ $footer }}

@else {{ $footer }} @endif @if ($paginate && (!is_array($rows) && $rows->hasPages())) {{ $rows->onEachSide(1)->links($paginator, [ 'simplePagination' => $simplePagination, 'scrollTo' => $persistent && $id ? '#'.$id : false, ]) }} @endif