@if(is_array($answer)) @php $columns = is_iterable(reset($answer)) ? array_keys(reset($answer)) : []; @endphp @if(!empty($columns)) @foreach ($columns as $colKey) @endforeach @endif @foreach ($answer as $rowKey => $row) @if (is_iterable($row)) @foreach ($row as $colKey => $value) @endforeach @else @endif @endforeach
{{ $colKey }}
{{ $rowKey }} @if(is_array($value)) {{ implode(', ', $value) }} @else {{ $value }} @endif @if(str_starts_with($row, 'http')) {{ $row }} @else {{ $row }} @endif
@else
@if(str_starts_with($answer, 'http')) {{ $answer }} @else {{ $answer }} @endif
@endif