@php $languages = activeLanguages(); $page_code = isset($pillar) ? 'PAGE_SECTION_' . $pillar->id : 'TMPSET'; @endphp
General
{!! Form::label('page_sections_id', 'Page', ['class' => '']) !!} {!! Form::select('page_sections_id', $page_sections, null, ['class' => 'form-control', 'required', 'autofocus', $disabledField]) !!} {{ $errors->first('page_sections_id') }}
{!! Form::label('name', 'Name', ['class' => '']) !!} {!! Form::text('name', null, ['class' => 'form-control', $disabledField]) !!} {{ $errors->first('name') }}
{!! Form::label('cta_target', 'CTA Target', ['class' => '']) !!} {!! Form::select('cta_target', ['' => '-- Select --', 'internal' => 'Internal', 'external' => 'External'], null, ['id' => 'cta_target_field', 'class' => 'form-control', $disabledField]) !!} {{ $errors->first('cta_target') }}
{!! Form::label('cta_label', 'Button Label', ['class' => '']) !!} {!! Form::text('cta_label', null, ['id' => 'cta_label_field', 'class' => 'form-control', $disabledField]) !!} {{ $errors->first('cta_label') }}
{!! Form::label('cta_url', 'Url', ['class' => '']) !!} {!! Form::text('cta_url', null, ['id' => 'cta_url_field', 'class' => 'form-control', $disabledField]) !!} {{ $errors->first('cta_url') }}
{!! Form::label('cta_page_sections_id', 'Target Page', ['class' => '']) !!} {!! Form::select('cta_page_sections_id', $cta_available_pages, null, ['id' => 'cta_available_pages_field', 'class' => 'form-control', $disabledField]) !!} {{ $errors->first('cta_page_sections_id') }}
{!! Form::label('ga_actions_id', 'Google Analytics Action' . (count($ga_actions) > 1? ' (Category)' : ''), ['class' => '']) !!} {!! Form::select('ga_actions_id', count($ga_actions) > 1 ? $ga_actions : ['' => 'No actions found'], null, ['id' => 'ga_actions_field', 'class' => 'form-control', $disabledField]) !!} {{ $errors->first('ga_actions_id') }}
{!! Form::label('ga_actions_label', 'Google Analytics Action Label', ['class' => '']) !!} {!! Form::text('ga_actions_label', null, ['id' => 'ga_actions_label_field', 'class' => 'form-control', $disabledField]) !!} {{ $errors->first('ga_actions_label') }}
{!! Form::checkbox('active', null, null, ['id' => 'active', 'class' => 'custom-control-input', $disabledField]) !!} {!! Form::label('active', 'Active', ['class' => 'custom-control-label']) !!}
@include('media::layouts.field', [ 'initialImg' => $has_img, 'name' => 'pillar_image', 'withPreview' => true, 'disabledField' => $disabledField, 'imgSrc' => $pillar_img, 'fieldset' => [ 'legend' => 'Image', 'tip' => 'Image rules:
Preferred dimenssions: 1024x768 pixels' ] ])
Content
@foreach ($languages as $language)
{!! Form::textarea('value_' . $language->id, getLanguageTranslation(isset($pillar) ? $pillar->value : '', $language->id), ['id' => 'pillar-value-ckeditor-' . $language->id, 'class' => 'form-control', $disabledField]) !!} {{ $errors->first('value_' . $language->id) }} {{ Form::hidden('value', strtoupper($page_code . '_value')) }}
@endforeach
@push('scripts') @endpush