@extends('themes.default1.agent.layout.agent') @extends('themes.default1.agent.layout.sidebar') @section('article') active @stop @section('add-article') class="active" @stop @section('PageHeader')

{{Lang::get('lang.article')}}

@stop @section('content') {!! Form::open(array('action' => 'Agent\kb\ArticleController@store' , 'method' => 'post') )!!}
@if(Session::has('success'))
{{Session::get('success')}}
@endif @if(Session::has('fails'))
{!! Lang::get('lang.alert') !!} ! {{Session::get('fails')}}
@endif @if(!$category)
{!! Lang::get('lang.create_a_category') !!}
@endif @if(Session::has('errors'))
{!! Lang::get('lang.alert') !!}!
@if($errors->first('name'))
  • {!! $errors->first('name', ':message') !!}
  • @endif @if($errors->first('slug'))
  • {!! $errors->first('slug', ':message') !!}
  • @endif @if($errors->first('description'))
  • {!! $errors->first('description', ':message') !!}
  • @endif @if($errors->first('type'))
  • {!! $errors->first('type', ':message') !!}
  • @endif @if($errors->first('status'))
  • {!! $errors->first('status', ':message') !!}
  • @endif @if($errors->first('category_id'))
  • {!! $errors->first('category_id', ':message') !!}
  • @endif
    @endif

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

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