@foreach($catalog as $one_item)
{{$one_item->name}}
@endforeach
@if(isset($one_item->menuItem))
@endif
@if(request()->segment(2) == 'catalog' && request()->segment(3))
{{$one_item->menuItem->name ?? $one_item->name}}
@else{{$one_item->menuItem->name ?? $one_item->name}}
@endif
@foreach($one_item->goodsItems as $product)
@include('front.templates.goods-template')
@endforeach
{{ $goods_subject->h1_title ?? '' }}
{!! $goods_subject->body !!}