@inject('helperClass','PowerComponents\LivewirePowerGrid\Helpers\Helpers') @props([ 'theme' => null, 'row' => null, 'primaryKey' => null, 'columns' => null, 'currentTable' => null, 'tableName' => null, 'totalColumn' => null, ]) @foreach($columns as $column) @php $content = $row->{$column->field}; $content = preg_replace('#(.*?)#is', '', $content); $field = $column->dataField != '' ? $column->dataField : $column->field; @endphp @if($column->editable === true && !str_contains($field, '.')) @if($column->clickToCopy) @endif @elseif(count($column->toggleable) > 0) @include($theme->toggleable->view, ['tableName' => $tableName]) @else
{!! $content !!}
@if($column->clickToCopy) @endif
@endif @endforeach