{{-- enumerate the values in an array --}} @php $value = data_get($entry, $column['name']); $column['escaped'] = $column['escaped'] ?? false; $column['prefix'] = $column['prefix'] ?? ''; $column['suffix'] = $column['suffix'] ?? ''; // the value should be an array wether or not attribute casting is used if (!is_array($value)) { $value = json_decode($value, true); } @endphp @if($value && count($value)) {{ $column['prefix'] }} @foreach($value as $key => $text) @php $column['text'] = $text; $related_key = $key; @endphp @includeWhen(!empty($column['wrapper']), 'crud::columns.inc.wrapper_start') @if($column['escaped']) {{ $column['text'] }} @else {!! $column['text'] !!} @endif @includeWhen(!empty($column['wrapper']), 'crud::columns.inc.wrapper_end') @if(!$loop->last), @endif @endforeach {{ $column['suffix'] }} @else - @endif