{{-- PAGE OR LINK field --}} {{-- Used in MenuCRUD --}} @php $field ??= []; $field['options'] = [ 'page_link' => trans('admin.page_link'), 'internal_link' => trans('admin.internal_link'), 'external_link' => trans('admin.external_link') ]; $field['allows_null'] ??= false; $page_model = $field['page_model']; $active_pages = $page_model::all(); @endphp
@include('admin.panel.fields.inc.translatable_icon')
{{-- external link input --}} {{-- internal link input --}} {{-- page slug input --}}
{{-- 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 {{-- End of Extra CSS and JS --}} {{-- ########################################## --}}