Laravel Blade Recursive Partials with @each

Interesting, but how would you deal with the “ul” tags?
I suppose they would be just dropped in your example, or is there a way to have a pre/post string/variable output by “@each”?