@extends('Backend::layout') @section('head') @stop @section('content') {{ HTML::widgetBox(['name' => $article ? trans('GlobalTranslations::common.edit') : trans('GlobalTranslations::common.add'), 'icon' => 'icon-user']) }} {{ Former::populate($article) }} {{ Former::open() }} {{ Former::checkbox('cms_art_active')->check() }} {{ Former::text('cms_art_name')->star() }} {{ Former::select('cms_art_layout')->class('select2')->options($layouts)->star() }} {{ Former::text('cms_art_thumbnail')->prepend('')->append('') }} {{ Former::textarea('cms_art_intro')->class('tinymce') }} {{ Former::textarea('cms_art_content')->class('tinymce') }} {{ Former::select('cms_art_cat[]')->multiple()->class('select2')->fromQuery($categories, 'cms_artcat_name', 'cms_artcat_id')->value( ! $article || Input::old() ? null : $article->categories->lists('cms_artcat_id', 'cms_artcat_name'))->star() }} {{ Former::text('cms_art_meta_keywords') }} {{ Former::text('cms_art_meta_description') }} {{ Former::actions( Former::btn_primary_submit(trans('GlobalTranslations::common.save')), Former::default_reset(trans('GlobalTranslations::common.reset_changes'))->onclick('location.reload();')) }} {{ Former::close() }} {{ HTML::widgetBox(false) }} @stop