@if (isset($category)) {!! Form::model($category, array('url' => $type . '/' . $category->id, 'method' => 'put', 'files'=> true)) !!} @else {!! Form::open(array('url' => $type, 'method' => 'post', 'files'=> true)) !!} @endif
{!! Form::label('name', trans('category.name'), array('class' => 'control-label required')) !!}
{!! Form::text('name', null, array('class' => 'form-control')) !!} {{ $errors->first('name', ':message') }}
{{trans('table.back')}}
{!! Form::close() !!}