{!! Form::open(['route' => 'admin::pages::post','class' => 'form-horizontal']) !!} {{-- start: page type --}} @if (count($pageTypes) > 1)
{!! Form::label('type', trans('Pages::admin/forms/add.labels.type')) !!}
{!! Form::select('type', $pageTypes, null, ['id' => 'type', 'class' => 'form-control']) !!}
@else {!! Form::hidden('type', \App\Core\Modules\Pages\Models\Page::SIMPLE_TYPE, ['id' => 'type']) !!} @endif {{-- end: page type --}} {{-- start: page title --}}
{!! Form::label('title', trans('Pages::admin/forms/add.labels.title'), ['class' => 'col-sm-2 control-label']) !!}
{!! Form::text('title', null, ['class' => 'form-control', 'placeholder' => trans('Pages::admin/forms/add.inputs.placeholders.title')]) !!}
{{-- end: page title --}} {{-- start: page content --}}
{!! Form::label('content', trans('Pages::admin/forms/add.labels.content'), ['class' => 'col-sm-2 control-label']) !!}
{!! Form::textarea('content', '', ['id' => 'content', 'class' => 'ckeditor']) !!}
{{-- end: page content --}} {{-- start: page slug --}}
{!! Form::label('slug', trans('Pages::admin/forms/add.labels.slug'), ['class' => 'col-sm-2 control-label']) !!}
{!! Form::text('slug', null, ['class' => 'form-control', 'placeholder' => trans('Pages::admin/forms/add.inputs.placeholders.slug')]) !!} {{ trans('Pages::admin/forms/add.info.slug') }}
{{-- end: page slug --}} {{-- start: page multistores --}}
{!! Form::label('', trans('Pages::admin/forms/add.labels.multistores'), ['class' => 'col-sm-2 control-label']) !!}
@foreach ($multistoreList as $multistore)
{!! Form::checkbox( 'multistore[' . $multistore->id . ']', 1, '', ['id' => 'multistore[' . $multistore->id . ']']) !!} {!! Form::label('multistore[' . $multistore->id . ']', $multistore->name) !!}
@endforeach
{{-- end:: page multistores --}} {{-- start: page submit --}}
{!! Form::submit(trans('Pages::admin/forms/add.submit'), ['class' => 'btn btn-success', 'name' => 'add_new_page_submit']) !!}
{{-- end: page submit --}} {!! Form::close() !!} @include('Pages::admin.scripts.toggle')