@extends('layouts.backend') @section('title', $section->exists ? 'Editando '.($section->post->title ?? 'Sección #'.$section->id) : 'Crear nueva sección') @section('content') {!! Form::model($section, [ 'method' => $section->exists ? 'put' : 'post', 'route' => $section->exists ? ['backend.sections.update', $section->id] : 'backend.sections.store', 'files' => true ]) !!}

Información de sección

{!! Form::text('post[title]', null, ['class' => 'form-control', 'id' => 'sectionNameLabel']) !!}
{{----}} {{----}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{----}}
{!! Form::textarea('post[excerpt]', null, ['class' => 'form-control', 'id' => 'textLabel', 'rows' => 5]) !!}
{!! Form::textarea('post[content]', null, ['class' => 'form-control ckeditor', 'id' => 'contentLabel', 'rows' => 5]) !!}
{!! Form::text('atts[url]', null, ['class' => 'form-control', 'id' => 'urlLabel']) !!}
{!! Form::text('atts[url_text]', null, ['class' => 'form-control', 'id' => 'urlLabel', 'placeholder' => 'Leer más']) !!}

Visibilidad

{!! Form::text('selector', null, ['class' => 'form-control', 'id' => 'selectorLabel']) !!}
{!! Form::select('page_id', ['' => 'Ninguna'] + $pages, $section->page_id ?? request()->page_id, ['class' => 'js-select2-custom custom-select', 'size' => '1', 'style' => 'opacity: 0;', 'id' => 'categoryLabel', 'data-hs-select2-options' => '{ "minimumResultsForSearch": "Infinity" }']) !!}
@include('backend.partials.images', ['model' => $section])
{!! Form::close() !!} @endsection @push('scripts') @endpush