{{-- Get subcomponent count or default to 1 if no subcomponents exist --}} @php (isset($sub->subcomponents)) ? $entryCount = (count($sub->subcomponents)) : $entryCount = 1; if(array_has($sub, 'layout')) { $layout = $sub->layout; } else { $layout = 'column'; } @endphp {{-- Wrapper for component --}}