@if(!empty($field['attr'])) @php $attr = \Modules\Core\Models\Attributes::find($field['attr']); $list_cat_json = []; $attr_translate = $attr->translateOrOrigin(app()->getLocale()); if(request()->query('term_id')) $selected = \Modules\Core\Models\Terms::find(request()->query('term_id')); else $selected = false; $list_cat_json = []; @endphp @if($attr)