@extends('themes.default1.agent.layout.agent') @extends('themes.default1.agent.layout.sidebar') @section('article') active @stop @section('add-article') class="active" @stop @section('content') {!! Form::open(array('action' => 'Agent\kb\ArticleController@store' , 'method' => 'post') )!!}
@if(Session::has('success'))
Success {{Session::get('success')}}
@endif @if(Session::has('fails'))
Fail! {{Session::get('fails')}}
@endif @if(!$category)
{!! Lang::get('lang.create_a_category') !!}
@endif

{!! Lang::get('lang.addarticle') !!}

{!! Form::label('name',Lang::get('lang.name')) !!} {!! $errors->first('name', ':message') !!} {!! Form::text('name',null,['class' => 'form-control']) !!}
{!! Form::label('slug',Lang::get('lang.slug')) !!} {!! $errors->first('slug', ':message') !!} {!! Form::text('slug',null,['class' => 'form-control']) !!}
{!! Form::label('description',Lang::get('lang.description')) !!} {!! $errors->first('description', ':message') !!}
{!! Form::textarea('description',null,['class' => 'form-control','id'=>'editor','size' => '128x20','placeholder'=>Lang::get('lang.enter_the_description')]) !!}
@stop