@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 }}
@if( is_array($tableRow) && isset($tableRow[$tableColumnKey]) ) {{ $tableRow[$tableColumnKey] }} @elseif( is_object($tableRow) && property_exists($tableRow, $tableColumnKey) ) {{ $tableRow->{$tableColumnKey} }} @endif
@endif