@include('crud::inc.field_translatable_icon') @if(isset($field['display_name'])) {{ data_get($entry, $field['display_name']) }} @elseif(isset($field['model'])) @php if(strpos($field['model'], '.')){ $models = explode('.', $field['model']); }else{ $models = [$field['model']]; } $_entry = $entry; foreach ($models as $model){ $_entry = $_entry->{$model}; } @endphp {{ $_entry->{$field['name']} ?? $_entry->{$field['model_name']} }} @elseif(isset($field['value'])) @if(isset($field['display'])) {{ $field['display']($field['value']) }} @else @php $languages_text = null; if (isset($languages[$field['value']])) { $languages_text = $languages[$field['value']]; } @endphp {{ old(square_brackets_to_dots($field['name'])) ?? $languages_text ?? $field['value'] ?? $field['default'] ?? '' }} @endif @elseif(isset($field['display_name'])) {{ $entry->{$field['display_name']} }} @endif {{-- HINT --}} @if (isset($field['hint']))

{!! $field['hint'] !!}

@endif