{{-- regular object attribute --}} @php $value = data_get($entry, $column['name']); if(is_array($value)){ $value = isset($value[$column['index']]) ? $value[$column['index']] : ''; }else{ $value = optional($value)->{$column['index']}; } @endphp {{ (array_key_exists('prefix', $column) ? $column['prefix'] : '').str_limit(strip_tags($value), array_key_exists('limit', $column) ? $column['limit'] : 40, "[...]").(array_key_exists('suffix', $column) ? $column['suffix'] : '') }}