@foreach ($configParagraph['type'] as $key=> $value)
-
@foreach ($data->paragraphs()->where('type',$key)->where('parent_id',0)->orderby('order')->orderByDesc('created_at')->get() as $paragraphItem)
-
@if ($paragraphItem->childs->count())
@endif
@if ($paragraphItem->childs->count())
@foreach ($paragraphItem->childs()->orderby('order')->orderByDesc('created_at')->get() as $childValue)
@include('admin.components.paragraph.load-list-childs-paragraph', [
'childs' => $childValue
])
@endforeach
@endif
@endforeach
@endforeach