@php if (!isset($field['wrapperAttributes']) || !isset($field['wrapperAttributes']['class'])) { $field['wrapperAttributes']['class'] = "form-group col-xs-12 image"; } $prefix = isset($field['prefix']) ? $field['prefix'] : ''; $value = old(square_brackets_to_dots($field['name'])) ?? $field['value'] ?? $field['default'] ?? ''; $image_url = $value ? preg_match('/^data\:image\//', $value) ? $value : (isset($field['disk']) ? Storage::disk($field['disk'])->url($prefix.$value) : url($prefix.$value)) :''; // if validation failed, tha value will be base64, so no need to create a URL for it @endphp
@include('crud::inc.field_translatable_icon')
@if(isset($field['crop']) && $field['crop'])
@endif
@if(isset($field['crop']) && $field['crop']) @endif
{{-- HINT --}} @if (isset($field['hint']))

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

@endif
{{-- ########################################## --}} {{-- 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 --}} @if ($crud->checkIfFieldIsFirstOfItsType($field)) {{-- FIELD CSS - will be loaded in the after_styles section --}} @push('crud_fields_styles') {{-- YOUR CSS HERE --}} @endpush {{-- FIELD JS - will be loaded in the after_scripts section --}} @push('crud_fields_scripts') {{-- YOUR JS HERE --}} @endpush @endif {{-- End of Extra CSS and JS --}} {{-- ########################################## --}}