@if (isset($doc))
{!! Form::model($doc, array('url' => url('department/'.$doc->id), 'method' => 'put', 'files'=> true,'id'=>'fvalidate')) !!}
@else
{!! Form::open(array('url' => route('department.store'), 'method' => 'post', 'files'=> true,'id'=>'fvalidate')) !!}
@endif
{!! Form::label('name', 'Tên phòng ban', array('class' => ' required')) !!}
{!! Form::text('name',null, array('class' => 'form-control', 'required' => true)) !!}
{{ $errors->first('name', ':message') }}
{!! Form::label('parent_id','Trực thuộc', array('class' => 'required')) !!}
{!! Form::label('description','Mô tả', array('class' => 'required')) !!}
{!! Form::textArea('description',null, array('class' => 'form-control')) !!}
{{ $errors->first('parent_id', ':message') }}
{{ Form::close() }}