@php if(!isset($item->componentType)){ $item->componentType = "ComponentTextArea"; } $sub = null; if(isset($componentable)): foreach($componentable->components as $c): if($c->template_item == $item->id): $sub = $c->component; endif; endforeach; endif; @endphp
{{--
{{ $item->itemLabel ?? str_replace('Component ', '', implode(' ', preg_split('/(?=[A-Z])/', $item->componentType))) }}
--}} @include(strtolower($item->componentType)."::editor", ["item" => $item, "sub" => $sub])