@foreach($category_tree as $category) @php $trans = $category->categoryTranslations->where('lang_id',$lang_id)->first();@endphp @if($trans != null)
  • @php $nameChain = $nameChain .'/'. $trans->slug @endphp {{$trans->category_name}} @if( count($category->siblings) > 0)
      @include("binshopsblog::partials._category_partial", [ 'category_tree' => $category->siblings, 'name_chain' => $nameChain, 'routeWithoutLocale' => $routeWithoutLocale ])
    @endif
  • @endif @endforeach