@include('admin.panel.fields.inc.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 ($xPanel->checkIfFieldIsFirstOfItsType($field, $fields))
{{-- 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')
@endpush
@endif
{{-- FIELD JS - will be loaded in the after_scripts section --}}
@push('crud_fields_scripts')
@php
$editorLocale = '';
if (file_exists(public_path() . '/assets/plugins/ckeditor/translations/' . getLangTag(config('app.locale')) . '.js')) {
$editorLocale = getLangTag(config('app.locale'));
}
if (empty($editorLocale)) {
if (file_exists(public_path() . '/assets/plugins/ckeditor/translations/' . config('lang.tag') . '.js')) {
$editorLocale = config('lang.tag');
}
}
if (empty($editorLocale)) {
if (file_exists(public_path() . '/assets/plugins/ckeditor/translations/' . strtolower(config('lang.tag')) . '.js')) {
$editorLocale = strtolower(config('lang.tag'));
}
}
if (empty($editorLocale)) {
$editorLocale = 'en';
}
@endphp
@if ($editorLocale != 'en')
@endif
@endpush
{{-- End of Extra CSS and JS --}}
{{-- ########################################## --}}