@php $value = data_get($entry, $column['name']); $columns = $column['columns']; // if this attribute isn't using attribute casting, decode it if (is_string($value)) { $value = json_decode($value); } @endphp @if ($value && count($columns)) @foreach($columns as $tableColumnKey => $tableColumnLabel) @endforeach @foreach ($value as $tableRow) @foreach($columns as $tableColumnKey => $tableColumnLabel) @endforeach @endforeach
{{ $tableColumnLabel }}
{{ $tableRow->{$tableColumnKey} ?? $tableRow[$tableColumnKey] }}
@endif