@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']->translate() @endphp
@if(empty($attribute['parent']['hide_in_single']))
@php
if($translate_attribute->name == 'Amenities'){
$translate_attribute->name = 'Facilities';
}
@endphp
{{ $translate_attribute->name }}
@php $terms = $attribute['child'] @endphp
@foreach($terms as $term )
@php $translate_term = $term->translate() @endphp
-
@if(!empty($term->image_id))
@php $image_url = get_file_url($term->image_id, 'full'); @endphp
@else
@endif
{{$translate_term->name}}
@endforeach
@endif
@endforeach
@endif