@extends('layouts.backend') @section('title', $page->exists ? 'Editando '.$page->post->title : 'Crear nueva página') @section('content') {!! Form::model($page, [ 'method' => $page->exists ? 'put' : 'post', 'route' => $page->exists ? ['backend.pages.update', $page->id] : 'backend.pages.store', 'files' => true ]) !!}

Información de página

{!! Form::text('post[title]', null, ['class' => 'form-control', 'id' => 'pageNameLabel']) !!}
{!! Form::textarea('post[excerpt]', null, ['class' => 'form-control', 'id' => 'postExcerptLabel', 'rows' => 3]) !!}
{!! Form::text('post[slug]', null, ['class' => 'form-control', 'id' => 'urlLabel']) !!}
{!! Form::select('template', ['' => 'Predeterminada'] + $templates, null, ['class' => 'js-select2-custom custom-select', 'size' => '1', 'style' => 'opacity: 0;', 'id' => 'categoryLabel', 'data-hs-select2-options' => '{ "minimumResultsForSearch": "Infinity" }']) !!}

Visibilidad

{!! Form::select('parent_id', ['' => 'Ninguna'] + $pages, null, ['class' => 'js-select2-custom custom-select', 'size' => '1', 'style' => 'opacity: 0;', 'id' => 'parentLabel', 'data-hs-select2-options' => '{ "minimumResultsForSearch": "Infinity" }']) !!}
{!! Form::select('position_id[]', config('cms.positions'), null, ['class' => 'js-select2-custom custom-select', 'size' => '1', 'multiple', 'style' => 'opacity: 0;', 'id' => 'positionLabel', 'data-hs-select2-options' => '{ "minimumResultsForSearch": "Infinity" }']) !!}
{!! Form::select('target', config('cms.targets'), null, ['class' => 'js-select2-custom custom-select', 'size' => '1', 'style' => 'opacity: 0;', 'id' => 'targetLabel', 'data-hs-select2-options' => '{ "minimumResultsForSearch": "Infinity" }']) !!}

{!! Form::close() !!} @endsection @push('scripts') @endpush