{{-- 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 --}}
{{-- Load subcomponent Editors --}}
@for($i = 0; $i < $entryCount; $i++) @include('componentimagelink::item.editor', [ 'i' => $i, 'itemID' => $item->id ] ) @endfor
{{-- ID of post if editing existing post --}} @if(isset($post->id)) @endif {{-- Details for component storagefunction --}}