@php $current_value = old($field['name']) ?? $field['value'] ?? $field['default'] ?? ''; $entity_model = $crud->getRelationModel($field['entity'], - 1); $field['init_function'] = $field['init_function'] ?? true; $field['init_script'] = $field['init_script'] ?? true; if (!isset($field['options'])) { $options = $field['model']::all(); } else { $options = call_user_func($field['options'], $field['model']::query()); } @endphp
@include('crud::inc.field_translatable_icon') {{-- 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->fieldTypeNotLoaded($field)) @php $crud->markFieldTypeAsLoaded($field); @endphp {{-- FIELD CSS - will be loaded in the after_styles section --}} @push('crud_fields_styles') @endpush {{-- FIELD JS - will be loaded in the after_scripts section --}} @push('crud_fields_scripts') @if($field['init_script']) @if (app()->getLocale() !== 'en') @endif @endif @endpush @endif {{-- End of Extra CSS and JS --}} {{-- ########################################## --}}