@php
$current_value = old($field['name']) ? old($field['name']) : (isset($field['value']) ? $field['value'] : (isset($field['default']) ? $field['default'] : '' ));
@endphp
@include('crud::inc.field_translatable_icon')
@php
$entity_model = $crud->model;
$related_model = $crud->getRelationModel($field['entity']);
$group_by_model = (new $related_model)->{$field['group_by']}()->getRelated();
$categories = $group_by_model::with($field['group_by_relationship_back'])->get();
if (isset($field['model'])) {
$categorylessEntries = $related_model::doesnthave($field['group_by'])->get();
}
@endphp
{{-- HINT --}}
@if (isset($field['hint']))
{!! $field['hint'] !!}
@endif