{{-- custom editable column --}} @php $column['value'] = $column['value'] ?? data_get($entry, $column['name']); if(is_callable($column['value']) && $column['value'] instanceof \Closure) { $column['value'] = $column['value']($entry); } if(is_array($column['value'])) { $column['value'] = json_encode($column['value']); } $column['escaped'] = $column['escaped'] ?? true; $column['limit'] = $column['limit'] ?? 40; $column['prefix'] = $column['prefix'] ?? ''; $column['suffix'] = $column['suffix'] ?? ''; $column['text'] = $column['prefix'].Str::limit($column['value'], $column['limit'], '[...]').$column['suffix']; $column['underlined'] = $column['underlined'] ?? true; $column['select_on_click'] = $column['select_on_click'] ?? false; $column['save_on_focusout'] = $column['save_on_focusout'] ?? false; $column['min_width'] = $column['min_width'] ?? "120px"; $column['type'] = $column['type'] ?? 'text'; $column['fake'] = $column['fake'] ?? false; $column['store_in'] = $column['store_in'] ?? 'extras'; @endphp @includeWhen(!empty($column['wrapper']), 'crud::columns.inc.wrapper_start') @includeWhen(!empty($column['wrapper']), 'crud::columns.inc.wrapper_end')