@extends('themes.default1.agent.layout.agent') @extends('themes.default1.agent.layout.sidebar') @section('Tools') class="nav-link active" @stop @section('tool') class="active" @stop @section('kb') class="nav-link active" @stop @section('add-pages') class="nav-link active" @stop @section('pages') class="nav-link active" @stop @section('page-menu-open') class="nav nav-treeview menu-open" @stop @section('page-menu-parent') class="nav-item menu-open" @stop @section('PageHeader')

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

@stop @section('content') {!! Form::open(array('route' => 'page.store' , 'method' => 'post') )!!} @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('status'))
  • {!! $errors->first('status', ':message') !!}
  • @endif @if($errors->first('visibility'))
  • {!! $errors->first('visibility', ':message') !!}
  • @endif
    @endif

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

    {!! 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 color','size' => '110x15','id'=>'myNicEditor','placeholder'=>Lang::get('lang.enter_the_description')]) !!}

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

    {!! Form::label('status',Lang::get('lang.status')) !!}
    {!! Form::radio('status','1',true) !!} {{ Lang::get('lang.published') }}
    {!! Form::radio('status','0',null) !!} {{ Lang::get('lang.draft') }}
    {!! Form::label('visibility',Lang::get('lang.visibility')) !!}
    {!! Form::radio('visibility','1',true) !!} {{Lang::get('lang.public')}}
    {!! Form::radio('visibility','0',null) !!} {{Lang::get('lang.private')}}
    @stop