@php $field['wrapper'] = $field['wrapper'] ?? $field['wrapperAttributes'] ?? []; $field['wrapper']['data-init-function'] = $field['wrapper']['data-init-function'] ?? 'bpFieldInitUploadElement'; $field['wrapper']['data-field-name'] = $field['wrapper']['data-field-name'] ?? $field['name']; @endphp {{-- text input --}} @include('crud::fields.inc.wrapper_start') @include('crud::fields.inc.translatable_icon') {{-- Show the file name and a "Clear" button on EDIT form. --}} @if (!empty($field['value']))
{!! $field['hint'] !!}
@endif @include('crud::fields.inc.wrapper_end') {{-- ########################################## --}} {{-- Extra CSS and JS for this particular field --}} {{-- If a field type is shown multiple times on a form, the CSS and JS will only be loaded once --}} @push('crud_fields_styles') @bassetBlock('backpack/crud/fields/upload-field.css') @endBassetBlock @endpush @push('crud_fields_scripts') @bassetBlock('backpack/crud/fields/upload-field.js') @endBassetBlock @endpush