@foreach($category as $key => $cat)
@if(empty($cat['child']))
@if(!empty($bundlings))
@foreach($bundlings as $value)
@if (($value['category'][0]['id_bundling_category']??false) == $cat['id_bundling_category'])
-
{{ $value['bundling_name'] }}
@endif
@endforeach
@endif
@else
@if(!empty($bundlings))
@foreach($bundlings as $value)
@if (($value['category'][0]['id_bundling_category']??false) == $cat['id_bundling_category'])
-
{{ $value['bundling_name'] }}
@endif
@endforeach
@endif
@foreach($cat['child'] as $keyC => $child)
@if(!empty($bundlings))
@foreach($bundlings as $value)
@if (($value['category'][0]['id_bundling_category']??false) == $child['id_bundling_category'])
-
{{ $value['bundling_name'] }}
@endif
@endforeach
@endif
@endforeach
@endif
@endforeach
@if(!empty($bundlings))
@foreach($bundlings as $value)
@if (empty($value['category']))
-
{{ $value['bundling_name'] }}
@endif
@endforeach
@endif