@php $terms_ids = $row->tour_term->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 @if(empty($attribute['parent']['hide_in_single']))

{{ $translate_attribute->name }}

@php $terms = $attribute['child'] @endphp
@foreach($terms as $term ) @php $translate_term = $term->translateOrOrigin(app()->getLocale()) @endphp
@if(!empty($term->image_id)) @php $image_url = get_file_url($term->image_id, 'full'); @endphp {{$translate_term->name}} @else @endif {{$translate_term->name}}
@endforeach
@endif @endforeach @endif