@foreach($columns as $column)
@if ($column->isVisible())
@continue($columnSelect && ! $this->isColumnSelectEnabled($column))
<x-livewire-tables::bs5.table.cell
:class="method_exists($this, 'setTableDataClass') ? $this->setTableDataClass($column, $row) : ''"
:id="method_exists($this, 'setTableDataId') ? $this->setTableDataId($column, $row) : ''"
:customAttributes="method_exists($this, 'setTableDataAttributes') ? $this->setTableDataAttributes($column, $row) : []"
>
@if ($column->asHtml)
{{ new \Illuminate\Support\HtmlString($column->formatted($row)) }}
@else
{{ $column->formatted($row) }}
@endif
</x-livewire-tables::bs5.table.cell>
@endif
@endforeach
|