{{-- regular object attribute --}} @php $value = $value ?? data_get($entry, $column['name']); $column['limit'] = $column['limit'] ?? 120; $column['prefix'] = $column['prefix'] ?? ''; $column['suffix'] = $column['suffix'] ?? ''; $column['text'] = $column['prefix'] . ($column['text'] ?? Str::of($value)->after(base_path())->trim('\\')->replace('\\', '/')->limit($column['limit'], '[...]')) . $column['suffix']; $column['path'] = $column['path'] ?? $entry->{$column['filePath'] ?? ''} ?? $value; $column['href'] = link_to_code_editor($column['path']); @endphp @includeWhen(!empty($column['wrapper']), 'crud::columns.inc.wrapper_start') @if($column['path']) {{ $column['text'] }} @if ($column['href'] !== '') @endif @if(request()->has('new')) New @endif @else - @endif @includeWhen(!empty($column['wrapper']), 'crud::columns.inc.wrapper_end')