@if(checkRole(['owner']))
{{ Form::label('branch_id', getphrase('branch')) }} * {{Form::select('branch_id', $branches, null, ['class'=>'form-control', 'id'=>'branch_id', 'ng-resourcel'=>'branch_id', 'required'=> 'true', 'ng-class'=>'{"has-error": formlibrarycategories.branch_id.$touched && formlibrarycategories.branch_id.$invalid}' ])}}
{!! getValidationMessage()!!}
@else {{ Form::hidden('branch_id', getUserRecord()->branch_id, array('id'=>'branch_id')) }} @endif
{{ Form::label('library_category', getphrase('library_category')) }} * {{ Form::text('library_category', $value = null , $attributes = array('class'=>'form-control', 'placeholder' => 'Agriculture', 'ng-model'=>'library_category', 'ng-pattern'=>getRegexPattern('name'), 'required'=> 'true', 'id'=>'library_category', 'ng-class'=>'{"has-error": formlibrarycategories.library_category.$touched && formlibrarycategories.library_category.$invalid}', 'ng-minlength' => '2', 'ng-maxlength' => '50', )) }}
{!! getValidationMessage()!!} {!! getValidationMessage('pattern')!!} {!! getValidationMessage('minlength')!!} {!! getValidationMessage('maxlength')!!}
{{ Form::label('category_id', getphrase('parent_category')) }} {{Form::select('category_id', $categories, null, ['class'=>'form-control', 'id'=>'category_id', 'ng-resourcel'=>'category_id', 'required'=> 'true', 'ng-class'=>'{"has-error": formlibrarycategories.category_id.$touched && formlibrarycategories.category_id.$invalid}' ])}}
{!! getValidationMessage()!!}
{{ Form::label('description', getphrase('description')) }} {{ Form::textarea('description', $value = null , $attributes = array('class'=>'form-control', 'rows'=>'5', 'placeholder' => ' Description')) }}