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