{!! Form::label('title', trans('app.form.page_title') . '*') !!} {!! Form::text('title', null, ['class' => isset($page) ? 'form-control' : 'form-control makeSlug', 'placeholder' => trans('app.placeholder.page_title'), 'required']) !!}
{!! Form::label('position', trans('app.form.view_area') . '*') !!} {!! Form::select('position', $positions, null, ['class' => 'form-control select2-normal', 'required']) !!}
@unless(isset($page))
{!! Form::label('slug', trans('app.form.slug') . '*') !!} {!! Form::text('slug', null, ['class' => 'form-control slug', 'placeholder' => trans('app.placeholder.slug'), 'required']) !!}
@endunless
{!! Form::label('content', trans('app.form.content') . '*') !!} {!! Form::textarea('content', null, ['class' => 'form-control summernote-long', 'placeholder' => trans('app.placeholder.content'), 'required']) !!}
@unless(isset($page) && in_array($page->id, config('system.freeze.pages')))
{!! Form::label('published_at', trans('app.form.publish_at')) !!}
{!! Form::text('published_at', isset($page) ? $page->published_at : null, ['class' => 'form-control datetimepicker', 'placeholder' => trans('app.placeholder.publish_at')]) !!}
{{ trans('help.leave_empty_to_save_as_draft') }}
{!! Form::label('visibility', trans('app.form.visibility') . '*') !!} {!! Form::select('visibility', ['1' => trans('app.public'), '2' => trans('app.merchant')], null, ['class' => 'form-control select2-normal', 'required']) !!}
@endunless
@if (isset($page) && $page->coverImage) {{ trans('app.cover_image') }} {!! Form::checkbox('delete_image[cover]', 1, null, ['class' => 'icheck']) !!} {{ trans('app.form.delete_image') }} @endif
{{ trans('app.form.upload') }}

* {{ trans('app.form.required_fields') }}