@if ($errors->has('slug'))
@elseif (isset($content) || isset($input_slug))
@endif
@if (!empty($content_type))
@endif
@if (!empty($templates) && ((isset($content) && !empty($content_type->per_item_template)) || (!isset($content))))
@endif
{{ $errors->first('text', ':message') }}
@if (!empty($links))
@endif
@if (!empty($associate_sidebars) && count($associate_sidebars) > 0)
@endif
@if (!empty($outcomes) && $content_type->slug === 'intervention')
@endif
@if (!empty($attribute_types))
@foreach ($attribute_types as $type)
@if (count($type->attributes()->select('attributes.*')->join('attribute_content', 'attribute_content.attribute_id', '=', 'attributes.id')->where('attribute_content.visible', true)->get()) > 0)
@foreach ($type->attributes as $attribute)
@if ((!empty($content) && ($type->slug !== 'sidebar' || ($type->slug === 'sidebar' && $attribute->contents->find($content->id) && $attribute->contents->find($content->id)->pivot->visible))) ||
(empty($content) && $type->slug !== 'sidebar'))
@endif
@endforeach
@endif
@endforeach
@endif