@if (!empty($cat) && empty($subcat) && !empty(json_decode($cat->attributes, true)))
@foreach ($cat->attributes as $key => $attr)
{{$attr->name}}
@if (!empty($attr->attribute_options))
@foreach ($attr->attribute_options as $key => $option)
@endforeach
@endif
@endforeach
@endif
@if (!empty($subcat) && empty($childcategory))
@foreach ($cat->attributes as $key => $attr)
{{$attr->name}}
@if (!empty($attr->attribute_options))
@foreach ($attr->attribute_options as $key => $option)
@endforeach
@endif
@endforeach
@foreach ($subcat->attributes as $key => $attr)
{{$attr->name}}
@if (!empty($attr->attribute_options))
@foreach ($attr->attribute_options as $key => $option)
@endforeach
@endif
@endforeach
@endif
@if (!empty($childcategory) && !empty(json_decode($childcategory->attributes, true)))
@foreach ($cat->attributes as $key => $attr)
{{$attr->name}}
@if (!empty($attr->attribute_options))
@foreach ($attr->attribute_options as $key => $option)
@endforeach
@endif
@endforeach
@foreach ($subcat->attributes as $key => $attr)
{{$attr->name}}
@if (!empty($attr->attribute_options))
@foreach ($attr->attribute_options as $key => $option)
@endforeach
@endif
@endforeach
@foreach ($childcategory->attributes as $key => $attr)
{{$attr->name}}
@if (!empty($attr->attribute_options))
@foreach ($attr->attribute_options as $key => $option)
@endforeach
@endif
@endforeach
@endif