@extends('layouts.backend') @section('title', $article->exists ? 'Editando '.$article->post->title : 'Crear nuevo artículo') @section('content') {!! Form::model($article, [ 'method' => $article->exists ? 'put' : 'post', 'route' => $article->exists ? ['backend.articles.update', $article->id] : 'backend.articles.store', 'files' => true ]) !!}

Información de artículo

{!! Form::text('post[title]', null, ['class' => 'form-control', 'id' => 'articleNameLabel']) !!}
{!! 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('published_at', null, ['class' => 'flatpickr-custom-form-control form-control', 'id' => 'publishedLabel', 'placeholder' => 'Seleccionar fecha', 'data-input']) !!}

Visibilidad

{!! Form::select('category_id[]', $categories, $article->post->categories, ['class' => 'js-select2-custom custom-select', 'size' => '1', 'style' => 'opacity: 0;', 'multiple', 'id' => 'categoryLabel', 'data-hs-select2-options' => '{ "minimumResultsForSearch": "Infinity", "placeholder": "Seleccionar categoría" }']) !!}
@include('backend.partials.images', ['model' => $article])
{!! Form::close() !!} @endsection @push('scripts') @endpush