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

@yield('title')

{!! Form::text('post[title]', null, ['class' => 'form-control', 'required']) !!} Sugerencia.
{!! Form::textarea('post[excerpt]', null, ['class' => 'form-control', 'rows' => 10]) !!} Sugerencia.
@include('backend.partials.image', ['post' => $article->post])
@foreach($categories as $category)
@endforeach
{!! Form::textarea('post[content]', null, ['class' => 'form-control summernote', 'rows' => 10]) !!} Sugerencia.
@if($article->exists)

Imágenes

@include('backend.partials.images', ['post' => $article->post]) @endif
{!! Form::close() !!} @endsection @section('scripts') @endsection