@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": formlibraryresources.branch_id.$touched && formlibraryresources.branch_id.$invalid}' ])}}
{!! getValidationMessage()!!}
@else {{ Form::hidden('branch_id', getUserRecord()->branch_id, array('id'=>'branch_id')) }} @endif
{{ Form::label('library_resource', getphrase('library_resource')) }} * {{ Form::text('library_resource', $value = null , $attributes = array('class'=>'form-control', 'placeholder' => 'GRN NO', 'ng-model'=>'library_resource', 'ng-pattern'=>getRegexPattern('name'), 'required'=> 'true', 'id'=>'library_resource', 'ng-class'=>'{"has-error": formlibraryresources.library_resource.$touched && formlibraryresources.library_resource.$invalid}', 'ng-minlength' => '2', 'ng-maxlength' => '50', )) }}
{!! getValidationMessage()!!} {!! getValidationMessage('pattern')!!} {!! getValidationMessage('minlength')!!} {!! getValidationMessage('maxlength')!!}
{{ Form::label('description', getphrase('description')) }} {{ Form::textarea('description', $value = null , $attributes = array('class'=>'form-control', 'rows'=>'5', 'placeholder' => ' Description')) }}