@php $tag = $topLevelSection?'section':'div'; $topLevelSection = false; if(!isset($item->componentType)){ $item->componentType = "ComponentTextArea"; } $sub = null; if(isset($post)): foreach($post->components as $c): if($c->template_item == $item->id): $sub = $c->component; endif; endforeach; endif; @endphp {{--
--}} @include(strtolower($item->componentType)."::front", ["item" => $item, "sub" => $sub]) {{--
--}}