@php $level .='-'.($loop->index + 1); $index .='.'.($loop->index + 1); @endphp @php $tranParagraph=($childs->translationsLanguage()->first()); if(!$tranParagraph){ $tranParagraph=($childs->translationsLanguage(config('languages.default'))->first()); } @endphp
  • {{ $index }}. {!! $tranParagraph->name !!}

    @if ($childs->childs()->where([ ['active',1], ['type', $typeKey] ])->count()) @endif