@if (!empty($value)) @php $fields = $field->table->getFields(); $isHtmlAllowed = $field->isHtmlAllowed(); @endphp
@foreach ($fields as $field) {{ $field->getLabel() }} @endforeach @foreach ($value as $item) @foreach ($fields as $field) @php $rawValue = $item[$field->name] ?? data_get($item, $field->name); $dispayValue = $field->display($rawValue); @endphp @if ($isHtmlAllowed) {!! $dispayValue !!} @else {{ $dispayValue }} @endif @endforeach @endforeach
@endif