General
{!! Html::decode(Form::label('page_title', 'Page Title ', ['class' => ''])) !!}
The page title will be shown in the browser tab. It is an optional field but when set it will override the Main Header Middle (Big).
Please make sure you include relavent keywords to improve SEO
{!! Form::text('page_title', null, ['class' => 'form-control', $disabledField]) !!} {{ $errors->first('page_title') }}
{!! Html::decode(Form::label('code', 'Page Url ', ['class' => ''])) !!}
The page code will have to be unique and will be used in the Url address
{!! Form::text('code', null, ['class' => 'form-control', 'required', isset($support_page) && in_array($support_page->code, ['COMMON', 'LANDING', 'ABOUT']) ? 'readonly' : '', $disabledField]) !!} {{ $errors->first('code') }}
{!! Form::label('name', 'Page Internal Name', ['class' => '']) !!} {!! Form::text('name', null, ['class' => 'form-control', 'required', $disabledField]) !!} {{ $errors->first('name') }}
{!! Form::checkbox('has_headers', null, isset($support_page_headers_count) && $support_page_headers_count > 0, ['id' => 'has_headers', 'class' => 'custom-control-input', $disabledField]) !!} {!! Form::label('has_headers', 'Has Headers?', ['class' => 'custom-control-label']) !!}
Meta Data
{!! Form::label('meta_description', 'Description', ['class' => '']) !!} {!! Form::textarea('meta_description', null, ['class' => 'form-control', 'rows' => 3, $disabledField]) !!} {{ $errors->first('meta_description') }}
{!! Form::label('meta_keywords', 'Keywords', ['class' => '']) !!} {!! Form::textarea('meta_keywords', null, ['class' => 'form-control', 'rows' => 3, $disabledField]) !!} {{ $errors->first('meta_keywords') }}
@if ($page_code == 'LANDING') Headers @else Headers & Background Image @endif
@include('pagecomponents::headers._single', [ 'main_header_top' => [ 'id' => 'main_header_top', 'name' => 'main_header_top', 'label' => 'Main Header Top', 'default_value' => isset($support_page_headers) && isset($support_page_headers['main_header_top']) ? $support_page_headers['main_header_top'] : null ], 'main_header_middle_big' => [ 'id' => 'main_header_middle_big', 'name' => 'main_header_middle_big', 'label' => 'Main Header Middle (Big)', 'default_value' => isset($support_page_headers) && isset($support_page_headers['main_header_middle_big']) ? $support_page_headers['main_header_middle_big'] : null ], 'main_header_bottom' => [ 'id' => 'main_header_bottom', 'name' => 'main_header_bottom', 'label' => 'Main Header Bottom', 'default_value' => isset($support_page_headers) && isset($support_page_headers['main_header_bottom']) ? $support_page_headers['main_header_bottom'] : null ], ])
@if ($page_code != 'LANDING')
Image rules:
Preferred dimenssions: 1920 × 600 pixels
@include('media::layouts.field', [ 'initialImg' => $has_img, 'name' => 'header_image', 'withPreview' => true, 'disabledField' => $disabledField, 'imgSrc' => $header_img, ])
@endif
Call To Actions
@include('pagecomponents::headers._header_ctas', [ 'code' => $page_code, 'page_id' => $page_id, 'header_ctas' => isset($support_page_headers['header_ctas']) ? $support_page_headers['header_ctas'] : [] ])
@push('scripts') @endpush