@extends('admin.layouts.modal') {{-- Content --}} @section('content') {{-- Edit Content Form --}}
{{ $errors->first('title', ':message') }}
@if ($errors->has('slug'))
{{ $errors->first('slug', ':message') }}
@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('excerpt', ':message') }}
{{ $errors->first('text', ':message') }}
@if(isset($content) && !empty($content->banner)) Current Banner: (Remove? ) {{ strip_tags($content->title) }} @endif {{ $errors->first('banner', ':message') }}
@if (!empty($links))
@endif @if (!empty($associate_sidebars) && count($associate_sidebars) > 0)
@endif
{{ $errors->first('meta-title', ':message') }}
{{ $errors->first('meta-description', ':message') }}
{{ $errors->first('meta-keywords', ':message') }}
@if (!empty($outcomes) && $content_type->slug === 'intervention')
@foreach ($outcomes as $outcome)
@endforeach
@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'))
@if ($type->slug === 'content' || $type->slug === 'sidebar') @elseif ($type->slug !== 'sidebar') @endif {{ $errors->first('$attribute->slug', ':message') }}
@endif @endforeach
@endif @endforeach @endif
{{ (isset($content) ? 'Close' : 'Cancel') }} @if (isset($content)) Delete
@endif
@stop