@php $terms_ids = $row->terms->pluck('term_id'); $attributes = \Modules\Core\Models\Terms::getTermsById($terms_ids); @endphp @if(!empty($terms_ids) and !empty($attributes)) @foreach($attributes as $attribute ) @php $translate_attribute = $attribute['parent']->translateOrOrigin(app()->getLocale()) @endphp

{{ $translate_attribute->name }}

@php $terms = $attribute['child'] @endphp
@foreach($terms as $term ) @php $translate_term = $term->translateOrOrigin(app()->getLocale()) @endphp
{{$translate_term->name}}
@endforeach
@endforeach @endif